llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpvulq2678.c'
source_filename = "/tmp/tmpvulq2678.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Enter your word: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@.str.3 = 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
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%5 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
%6 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%7 = call ptr @strupr(ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @strupr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvulq2678.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Enter your word: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@.str.3 = 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
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%5 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
%6 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%7 = call ptr @strupr(ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @strupr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77p2u02i.c'
source_filename = "/tmp/tmp77p2u02i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08lx: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c" *\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %87, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ult i32 %11, %12
br i1 %13, label %14, label %90
14: ; preds = %10
%15 = load i64, ptr %6, align 8
%16 = load i32, ptr %7, align 4
%17 = zext i32 %16 to i64
%18 = add nsw i64 %15, %17
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %18)
store i32 0, ptr %8, align 4
br label %20
20: ; preds = %43, %14
%21 = load i32, ptr %8, align 4
%22 = icmp ult i32 %21, 16
br i1 %22, label %23, label %46
23: ; preds = %20
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = add i32 %24, %25
%27 = load i32, ptr %5, align 4
%28 = icmp ult i32 %26, %27
br i1 %28, label %29, label %40
29: ; preds = %23
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %8, align 4
%33 = add i32 %31, %32
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %30, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = and i32 %37, 255
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
br label %42
40: ; preds = %23
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %42
42: ; preds = %40, %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %8, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %8, align 4
br label %20, !llvm.loop !6
46: ; preds = %20
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %8, align 4
br label %48
48: ; preds = %82, %46
%49 = load i32, ptr %8, align 4
%50 = icmp ult i32 %49, 16
br i1 %50, label %51, label %85
51: ; preds = %48
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %8, align 4
%54 = add i32 %52, %53
%55 = load i32, ptr %5, align 4
%56 = icmp ult i32 %54, %55
br i1 %56, label %57, label %79
57: ; preds = %51
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %8, align 4
%61 = add i32 %59, %60
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %58, i64 %62
%64 = load i8, ptr %63, align 1
store i8 %64, ptr %9, align 1
%65 = load i8, ptr %9, align 1
%66 = sext i8 %65 to i32
%67 = icmp slt i32 %66, 32
%68 = zext i1 %67 to i32
%69 = load i8, ptr %9, align 1
%70 = sext i8 %69 to i32
%71 = icmp sgt i32 %70, 128
%72 = zext i1 %71 to i32
%73 = or i32 %68, %72
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %57
store i8 46, ptr %9, align 1
br label %76
76: ; preds = %75, %57
%77 = load i8, ptr %9, align 1
%78 = call i32 @putchar(i8 noundef signext %77)
br label %81
79: ; preds = %51
%80 = call i32 @putchar(i8 noundef signext 32)
br label %81
81: ; preds = %79, %76
br label %82
82: ; preds = %81
%83 = load i32, ptr %8, align 4
%84 = add i32 %83, 1
store i32 %84, ptr %8, align 4
br label %48, !llvm.loop !8
85: ; preds = %48
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %87
87: ; preds = %85
%88 = load i32, ptr %7, align 4
%89 = add i32 %88, 16
store i32 %89, ptr %7, align 4
br label %10, !llvm.loop !9
90: ; preds = %10
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp77p2u02i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08lx: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c" *\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp ult i32 %10, %11
br i1 %12, label %.lr.ph5, label %94
.lr.ph5: ; preds = %3
br label %13
13: ; preds = %.lr.ph5, %88
%14 = load i64, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = add nsw i64 %14, %16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %17)
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp ult i32 %19, 16
br i1 %20, label %.lr.ph, label %46
.lr.ph: ; preds = %13
br label %21
21: ; preds = %.lr.ph, %41
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = add i32 %22, %23
%25 = load i32, ptr %5, align 4
%26 = icmp ult i32 %24, %25
br i1 %26, label %27, label %38
27: ; preds = %21
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = add i32 %29, %30
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %28, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = and i32 %35, 255
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %36)
br label %40
38: ; preds = %21
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %40
40: ; preds = %38, %27
br label %41
41: ; preds = %40
%42 = load i32, ptr %8, align 4
%43 = add i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp ult i32 %44, 16
br i1 %45, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %46
46: ; preds = %._crit_edge, %13
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp ult i32 %48, 16
br i1 %49, label %.lr.ph2, label %86
.lr.ph2: ; preds = %46
br label %50
50: ; preds = %.lr.ph2, %81
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %8, align 4
%53 = add i32 %51, %52
%54 = load i32, ptr %5, align 4
%55 = icmp ult i32 %53, %54
br i1 %55, label %56, label %78
56: ; preds = %50
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %8, align 4
%60 = add i32 %58, %59
%61 = zext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %57, i64 %61
%63 = load i8, ptr %62, align 1
store i8 %63, ptr %9, align 1
%64 = load i8, ptr %9, align 1
%65 = sext i8 %64 to i32
%66 = icmp slt i32 %65, 32
%67 = zext i1 %66 to i32
%68 = load i8, ptr %9, align 1
%69 = sext i8 %68 to i32
%70 = icmp sgt i32 %69, 128
%71 = zext i1 %70 to i32
%72 = or i32 %67, %71
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %56
store i8 46, ptr %9, align 1
br label %75
75: ; preds = %74, %56
%76 = load i8, ptr %9, align 1
%77 = call i32 @putchar(i8 noundef signext %76)
br label %80
78: ; preds = %50
%79 = call i32 @putchar(i8 noundef signext 32)
br label %80
80: ; preds = %78, %75
br label %81
81: ; preds = %80
%82 = load i32, ptr %8, align 4
%83 = add i32 %82, 1
store i32 %83, ptr %8, align 4
%84 = load i32, ptr %8, align 4
%85 = icmp ult i32 %84, 16
br i1 %85, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %86
86: ; preds = %._crit_edge3, %46
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %88
88: ; preds = %86
%89 = load i32, ptr %7, align 4
%90 = add i32 %89, 16
store i32 %90, ptr %7, align 4
%91 = load i32, ptr %7, align 4
%92 = load i32, ptr %5, align 4
%93 = icmp ult i32 %91, %92
br i1 %93, label %13, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %88
br label %94
94: ; preds = %._crit_edge6, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpa0wig_2p.c'
source_filename = "/tmp/tmpa0wig_2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @number_returner()
%3 = icmp eq i32 %2, 100
%4 = zext i1 %3 to i64
%5 = select i1 %3, i32 0, i32 1
ret i32 %5
}
declare i32 @number_returner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa0wig_2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @number_returner()
%3 = icmp eq i32 %2, 100
%4 = zext i1 %3 to i64
%5 = select i1 %3, i32 0, i32 1
ret i32 %5
}
declare i32 @number_returner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc2ibkhgj.c'
source_filename = "/tmp/tmpc2ibkhgj.c"
target datalayout = "e-m:e-p270: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/tmpc2ibkhgj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_i6w3pbq.c'
source_filename = "/tmp/tmp_i6w3pbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%4d %12.6e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, 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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 -23, ptr %14, align 8
%15 = call ptr @ivector(i32 noundef 1, i32 noundef 20)
store ptr %15, ptr %13, align 8
%16 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %16, ptr %5, align 8
%17 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %17, ptr %6, align 8
%18 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %18, ptr %7, align 8
%19 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %19, ptr %8, align 8
%20 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %20, ptr %9, align 8
%21 = call ptr @matrix(i32 noundef 1, i32 noundef 20, i32 noundef 1, i32 noundef 20)
store ptr %21, ptr %10, align 8
store i32 1, ptr %11, align 4
br label %22
22: ; preds = %42, %0
%23 = load i32, ptr %11, align 4
%24 = icmp sle i32 %23, 20
br i1 %24, label %25, label %45
25: ; preds = %22
store i32 1, ptr %12, align 4
br label %26
26: ; preds = %38, %25
%27 = load i32, ptr %12, align 4
%28 = icmp sle i32 %27, 20
br i1 %28, label %29, label %41
29: ; preds = %26
%30 = load ptr, ptr %10, align 8
%31 = load i32, ptr %11, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
store float 0.000000e+00, ptr %37, align 4
br label %38
38: ; preds = %29
%39 = load i32, ptr %12, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %12, align 4
br label %26, !llvm.loop !6
41: ; preds = %26
br label %42
42: ; preds = %41
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %11, align 4
br label %22, !llvm.loop !8
45: ; preds = %22
store i32 1, ptr %11, align 4
br label %46
46: ; preds = %73, %45
%47 = load i32, ptr %11, align 4
%48 = icmp sle i32 %47, 20
br i1 %48, label %49, label %76
49: ; preds = %46
%50 = call float @ran2(ptr noundef %14)
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %11, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds float, ptr %51, i64 %53
store float %50, ptr %54, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %11, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %55, i64 %57
%59 = load float, ptr %58, align 4
%60 = load ptr, ptr %10, align 8
%61 = load i32, ptr %11, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = load i32, ptr %11, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, ptr %64, i64 %66
store float %59, ptr %67, align 4
%68 = call float @ran2(ptr noundef %14)
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, ptr %69, i64 %71
store float %68, ptr %72, align 4
br label %73
73: ; preds = %49
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
br label %46, !llvm.loop !9
76: ; preds = %46
store i32 1, ptr %11, align 4
br label %77
77: ; preds = %121, %76
%78 = load i32, ptr %11, align 4
%79 = icmp slt i32 %78, 20
br i1 %79, label %80, label %124
80: ; preds = %77
%81 = call float @ran2(ptr noundef %14)
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %11, align 4
%84 = add nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, ptr %82, i64 %85
store float %81, ptr %86, align 4
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %11, align 4
%89 = add nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds float, ptr %87, i64 %90
%92 = load float, ptr %91, align 4
%93 = load ptr, ptr %10, align 8
%94 = load i32, ptr %11, align 4
%95 = add nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %93, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %11, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %98, i64 %100
store float %92, ptr %101, align 4
%102 = call float @ran2(ptr noundef %14)
%103 = load ptr, ptr %7, align 8
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds float, ptr %103, i64 %105
store float %102, ptr %106, align 4
%107 = load ptr, ptr %7, align 8
%108 = load i32, ptr %11, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds float, ptr %107, i64 %109
%111 = load float, ptr %110, align 4
%112 = load ptr, ptr %10, align 8
%113 = load i32, ptr %11, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds ptr, ptr %112, i64 %114
%116 = load ptr, ptr %115, align 8
%117 = load i32, ptr %11, align 4
%118 = add nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, ptr %116, i64 %119
store float %111, ptr %120, align 4
br label %121
121: ; preds = %80
%122 = load i32, ptr %11, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %11, align 4
br label %77, !llvm.loop !10
124: ; preds = %77
%125 = call float @ran2(ptr noundef %14)
store float %125, ptr %2, align 4
%126 = load float, ptr %2, align 4
%127 = load ptr, ptr %10, align 8
%128 = getelementptr inbounds ptr, ptr %127, i64 20
%129 = load ptr, ptr %128, align 8
%130 = getelementptr inbounds float, ptr %129, i64 1
store float %126, ptr %130, align 4
%131 = call float @ran2(ptr noundef %14)
store float %131, ptr %3, align 4
%132 = load float, ptr %3, align 4
%133 = load ptr, ptr %10, align 8
%134 = getelementptr inbounds ptr, ptr %133, i64 1
%135 = load ptr, ptr %134, align 8
%136 = getelementptr inbounds float, ptr %135, i64 20
store float %132, ptr %136, align 4
%137 = load ptr, ptr %5, align 8
%138 = load ptr, ptr %6, align 8
%139 = load ptr, ptr %7, align 8
%140 = load float, ptr %2, align 4
%141 = load float, ptr %3, align 4
%142 = load ptr, ptr %8, align 8
%143 = load ptr, ptr %9, align 8
%144 = call i32 @cyclic(ptr noundef %137, ptr noundef %138, ptr noundef %139, float noundef %140, float noundef %141, ptr noundef %142, ptr noundef %143, i32 noundef 20)
%145 = load ptr, ptr %10, align 8
%146 = load ptr, ptr %13, align 8
%147 = call i32 @ludcmp(ptr noundef %145, i32 noundef 20, ptr noundef %146, ptr noundef %4)
%148 = load ptr, ptr %10, align 8
%149 = load ptr, ptr %13, align 8
%150 = load ptr, ptr %8, align 8
%151 = call i32 @lubksb(ptr noundef %148, i32 noundef 20, ptr noundef %149, ptr noundef %150)
store i32 1, ptr %11, align 4
br label %152
152: ; preds = %181, %124
%153 = load i32, ptr %11, align 4
%154 = icmp sle i32 %153, 20
br i1 %154, label %155, label %184
155: ; preds = %152
%156 = load i32, ptr %11, align 4
%157 = load ptr, ptr %9, align 8
%158 = load i32, ptr %11, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float, ptr %157, i64 %159
%161 = load float, ptr %160, align 4
%162 = load ptr, ptr %8, align 8
%163 = load i32, ptr %11, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds float, ptr %162, i64 %164
%166 = load float, ptr %165, align 4
%167 = fsub float %161, %166
%168 = load ptr, ptr %9, align 8
%169 = load i32, ptr %11, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds float, ptr %168, i64 %170
%172 = load float, ptr %171, align 4
%173 = load ptr, ptr %8, align 8
%174 = load i32, ptr %11, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds float, ptr %173, i64 %175
%177 = load float, ptr %176, align 4
%178 = fadd float %172, %177
%179 = fdiv float %167, %178
%180 = call i32 @printf(ptr noundef @.str, i32 noundef %156, float noundef %179)
br label %181
181: ; preds = %155
%182 = load i32, ptr %11, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %11, align 4
br label %152, !llvm.loop !11
184: ; preds = %152
%185 = load ptr, ptr %10, align 8
%186 = call i32 @free_matrix(ptr noundef %185, i32 noundef 1, i32 noundef 20, i32 noundef 1, i32 noundef 20)
%187 = load ptr, ptr %9, align 8
%188 = call i32 @free_vector(ptr noundef %187, i32 noundef 1, i32 noundef 20)
%189 = load ptr, ptr %8, align 8
%190 = call i32 @free_vector(ptr noundef %189, i32 noundef 1, i32 noundef 20)
%191 = load ptr, ptr %7, align 8
%192 = call i32 @free_vector(ptr noundef %191, i32 noundef 1, i32 noundef 20)
%193 = load ptr, ptr %6, align 8
%194 = call i32 @free_vector(ptr noundef %193, i32 noundef 1, i32 noundef 20)
%195 = load ptr, ptr %5, align 8
%196 = call i32 @free_vector(ptr noundef %195, i32 noundef 1, i32 noundef 20)
%197 = load ptr, ptr %13, align 8
%198 = call i32 @free_ivector(ptr noundef %197, i32 noundef 1, i32 noundef 20)
ret i32 0
}
declare ptr @ivector(i32 noundef, i32 noundef) #1
declare ptr @vector(i32 noundef, i32 noundef) #1
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare float @ran2(ptr noundef) #1
declare i32 @cyclic(ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ludcmp(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @lubksb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, float noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free_ivector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_i6w3pbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%4d %12.6e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, 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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 -23, ptr %14, align 8
%15 = call ptr @ivector(i32 noundef 1, i32 noundef 20)
store ptr %15, ptr %13, align 8
%16 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %16, ptr %5, align 8
%17 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %17, ptr %6, align 8
%18 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %18, ptr %7, align 8
%19 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %19, ptr %8, align 8
%20 = call ptr @vector(i32 noundef 1, i32 noundef 20)
store ptr %20, ptr %9, align 8
%21 = call ptr @matrix(i32 noundef 1, i32 noundef 20, i32 noundef 1, i32 noundef 20)
store ptr %21, ptr %10, align 8
store i32 1, ptr %11, align 4
%22 = load i32, ptr %11, align 4
%23 = icmp sle i32 %22, 20
br i1 %23, label %.lr.ph2, label %47
.lr.ph2: ; preds = %0
br label %24
24: ; preds = %.lr.ph2, %42
store i32 1, ptr %12, align 4
%25 = load i32, ptr %12, align 4
%26 = icmp sle i32 %25, 20
br i1 %26, label %.lr.ph, label %41
.lr.ph: ; preds = %24
br label %27
27: ; preds = %.lr.ph, %36
%28 = load ptr, ptr %10, align 8
%29 = load i32, ptr %11, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %12, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds float, ptr %32, i64 %34
store float 0.000000e+00, ptr %35, align 4
br label %36
36: ; preds = %27
%37 = load i32, ptr %12, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %12, align 4
%39 = load i32, ptr %12, align 4
%40 = icmp sle i32 %39, 20
br i1 %40, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %24
br label %42
42: ; preds = %41
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = icmp sle i32 %45, 20
br i1 %46, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %0
store i32 1, ptr %11, align 4
%48 = load i32, ptr %11, align 4
%49 = icmp sle i32 %48, 20
br i1 %49, label %.lr.ph5, label %79
.lr.ph5: ; preds = %47
br label %50
50: ; preds = %.lr.ph5, %74
%51 = call float @ran2(ptr noundef %14)
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %11, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds float, ptr %52, i64 %54
store float %51, ptr %55, align 4
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %11, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds float, ptr %56, i64 %58
%60 = load float, ptr %59, align 4
%61 = load ptr, ptr %10, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %11, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds float, ptr %65, i64 %67
store float %60, ptr %68, align 4
%69 = call float @ran2(ptr noundef %14)
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %11, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, ptr %70, i64 %72
store float %69, ptr %73, align 4
br label %74
74: ; preds = %50
%75 = load i32, ptr %11, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %11, align 4
%77 = load i32, ptr %11, align 4
%78 = icmp sle i32 %77, 20
br i1 %78, label %50, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %79
79: ; preds = %._crit_edge6, %47
store i32 1, ptr %11, align 4
%80 = load i32, ptr %11, align 4
%81 = icmp slt i32 %80, 20
br i1 %81, label %.lr.ph8, label %128
.lr.ph8: ; preds = %79
br label %82
82: ; preds = %.lr.ph8, %123
%83 = call float @ran2(ptr noundef %14)
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds float, ptr %84, i64 %87
store float %83, ptr %88, align 4
%89 = load ptr, ptr %5, align 8
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %89, i64 %92
%94 = load float, ptr %93, align 4
%95 = load ptr, ptr %10, align 8
%96 = load i32, ptr %11, align 4
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds ptr, ptr %95, i64 %98
%100 = load ptr, ptr %99, align 8
%101 = load i32, ptr %11, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds float, ptr %100, i64 %102
store float %94, ptr %103, align 4
%104 = call float @ran2(ptr noundef %14)
%105 = load ptr, ptr %7, align 8
%106 = load i32, ptr %11, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, ptr %105, i64 %107
store float %104, ptr %108, align 4
%109 = load ptr, ptr %7, align 8
%110 = load i32, ptr %11, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds float, ptr %109, i64 %111
%113 = load float, ptr %112, align 4
%114 = load ptr, ptr %10, align 8
%115 = load i32, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds ptr, ptr %114, i64 %116
%118 = load ptr, ptr %117, align 8
%119 = load i32, ptr %11, align 4
%120 = add nsw i32 %119, 1
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, ptr %118, i64 %121
store float %113, ptr %122, align 4
br label %123
123: ; preds = %82
%124 = load i32, ptr %11, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %11, align 4
%126 = load i32, ptr %11, align 4
%127 = icmp slt i32 %126, 20
br i1 %127, label %82, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %123
br label %128
128: ; preds = %._crit_edge9, %79
%129 = call float @ran2(ptr noundef %14)
store float %129, ptr %2, align 4
%130 = load float, ptr %2, align 4
%131 = load ptr, ptr %10, align 8
%132 = getelementptr inbounds ptr, ptr %131, i64 20
%133 = load ptr, ptr %132, align 8
%134 = getelementptr inbounds float, ptr %133, i64 1
store float %130, ptr %134, align 4
%135 = call float @ran2(ptr noundef %14)
store float %135, ptr %3, align 4
%136 = load float, ptr %3, align 4
%137 = load ptr, ptr %10, align 8
%138 = getelementptr inbounds ptr, ptr %137, i64 1
%139 = load ptr, ptr %138, align 8
%140 = getelementptr inbounds float, ptr %139, i64 20
store float %136, ptr %140, align 4
%141 = load ptr, ptr %5, align 8
%142 = load ptr, ptr %6, align 8
%143 = load ptr, ptr %7, align 8
%144 = load float, ptr %2, align 4
%145 = load float, ptr %3, align 4
%146 = load ptr, ptr %8, align 8
%147 = load ptr, ptr %9, align 8
%148 = call i32 @cyclic(ptr noundef %141, ptr noundef %142, ptr noundef %143, float noundef %144, float noundef %145, ptr noundef %146, ptr noundef %147, i32 noundef 20)
%149 = load ptr, ptr %10, align 8
%150 = load ptr, ptr %13, align 8
%151 = call i32 @ludcmp(ptr noundef %149, i32 noundef 20, ptr noundef %150, ptr noundef %4)
%152 = load ptr, ptr %10, align 8
%153 = load ptr, ptr %13, align 8
%154 = load ptr, ptr %8, align 8
%155 = call i32 @lubksb(ptr noundef %152, i32 noundef 20, ptr noundef %153, ptr noundef %154)
store i32 1, ptr %11, align 4
%156 = load i32, ptr %11, align 4
%157 = icmp sle i32 %156, 20
br i1 %157, label %.lr.ph11, label %189
.lr.ph11: ; preds = %128
br label %158
158: ; preds = %.lr.ph11, %184
%159 = load i32, ptr %11, align 4
%160 = load ptr, ptr %9, align 8
%161 = load i32, ptr %11, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds float, ptr %160, i64 %162
%164 = load float, ptr %163, align 4
%165 = load ptr, ptr %8, align 8
%166 = load i32, ptr %11, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds float, ptr %165, i64 %167
%169 = load float, ptr %168, align 4
%170 = fsub float %164, %169
%171 = load ptr, ptr %9, align 8
%172 = load i32, ptr %11, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, ptr %171, i64 %173
%175 = load float, ptr %174, align 4
%176 = load ptr, ptr %8, align 8
%177 = load i32, ptr %11, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds float, ptr %176, i64 %178
%180 = load float, ptr %179, align 4
%181 = fadd float %175, %180
%182 = fdiv float %170, %181
%183 = call i32 @printf(ptr noundef @.str, i32 noundef %159, float noundef %182)
br label %184
184: ; preds = %158
%185 = load i32, ptr %11, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %11, align 4
%187 = load i32, ptr %11, align 4
%188 = icmp sle i32 %187, 20
br i1 %188, label %158, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %184
br label %189
189: ; preds = %._crit_edge12, %128
%190 = load ptr, ptr %10, align 8
%191 = call i32 @free_matrix(ptr noundef %190, i32 noundef 1, i32 noundef 20, i32 noundef 1, i32 noundef 20)
%192 = load ptr, ptr %9, align 8
%193 = call i32 @free_vector(ptr noundef %192, i32 noundef 1, i32 noundef 20)
%194 = load ptr, ptr %8, align 8
%195 = call i32 @free_vector(ptr noundef %194, i32 noundef 1, i32 noundef 20)
%196 = load ptr, ptr %7, align 8
%197 = call i32 @free_vector(ptr noundef %196, i32 noundef 1, i32 noundef 20)
%198 = load ptr, ptr %6, align 8
%199 = call i32 @free_vector(ptr noundef %198, i32 noundef 1, i32 noundef 20)
%200 = load ptr, ptr %5, align 8
%201 = call i32 @free_vector(ptr noundef %200, i32 noundef 1, i32 noundef 20)
%202 = load ptr, ptr %13, align 8
%203 = call i32 @free_ivector(ptr noundef %202, i32 noundef 1, i32 noundef 20)
ret i32 0
}
declare ptr @ivector(i32 noundef, i32 noundef) #1
declare ptr @vector(i32 noundef, i32 noundef) #1
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare float @ran2(ptr noundef) #1
declare i32 @cyclic(ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ludcmp(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @lubksb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, float noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_vector(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free_ivector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp9tkd1cpt.c'
source_filename = "/tmp/tmp9tkd1cpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[31musage: altPhisics \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"<input_file> \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"<output_file> \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"<number of interations> \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"<number of processors>\0A\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage_error() #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)
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/tmp9tkd1cpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[31musage: altPhisics \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"<input_file> \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"<output_file> \00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"<number of interations> \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"<number of processors>\0A\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage_error() #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)
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/tmpjj59mhq8.c'
source_filename = "/tmp/tmpjj59mhq8.c"
target datalayout = "e-m:e-p270: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/tmpjj59mhq8.c"
target datalayout = "e-m:e-p270: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/tmpqf1csicy.c'
source_filename = "/tmp/tmpqf1csicy.c"
target datalayout = "e-m:e-p270: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/tmpqf1csicy.c"
target datalayout = "e-m:e-p270: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/tmpfh_6co1y.c'
source_filename = "/tmp/tmpfh_6co1y.c"
target datalayout = "e-m:e-p270: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/tmpfh_6co1y.c"
target datalayout = "e-m:e-p270: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/tmpo0puvhpu.c'
source_filename = "/tmp/tmpo0puvhpu.c"
target datalayout = "e-m:e-p270: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/tmpo0puvhpu.c"
target datalayout = "e-m:e-p270: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/tmp51deee91.c'
source_filename = "/tmp/tmp51deee91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_cert_md5_fingerprint(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 (...) @EVP_md5()
%10 = load ptr, ptr %6, align 8
%11 = call i32 @get_cert_fingerprint(ptr noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @get_cert_fingerprint(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @EVP_md5(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp51deee91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_cert_md5_fingerprint(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 (...) @EVP_md5()
%10 = load ptr, ptr %6, align 8
%11 = call i32 @get_cert_fingerprint(ptr noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @get_cert_fingerprint(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @EVP_md5(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5j2ubnvx.c'
source_filename = "/tmp/tmp5j2ubnvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%X%c\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\22%s\22 is not an integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hex_string_to_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sscanf(ptr noundef %5, ptr noundef @.str, ptr noundef %3, ptr noundef %4)
%7 = icmp ne i32 %6, 1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @suicidef(ptr noundef @.str.1, ptr noundef %9)
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @suicidef(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/tmp5j2ubnvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%X%c\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\22%s\22 is not an integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hex_string_to_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sscanf(ptr noundef %5, ptr noundef @.str, ptr noundef %3, ptr noundef %4)
%7 = icmp ne i32 %6, 1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @suicidef(ptr noundef @.str.1, ptr noundef %9)
br label %11
11: ; preds = %8, %1
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @suicidef(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/tmpcj7rqxto.c'
source_filename = "/tmp/tmpcj7rqxto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nth_digits(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %10, %1
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %3, align 4
%13 = call i64 @count_digits(i32 noundef %12)
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = add nsw i64 %15, %13
%17 = trunc i64 %16 to i32
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 %21, 10
%23 = load i32, ptr %3, align 4
%24 = sub nsw i32 %23, 1
%25 = add nsw i32 %22, %24
ret i32 %25
}
declare i64 @count_digits(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/tmpcj7rqxto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nth_digits(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = call i64 @count_digits(i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = add nsw i64 %14, %12
%16 = trunc i64 %15 to i32
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %22
22: ; preds = %._crit_edge, %1
%23 = load i32, ptr %5, align 4
%24 = mul nsw i32 %23, 10
%25 = load i32, ptr %3, align 4
%26 = sub nsw i32 %25, 1
%27 = add nsw i32 %24, %26
ret i32 %27
}
declare i64 @count_digits(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/tmp70t8_4ta.c'
source_filename = "/tmp/tmp70t8_4ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ttyent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ttyslot() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = call ptr @ttyname(i32 noundef 0)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = call ptr @ttyname(i32 noundef 1)
store ptr %9, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = call ptr @ttyname(i32 noundef 2)
store ptr %12, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %11
store i32 0, ptr %1, align 4
br label %45
15: ; preds = %11, %8, %0
%16 = load ptr, ptr %3, align 8
%17 = call ptr @strrchr(ptr noundef %16, i8 noundef signext 47)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %4, align 8
br label %25
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
br label %25
25: ; preds = %22, %20
%26 = call i32 (...) @setttyent()
store i32 0, ptr %5, align 4
br label %27
27: ; preds = %42, %25
%28 = call ptr (...) @getttyent()
store ptr %28, ptr %2, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %43
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds %struct.ttyent, ptr %33, i32 0, i32 0
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %4, align 8
%37 = call i64 @strcmp(i32 noundef %35, ptr noundef %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %30
%40 = call i32 (...) @endttyent()
%41 = load i32, ptr %5, align 4
store i32 %41, ptr %1, align 4
br label %45
42: ; preds = %30
br label %27, !llvm.loop !6
43: ; preds = %27
%44 = call i32 (...) @endttyent()
store i32 0, ptr %1, align 4
br label %45
45: ; preds = %43, %39, %14
%46 = load i32, ptr %1, align 4
ret i32 %46
}
declare ptr @ttyname(i32 noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @setttyent(...) #1
declare ptr @getttyent(...) #1
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @endttyent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp70t8_4ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ttyent = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ttyslot() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = call ptr @ttyname(i32 noundef 0)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = call ptr @ttyname(i32 noundef 1)
store ptr %9, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = call ptr @ttyname(i32 noundef 2)
store ptr %12, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %11
store i32 0, ptr %1, align 4
br label %46
15: ; preds = %11, %8, %0
%16 = load ptr, ptr %3, align 8
%17 = call ptr @strrchr(ptr noundef %16, i8 noundef signext 47)
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %4, align 8
br label %25
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
br label %25
25: ; preds = %22, %20
%26 = call i32 (...) @setttyent()
store i32 0, ptr %5, align 4
%27 = call ptr (...) @getttyent()
store ptr %27, ptr %2, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %.lr.ph, label %44
.lr.ph: ; preds = %25
br label %32
29: ; preds = %32
%30 = call ptr (...) @getttyent()
store ptr %30, ptr %2, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %._crit_edge, !llvm.loop !6
32: ; preds = %.lr.ph, %29
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds %struct.ttyent, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %4, align 8
%39 = call i64 @strcmp(i32 noundef %37, ptr noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %29
41: ; preds = %32
%42 = call i32 (...) @endttyent()
%43 = load i32, ptr %5, align 4
store i32 %43, ptr %1, align 4
br label %46
._crit_edge: ; preds = %29
br label %44
44: ; preds = %._crit_edge, %25
%45 = call i32 (...) @endttyent()
store i32 0, ptr %1, align 4
br label %46
46: ; preds = %44, %41, %14
%47 = load i32, ptr %1, align 4
ret i32 %47
}
declare ptr @ttyname(i32 noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @setttyent(...) #1
declare ptr @getttyent(...) #1
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @endttyent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0xlykeez.c'
source_filename = "/tmp/tmp0xlykeez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"can't allocate %d bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hnj_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0xlykeez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"can't allocate %d bytes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hnj_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplbounws4.c'
source_filename = "/tmp/tmplbounws4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glMaterialiv_size(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @__glMaterialfv_size(i32 noundef %3)
ret i32 %4
}
declare i32 @__glMaterialfv_size(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/tmplbounws4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glMaterialiv_size(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @__glMaterialfv_size(i32 noundef %3)
ret i32 %4
}
declare i32 @__glMaterialfv_size(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/tmpxqfawqg7.c'
source_filename = "/tmp/tmpxqfawqg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT16_MAX = dso_local global i64 0, align 8
@INT16_MIN = dso_local global i64 0, align 8
@INT32_MAX = dso_local global i64 0, align 8
@INT32_MIN = dso_local global i64 0, align 8
@INT8_MAX = dso_local global i64 0, align 8
@INT8_MIN = 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/tmpxqfawqg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT16_MAX = dso_local global i64 0, align 8
@INT16_MIN = dso_local global i64 0, align 8
@INT32_MAX = dso_local global i64 0, align 8
@INT32_MIN = dso_local global i64 0, align 8
@INT8_MAX = dso_local global i64 0, align 8
@INT8_MIN = 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/tmpyjc123fg.c'
source_filename = "/tmp/tmpyjc123fg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [8 x [8 x i32]], align 16
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 256, i1 false)
%2 = getelementptr inbounds [8 x [8 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @solveNQueens(ptr noundef %2, i32 noundef 0)
%4 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @solveNQueens(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyjc123fg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [8 x [8 x i32]], align 16
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 256, i1 false)
%2 = getelementptr inbounds [8 x [8 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @solveNQueens(ptr noundef %2, i32 noundef 0)
%4 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @solveNQueens(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_xrr38r7.c'
source_filename = "/tmp/tmp_xrr38r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getch()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @putchar(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call i32 @ungetch(i32 noundef %6)
%8 = call i32 (...) @getch()
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 @putchar(i32 noundef %9)
%11 = call i32 (...) @getch()
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, 10
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @puts(ptr noundef @.str)
br label %16
16: ; preds = %14, %0
ret i32 0
}
declare i32 @getch(...) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_xrr38r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getch()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @putchar(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = call i32 @ungetch(i32 noundef %6)
%8 = call i32 (...) @getch()
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 @putchar(i32 noundef %9)
%11 = call i32 (...) @getch()
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, 10
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @puts(ptr noundef @.str)
br label %16
16: ; preds = %14, %0
ret i32 0
}
declare i32 @getch(...) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxjc3nplv.c'
source_filename = "/tmp/tmpxjc3nplv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(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 @strdup(ptr noundef %3)
%5 = call ptr @fail_on_null(i32 noundef %4)
ret ptr %5
}
declare ptr @fail_on_null(i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxjc3nplv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrdup(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 @strdup(ptr noundef %3)
%5 = call ptr @fail_on_null(i32 noundef %4)
ret ptr %5
}
declare ptr @fail_on_null(i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4tu9fqcy.c'
source_filename = "/tmp/tmp4tu9fqcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @mp_set_hex_521(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %8, %12
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = add nsw i32 %13, %17
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 3
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 %24, ptr %26, align 1
ret i8 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4tu9fqcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @mp_set_hex_521(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %8, %12
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = add nsw i32 %13, %17
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 3
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 %24, ptr %26, align 1
ret i8 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkuzygdc9.c'
source_filename = "/tmp/tmpkuzygdc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @along_phi(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%10 = load double, ptr %6, align 8
%11 = fmul double -1.000000e+00, %10
%12 = load double, ptr %5, align 8
%13 = call double @sin(double noundef %12) #3
%14 = fmul double %11, %13
store double %14, ptr %7, align 8
%15 = load double, ptr %6, align 8
%16 = load double, ptr %6, align 8
%17 = call double @llvm.fmuladd.f64(double %15, double %16, double 4.844160e+17)
%18 = load double, ptr %6, align 8
%19 = fmul double 1.392000e+09, %18
%20 = load double, ptr %4, align 8
%21 = call double @sin(double noundef %20) #3
%22 = fmul double %19, %21
%23 = load double, ptr %5, align 8
%24 = call double @cos(double noundef %23) #3
%25 = fneg double %22
%26 = call double @llvm.fmuladd.f64(double %25, double %24, double %17)
%27 = call double @sqrt(double noundef %26) #3
store double %27, ptr %8, align 8
%28 = load double, ptr %7, align 8
%29 = load double, ptr %8, align 8
%30 = fdiv double %28, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %9, align 8
ret double %31
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; 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
; Function Attrs: nounwind
declare double @cos(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/tmpkuzygdc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @along_phi(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%10 = load double, ptr %6, align 8
%11 = fmul double -1.000000e+00, %10
%12 = load double, ptr %5, align 8
%13 = call double @sin(double noundef %12) #3
%14 = fmul double %11, %13
store double %14, ptr %7, align 8
%15 = load double, ptr %6, align 8
%16 = load double, ptr %6, align 8
%17 = call double @llvm.fmuladd.f64(double %15, double %16, double 4.844160e+17)
%18 = load double, ptr %6, align 8
%19 = fmul double 1.392000e+09, %18
%20 = load double, ptr %4, align 8
%21 = call double @sin(double noundef %20) #3
%22 = fmul double %19, %21
%23 = load double, ptr %5, align 8
%24 = call double @cos(double noundef %23) #3
%25 = fneg double %22
%26 = call double @llvm.fmuladd.f64(double %25, double %24, double %17)
%27 = call double @sqrt(double noundef %26) #3
store double %27, ptr %8, align 8
%28 = load double, ptr %7, align 8
%29 = load double, ptr %8, align 8
%30 = fdiv double %28, %29
store double %30, ptr %9, align 8
%31 = load double, ptr %9, align 8
ret double %31
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; 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
; Function Attrs: nounwind
declare double @cos(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/tmpbyaitsl6.c'
source_filename = "/tmp/tmpbyaitsl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findSyncByte(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %21, %2
%7 = load i32, ptr %5, align 4
%8 = sext i32 %7 to i64
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 71
br i1 %18, label %19, label %20
19: ; preds = %11
br label %24
20: ; preds = %11
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %6, !llvm.loop !6
24: ; preds = %19, %6
%25 = load i32, ptr %5, align 4
ret i32 %25
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbyaitsl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findSyncByte(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = sext i32 %6 to i64
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %20
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 71
br i1 %17, label %18, label %19
18: ; preds = %10
br label %27
19: ; preds = %10
br label %20
20: ; preds = %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = load i64, ptr %4, align 8
%26 = icmp ult i64 %24, %25
br i1 %26, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %27
27: ; preds = %.loopexit, %18
%28 = load i32, ptr %5, align 4
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptzcx46om.c'
source_filename = "/tmp/tmptzcx46om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logBase2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fptosi double %3 to i32
%5 = call double @log10(i32 noundef %4)
%6 = call double @log10(i32 noundef 2)
%7 = fdiv double %5, %6
ret double %7
}
declare double @log10(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/tmptzcx46om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logBase2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fptosi double %3 to i32
%5 = call double @log10(i32 noundef %4)
%6 = call double @log10(i32 noundef 2)
%7 = fdiv double %5, %6
ret double %7
}
declare double @log10(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/tmpeq220hx_.c'
source_filename = "/tmp/tmpeq220hx_.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"setuid\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"setuid finished with no errors\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @setuid(i32 noundef 0)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %7, align 4
%13 = call i32 @perror(ptr noundef @.str)
%14 = load i32, ptr %7, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
}
declare i32 @setuid(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeq220hx_.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"setuid\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"setuid finished with no errors\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @setuid(i32 noundef 0)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %19
11: ; preds = %2
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %7, align 4
%13 = call i32 @perror(ptr noundef @.str)
%14 = load i32, ptr %7, align 4
%15 = call ptr @strerror(i32 noundef %14)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = load i32, ptr @EXIT_SUCCESS, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
}
declare i32 @setuid(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa5omqdhz.c'
source_filename = "/tmp/tmpa5omqdhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @serial_getc() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
br label %3
3: ; preds = %7, %0
%4 = call i32 (...) @serial_waitc()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3, !llvm.loop !6
8: ; preds = %3
%9 = load volatile i8, ptr inttoptr (i64 100662989 to ptr), align 1
store i8 %9, ptr %1, align 1
%10 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, -65
%13 = trunc i32 %12 to i8
store volatile i8 %13, ptr inttoptr (i64 100662988 to ptr), align 1
%14 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%15 = zext i8 %14 to i32
%16 = and i32 %15, 56
%17 = trunc i32 %16 to i8
store i8 %17, ptr %2, align 1
%18 = load i8, ptr %2, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %8
%21 = load i8, ptr %2, align 1
%22 = call i32 @handleError(i8 noundef signext %21)
br label %23
23: ; preds = %20, %8
%24 = load i8, ptr %1, align 1
ret i8 %24
}
declare i32 @serial_waitc(...) #1
declare i32 @handleError(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa5omqdhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @serial_getc() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
br label %3
3: ; preds = %3, %0
%4 = call i32 (...) @serial_waitc()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %3, label %7, !llvm.loop !6
7: ; preds = %3
%8 = load volatile i8, ptr inttoptr (i64 100662989 to ptr), align 1
store i8 %8, ptr %1, align 1
%9 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%10 = zext i8 %9 to i32
%11 = and i32 %10, -65
%12 = trunc i32 %11 to i8
store volatile i8 %12, ptr inttoptr (i64 100662988 to ptr), align 1
%13 = load volatile i8, ptr inttoptr (i64 100662988 to ptr), align 1
%14 = zext i8 %13 to i32
%15 = and i32 %14, 56
%16 = trunc i32 %15 to i8
store i8 %16, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = icmp ne i8 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %7
%20 = load i8, ptr %2, align 1
%21 = call i32 @handleError(i8 noundef signext %20)
br label %22
22: ; preds = %19, %7
%23 = load i8, ptr %1, align 1
ret i8 %23
}
declare i32 @serial_waitc(...) #1
declare i32 @handleError(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn4rcir3o.c'
source_filename = "/tmp/tmpn4rcir3o.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_time_for_halt(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.timespec, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = call i32 @get_number_of_logins_and_last_logout(ptr noundef %4)
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %27
10: ; preds = %1
%11 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp ult i64 %12, %14
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %19, align 8
%21 = sub i64 %20, %18
store i64 %21, ptr %19, align 8
store i32 0, ptr %2, align 4
br label %27
22: ; preds = %10
%23 = load i32, ptr %5, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %22
store i32 0, ptr %2, align 4
br label %27
26: ; preds = %22
store i32 1, ptr %2, align 4
br label %27
27: ; preds = %26, %25, %16, %9
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @get_number_of_logins_and_last_logout(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn4rcir3o.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_time_for_halt(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.timespec, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = call i32 @get_number_of_logins_and_last_logout(ptr noundef %4)
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %27
10: ; preds = %1
%11 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i64, ptr %13, align 8
%15 = icmp ult i64 %12, %14
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = getelementptr inbounds %struct.timespec, ptr %4, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %19, align 8
%21 = sub i64 %20, %18
store i64 %21, ptr %19, align 8
store i32 0, ptr %2, align 4
br label %27
22: ; preds = %10
%23 = load i32, ptr %5, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %22
store i32 0, ptr %2, align 4
br label %27
26: ; preds = %22
store i32 1, ptr %2, align 4
br label %27
27: ; preds = %26, %25, %16, %9
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @get_number_of_logins_and_last_logout(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi_fdfgl9.c'
source_filename = "/tmp/tmpi_fdfgl9.c"
target datalayout = "e-m:e-p270: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/tmpi_fdfgl9.c"
target datalayout = "e-m:e-p270: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/tmphqwr2v5s.c'
source_filename = "/tmp/tmphqwr2v5s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.audio = private unnamed_addr constant [8 x i32] [i32 64, i32 0, i32 105, i32 248, i32 77, i32 91, i32 207, i32 17], align 16
@.str = private unnamed_addr constant [16 x i8] c"[inputfile=%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"more arguments needed... %s <file_to_patch>\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [52 x i8] c"found hidden (patched) audio stream at offset 0x%x\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"-----------------------------------------\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"Will now patch at offset 0x%x.\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [13 x i8] c" DONE! OK! \0A\00", align 1
@.str.8 = private unnamed_addr constant [53 x i8] c"ERROR! More than one offset found, I can not patch!\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"ERROR! found no hidden audio stream, no patching done!\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 i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [8 x i32], align 16
%12 = alloca i32, align 4
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.audio, i64 32, i1 false)
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
br label %29
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #4
unreachable
29: ; preds = %18
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.2)
store ptr %33, ptr %6, align 8
store i32 0, ptr %10, align 4
br label %34
34: ; preds = %74, %29
%35 = load i32, ptr %10, align 4
%36 = icmp slt i32 %35, 20
br i1 %36, label %37, label %76
37: ; preds = %34
%38 = load ptr, ptr %6, align 8
%39 = call i32 @fgetc(ptr noundef %38)
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr @EOF, align 4
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %37
br label %76
44: ; preds = %37
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %12, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp eq i32 %45, %49
br i1 %50, label %51, label %66
51: ; preds = %44
%52 = load i32, ptr %12, align 4
%53 = icmp eq i32 %52, 7
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load i32, ptr %14, align 4
%56 = sub nsw i32 %55, 7
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %56)
store i32 0, ptr %12, align 4
%58 = load i32, ptr %14, align 4
%59 = sub nsw i32 %58, 7
store i32 %59, ptr %15, align 4
%60 = load i32, ptr %13, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %13, align 4
br label %65
62: ; preds = %51
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
br label %65
65: ; preds = %62, %54
br label %67
66: ; preds = %44
store i32 0, ptr %12, align 4
br label %67
67: ; preds = %66, %65
%68 = load i32, ptr %14, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %14, align 4
%70 = load i32, ptr %14, align 4
%71 = icmp eq i32 %70, 40960
br i1 %71, label %72, label %73
72: ; preds = %67
br label %76
73: ; preds = %67
br label %74
74: ; preds = %73
%75 = load i32, ptr %10, align 4
br label %34, !llvm.loop !6
76: ; preds = %72, %43, %34
%77 = load ptr, ptr %6, align 8
%78 = call i32 @fclose(ptr noundef %77)
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%80 = load i32, ptr %15, align 4
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %105
82: ; preds = %76
%83 = load i32, ptr %13, align 4
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %102
85: ; preds = %82
%86 = load i32, ptr %15, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %86)
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = call ptr @fopen(ptr noundef %90, ptr noundef @.str.6)
store ptr %91, ptr %7, align 8
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %15, align 4
%94 = add nsw i32 %93, 1
%95 = load i32, ptr @SEEK_SET, align 4
%96 = call i32 @fseek(ptr noundef %92, i32 noundef %94, i32 noundef %95)
%97 = load ptr, ptr %7, align 8
%98 = call i32 @fputc(i32 noundef 158, ptr noundef %97)
%99 = load ptr, ptr %7, align 8
%100 = call i32 @fclose(ptr noundef %99)
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %104
102: ; preds = %82
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %104
104: ; preds = %102, %85
br label %107
105: ; preds = %76
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %107
107: ; preds = %105, %104
%108 = load i32, ptr %3, align 4
ret i32 %108
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fgetc(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fputc(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphqwr2v5s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.audio = private unnamed_addr constant [8 x i32] [i32 64, i32 0, i32 105, i32 248, i32 77, i32 91, i32 207, i32 17], align 16
@.str = private unnamed_addr constant [16 x i8] c"[inputfile=%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"more arguments needed... %s <file_to_patch>\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [52 x i8] c"found hidden (patched) audio stream at offset 0x%x\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"-----------------------------------------\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"Will now patch at offset 0x%x.\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"r+b\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [13 x i8] c" DONE! OK! \0A\00", align 1
@.str.8 = private unnamed_addr constant [53 x i8] c"ERROR! More than one offset found, I can not patch!\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"ERROR! found no hidden audio stream, no patching done!\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 i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [8 x i32], align 16
%12 = alloca i32, align 4
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.audio, i64 32, i1 false)
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
br label %29
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #4
unreachable
29: ; preds = %18
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.2)
store ptr %33, ptr %6, align 8
store i32 0, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp slt i32 %34, 20
br i1 %35, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %29
br label %36
36: ; preds = %.lr.ph, %73
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fgetc(ptr noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr @EOF, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %36
br label %77
43: ; preds = %36
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr %12, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp eq i32 %44, %48
br i1 %49, label %50, label %65
50: ; preds = %43
%51 = load i32, ptr %12, align 4
%52 = icmp eq i32 %51, 7
br i1 %52, label %53, label %61
53: ; preds = %50
%54 = load i32, ptr %14, align 4
%55 = sub nsw i32 %54, 7
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %55)
store i32 0, ptr %12, align 4
%57 = load i32, ptr %14, align 4
%58 = sub nsw i32 %57, 7
store i32 %58, ptr %15, align 4
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %13, align 4
br label %64
61: ; preds = %50
%62 = load i32, ptr %12, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %12, align 4
br label %64
64: ; preds = %61, %53
br label %66
65: ; preds = %43
store i32 0, ptr %12, align 4
br label %66
66: ; preds = %65, %64
%67 = load i32, ptr %14, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %14, align 4
%69 = load i32, ptr %14, align 4
%70 = icmp eq i32 %69, 40960
br i1 %70, label %71, label %72
71: ; preds = %66
br label %77
72: ; preds = %66
br label %73
73: ; preds = %72
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = icmp slt i32 %75, 20
br i1 %76, label %36, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %73
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %29
br label %77
77: ; preds = %.loopexit, %71, %42
%78 = load ptr, ptr %6, align 8
%79 = call i32 @fclose(ptr noundef %78)
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%81 = load i32, ptr %15, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %106
83: ; preds = %77
%84 = load i32, ptr %13, align 4
%85 = icmp eq i32 %84, 1
br i1 %85, label %86, label %103
86: ; preds = %83
%87 = load i32, ptr %15, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %87)
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %90, align 8
%92 = call ptr @fopen(ptr noundef %91, ptr noundef @.str.6)
store ptr %92, ptr %7, align 8
%93 = load ptr, ptr %7, align 8
%94 = load i32, ptr %15, align 4
%95 = add nsw i32 %94, 1
%96 = load i32, ptr @SEEK_SET, align 4
%97 = call i32 @fseek(ptr noundef %93, i32 noundef %95, i32 noundef %96)
%98 = load ptr, ptr %7, align 8
%99 = call i32 @fputc(i32 noundef 158, ptr noundef %98)
%100 = load ptr, ptr %7, align 8
%101 = call i32 @fclose(ptr noundef %100)
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %105
103: ; preds = %83
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %105
105: ; preds = %103, %86
br label %108
106: ; preds = %77
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %108
108: ; preds = %106, %105
%109 = load i32, ptr %3, align 4
ret i32 %109
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fgetc(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fputc(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdsmsjkvk.c'
source_filename = "/tmp/tmpdsmsjkvk.c"
target datalayout = "e-m:e-p270: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/tmpdsmsjkvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_5f9wj69.c'
source_filename = "/tmp/tmp_5f9wj69.c"
target datalayout = "e-m:e-p270: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/tmp_5f9wj69.c"
target datalayout = "e-m:e-p270: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/tmpodgehcun.c'
source_filename = "/tmp/tmpodgehcun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.in = private unnamed_addr constant [8 x i8] c"\1E\FE\BA\22\E7p\E9_", align 1
@.str = private unnamed_addr constant [3 x i8] c"%d\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 [20 x i8], align 16
%4 = alloca [8 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.in, i64 8, i1 false)
%5 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 0
%6 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
%8 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @SHA1(ptr noundef %5, i32 noundef %7, ptr noundef %8)
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %18, %0
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 20
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = srem i32 %14, 10
%16 = trunc i32 %15 to i8
%17 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %16)
br label %18
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %10, !llvm.loop !6
21: ; preds = %10
%22 = call i32 @putchar(i8 noundef signext 10)
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %32, %21
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 20
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = load i32, ptr %2, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
br label %23, !llvm.loop !8
35: ; preds = %23
%36 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @SHA1(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i8 noundef zeroext) #2
declare i32 @putchar(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpodgehcun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.in = private unnamed_addr constant [8 x i8] c"\1E\FE\BA\22\E7p\E9_", align 1
@.str = private unnamed_addr constant [3 x i8] c"%d\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 [20 x i8], align 16
%4 = alloca [8 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.in, i64 8, i1 false)
%5 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 0
%6 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @strlen(ptr noundef %6)
%8 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @SHA1(ptr noundef %5, i32 noundef %7, ptr noundef %8)
store i32 0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 20
br i1 %11, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %17
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 10
%15 = trunc i32 %14 to i8
%16 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 20
br i1 %21, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @putchar(i8 noundef signext 10)
store i32 0, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %24, 20
br i1 %25, label %.lr.ph2, label %37
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %32
%27 = load i32, ptr %2, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %30)
br label %32
32: ; preds = %26
%33 = load i32, ptr %2, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %35, 20
br i1 %36, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %37
37: ; preds = %._crit_edge3, %22
%38 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @SHA1(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, i8 noundef zeroext) #2
declare i32 @putchar(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsqnw8ar9.c'
source_filename = "/tmp/tmpsqnw8ar9.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i64 }
@_POSIX_PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"^[ \09]*line[ \09]*\\([0-9][0-9]*\\)[ \09]*\22\\([^\22]*\\)\22\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [65 x i8] c"%s: internal error, compiling a regular expression failed (%s).\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"%s: increasing sentence buffer failed: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"...\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c" ...\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sentence(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca i64, align 8
%26 = alloca [256 x i8], align 16
%27 = alloca i64, align 8
%28 = alloca ptr, align 8
%29 = alloca i64, align 8
%30 = alloca [3 x %struct.TYPE_3__], align 16
%31 = alloca i64, align 8
%32 = alloca i8, align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%33 = call ptr @malloc(i32 noundef 128)
store ptr %33, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 128, ptr %16, align 8
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %19, align 4
store i32 1, ptr %20, align 4
store i32 1, ptr %21, align 4
%34 = load i32, ptr @_POSIX_PATH_MAX, align 4
%35 = add nsw i32 %34, 1
%36 = zext i32 %35 to i64
%37 = call ptr @llvm.stacksave()
store ptr %37, ptr %24, align 8
%38 = alloca i8, i64 %36, align 16
store i64 %36, ptr %25, align 8
%39 = call i32 @regcomp(ptr noundef %23, ptr noundef @.str, i32 noundef 0)
store i32 %39, ptr %22, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %52
41: ; preds = %5
%42 = load i32, ptr %22, align 4
%43 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 0
%44 = call i64 @regerror(i32 noundef %42, ptr noundef %23, ptr noundef %43, i32 noundef 255)
store i64 %44, ptr %27, align 8
%45 = load i64, ptr %27, align 8
%46 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 %45
store i8 0, ptr %46, align 1
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 0
%50 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.1, ptr noundef %48, ptr noundef %49)
%51 = call i32 @exit(i32 noundef 2) #5
unreachable
52: ; preds = %5
store i32 10, ptr %11, align 4
%53 = load ptr, ptr %7, align 8
%54 = call i32 @getc(ptr noundef %53)
store i32 %54, ptr %13, align 4
br label %55
55: ; preds = %399, %124, %52
%56 = load i32, ptr %13, align 4
store i32 %56, ptr %12, align 4
%57 = load i32, ptr @EOF, align 4
%58 = icmp ne i32 %56, %57
br i1 %58, label %59, label %401
59: ; preds = %55
%60 = load ptr, ptr %7, align 8
%61 = call i32 @getc(ptr noundef %60)
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %12, align 4
%63 = icmp eq i32 %62, 10
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, ptr %20, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %20, align 4
br label %67
67: ; preds = %64, %59
%68 = load i32, ptr %11, align 4
%69 = icmp eq i32 %68, 10
br i1 %69, label %70, label %126
70: ; preds = %67
%71 = load i32, ptr %12, align 4
%72 = icmp eq i32 %71, 35
br i1 %72, label %73, label %126
73: ; preds = %70
%74 = load i32, ptr @_POSIX_PATH_MAX, align 4
%75 = add nsw i32 %74, 20
%76 = zext i32 %75 to i64
%77 = call ptr @llvm.stacksave()
store ptr %77, ptr %28, align 8
%78 = alloca i8, i64 %76, align 16
store i64 %76, ptr %29, align 8
%79 = load i32, ptr %13, align 4
%80 = trunc i32 %79 to i8
%81 = getelementptr inbounds i8, ptr %78, i64 0
store i8 %80, ptr %81, align 16
%82 = getelementptr inbounds i8, ptr %78, i64 1
store i8 0, ptr %82, align 1
%83 = getelementptr inbounds i8, ptr %78, i64 1
%84 = sub i64 %76, 1
%85 = trunc i64 %84 to i32
%86 = load ptr, ptr %7, align 8
%87 = call i32 @fgets(ptr noundef %83, i32 noundef %85, ptr noundef %86)
%88 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 0
%89 = call i64 @regexec(ptr noundef %23, ptr noundef %78, i32 noundef 3, ptr noundef %88, i32 noundef 0)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %124
91: ; preds = %73
%92 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 1
%93 = getelementptr inbounds %struct.TYPE_3__, ptr %92, i32 0, i32 0
%94 = load i32, ptr %93, align 16
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %78, i64 %95
%97 = call i32 @strtol(ptr noundef %96, ptr noundef null, i32 noundef 10)
%98 = sub nsw i32 %97, 1
store i32 %98, ptr %20, align 4
%99 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%100 = getelementptr inbounds %struct.TYPE_3__, ptr %99, i32 0, i32 1
%101 = load i64, ptr %100, align 8
%102 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%103 = getelementptr inbounds %struct.TYPE_3__, ptr %102, i32 0, i32 0
%104 = load i32, ptr %103, align 16
%105 = sext i32 %104 to i64
%106 = sub i64 %101, %105
store i64 %106, ptr %31, align 8
%107 = load i64, ptr %31, align 8
%108 = load i32, ptr @_POSIX_PATH_MAX, align 4
%109 = sext i32 %108 to i64
%110 = icmp ugt i64 %107, %109
br i1 %110, label %111, label %114
111: ; preds = %91
%112 = load i32, ptr @_POSIX_PATH_MAX, align 4
%113 = sext i32 %112 to i64
store i64 %113, ptr %31, align 8
br label %114
114: ; preds = %111, %91
%115 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%116 = getelementptr inbounds %struct.TYPE_3__, ptr %115, i32 0, i32 0
%117 = load i32, ptr %116, align 16
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %78, i64 %118
%120 = load i64, ptr %31, align 8
%121 = call i32 @strncpy(ptr noundef %38, ptr noundef %119, i64 noundef %120)
%122 = load i64, ptr %31, align 8
%123 = getelementptr inbounds i8, ptr %38, i64 %122
store i8 0, ptr %123, align 1
store ptr %38, ptr %8, align 8
br label %124
124: ; preds = %114, %73
store i32 10, ptr %13, align 4
%125 = load ptr, ptr %28, align 8
call void @llvm.stackrestore(ptr %125)
br label %55
126: ; preds = %70, %67
%127 = load i64, ptr %15, align 8
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %372
129: ; preds = %126
%130 = load i64, ptr %15, align 8
%131 = load i64, ptr %16, align 8
%132 = sub i64 %131, 1
%133 = icmp uge i64 %130, %132
br i1 %133, label %134, label %147
134: ; preds = %129
%135 = load ptr, ptr %14, align 8
%136 = load i64, ptr %16, align 8
%137 = mul i64 %136, 2
store i64 %137, ptr %16, align 8
%138 = call ptr @realloc(ptr noundef %135, i64 noundef %137)
store ptr %138, ptr %14, align 8
%139 = icmp eq ptr %138, null
br i1 %139, label %140, label %147
140: ; preds = %134
%141 = load i32, ptr @stderr, align 4
%142 = load ptr, ptr %6, align 8
%143 = load i32, ptr @errno, align 4
%144 = call ptr @strerror(i32 noundef %143)
%145 = call i32 @fprintf(i32 noundef %141, ptr noundef @.str.2, ptr noundef %142, ptr noundef %144)
%146 = call i32 @exit(i32 noundef 2) #5
unreachable
147: ; preds = %134, %129
%148 = load i32, ptr %12, align 4
%149 = call i64 @isspace(i32 noundef %148)
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %160
151: ; preds = %147
%152 = load i32, ptr %18, align 4
%153 = icmp ne i32 %152, 0
br i1 %153, label %159, label %154
154: ; preds = %151
%155 = load ptr, ptr %14, align 8
%156 = load i64, ptr %15, align 8
%157 = add i64 %156, 1
store i64 %157, ptr %15, align 8
%158 = getelementptr inbounds i8, ptr %155, i64 %156
store i8 32, ptr %158, align 1
store i32 1, ptr %18, align 4
br label %159
159: ; preds = %154, %151
br label %371
160: ; preds = %147
%161 = load i32, ptr %12, align 4
%162 = trunc i32 %161 to i8
%163 = load ptr, ptr %14, align 8
%164 = load i64, ptr %15, align 8
%165 = add i64 %164, 1
store i64 %165, ptr %15, align 8
%166 = getelementptr inbounds i8, ptr %163, i64 %164
store i8 %162, ptr %166, align 1
%167 = load i32, ptr %12, align 4
%168 = call i64 @isalpha(i32 noundef %167)
%169 = icmp ne i64 %168, 0
br i1 %169, label %170, label %171
170: ; preds = %160
store i32 1, ptr %17, align 4
br label %171
171: ; preds = %170, %160
%172 = load i64, ptr %15, align 8
%173 = icmp eq i64 %172, 3
br i1 %173, label %174, label %189
174: ; preds = %171
%175 = load ptr, ptr %14, align 8
%176 = load i64, ptr %15, align 8
%177 = getelementptr inbounds i8, ptr %175, i64 %176
%178 = getelementptr inbounds i8, ptr %177, i64 -3
%179 = call i64 @strncmp(ptr noundef %178, ptr noundef @.str.3, i32 noundef 3)
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %189
181: ; preds = %174
%182 = load i32, ptr %13, align 4
%183 = load i32, ptr @EOF, align 4
%184 = icmp eq i32 %182, %183
br i1 %184, label %207, label %185
185: ; preds = %181
%186 = load i32, ptr %13, align 4
%187 = call i64 @isspace(i32 noundef %186)
%188 = icmp ne i64 %187, 0
br i1 %188, label %207, label %189
189: ; preds = %185, %174, %171
%190 = load i64, ptr %15, align 8
%191 = icmp uge i64 %190, 4
br i1 %191, label %192, label %208
192: ; preds = %189
%193 = load ptr, ptr %14, align 8
%194 = load i64, ptr %15, align 8
%195 = getelementptr inbounds i8, ptr %193, i64 %194
%196 = getelementptr inbounds i8, ptr %195, i64 -4
%197 = call i64 @strncmp(ptr noundef %196, ptr noundef @.str.4, i32 noundef 4)
%198 = icmp eq i64 %197, 0
br i1 %198, label %199, label %208
199: ; preds = %192
%200 = load i32, ptr %13, align 4
%201 = load i32, ptr @EOF, align 4
%202 = icmp eq i32 %200, %201
br i1 %202, label %207, label %203
203: ; preds = %199
%204 = load i32, ptr %13, align 4
%205 = call i64 @isspace(i32 noundef %204)
%206 = icmp ne i64 %205, 0
br i1 %206, label %207, label %208
207: ; preds = %203, %199, %185, %181
store i32 0, ptr %18, align 4
br label %370
208: ; preds = %203, %192, %189
%209 = load i64, ptr %15, align 8
%210 = icmp uge i64 %209, 4
br i1 %210, label %211, label %267
211: ; preds = %208
%212 = load ptr, ptr %14, align 8
%213 = load i64, ptr %15, align 8
%214 = sub i64 %213, 4
%215 = getelementptr inbounds i8, ptr %212, i64 %214
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = call i64 @isspace(i32 noundef %217)
%219 = icmp ne i64 %218, 0
br i1 %219, label %267, label %220
220: ; preds = %211
%221 = load ptr, ptr %14, align 8
%222 = load i64, ptr %15, align 8
%223 = getelementptr inbounds i8, ptr %221, i64 %222
%224 = getelementptr inbounds i8, ptr %223, i64 -3
%225 = call i64 @strncmp(ptr noundef %224, ptr noundef @.str.3, i32 noundef 3)
%226 = icmp eq i64 %225, 0
br i1 %226, label %227, label %267
227: ; preds = %220
%228 = load i32, ptr %13, align 4
%229 = load i32, ptr @EOF, align 4
%230 = icmp eq i32 %228, %229
br i1 %230, label %235, label %231
231: ; preds = %227
%232 = load i32, ptr %13, align 4
%233 = call i64 @isspace(i32 noundef %232)
%234 = icmp ne i64 %233, 0
br i1 %234, label %235, label %267
235: ; preds = %231, %227
%236 = load ptr, ptr %14, align 8
%237 = load i64, ptr %15, align 8
%238 = sub i64 %237, 3
%239 = getelementptr inbounds i8, ptr %236, i64 %238
%240 = load i8, ptr %239, align 1
store i8 %240, ptr %32, align 1
%241 = load ptr, ptr %14, align 8
%242 = load i64, ptr %15, align 8
%243 = sub i64 %242, 3
%244 = getelementptr inbounds i8, ptr %241, i64 %243
store i8 0, ptr %244, align 1
%245 = load i32, ptr %17, align 4
%246 = icmp ne i32 %245, 0
br i1 %246, label %247, label %254
247: ; preds = %235
%248 = load ptr, ptr %9, align 8
%249 = load ptr, ptr %14, align 8
%250 = load i64, ptr %15, align 8
%251 = sub i64 %250, 3
%252 = load ptr, ptr %8, align 8
%253 = load i32, ptr %21, align 4
call void %248(ptr noundef %249, i64 noundef %251, ptr noundef %252, i32 noundef %253)
br label %254
254: ; preds = %247, %235
%255 = load i8, ptr %32, align 1
%256 = load ptr, ptr %14, align 8
%257 = load i64, ptr %15, align 8
%258 = sub i64 %257, 3
%259 = getelementptr inbounds i8, ptr %256, i64 %258
store i8 %255, ptr %259, align 1
%260 = load ptr, ptr %14, align 8
%261 = load ptr, ptr %14, align 8
%262 = load i64, ptr %15, align 8
%263 = getelementptr inbounds i8, ptr %261, i64 %262
%264 = getelementptr inbounds i8, ptr %263, i64 -3
%265 = call i32 @memmove(ptr noundef %260, ptr noundef %264, i32 noundef 3)
store i64 3, ptr %15, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %18, align 4
%266 = load i32, ptr %20, align 4
store i32 %266, ptr %21, align 4
store i32 0, ptr %17, align 4
br label %369
267: ; preds = %231, %220, %211, %208
%268 = load i64, ptr %15, align 8
%269 = icmp uge i64 %268, 4
br i1 %269, label %270, label %304
270: ; preds = %267
%271 = load ptr, ptr %14, align 8
%272 = load i64, ptr %15, align 8
%273 = getelementptr inbounds i8, ptr %271, i64 %272
%274 = getelementptr inbounds i8, ptr %273, i64 -4
%275 = call i64 @strncmp(ptr noundef %274, ptr noundef @.str.3, i32 noundef 3)
%276 = icmp eq i64 %275, 0
br i1 %276, label %277, label %304
277: ; preds = %270
%278 = load i32, ptr %13, align 4
%279 = load i32, ptr @EOF, align 4
%280 = icmp eq i32 %278, %279
br i1 %280, label %285, label %281
281: ; preds = %277
%282 = load i32, ptr %13, align 4
%283 = call i64 @isspace(i32 noundef %282)
%284 = icmp ne i64 %283, 0
br i1 %284, label %285, label %304
285: ; preds = %281, %277
%286 = load i32, ptr %18, align 4
%287 = icmp ne i32 %286, 0
br i1 %287, label %288, label %291
288: ; preds = %285
%289 = load i64, ptr %15, align 8
%290 = add i64 %289, -1
store i64 %290, ptr %15, align 8
br label %291
291: ; preds = %288, %285
%292 = load ptr, ptr %14, align 8
%293 = load i64, ptr %15, align 8
%294 = getelementptr inbounds i8, ptr %292, i64 %293
store i8 0, ptr %294, align 1
%295 = load i32, ptr %17, align 4
%296 = icmp ne i32 %295, 0
br i1 %296, label %297, label %303
297: ; preds = %291
%298 = load ptr, ptr %9, align 8
%299 = load ptr, ptr %14, align 8
%300 = load i64, ptr %15, align 8
%301 = load ptr, ptr %8, align 8
%302 = load i32, ptr %21, align 4
call void %298(ptr noundef %299, i64 noundef %300, ptr noundef %301, i32 noundef %302)
br label %303
303: ; preds = %297, %291
store i64 0, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %368
304: ; preds = %281, %270, %267
%305 = load i32, ptr %12, align 4
%306 = icmp eq i32 %305, 46
br i1 %306, label %316, label %307
307: ; preds = %304
%308 = load i32, ptr %12, align 4
%309 = icmp eq i32 %308, 58
br i1 %309, label %316, label %310
310: ; preds = %307
%311 = load i32, ptr %12, align 4
%312 = icmp eq i32 %311, 33
br i1 %312, label %316, label %313
313: ; preds = %310
%314 = load i32, ptr %12, align 4
%315 = icmp eq i32 %314, 63
br i1 %315, label %316, label %366
316: ; preds = %313, %310, %307, %304
%317 = load i32, ptr %13, align 4
%318 = load i32, ptr @EOF, align 4
%319 = icmp eq i32 %317, %318
br i1 %319, label %327, label %320
320: ; preds = %316
%321 = load i32, ptr %13, align 4
%322 = call i64 @isspace(i32 noundef %321)
%323 = icmp ne i64 %322, 0
br i1 %323, label %327, label %324
324: ; preds = %320
%325 = load i32, ptr %13, align 4
%326 = icmp eq i32 %325, 34
br i1 %326, label %327, label %366
327: ; preds = %324, %320, %316
%328 = load i32, ptr %11, align 4
%329 = call i32 @isdigit(i32 noundef %328) #6
%330 = icmp ne i32 %329, 0
br i1 %330, label %331, label %338
331: ; preds = %327
%332 = load i32, ptr %12, align 4
%333 = icmp ne i32 %332, 46
br i1 %333, label %338, label %334
334: ; preds = %331
%335 = load i32, ptr %13, align 4
%336 = call i32 @isdigit(i32 noundef %335) #6
%337 = icmp ne i32 %336, 0
br i1 %337, label %366, label %338
338: ; preds = %334, %331, %327
%339 = load i32, ptr %12, align 4
%340 = icmp ne i32 %339, 46
br i1 %340, label %347, label %341
341: ; preds = %338
%342 = load ptr, ptr %14, align 8
%343 = load i64, ptr %15, align 8
%344 = load ptr, ptr %10, align 8
%345 = call i32 @endingInAbbrev(ptr noundef %342, i64 noundef %343, ptr noundef %344)
%346 = icmp ne i32 %345, 0
br i1 %346, label %366, label %347
347: ; preds = %341, %338
%348 = load i32, ptr %18, align 4
%349 = icmp ne i32 %348, 0
br i1 %349, label %350, label %353
350: ; preds = %347
%351 = load i64, ptr %15, align 8
%352 = add i64 %351, -1
store i64 %352, ptr %15, align 8
br label %353
353: ; preds = %350, %347
%354 = load ptr, ptr %14, align 8
%355 = load i64, ptr %15, align 8
%356 = getelementptr inbounds i8, ptr %354, i64 %355
store i8 0, ptr %356, align 1
%357 = load i32, ptr %17, align 4
%358 = icmp ne i32 %357, 0
br i1 %358, label %359, label %365
359: ; preds = %353
%360 = load ptr, ptr %9, align 8
%361 = load ptr, ptr %14, align 8
%362 = load i64, ptr %15, align 8
%363 = load ptr, ptr %8, align 8
%364 = load i32, ptr %21, align 4
call void %360(ptr noundef %361, i64 noundef %362, ptr noundef %363, i32 noundef %364)
br label %365
365: ; preds = %359, %353
store i64 0, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %367
366: ; preds = %341, %334, %324, %313
store i32 0, ptr %18, align 4
br label %367
367: ; preds = %366, %365
br label %368
368: ; preds = %367, %303
br label %369
369: ; preds = %368, %254
br label %370
370: ; preds = %369, %207
br label %371
371: ; preds = %370, %159
br label %399
372: ; preds = %126
%373 = load i32, ptr %12, align 4
%374 = call i64 @isupper(i32 noundef %373)
%375 = icmp ne i64 %374, 0
br i1 %375, label %376, label %384
376: ; preds = %372
store i32 0, ptr %19, align 4
%377 = load i32, ptr %12, align 4
%378 = trunc i32 %377 to i8
%379 = load ptr, ptr %14, align 8
%380 = load i64, ptr %15, align 8
%381 = add i64 %380, 1
store i64 %381, ptr %15, align 8
%382 = getelementptr inbounds i8, ptr %379, i64 %380
store i8 %378, ptr %382, align 1
store i32 0, ptr %18, align 4
%383 = load i32, ptr %20, align 4
store i32 %383, ptr %21, align 4
store i32 1, ptr %17, align 4
br label %398
384: ; preds = %372
%385 = load i32, ptr %19, align 4
%386 = icmp ne i32 %385, 0
br i1 %386, label %397, label %387
387: ; preds = %384
%388 = load i32, ptr %12, align 4
%389 = icmp eq i32 %388, 10
br i1 %389, label %390, label %397
390: ; preds = %387
%391 = load i32, ptr %13, align 4
%392 = icmp eq i32 %391, 10
br i1 %392, label %393, label %397
393: ; preds = %390
%394 = load ptr, ptr %9, align 8
%395 = load ptr, ptr %8, align 8
%396 = load i32, ptr %20, align 4
call void %394(ptr noundef @.str.5, i64 noundef 0, ptr noundef %395, i32 noundef %396)
store i32 1, ptr %19, align 4
br label %397
397: ; preds = %393, %390, %387, %384
br label %398
398: ; preds = %397, %376
br label %399
399: ; preds = %398, %371
%400 = load i32, ptr %12, align 4
store i32 %400, ptr %11, align 4
br label %55, !llvm.loop !6
401: ; preds = %55
%402 = load i32, ptr %19, align 4
%403 = icmp ne i32 %402, 0
br i1 %403, label %408, label %404
404: ; preds = %401
%405 = load ptr, ptr %9, align 8
%406 = load ptr, ptr %8, align 8
%407 = load i32, ptr %20, align 4
call void %405(ptr noundef @.str.5, i64 noundef 0, ptr noundef %406, i32 noundef %407)
br label %408
408: ; preds = %404, %401
%409 = call i32 @regfree(ptr noundef %23)
%410 = load ptr, ptr %24, align 8
call void @llvm.stackrestore(ptr %410)
ret void
}
declare ptr @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getc(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isdigit(i32 noundef) #4
declare i32 @endingInAbbrev(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn }
attributes #6 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsqnw8ar9.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i64 }
@_POSIX_PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"^[ \09]*line[ \09]*\\([0-9][0-9]*\\)[ \09]*\22\\([^\22]*\\)\22\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [65 x i8] c"%s: internal error, compiling a regular expression failed (%s).\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"%s: increasing sentence buffer failed: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"...\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c" ...\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sentence(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca ptr, align 8
%25 = alloca i64, align 8
%26 = alloca [256 x i8], align 16
%27 = alloca i64, align 8
%28 = alloca ptr, align 8
%29 = alloca i64, align 8
%30 = alloca [3 x %struct.TYPE_3__], align 16
%31 = alloca i64, align 8
%32 = alloca i8, align 1
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%33 = call ptr @malloc(i32 noundef 128)
store ptr %33, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 128, ptr %16, align 8
store i32 0, ptr %17, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %19, align 4
store i32 1, ptr %20, align 4
store i32 1, ptr %21, align 4
%34 = load i32, ptr @_POSIX_PATH_MAX, align 4
%35 = add nsw i32 %34, 1
%36 = zext i32 %35 to i64
%37 = call ptr @llvm.stacksave()
store ptr %37, ptr %24, align 8
%38 = alloca i8, i64 %36, align 16
store i64 %36, ptr %25, align 8
%39 = call i32 @regcomp(ptr noundef %23, ptr noundef @.str, i32 noundef 0)
store i32 %39, ptr %22, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %52
41: ; preds = %5
%42 = load i32, ptr %22, align 4
%43 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 0
%44 = call i64 @regerror(i32 noundef %42, ptr noundef %23, ptr noundef %43, i32 noundef 255)
store i64 %44, ptr %27, align 8
%45 = load i64, ptr %27, align 8
%46 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 %45
store i8 0, ptr %46, align 1
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds [256 x i8], ptr %26, i64 0, i64 0
%50 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.1, ptr noundef %48, ptr noundef %49)
%51 = call i32 @exit(i32 noundef 2) #5
unreachable
52: ; preds = %5
store i32 10, ptr %11, align 4
%53 = load ptr, ptr %7, align 8
%54 = call i32 @getc(ptr noundef %53)
store i32 %54, ptr %13, align 4
%55 = load i32, ptr %13, align 4
store i32 %55, ptr %12, align 4
%56 = load i32, ptr @EOF, align 4
%57 = icmp ne i32 %55, %56
br i1 %57, label %.lr.ph, label %403
.lr.ph: ; preds = %52
br label %58
58: ; preds = %.lr.ph, %.backedge
%59 = load ptr, ptr %7, align 8
%60 = call i32 @getc(ptr noundef %59)
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp eq i32 %61, 10
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = load i32, ptr %20, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %20, align 4
br label %66
66: ; preds = %63, %58
%67 = load i32, ptr %11, align 4
%68 = icmp eq i32 %67, 10
br i1 %68, label %69, label %128
69: ; preds = %66
%70 = load i32, ptr %12, align 4
%71 = icmp eq i32 %70, 35
br i1 %71, label %72, label %128
72: ; preds = %69
%73 = load i32, ptr @_POSIX_PATH_MAX, align 4
%74 = add nsw i32 %73, 20
%75 = zext i32 %74 to i64
%76 = call ptr @llvm.stacksave()
store ptr %76, ptr %28, align 8
%77 = alloca i8, i64 %75, align 16
store i64 %75, ptr %29, align 8
%78 = load i32, ptr %13, align 4
%79 = trunc i32 %78 to i8
%80 = getelementptr inbounds i8, ptr %77, i64 0
store i8 %79, ptr %80, align 16
%81 = getelementptr inbounds i8, ptr %77, i64 1
store i8 0, ptr %81, align 1
%82 = getelementptr inbounds i8, ptr %77, i64 1
%83 = sub i64 %75, 1
%84 = trunc i64 %83 to i32
%85 = load ptr, ptr %7, align 8
%86 = call i32 @fgets(ptr noundef %82, i32 noundef %84, ptr noundef %85)
%87 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 0
%88 = call i64 @regexec(ptr noundef %23, ptr noundef %77, i32 noundef 3, ptr noundef %87, i32 noundef 0)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %123
90: ; preds = %72
%91 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 1
%92 = getelementptr inbounds %struct.TYPE_3__, ptr %91, i32 0, i32 0
%93 = load i32, ptr %92, align 16
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %77, i64 %94
%96 = call i32 @strtol(ptr noundef %95, ptr noundef null, i32 noundef 10)
%97 = sub nsw i32 %96, 1
store i32 %97, ptr %20, align 4
%98 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%99 = getelementptr inbounds %struct.TYPE_3__, ptr %98, i32 0, i32 1
%100 = load i64, ptr %99, align 8
%101 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%102 = getelementptr inbounds %struct.TYPE_3__, ptr %101, i32 0, i32 0
%103 = load i32, ptr %102, align 16
%104 = sext i32 %103 to i64
%105 = sub i64 %100, %104
store i64 %105, ptr %31, align 8
%106 = load i64, ptr %31, align 8
%107 = load i32, ptr @_POSIX_PATH_MAX, align 4
%108 = sext i32 %107 to i64
%109 = icmp ugt i64 %106, %108
br i1 %109, label %110, label %113
110: ; preds = %90
%111 = load i32, ptr @_POSIX_PATH_MAX, align 4
%112 = sext i32 %111 to i64
store i64 %112, ptr %31, align 8
br label %113
113: ; preds = %110, %90
%114 = getelementptr inbounds [3 x %struct.TYPE_3__], ptr %30, i64 0, i64 2
%115 = getelementptr inbounds %struct.TYPE_3__, ptr %114, i32 0, i32 0
%116 = load i32, ptr %115, align 16
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %77, i64 %117
%119 = load i64, ptr %31, align 8
%120 = call i32 @strncpy(ptr noundef %38, ptr noundef %118, i64 noundef %119)
%121 = load i64, ptr %31, align 8
%122 = getelementptr inbounds i8, ptr %38, i64 %121
store i8 0, ptr %122, align 1
store ptr %38, ptr %8, align 8
br label %123
123: ; preds = %113, %72
store i32 10, ptr %13, align 4
%124 = load ptr, ptr %28, align 8
call void @llvm.stackrestore(ptr %124)
br label %.backedge
.backedge: ; preds = %123, %401
%125 = load i32, ptr %13, align 4
store i32 %125, ptr %12, align 4
%126 = load i32, ptr @EOF, align 4
%127 = icmp ne i32 %125, %126
br i1 %127, label %58, label %._crit_edge, !llvm.loop !6
128: ; preds = %69, %66
%129 = load i64, ptr %15, align 8
%130 = icmp ne i64 %129, 0
br i1 %130, label %131, label %374
131: ; preds = %128
%132 = load i64, ptr %15, align 8
%133 = load i64, ptr %16, align 8
%134 = sub i64 %133, 1
%135 = icmp uge i64 %132, %134
br i1 %135, label %136, label %149
136: ; preds = %131
%137 = load ptr, ptr %14, align 8
%138 = load i64, ptr %16, align 8
%139 = mul i64 %138, 2
store i64 %139, ptr %16, align 8
%140 = call ptr @realloc(ptr noundef %137, i64 noundef %139)
store ptr %140, ptr %14, align 8
%141 = icmp eq ptr %140, null
br i1 %141, label %142, label %149
142: ; preds = %136
%143 = load i32, ptr @stderr, align 4
%144 = load ptr, ptr %6, align 8
%145 = load i32, ptr @errno, align 4
%146 = call ptr @strerror(i32 noundef %145)
%147 = call i32 @fprintf(i32 noundef %143, ptr noundef @.str.2, ptr noundef %144, ptr noundef %146)
%148 = call i32 @exit(i32 noundef 2) #5
unreachable
149: ; preds = %136, %131
%150 = load i32, ptr %12, align 4
%151 = call i64 @isspace(i32 noundef %150)
%152 = icmp ne i64 %151, 0
br i1 %152, label %153, label %162
153: ; preds = %149
%154 = load i32, ptr %18, align 4
%155 = icmp ne i32 %154, 0
br i1 %155, label %161, label %156
156: ; preds = %153
%157 = load ptr, ptr %14, align 8
%158 = load i64, ptr %15, align 8
%159 = add i64 %158, 1
store i64 %159, ptr %15, align 8
%160 = getelementptr inbounds i8, ptr %157, i64 %158
store i8 32, ptr %160, align 1
store i32 1, ptr %18, align 4
br label %161
161: ; preds = %156, %153
br label %373
162: ; preds = %149
%163 = load i32, ptr %12, align 4
%164 = trunc i32 %163 to i8
%165 = load ptr, ptr %14, align 8
%166 = load i64, ptr %15, align 8
%167 = add i64 %166, 1
store i64 %167, ptr %15, align 8
%168 = getelementptr inbounds i8, ptr %165, i64 %166
store i8 %164, ptr %168, align 1
%169 = load i32, ptr %12, align 4
%170 = call i64 @isalpha(i32 noundef %169)
%171 = icmp ne i64 %170, 0
br i1 %171, label %172, label %173
172: ; preds = %162
store i32 1, ptr %17, align 4
br label %173
173: ; preds = %172, %162
%174 = load i64, ptr %15, align 8
%175 = icmp eq i64 %174, 3
br i1 %175, label %176, label %191
176: ; preds = %173
%177 = load ptr, ptr %14, align 8
%178 = load i64, ptr %15, align 8
%179 = getelementptr inbounds i8, ptr %177, i64 %178
%180 = getelementptr inbounds i8, ptr %179, i64 -3
%181 = call i64 @strncmp(ptr noundef %180, ptr noundef @.str.3, i32 noundef 3)
%182 = icmp eq i64 %181, 0
br i1 %182, label %183, label %191
183: ; preds = %176
%184 = load i32, ptr %13, align 4
%185 = load i32, ptr @EOF, align 4
%186 = icmp eq i32 %184, %185
br i1 %186, label %209, label %187
187: ; preds = %183
%188 = load i32, ptr %13, align 4
%189 = call i64 @isspace(i32 noundef %188)
%190 = icmp ne i64 %189, 0
br i1 %190, label %209, label %191
191: ; preds = %187, %176, %173
%192 = load i64, ptr %15, align 8
%193 = icmp uge i64 %192, 4
br i1 %193, label %194, label %210
194: ; preds = %191
%195 = load ptr, ptr %14, align 8
%196 = load i64, ptr %15, align 8
%197 = getelementptr inbounds i8, ptr %195, i64 %196
%198 = getelementptr inbounds i8, ptr %197, i64 -4
%199 = call i64 @strncmp(ptr noundef %198, ptr noundef @.str.4, i32 noundef 4)
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %210
201: ; preds = %194
%202 = load i32, ptr %13, align 4
%203 = load i32, ptr @EOF, align 4
%204 = icmp eq i32 %202, %203
br i1 %204, label %209, label %205
205: ; preds = %201
%206 = load i32, ptr %13, align 4
%207 = call i64 @isspace(i32 noundef %206)
%208 = icmp ne i64 %207, 0
br i1 %208, label %209, label %210
209: ; preds = %205, %201, %187, %183
store i32 0, ptr %18, align 4
br label %372
210: ; preds = %205, %194, %191
%211 = load i64, ptr %15, align 8
%212 = icmp uge i64 %211, 4
br i1 %212, label %213, label %269
213: ; preds = %210
%214 = load ptr, ptr %14, align 8
%215 = load i64, ptr %15, align 8
%216 = sub i64 %215, 4
%217 = getelementptr inbounds i8, ptr %214, i64 %216
%218 = load i8, ptr %217, align 1
%219 = sext i8 %218 to i32
%220 = call i64 @isspace(i32 noundef %219)
%221 = icmp ne i64 %220, 0
br i1 %221, label %269, label %222
222: ; preds = %213
%223 = load ptr, ptr %14, align 8
%224 = load i64, ptr %15, align 8
%225 = getelementptr inbounds i8, ptr %223, i64 %224
%226 = getelementptr inbounds i8, ptr %225, i64 -3
%227 = call i64 @strncmp(ptr noundef %226, ptr noundef @.str.3, i32 noundef 3)
%228 = icmp eq i64 %227, 0
br i1 %228, label %229, label %269
229: ; preds = %222
%230 = load i32, ptr %13, align 4
%231 = load i32, ptr @EOF, align 4
%232 = icmp eq i32 %230, %231
br i1 %232, label %237, label %233
233: ; preds = %229
%234 = load i32, ptr %13, align 4
%235 = call i64 @isspace(i32 noundef %234)
%236 = icmp ne i64 %235, 0
br i1 %236, label %237, label %269
237: ; preds = %233, %229
%238 = load ptr, ptr %14, align 8
%239 = load i64, ptr %15, align 8
%240 = sub i64 %239, 3
%241 = getelementptr inbounds i8, ptr %238, i64 %240
%242 = load i8, ptr %241, align 1
store i8 %242, ptr %32, align 1
%243 = load ptr, ptr %14, align 8
%244 = load i64, ptr %15, align 8
%245 = sub i64 %244, 3
%246 = getelementptr inbounds i8, ptr %243, i64 %245
store i8 0, ptr %246, align 1
%247 = load i32, ptr %17, align 4
%248 = icmp ne i32 %247, 0
br i1 %248, label %249, label %256
249: ; preds = %237
%250 = load ptr, ptr %9, align 8
%251 = load ptr, ptr %14, align 8
%252 = load i64, ptr %15, align 8
%253 = sub i64 %252, 3
%254 = load ptr, ptr %8, align 8
%255 = load i32, ptr %21, align 4
call void %250(ptr noundef %251, i64 noundef %253, ptr noundef %254, i32 noundef %255)
br label %256
256: ; preds = %249, %237
%257 = load i8, ptr %32, align 1
%258 = load ptr, ptr %14, align 8
%259 = load i64, ptr %15, align 8
%260 = sub i64 %259, 3
%261 = getelementptr inbounds i8, ptr %258, i64 %260
store i8 %257, ptr %261, align 1
%262 = load ptr, ptr %14, align 8
%263 = load ptr, ptr %14, align 8
%264 = load i64, ptr %15, align 8
%265 = getelementptr inbounds i8, ptr %263, i64 %264
%266 = getelementptr inbounds i8, ptr %265, i64 -3
%267 = call i32 @memmove(ptr noundef %262, ptr noundef %266, i32 noundef 3)
store i64 3, ptr %15, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %18, align 4
%268 = load i32, ptr %20, align 4
store i32 %268, ptr %21, align 4
store i32 0, ptr %17, align 4
br label %371
269: ; preds = %233, %222, %213, %210
%270 = load i64, ptr %15, align 8
%271 = icmp uge i64 %270, 4
br i1 %271, label %272, label %306
272: ; preds = %269
%273 = load ptr, ptr %14, align 8
%274 = load i64, ptr %15, align 8
%275 = getelementptr inbounds i8, ptr %273, i64 %274
%276 = getelementptr inbounds i8, ptr %275, i64 -4
%277 = call i64 @strncmp(ptr noundef %276, ptr noundef @.str.3, i32 noundef 3)
%278 = icmp eq i64 %277, 0
br i1 %278, label %279, label %306
279: ; preds = %272
%280 = load i32, ptr %13, align 4
%281 = load i32, ptr @EOF, align 4
%282 = icmp eq i32 %280, %281
br i1 %282, label %287, label %283
283: ; preds = %279
%284 = load i32, ptr %13, align 4
%285 = call i64 @isspace(i32 noundef %284)
%286 = icmp ne i64 %285, 0
br i1 %286, label %287, label %306
287: ; preds = %283, %279
%288 = load i32, ptr %18, align 4
%289 = icmp ne i32 %288, 0
br i1 %289, label %290, label %293
290: ; preds = %287
%291 = load i64, ptr %15, align 8
%292 = add i64 %291, -1
store i64 %292, ptr %15, align 8
br label %293
293: ; preds = %290, %287
%294 = load ptr, ptr %14, align 8
%295 = load i64, ptr %15, align 8
%296 = getelementptr inbounds i8, ptr %294, i64 %295
store i8 0, ptr %296, align 1
%297 = load i32, ptr %17, align 4
%298 = icmp ne i32 %297, 0
br i1 %298, label %299, label %305
299: ; preds = %293
%300 = load ptr, ptr %9, align 8
%301 = load ptr, ptr %14, align 8
%302 = load i64, ptr %15, align 8
%303 = load ptr, ptr %8, align 8
%304 = load i32, ptr %21, align 4
call void %300(ptr noundef %301, i64 noundef %302, ptr noundef %303, i32 noundef %304)
br label %305
305: ; preds = %299, %293
store i64 0, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %370
306: ; preds = %283, %272, %269
%307 = load i32, ptr %12, align 4
%308 = icmp eq i32 %307, 46
br i1 %308, label %318, label %309
309: ; preds = %306
%310 = load i32, ptr %12, align 4
%311 = icmp eq i32 %310, 58
br i1 %311, label %318, label %312
312: ; preds = %309
%313 = load i32, ptr %12, align 4
%314 = icmp eq i32 %313, 33
br i1 %314, label %318, label %315
315: ; preds = %312
%316 = load i32, ptr %12, align 4
%317 = icmp eq i32 %316, 63
br i1 %317, label %318, label %368
318: ; preds = %315, %312, %309, %306
%319 = load i32, ptr %13, align 4
%320 = load i32, ptr @EOF, align 4
%321 = icmp eq i32 %319, %320
br i1 %321, label %329, label %322
322: ; preds = %318
%323 = load i32, ptr %13, align 4
%324 = call i64 @isspace(i32 noundef %323)
%325 = icmp ne i64 %324, 0
br i1 %325, label %329, label %326
326: ; preds = %322
%327 = load i32, ptr %13, align 4
%328 = icmp eq i32 %327, 34
br i1 %328, label %329, label %368
329: ; preds = %326, %322, %318
%330 = load i32, ptr %11, align 4
%331 = call i32 @isdigit(i32 noundef %330) #6
%332 = icmp ne i32 %331, 0
br i1 %332, label %333, label %340
333: ; preds = %329
%334 = load i32, ptr %12, align 4
%335 = icmp ne i32 %334, 46
br i1 %335, label %340, label %336
336: ; preds = %333
%337 = load i32, ptr %13, align 4
%338 = call i32 @isdigit(i32 noundef %337) #6
%339 = icmp ne i32 %338, 0
br i1 %339, label %368, label %340
340: ; preds = %336, %333, %329
%341 = load i32, ptr %12, align 4
%342 = icmp ne i32 %341, 46
br i1 %342, label %349, label %343
343: ; preds = %340
%344 = load ptr, ptr %14, align 8
%345 = load i64, ptr %15, align 8
%346 = load ptr, ptr %10, align 8
%347 = call i32 @endingInAbbrev(ptr noundef %344, i64 noundef %345, ptr noundef %346)
%348 = icmp ne i32 %347, 0
br i1 %348, label %368, label %349
349: ; preds = %343, %340
%350 = load i32, ptr %18, align 4
%351 = icmp ne i32 %350, 0
br i1 %351, label %352, label %355
352: ; preds = %349
%353 = load i64, ptr %15, align 8
%354 = add i64 %353, -1
store i64 %354, ptr %15, align 8
br label %355
355: ; preds = %352, %349
%356 = load ptr, ptr %14, align 8
%357 = load i64, ptr %15, align 8
%358 = getelementptr inbounds i8, ptr %356, i64 %357
store i8 0, ptr %358, align 1
%359 = load i32, ptr %17, align 4
%360 = icmp ne i32 %359, 0
br i1 %360, label %361, label %367
361: ; preds = %355
%362 = load ptr, ptr %9, align 8
%363 = load ptr, ptr %14, align 8
%364 = load i64, ptr %15, align 8
%365 = load ptr, ptr %8, align 8
%366 = load i32, ptr %21, align 4
call void %362(ptr noundef %363, i64 noundef %364, ptr noundef %365, i32 noundef %366)
br label %367
367: ; preds = %361, %355
store i64 0, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
br label %369
368: ; preds = %343, %336, %326, %315
store i32 0, ptr %18, align 4
br label %369
369: ; preds = %368, %367
br label %370
370: ; preds = %369, %305
br label %371
371: ; preds = %370, %256
br label %372
372: ; preds = %371, %209
br label %373
373: ; preds = %372, %161
br label %401
374: ; preds = %128
%375 = load i32, ptr %12, align 4
%376 = call i64 @isupper(i32 noundef %375)
%377 = icmp ne i64 %376, 0
br i1 %377, label %378, label %386
378: ; preds = %374
store i32 0, ptr %19, align 4
%379 = load i32, ptr %12, align 4
%380 = trunc i32 %379 to i8
%381 = load ptr, ptr %14, align 8
%382 = load i64, ptr %15, align 8
%383 = add i64 %382, 1
store i64 %383, ptr %15, align 8
%384 = getelementptr inbounds i8, ptr %381, i64 %382
store i8 %380, ptr %384, align 1
store i32 0, ptr %18, align 4
%385 = load i32, ptr %20, align 4
store i32 %385, ptr %21, align 4
store i32 1, ptr %17, align 4
br label %400
386: ; preds = %374
%387 = load i32, ptr %19, align 4
%388 = icmp ne i32 %387, 0
br i1 %388, label %399, label %389
389: ; preds = %386
%390 = load i32, ptr %12, align 4
%391 = icmp eq i32 %390, 10
br i1 %391, label %392, label %399
392: ; preds = %389
%393 = load i32, ptr %13, align 4
%394 = icmp eq i32 %393, 10
br i1 %394, label %395, label %399
395: ; preds = %392
%396 = load ptr, ptr %9, align 8
%397 = load ptr, ptr %8, align 8
%398 = load i32, ptr %20, align 4
call void %396(ptr noundef @.str.5, i64 noundef 0, ptr noundef %397, i32 noundef %398)
store i32 1, ptr %19, align 4
br label %399
399: ; preds = %395, %392, %389, %386
br label %400
400: ; preds = %399, %378
br label %401
401: ; preds = %400, %373
%402 = load i32, ptr %12, align 4
store i32 %402, ptr %11, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %403
403: ; preds = %._crit_edge, %52
%404 = load i32, ptr %19, align 4
%405 = icmp ne i32 %404, 0
br i1 %405, label %410, label %406
406: ; preds = %403
%407 = load ptr, ptr %9, align 8
%408 = load ptr, ptr %8, align 8
%409 = load i32, ptr %20, align 4
call void %407(ptr noundef @.str.5, i64 noundef 0, ptr noundef %408, i32 noundef %409)
br label %410
410: ; preds = %406, %403
%411 = call i32 @regfree(ptr noundef %23)
%412 = load ptr, ptr %24, align 8
call void @llvm.stackrestore(ptr %412)
ret void
}
declare ptr @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @regerror(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getc(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isdigit(i32 noundef) #4
declare i32 @endingInAbbrev(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn }
attributes #6 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpamkbglho.c'
source_filename = "/tmp/tmpamkbglho.c"
target datalayout = "e-m:e-p270: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 i8 0, align 1
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [4096 x i8], align 16
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
store ptr %5, ptr %4, align 8
br label %6
6: ; preds = %33, %0
%7 = call signext i8 (...) @getchar()
store i8 %7, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = load i8, ptr @EOF, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %8, %10
br i1 %11, label %12, label %34
12: ; preds = %6
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 32
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 10
br i1 %19, label %20, label %29
20: ; preds = %16, %12
%21 = load ptr, ptr %4, align 8
store i8 0, ptr %21, align 1
%22 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%23 = call i32 @reverse_string(ptr noundef %22)
%24 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%25 = call i32 @printf(ptr noundef @.str, ptr noundef %24)
%26 = load i8, ptr %2, align 1
%27 = call i32 @putchar(i8 noundef signext %26)
%28 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
store ptr %28, ptr %4, align 8
br label %33
29: ; preds = %16
%30 = load i8, ptr %2, align 1
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
store i8 %30, ptr %31, align 1
br label %33
33: ; preds = %29, %20
br label %6, !llvm.loop !6
34: ; preds = %6
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @reverse_string(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpamkbglho.c"
target datalayout = "e-m:e-p270: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 i8 0, align 1
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [4096 x i8], align 16
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
store ptr %5, ptr %4, align 8
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %2, align 1
%7 = sext i8 %6 to i32
%8 = load i8, ptr @EOF, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %7, %9
br i1 %10, label %.lr.ph, label %38
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %32
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 32
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i8, ptr %2, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 10
br i1 %18, label %19, label %28
19: ; preds = %15, %11
%20 = load ptr, ptr %4, align 8
store i8 0, ptr %20, align 1
%21 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @reverse_string(ptr noundef %21)
%23 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %23)
%25 = load i8, ptr %2, align 1
%26 = call i32 @putchar(i8 noundef signext %25)
%27 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
store ptr %27, ptr %4, align 8
br label %32
28: ; preds = %15
%29 = load i8, ptr %2, align 1
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %4, align 8
store i8 %29, ptr %30, align 1
br label %32
32: ; preds = %28, %19
%33 = call signext i8 (...) @getchar()
store i8 %33, ptr %2, align 1
%34 = sext i8 %33 to i32
%35 = load i8, ptr @EOF, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %34, %36
br i1 %37, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %0
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @reverse_string(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpncb0a4tj.c'
source_filename = "/tmp/tmpncb0a4tj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokenize(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i8 %3, ptr %9, align 1
store i32 0, ptr %13, align 4
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds [100 x i8], ptr %15, i64 0
%17 = getelementptr inbounds [100 x i8], ptr %16, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i32 noundef 0, i32 noundef 3000)
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %10, align 8
%21 = load ptr, ptr %8, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store ptr %24, ptr %11, align 8
store i32 -1, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %25
25: ; preds = %84, %4
%26 = load ptr, ptr %10, align 8
%27 = load ptr, ptr %11, align 8
%28 = icmp ule ptr %26, %27
br i1 %28, label %29, label %87
29: ; preds = %25
%30 = load ptr, ptr %10, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load i8, ptr %9, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %32, %34
br i1 %35, label %36, label %37
36: ; preds = %29
br label %87
37: ; preds = %29
%38 = load ptr, ptr %10, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br i1 %41, label %42, label %43
42: ; preds = %37
br label %87
43: ; preds = %37
%44 = load ptr, ptr %10, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %79
48: ; preds = %43
%49 = load ptr, ptr %10, align 8
%50 = load i8, ptr %49, align 1
%51 = call i32 @isspace(i8 noundef signext %50)
%52 = icmp ne i32 %51, 0
br i1 %52, label %79, label %53
53: ; preds = %48
%54 = load i32, ptr %14, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %63, label %56
56: ; preds = %53
store i32 1, ptr %14, align 4
store i32 0, ptr %13, align 4
%57 = load i32, ptr %12, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %12, align 4
%59 = load i32, ptr %12, align 4
%60 = icmp sge i32 %59, 30
br i1 %60, label %61, label %62
61: ; preds = %56
store i32 1, ptr %5, align 4
br label %90
62: ; preds = %56
br label %63
63: ; preds = %62, %53
%64 = load i32, ptr %13, align 4
%65 = icmp sge i32 %64, 100
br i1 %65, label %66, label %67
66: ; preds = %63
store i32 2, ptr %5, align 4
br label %90
67: ; preds = %63
%68 = load ptr, ptr %10, align 8
%69 = load i8, ptr %68, align 1
%70 = load ptr, ptr %6, align 8
%71 = load i32, ptr %12, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [100 x i8], ptr %70, i64 %72
%74 = load i32, ptr %13, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i8], ptr %73, i64 0, i64 %75
store i8 %69, ptr %76, align 1
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
br label %84
79: ; preds = %48, %43
%80 = load i32, ptr %14, align 4
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %79
store i32 0, ptr %14, align 4
br label %83
83: ; preds = %82, %79
br label %84
84: ; preds = %83, %67
%85 = load ptr, ptr %10, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %10, align 8
br label %25, !llvm.loop !6
87: ; preds = %42, %36, %25
%88 = load i32, ptr %12, align 4
%89 = load ptr, ptr %7, align 8
store i32 %88, ptr %89, align 4
store i32 0, ptr %5, align 4
br label %90
90: ; preds = %87, %66, %61
%91 = load i32, ptr %5, align 4
ret i32 %91
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpncb0a4tj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokenize(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i8 %3, ptr %9, align 1
store i32 0, ptr %13, align 4
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds [100 x i8], ptr %15, i64 0
%17 = getelementptr inbounds [100 x i8], ptr %16, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i32 noundef 0, i32 noundef 3000)
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %10, align 8
%21 = load ptr, ptr %8, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
store ptr %24, ptr %11, align 8
store i32 -1, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %11, align 8
%27 = icmp ule ptr %25, %26
br i1 %27, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %4
br label %28
28: ; preds = %.lr.ph, %83
%29 = load ptr, ptr %10, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %9, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %31, %33
br i1 %34, label %35, label %36
35: ; preds = %28
br label %89
36: ; preds = %28
%37 = load ptr, ptr %10, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 10
br i1 %40, label %41, label %42
41: ; preds = %36
br label %89
42: ; preds = %36
%43 = load ptr, ptr %10, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %78
47: ; preds = %42
%48 = load ptr, ptr %10, align 8
%49 = load i8, ptr %48, align 1
%50 = call i32 @isspace(i8 noundef signext %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %78, label %52
52: ; preds = %47
%53 = load i32, ptr %14, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %62, label %55
55: ; preds = %52
store i32 1, ptr %14, align 4
store i32 0, ptr %13, align 4
%56 = load i32, ptr %12, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = icmp sge i32 %58, 30
br i1 %59, label %60, label %61
60: ; preds = %55
store i32 1, ptr %5, align 4
br label %92
61: ; preds = %55
br label %62
62: ; preds = %61, %52
%63 = load i32, ptr %13, align 4
%64 = icmp sge i32 %63, 100
br i1 %64, label %65, label %66
65: ; preds = %62
store i32 2, ptr %5, align 4
br label %92
66: ; preds = %62
%67 = load ptr, ptr %10, align 8
%68 = load i8, ptr %67, align 1
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %12, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x i8], ptr %69, i64 %71
%73 = load i32, ptr %13, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x i8], ptr %72, i64 0, i64 %74
store i8 %68, ptr %75, align 1
%76 = load i32, ptr %13, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %13, align 4
br label %83
78: ; preds = %47, %42
%79 = load i32, ptr %14, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %78
store i32 0, ptr %14, align 4
br label %82
82: ; preds = %81, %78
br label %83
83: ; preds = %82, %66
%84 = load ptr, ptr %10, align 8
%85 = getelementptr inbounds i8, ptr %84, i32 1
store ptr %85, ptr %10, align 8
%86 = load ptr, ptr %10, align 8
%87 = load ptr, ptr %11, align 8
%88 = icmp ule ptr %86, %87
br i1 %88, label %28, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %83
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %4
br label %89
89: ; preds = %.loopexit, %41, %35
%90 = load i32, ptr %12, align 4
%91 = load ptr, ptr %7, align 8
store i32 %90, ptr %91, align 4
store i32 0, ptr %5, align 4
br label %92
92: ; preds = %89, %65, %60
%93 = load i32, ptr %5, align 4
ret i32 %93
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9xjiyodp.c'
source_filename = "/tmp/tmp9xjiyodp.c"
target datalayout = "e-m:e-p270: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/tmp9xjiyodp.c"
target datalayout = "e-m:e-p270: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/tmp5z_ulaa9.c'
source_filename = "/tmp/tmp5z_ulaa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @driveForTime(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 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 i32, align 4
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 i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = call i32 @driveRaw(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %10, align 4
%17 = call i32 @wait1Msec(i32 noundef %16)
%18 = call i32 @driveRaw(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @driveRaw(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wait1Msec(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/tmp5z_ulaa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @driveForTime(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 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 i32, align 4
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 i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = call i32 @driveRaw(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %10, align 4
%17 = call i32 @wait1Msec(i32 noundef %16)
%18 = call i32 @driveRaw(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @driveRaw(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @wait1Msec(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/tmpqy34b1go.c'
source_filename = "/tmp/tmpqy34b1go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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%s%s%c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @colorMsg(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 %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9, ptr noundef @.str.1, i8 noundef signext 0)
%11 = load ptr, ptr %6, align 8
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqy34b1go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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%s%s%c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @colorMsg(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 %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9, ptr noundef @.str.1, i8 noundef signext 0)
%11 = load ptr, ptr %6, align 8
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_56_trsq.c'
source_filename = "/tmp/tmp_56_trsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Mali_MemCpy(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = urem i32 %12, 4096
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %11, i64 %14
%16 = load ptr, ptr %8, align 8
%17 = load i32, ptr %9, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %10, align 4
%21 = zext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
%24 = call i32 @memcpy(ptr noundef %15, ptr noundef %19, i32 noundef %23)
ret i32 0
}
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/tmp_56_trsq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Mali_MemCpy(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = urem i32 %12, 4096
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %11, i64 %14
%16 = load ptr, ptr %8, align 8
%17 = load i32, ptr %9, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %10, align 4
%21 = zext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
%24 = call i32 @memcpy(ptr noundef %15, ptr noundef %19, i32 noundef %23)
ret i32 0
}
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/tmpvqmr2ibm.c'
source_filename = "/tmp/tmpvqmr2ibm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do0x08() #0 {
%1 = call i32 (...) @_I8080_()
ret void
}
declare i32 @_I8080_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvqmr2ibm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do0x08() #0 {
%1 = call i32 (...) @_I8080_()
ret void
}
declare i32 @_I8080_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx56v8m2z.c'
source_filename = "/tmp/tmpx56v8m2z.c"
target datalayout = "e-m:e-p270: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/tmpx56v8m2z.c"
target datalayout = "e-m:e-p270: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/tmpxk3l80k_.c'
source_filename = "/tmp/tmpxk3l80k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_get_seq_number() #0 {
%1 = call i32 @time(i32 noundef 0)
%2 = call i32 @srand(i32 noundef %1)
%3 = call i32 (...) @rand()
%4 = and i32 %3, 65535
ret i32 %4
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxk3l80k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_get_seq_number() #0 {
%1 = call i32 @time(i32 noundef 0)
%2 = call i32 @srand(i32 noundef %1)
%3 = call i32 (...) @rand()
%4 = and i32 %3, 65535
ret i32 %4
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0hx724_2.c'
source_filename = "/tmp/tmp0hx724_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"begin\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @sleep(i32 noundef 1)
%4 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(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/tmp0hx724_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"begin\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"end\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @sleep(i32 noundef 1)
%4 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(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/tmpleradxga.c'
source_filename = "/tmp/tmpleradxga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"microsyncdaemon\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"crypto_derive_key: EVP_BytesToKey failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"too big key, stack overflow\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @crypto_derive_key(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr @.str, ptr %8, align 8
%10 = call i32 (...) @EVP_aes_256_cbc()
%11 = call i32 (...) @EVP_md5()
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %7, align 8
%18 = call i64 @EVP_BytesToKey(i32 noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %15, i32 noundef 1, ptr noundef %16, ptr noundef %17)
store i64 %18, ptr %9, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %3
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
store i32 1, ptr %4, align 4
br label %31
23: ; preds = %3
%24 = load i64, ptr %9, align 8
%25 = icmp eq i64 %24, 32
br i1 %25, label %26, label %27
26: ; preds = %23
br label %27
27: ; preds = %26, %23
%28 = phi i1 [ false, %23 ], [ true, %26 ]
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 noundef %29)
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %27, %20
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @EVP_BytesToKey(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @EVP_aes_256_cbc(...) #1
declare i32 @EVP_md5(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpleradxga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"microsyncdaemon\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"crypto_derive_key: EVP_BytesToKey failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"too big key, stack overflow\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @crypto_derive_key(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr @.str, ptr %8, align 8
%10 = call i32 (...) @EVP_aes_256_cbc()
%11 = call i32 (...) @EVP_md5()
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %7, align 8
%18 = call i64 @EVP_BytesToKey(i32 noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %15, i32 noundef 1, ptr noundef %16, ptr noundef %17)
store i64 %18, ptr %9, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %3
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
store i32 1, ptr %4, align 4
br label %31
23: ; preds = %3
%24 = load i64, ptr %9, align 8
%25 = icmp eq i64 %24, 32
br i1 %25, label %26, label %27
26: ; preds = %23
br label %27
27: ; preds = %26, %23
%28 = phi i1 [ false, %23 ], [ true, %26 ]
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 noundef %29)
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %27, %20
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @EVP_BytesToKey(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @EVP_aes_256_cbc(...) #1
declare i32 @EVP_md5(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu_oeoms_.c'
source_filename = "/tmp/tmpu_oeoms_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\00", align 1
@.str.1 = private unnamed_addr constant [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/12019/inotifywait-for-Android/refs/heads/master/jni/libinotifytools/inotifytools.c\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"len < 4096\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"malformed event string (very long)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inotifytools_str_to_event_sep(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [4096 x i8], align 16
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%12 = load i8, ptr %5, align 1
%13 = call ptr @strchr(ptr noundef @.str, i8 noundef signext %12)
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %108
16: ; preds = %2
store i32 0, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %19, %16
store i32 0, ptr %3, align 4
br label %108
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %9, align 8
%28 = load i8, ptr %5, align 1
%29 = call ptr @strchr(ptr noundef %27, i8 noundef signext %28)
store ptr %29, ptr %10, align 8
br label %30
30: ; preds = %105, %25
%31 = load ptr, ptr %9, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 0
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br label %39
39: ; preds = %33, %30
%40 = phi i1 [ false, %30 ], [ %38, %33 ]
br i1 %40, label %41, label %106
41: ; preds = %39
%42 = load ptr, ptr %10, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load ptr, ptr %10, align 8
%46 = load ptr, ptr %9, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = trunc i64 %49 to i32
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %52, 4096
%54 = zext i1 %53 to i32
%55 = call i32 @_niceassert(i32 noundef %54, i32 noundef 489, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3)
br label %59
56: ; preds = %41
%57 = load ptr, ptr %9, align 8
%58 = call i32 @strlen(ptr noundef %57)
store i32 %58, ptr %8, align 4
br label %59
59: ; preds = %56, %44
%60 = load i32, ptr %8, align 4
%61 = icmp sgt i32 %60, 4095
br i1 %61, label %62, label %63
62: ; preds = %59
store i32 4095, ptr %8, align 4
br label %63
63: ; preds = %62, %59
%64 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %8, align 4
%67 = call i32 @strncpy(ptr noundef %64, ptr noundef %65, i32 noundef %66)
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 %69
store i8 0, ptr %70, align 1
%71 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%72 = call i32 @onestr_to_event(ptr noundef %71)
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp eq i32 0, %73
br i1 %74, label %78, label %75
75: ; preds = %63
%76 = load i32, ptr %7, align 4
%77 = icmp eq i32 -1, %76
br i1 %77, label %78, label %80
78: ; preds = %75, %63
%79 = load i32, ptr %7, align 4
store i32 %79, ptr %6, align 4
br label %106
80: ; preds = %75
%81 = load i32, ptr %7, align 4
%82 = load i32, ptr %6, align 4
%83 = or i32 %82, %81
store i32 %83, ptr %6, align 4
%84 = load ptr, ptr %10, align 8
store ptr %84, ptr %9, align 8
%85 = load ptr, ptr %9, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %87, label %105
87: ; preds = %80
%88 = load ptr, ptr %9, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 0
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %105
93: ; preds = %87
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %9, align 8
%96 = load ptr, ptr %9, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 0
%98 = load i8, ptr %97, align 1
%99 = icmp ne i8 %98, 0
br i1 %99, label %101, label %100
100: ; preds = %93
store i32 0, ptr %3, align 4
br label %108
101: ; preds = %93
%102 = load ptr, ptr %9, align 8
%103 = load i8, ptr %5, align 1
%104 = call ptr @strchr(ptr noundef %102, i8 noundef signext %103)
store ptr %104, ptr %10, align 8
br label %105
105: ; preds = %101, %87, %80
br label %30, !llvm.loop !6
106: ; preds = %78, %39
%107 = load i32, ptr %6, align 4
store i32 %107, ptr %3, align 4
br label %108
108: ; preds = %106, %100, %24, %15
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @_niceassert(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @onestr_to_event(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpu_oeoms_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [54 x i8] c"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\00", align 1
@.str.1 = private unnamed_addr constant [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/12019/inotifywait-for-Android/refs/heads/master/jni/libinotifytools/inotifytools.c\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"len < 4096\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"malformed event string (very long)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inotifytools_str_to_event_sep(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [4096 x i8], align 16
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%12 = load i8, ptr %5, align 1
%13 = call ptr @strchr(ptr noundef @.str, i8 noundef signext %12)
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 -1, ptr %3, align 4
br label %108
16: ; preds = %2
store i32 0, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %19, %16
store i32 0, ptr %3, align 4
br label %108
25: ; preds = %19
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %9, align 8
%28 = load i8, ptr %5, align 1
%29 = call ptr @strchr(ptr noundef %27, i8 noundef signext %28)
store ptr %29, ptr %10, align 8
br label %30
30: ; preds = %105, %25
%31 = load ptr, ptr %9, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 0
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br label %39
39: ; preds = %33, %30
%40 = phi i1 [ false, %30 ], [ %38, %33 ]
br i1 %40, label %41, label %.loopexit
41: ; preds = %39
%42 = load ptr, ptr %10, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load ptr, ptr %10, align 8
%46 = load ptr, ptr %9, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = trunc i64 %49 to i32
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %52, 4096
%54 = zext i1 %53 to i32
%55 = call i32 @_niceassert(i32 noundef %54, i32 noundef 489, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3)
br label %59
56: ; preds = %41
%57 = load ptr, ptr %9, align 8
%58 = call i32 @strlen(ptr noundef %57)
store i32 %58, ptr %8, align 4
br label %59
59: ; preds = %56, %44
%60 = load i32, ptr %8, align 4
%61 = icmp sgt i32 %60, 4095
br i1 %61, label %62, label %63
62: ; preds = %59
store i32 4095, ptr %8, align 4
br label %63
63: ; preds = %62, %59
%64 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%65 = load ptr, ptr %9, align 8
%66 = load i32, ptr %8, align 4
%67 = call i32 @strncpy(ptr noundef %64, ptr noundef %65, i32 noundef %66)
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 %69
store i8 0, ptr %70, align 1
%71 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
%72 = call i32 @onestr_to_event(ptr noundef %71)
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp eq i32 0, %73
br i1 %74, label %78, label %75
75: ; preds = %63
%76 = load i32, ptr %7, align 4
%77 = icmp eq i32 -1, %76
br i1 %77, label %78, label %80
78: ; preds = %75, %63
%79 = load i32, ptr %7, align 4
store i32 %79, ptr %6, align 4
br label %106
80: ; preds = %75
%81 = load i32, ptr %7, align 4
%82 = load i32, ptr %6, align 4
%83 = or i32 %82, %81
store i32 %83, ptr %6, align 4
%84 = load ptr, ptr %10, align 8
store ptr %84, ptr %9, align 8
%85 = load ptr, ptr %9, align 8
%86 = icmp ne ptr %85, null
br i1 %86, label %87, label %105
87: ; preds = %80
%88 = load ptr, ptr %9, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 0
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %105
93: ; preds = %87
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %9, align 8
%96 = load ptr, ptr %9, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 0
%98 = load i8, ptr %97, align 1
%99 = icmp ne i8 %98, 0
br i1 %99, label %101, label %100
100: ; preds = %93
store i32 0, ptr %3, align 4
br label %108
101: ; preds = %93
%102 = load ptr, ptr %9, align 8
%103 = load i8, ptr %5, align 1
%104 = call ptr @strchr(ptr noundef %102, i8 noundef signext %103)
store ptr %104, ptr %10, align 8
br label %105
105: ; preds = %101, %87, %80
br label %30, !llvm.loop !6
.loopexit: ; preds = %39
br label %106
106: ; preds = %.loopexit, %78
%107 = load i32, ptr %6, align 4
store i32 %107, ptr %3, align 4
br label %108
108: ; preds = %106, %100, %24, %15
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @_niceassert(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @onestr_to_event(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprwx0xoug.c'
source_filename = "/tmp/tmprwx0xoug.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"example.nc\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"read timestep %d: date=%d time=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 12, ptr %2, align 4
store i32 6, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 3, ptr %5, align 4
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %9, align 8
%18 = alloca double, i64 72, align 16
%19 = alloca double, i64 360, align 16
%20 = call i32 @streamOpenRead(ptr noundef @.str)
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %0
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr %10, align 4
%26 = call ptr @cdiStringError(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 1, ptr %1, align 4
store i32 1, ptr %11, align 4
br label %61
28: ; preds = %0
%29 = load i32, ptr %10, align 4
%30 = call i32 @streamInqVlist(i32 noundef %29)
store i32 %30, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 1, ptr %14, align 4
%31 = load i32, ptr %12, align 4
%32 = call i32 @vlistInqTaxis(i32 noundef %31)
store i32 %32, ptr %15, align 4
store i32 0, ptr %16, align 4
br label %33
33: ; preds = %55, %28
%34 = load i32, ptr %16, align 4
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %58
36: ; preds = %33
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %16, align 4
%39 = call i32 @streamInqTimestep(i32 noundef %37, i32 noundef %38)
%40 = load i32, ptr %15, align 4
%41 = call i32 @taxisInqVdate(i32 noundef %40)
store i32 %41, ptr %7, align 4
%42 = load i32, ptr %15, align 4
%43 = call i32 @taxisInqVtime(i32 noundef %42)
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %16, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = call i32 @printf(ptr noundef @.str.2, i32 noundef %45, i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr %13, align 4
%51 = call i32 @streamReadVar(i32 noundef %49, i32 noundef %50, ptr noundef %18, ptr noundef %6)
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %14, align 4
%54 = call i32 @streamReadVar(i32 noundef %52, i32 noundef %53, ptr noundef %19, ptr noundef %6)
br label %55
55: ; preds = %36
%56 = load i32, ptr %16, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %16, align 4
br label %33, !llvm.loop !6
58: ; preds = %33
%59 = load i32, ptr %10, align 4
%60 = call i32 @streamClose(i32 noundef %59)
store i32 0, ptr %1, align 4
store i32 1, ptr %11, align 4
br label %61
61: ; preds = %58, %23
%62 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %62)
%63 = load i32, ptr %1, align 4
ret i32 %63
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @streamOpenRead(ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @cdiStringError(i32 noundef) #2
declare i32 @streamInqVlist(i32 noundef) #2
declare i32 @vlistInqTaxis(i32 noundef) #2
declare i32 @streamInqTimestep(i32 noundef, i32 noundef) #2
declare i32 @taxisInqVdate(i32 noundef) #2
declare i32 @taxisInqVtime(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @streamReadVar(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @streamClose(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprwx0xoug.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"example.nc\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"read timestep %d: date=%d time=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 12, ptr %2, align 4
store i32 6, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 3, ptr %5, align 4
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %9, align 8
%18 = alloca double, i64 72, align 16
%19 = alloca double, i64 360, align 16
%20 = call i32 @streamOpenRead(ptr noundef @.str)
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %0
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr %10, align 4
%26 = call ptr @cdiStringError(i32 noundef %25)
%27 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.1, ptr noundef %26)
store i32 1, ptr %1, align 4
store i32 1, ptr %11, align 4
br label %62
28: ; preds = %0
%29 = load i32, ptr %10, align 4
%30 = call i32 @streamInqVlist(i32 noundef %29)
store i32 %30, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 1, ptr %14, align 4
%31 = load i32, ptr %12, align 4
%32 = call i32 @vlistInqTaxis(i32 noundef %31)
store i32 %32, ptr %15, align 4
store i32 0, ptr %16, align 4
%33 = load i32, ptr %16, align 4
%34 = icmp slt i32 %33, 3
br i1 %34, label %.lr.ph, label %59
.lr.ph: ; preds = %28
br label %35
35: ; preds = %.lr.ph, %54
%36 = load i32, ptr %10, align 4
%37 = load i32, ptr %16, align 4
%38 = call i32 @streamInqTimestep(i32 noundef %36, i32 noundef %37)
%39 = load i32, ptr %15, align 4
%40 = call i32 @taxisInqVdate(i32 noundef %39)
store i32 %40, ptr %7, align 4
%41 = load i32, ptr %15, align 4
%42 = call i32 @taxisInqVtime(i32 noundef %41)
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %16, align 4
%44 = add nsw i32 %43, 1
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %8, align 4
%47 = call i32 @printf(ptr noundef @.str.2, i32 noundef %44, i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %13, align 4
%50 = call i32 @streamReadVar(i32 noundef %48, i32 noundef %49, ptr noundef %18, ptr noundef %6)
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %14, align 4
%53 = call i32 @streamReadVar(i32 noundef %51, i32 noundef %52, ptr noundef %19, ptr noundef %6)
br label %54
54: ; preds = %35
%55 = load i32, ptr %16, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %16, align 4
%57 = load i32, ptr %16, align 4
%58 = icmp slt i32 %57, 3
br i1 %58, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %59
59: ; preds = %._crit_edge, %28
%60 = load i32, ptr %10, align 4
%61 = call i32 @streamClose(i32 noundef %60)
store i32 0, ptr %1, align 4
store i32 1, ptr %11, align 4
br label %62
62: ; preds = %59, %23
%63 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %63)
%64 = load i32, ptr %1, align 4
ret i32 %64
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @streamOpenRead(ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @cdiStringError(i32 noundef) #2
declare i32 @streamInqVlist(i32 noundef) #2
declare i32 @vlistInqTaxis(i32 noundef) #2
declare i32 @streamInqTimestep(i32 noundef, i32 noundef) #2
declare i32 @taxisInqVdate(i32 noundef) #2
declare i32 @taxisInqVtime(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @streamReadVar(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @streamClose(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ep0neuk.c'
source_filename = "/tmp/tmp7ep0neuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"macscp3_2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @macscp3_2() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ep0neuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"macscp3_2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @macscp3_2() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj6i52c_4.c'
source_filename = "/tmp/tmpj6i52c_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dBbp2a(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fsub double 1.000000e+00, %3
%5 = load double, ptr %2, align 8
%6 = call double @exp(double noundef %5) #3
%7 = call double @llvm.fmuladd.f64(double %4, double %6, double -1.000000e+00)
%8 = load double, ptr %2, align 8
%9 = call double @exp(double noundef %8) #3
%10 = fsub double %9, 1.000000e+00
%11 = load double, ptr %2, align 8
%12 = call double @exp(double noundef %11) #3
%13 = fsub double %12, 1.000000e+00
%14 = fmul double %10, %13
%15 = fdiv double %7, %14
ret double %15
}
; Function Attrs: nounwind
declare double @exp(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 = { 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/tmpj6i52c_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dBbp2a(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fsub double 1.000000e+00, %3
%5 = load double, ptr %2, align 8
%6 = call double @exp(double noundef %5) #3
%7 = call double @llvm.fmuladd.f64(double %4, double %6, double -1.000000e+00)
%8 = load double, ptr %2, align 8
%9 = call double @exp(double noundef %8) #3
%10 = fsub double %9, 1.000000e+00
%11 = load double, ptr %2, align 8
%12 = call double @exp(double noundef %11) #3
%13 = fsub double %12, 1.000000e+00
%14 = fmul double %10, %13
%15 = fdiv double %7, %14
ret double %15
}
; Function Attrs: nounwind
declare double @exp(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 = { 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/tmpvv_xkkyy.c'
source_filename = "/tmp/tmpvv_xkkyy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @interpolatefloats(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %32, %6
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %35
18: ; preds = %14
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %9, align 4
%22 = load ptr, ptr %10, align 8
%23 = load i32, ptr %13, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, ptr %22, i64 %24
%26 = load float, ptr %25, align 4
%27 = call float @interpfloat(ptr noundef %19, ptr noundef %20, i32 noundef %21, float noundef %26)
%28 = load ptr, ptr %11, align 8
%29 = load i32, ptr %13, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, ptr %28, i64 %30
store float %27, ptr %31, align 4
br label %32
32: ; preds = %18
%33 = load i32, ptr %13, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %13, align 4
br label %14, !llvm.loop !6
35: ; preds = %14
ret void
}
declare float @interpfloat(ptr noundef, ptr noundef, i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvv_xkkyy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @interpolatefloats(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%14 = load i32, ptr %13, align 4
%15 = load i32, ptr %12, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %37
.lr.ph: ; preds = %6
br label %17
17: ; preds = %.lr.ph, %31
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %9, align 4
%21 = load ptr, ptr %10, align 8
%22 = load i32, ptr %13, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, ptr %21, i64 %23
%25 = load float, ptr %24, align 4
%26 = call float @interpfloat(ptr noundef %18, ptr noundef %19, i32 noundef %20, float noundef %25)
%27 = load ptr, ptr %11, align 8
%28 = load i32, ptr %13, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %27, i64 %29
store float %26, ptr %30, align 4
br label %31
31: ; preds = %17
%32 = load i32, ptr %13, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %13, align 4
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %12, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %6
ret void
}
declare float @interpfloat(ptr noundef, ptr noundef, i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt22j2mcd.c'
source_filename = "/tmp/tmpt22j2mcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wdelch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @check_arg_count(i32 noundef %6, i32 noundef 1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %2
br label %24
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i64 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %5)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %10
%17 = call i32 @report_count(i32 noundef 1)
%18 = call i32 @report_error(ptr noundef @.str.1)
br label %24
19: ; preds = %10
%20 = call i32 @report_count(i32 noundef 1)
%21 = load ptr, ptr %5, align 8
%22 = call i32 @wdelch(ptr noundef %21)
%23 = call i32 @report_return(i32 noundef %22)
br label %24
24: ; preds = %19, %16, %9
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @wdelch(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt22j2mcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wdelch(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @check_arg_count(i32 noundef %6, i32 noundef 1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %2
br label %24
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i64 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %5)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %10
%17 = call i32 @report_count(i32 noundef 1)
%18 = call i32 @report_error(ptr noundef @.str.1)
br label %24
19: ; preds = %10
%20 = call i32 @report_count(i32 noundef 1)
%21 = load ptr, ptr %5, align 8
%22 = call i32 @wdelch(ptr noundef %21)
%23 = call i32 @report_return(i32 noundef %22)
br label %24
24: ; preds = %19, %16, %9
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @wdelch(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjyvjvhqv.c'
source_filename = "/tmp/tmpjyvjvhqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 42, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
br label %10
10: ; preds = %14, %1
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
%25 = mul nsw i32 %22, %24
%26 = add nsw i32 %21, %25
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %10, !llvm.loop !6
29: ; preds = %10
store ptr %3, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
%32 = sext i32 %31 to i64
ret i64 %32
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjyvjvhqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 42, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %13
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, 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
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
%24 = mul nsw i32 %21, %23
%25 = add nsw i32 %20, %24
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %31
31: ; preds = %._crit_edge, %1
store ptr %3, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %32, align 4
%34 = sext i32 %33 to i64
ret i64 %34
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprtp6i45m.c'
source_filename = "/tmp/tmprtp6i45m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_ior_uint16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %15
15: ; preds = %52, %6
%16 = load i32, ptr %13, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %55
19: ; preds = %15
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %13, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load ptr, ptr %11, align 8
%26 = load i32, ptr %13, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i64, ptr %25, i64 %27
%29 = load i64, ptr %28, align 8
%30 = or i64 %24, %29
store i64 %30, ptr %14, align 8
%31 = load ptr, ptr %8, align 8
%32 = load i32, ptr %13, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i64, ptr %31, i64 %33
%35 = load i64, ptr %34, align 8
%36 = load i64, ptr %9, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %19
%39 = load i64, ptr %14, align 8
br label %46
40: ; preds = %19
%41 = load ptr, ptr %11, align 8
%42 = load i32, ptr %13, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i64, ptr %41, i64 %43
%45 = load i64, ptr %44, align 8
br label %46
46: ; preds = %40, %38
%47 = phi i64 [ %39, %38 ], [ %45, %40 ]
%48 = load ptr, ptr %7, align 8
%49 = load i32, ptr %13, align 4
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds i64, ptr %48, i64 %50
store i64 %47, ptr %51, align 8
br label %52
52: ; preds = %46
%53 = load i32, ptr %13, align 4
%54 = add i32 %53, 1
store i32 %54, ptr %13, align 4
br label %15, !llvm.loop !6
55: ; preds = %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprtp6i45m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_ior_uint16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %57
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %51
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %13, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %13, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i64, ptr %24, i64 %26
%28 = load i64, ptr %27, align 8
%29 = or i64 %23, %28
store i64 %29, ptr %14, align 8
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %13, align 4
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i64, ptr %30, i64 %32
%34 = load i64, ptr %33, align 8
%35 = load i64, ptr %9, align 8
%36 = icmp slt i64 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %18
%38 = load i64, ptr %14, align 8
br label %45
39: ; preds = %18
%40 = load ptr, ptr %11, align 8
%41 = load i32, ptr %13, align 4
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds i64, ptr %40, i64 %42
%44 = load i64, ptr %43, align 8
br label %45
45: ; preds = %39, %37
%46 = phi i64 [ %38, %37 ], [ %44, %39 ]
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %13, align 4
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds i64, ptr %47, i64 %49
store i64 %46, ptr %50, align 8
br label %51
51: ; preds = %45
%52 = load i32, ptr %13, align 4
%53 = add i32 %52, 1
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = load i32, ptr %12, align 4
%56 = icmp ult i32 %54, %55
br i1 %56, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2tkybjwk.c'
source_filename = "/tmp/tmp2tkybjwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf_cmd_flush_rx() #0 {
%1 = alloca i8, align 1
store i8 7, ptr %1, align 1
%2 = call i32 @putMessage(ptr noundef %1, i32 noundef 1)
ret void
}
declare i32 @putMessage(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/tmp2tkybjwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nrf_cmd_flush_rx() #0 {
%1 = alloca i8, align 1
store i8 7, ptr %1, align 1
%2 = call i32 @putMessage(ptr noundef %1, i32 noundef 1)
ret void
}
declare i32 @putMessage(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/tmpm0yldaiz.c'
source_filename = "/tmp/tmpm0yldaiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 6, i32 7, i32 8, i32 9, i32 10, i32 0], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %20, %0
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %9
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %7
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 9
br label %17
17: ; preds = %14, %7
%18 = phi i1 [ false, %7 ], [ %16, %14 ]
br i1 %18, label %19, label %23
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %7, !llvm.loop !6
23: ; preds = %17
store i32 9, ptr %5, align 4
br label %24
24: ; preds = %37, %23
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %25, %26
br i1 %27, label %28, label %40
28: ; preds = %24
%29 = load i32, ptr %5, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %35
store i32 %33, ptr %36, align 4
br label %37
37: ; preds = %28
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %5, align 4
br label %24, !llvm.loop !8
40: ; preds = %24
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %43
store i32 %41, ptr %44, align 4
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %49, %40
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %46, 10
br i1 %47, label %48, label %56
48: ; preds = %45
br label %49
49: ; preds = %48
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 @printf(ptr noundef @.str.1, i32 noundef %54)
br label %45, !llvm.loop !9
56: ; preds = %45
%57 = call i32 (...) @getchar()
%58 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm0yldaiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 6, i32 7, i32 8, i32 9, i32 10, i32 0], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 40, i1 false)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %20, %0
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %9
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %7
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 9
br label %17
17: ; preds = %14, %7
%18 = phi i1 [ false, %7 ], [ %16, %14 ]
br i1 %18, label %19, label %23
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %7, !llvm.loop !6
23: ; preds = %17
store i32 9, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %.lr.ph, label %42
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %36
%28 = load i32, ptr %5, align 4
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %34
store i32 %32, ptr %35, align 4
br label %36
36: ; preds = %27
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %27, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %23
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %45
store i32 %43, ptr %46, align 4
store i32 0, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %47, 10
br i1 %48, label %.lr.ph2, label %59
.lr.ph2: ; preds = %42
br label %49
49: ; preds = %.lr.ph2, %50
br label %50
50: ; preds = %49
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 @printf(ptr noundef @.str.1, i32 noundef %55)
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %57, 10
br i1 %58, label %49, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %50
br label %59
59: ; preds = %._crit_edge3, %42
%60 = call i32 (...) @getchar()
%61 = call i32 (...) @getchar()
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @getchar(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpcyspoe2h.c'
source_filename = "/tmp/tmpcyspoe2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%c \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outChar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %7)
br label %9
9: ; preds = %5, %1
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcyspoe2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%c \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outChar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %7)
br label %9
9: ; preds = %5, %1
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnqseq64k.c'
source_filename = "/tmp/tmpnqseq64k.c"
target datalayout = "e-m:e-p270: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/tmpnqseq64k.c"
target datalayout = "e-m:e-p270: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/tmpmoc3mfpf.c'
source_filename = "/tmp/tmpmoc3mfpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @make3Darray_continuousMem(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = mul nsw i32 %11, %12
%14 = load i32, ptr %6, align 4
%15 = mul nsw i32 %13, %14
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %7, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %27
27: ; preds = %71, %3
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %74
31: ; preds = %27
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
store ptr %37, ptr %41, align 8
store i32 0, ptr %10, align 4
br label %42
42: ; preds = %67, %31
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %70
46: ; preds = %42
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %5, align 4
%50 = mul nsw i32 %48, %49
%51 = load i32, ptr %6, align 4
%52 = mul nsw i32 %50, %51
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %6, align 4
%55 = mul nsw i32 %53, %54
%56 = add nsw i32 %52, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %47, i64 %57
%59 = load ptr, ptr %8, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %63, i64 %65
store ptr %58, ptr %66, align 8
br label %67
67: ; preds = %46
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %10, align 4
br label %42, !llvm.loop !6
70: ; preds = %42
br label %71
71: ; preds = %70
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %9, align 4
br label %27, !llvm.loop !8
74: ; preds = %27
%75 = load ptr, ptr %8, align 8
ret ptr %75
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmoc3mfpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @make3Darray_continuousMem(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = mul nsw i32 %11, %12
%14 = load i32, ptr %6, align 4
%15 = mul nsw i32 %13, %14
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 8
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %7, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %8, align 8
store i32 0, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph2, label %78
.lr.ph2: ; preds = %3
br label %30
30: ; preds = %.lr.ph2, %72
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = mul i64 %32, 8
%34 = trunc i64 %33 to i32
%35 = call i64 @malloc(i32 noundef %34)
%36 = inttoptr i64 %35 to ptr
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
store ptr %36, ptr %40, align 8
store i32 0, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph, label %71
.lr.ph: ; preds = %30
br label %44
44: ; preds = %.lr.ph, %65
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %5, align 4
%48 = mul nsw i32 %46, %47
%49 = load i32, ptr %6, align 4
%50 = mul nsw i32 %48, %49
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %6, align 4
%53 = mul nsw i32 %51, %52
%54 = add nsw i32 %50, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %45, i64 %55
%57 = load ptr, ptr %8, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = load i32, ptr %10, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
store ptr %56, ptr %64, align 8
br label %65
65: ; preds = %44
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4
%68 = load i32, ptr %10, align 4
%69 = load i32, ptr %5, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %30
br label %72
72: ; preds = %71
%73 = load i32, ptr %9, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %9, align 4
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %4, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %72
br label %78
78: ; preds = %._crit_edge3, %3
%79 = load ptr, ptr %8, align 8
ret ptr %79
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjsz9do77.c'
source_filename = "/tmp/tmpjsz9do77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global 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/tmpjsz9do77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global 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/tmplr5nhsyv.c'
source_filename = "/tmp/tmplr5nhsyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @product_pythagorean_triplet(i32 noundef 70)
%3 = icmp eq i32 12180, %2
%4 = zext i1 %3 to i32
%5 = call i32 @assert(i32 noundef %4)
%6 = call i32 @product_pythagorean_triplet(i32 noundef 1000)
%7 = icmp eq i32 31875000, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @product_pythagorean_triplet(i32 noundef 10000)
%11 = sext i32 %10 to i64
%12 = icmp eq i64 31875000000, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @product_pythagorean_triplet(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/tmplr5nhsyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @product_pythagorean_triplet(i32 noundef 70)
%3 = icmp eq i32 12180, %2
%4 = zext i1 %3 to i32
%5 = call i32 @assert(i32 noundef %4)
%6 = call i32 @product_pythagorean_triplet(i32 noundef 1000)
%7 = icmp eq i32 31875000, %6
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = call i32 @product_pythagorean_triplet(i32 noundef 10000)
%11 = sext i32 %10 to i64
%12 = icmp eq i64 31875000000, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @product_pythagorean_triplet(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/tmpisdqenl7.c'
source_filename = "/tmp/tmpisdqenl7.c"
target datalayout = "e-m:e-p270: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/tmpisdqenl7.c"
target datalayout = "e-m:e-p270: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/tmpflazckfg.c'
source_filename = "/tmp/tmpflazckfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ZBUFFv05_getErrorName(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @ERR_getErrorName(i64 noundef %3)
ret ptr %4
}
declare ptr @ERR_getErrorName(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/tmpflazckfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ZBUFFv05_getErrorName(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @ERR_getErrorName(i64 noundef %3)
ret ptr %4
}
declare ptr @ERR_getErrorName(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/tmp7x3wzir4.c'
source_filename = "/tmp/tmp7x3wzir4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"all_eops.txt\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"finals.all\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c" PM-x (arcsec) PM-y TDT-UT1 dPsi (mas) dEps\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Command-line option '%s' unrecognized\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"%.9s %.9s %10.7f %.8s %.8s\0A\00", align 1
@.str.8 = private unnamed_addr constant [210 x i8] c"Above was derived from\0Aftp://maia.usno.navy.mil/ser7/finals.all\0Awith only the five Bulletin A earth orientation parameters\0Aextracted (no sigmas, BullB, etc.)\0ARun with 'eop_proc' version Mar 15 2022 20:43:41\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [36 x i8] c"See bottom of file for description\0A\00", align 1
@.str.10 = private unnamed_addr constant [25 x i8] c"%5d %5d %5d %5d %5d %5d\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 [200 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
store i32 0, ptr %11, align 4
store i32 1, ptr %12, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
store double 4.418400e+01, ptr %18, align 8
store double 8.080000e-01, ptr %19, align 8
store ptr @.str.2, ptr %20, align 8
store i32 1, ptr %13, align 4
br label %22
22: ; preds = %76, %2
%23 = load i32, ptr %13, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %79
26: ; preds = %22
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %13, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %36, label %75
36: ; preds = %26
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %13, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
switch i32 %44, label %67 [
i32 105, label %45
i32 111, label %52
i32 115, label %59
]
45: ; preds = %36
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 2
store ptr %51, ptr %7, align 8
br label %74
52: ; preds = %36
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %13, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 2
store ptr %58, ptr %6, align 8
br label %74
59: ; preds = %36
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 2
%66 = call i32 @atoi(ptr noundef %65)
store i32 %66, ptr %12, align 4
br label %74
67: ; preds = %36
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds ptr, ptr %68, i64 %70
%72 = load ptr, ptr %71, align 8
%73 = call i32 @printf(ptr noundef @.str.3, ptr noundef %72)
store i32 -1, ptr %3, align 4
br label %214
74: ; preds = %59, %52, %45
br label %75
75: ; preds = %74, %26
br label %76
76: ; preds = %75
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
br label %22, !llvm.loop !6
79: ; preds = %22
%80 = load ptr, ptr %7, align 8
%81 = call ptr @fopen(ptr noundef %80, ptr noundef @.str.4)
store ptr %81, ptr %8, align 8
%82 = load ptr, ptr %8, align 8
%83 = call i32 @assert(ptr noundef %82)
%84 = load ptr, ptr %6, align 8
%85 = call ptr @fopen(ptr noundef %84, ptr noundef @.str.5)
store ptr %85, ptr %9, align 8
%86 = load ptr, ptr %9, align 8
%87 = call i32 @assert(ptr noundef %86)
%88 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%89 = load ptr, ptr %9, align 8
%90 = call i32 @fwrite(ptr noundef %88, i32 noundef 70, i32 noundef 1, ptr noundef %89)
%91 = load ptr, ptr %9, align 8
%92 = load ptr, ptr %20, align 8
%93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.6, ptr noundef %92)
store i32 0, ptr %13, align 4
br label %94
94: ; preds = %174, %79
%95 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%96 = load ptr, ptr %8, align 8
%97 = call i64 @fgets(ptr noundef %95, i32 noundef 200, ptr noundef %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %104
99: ; preds = %94
%100 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 16
%101 = load i8, ptr %100, align 16
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 32
br label %104
104: ; preds = %99, %94
%105 = phi i1 [ false, %94 ], [ %103, %99 ]
br i1 %105, label %106, label %177
106: ; preds = %104
%107 = load i32, ptr %13, align 4
%108 = load i32, ptr %12, align 4
%109 = srem i32 %107, %108
%110 = icmp ne i32 %109, 0
br i1 %110, label %173, label %111
111: ; preds = %106
%112 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%113 = getelementptr inbounds i8, ptr %112, i64 58
%114 = call double @atof(ptr noundef %113)
store double %114, ptr %21, align 8
%115 = load i32, ptr %13, align 4
%116 = icmp ne i32 %115, 0
br i1 %116, label %121, label %117
117: ; preds = %111
%118 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%119 = getelementptr inbounds i8, ptr %118, i64 7
%120 = call i32 @atoi(ptr noundef %119)
store i32 %120, ptr %11, align 4
br label %121
121: ; preds = %117, %111
%122 = load double, ptr %19, align 8
%123 = load double, ptr %21, align 8
%124 = fsub double %122, %123
%125 = fcmp olt double %124, -5.000000e-01
br i1 %125, label %126, label %129
126: ; preds = %121
%127 = load double, ptr %18, align 8
%128 = fadd double %127, 1.000000e+00
store double %128, ptr %18, align 8
br label %129
129: ; preds = %126, %121
%130 = load double, ptr %21, align 8
store double %130, ptr %19, align 8
%131 = load ptr, ptr %9, align 8
%132 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%133 = getelementptr inbounds i8, ptr %132, i64 18
%134 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%135 = getelementptr inbounds i8, ptr %134, i64 37
%136 = load double, ptr %18, align 8
%137 = load double, ptr %21, align 8
%138 = fsub double %136, %137
%139 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%140 = getelementptr inbounds i8, ptr %139, i64 98
%141 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%142 = getelementptr inbounds i8, ptr %141, i64 117
%143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.7, ptr noundef %133, ptr noundef %135, double noundef %138, ptr noundef %140, ptr noundef %142)
%144 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 95
%145 = load i8, ptr %144, align 1
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 73
br i1 %147, label %151, label %148
148: ; preds = %129
%149 = load i32, ptr %13, align 4
%150 = icmp slt i32 %149, 2900
br i1 %150, label %151, label %154
151: ; preds = %148, %129
%152 = load i32, ptr %14, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %14, align 4
br label %154
154: ; preds = %151, %148
%155 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 16
%156 = load i8, ptr %155, align 16
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 73
br i1 %158, label %159, label %162
159: ; preds = %154
%160 = load i32, ptr %15, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %15, align 4
br label %162
162: ; preds = %159, %154
%163 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 95
%164 = load i8, ptr %163, align 1
%165 = sext i8 %164 to i32
%166 = icmp ne i32 %165, 32
br i1 %166, label %167, label %170
167: ; preds = %162
%168 = load i32, ptr %16, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %16, align 4
br label %170
170: ; preds = %167, %162
%171 = load i32, ptr %17, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %17, align 4
br label %173
173: ; preds = %170, %106
br label %174
174: ; preds = %173
%175 = load i32, ptr %13, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %13, align 4
br label %94, !llvm.loop !8
177: ; preds = %104
%178 = load ptr, ptr %9, align 8
%179 = load ptr, ptr %20, align 8
%180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.6, ptr noundef %179)
%181 = load ptr, ptr %9, align 8
%182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.8)
%183 = load ptr, ptr %9, align 8
%184 = load i32, ptr @SEEK_SET, align 4
%185 = call i32 @fseek(ptr noundef %183, i64 noundef 0, i32 noundef %184)
%186 = load ptr, ptr %9, align 8
%187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.9)
%188 = load ptr, ptr %9, align 8
%189 = load i32, ptr %11, align 4
%190 = load i32, ptr %12, align 4
%191 = load i32, ptr %11, align 4
%192 = load i32, ptr %12, align 4
%193 = load i32, ptr %14, align 4
%194 = mul nsw i32 %192, %193
%195 = add nsw i32 %191, %194
%196 = load i32, ptr %11, align 4
%197 = load i32, ptr %12, align 4
%198 = load i32, ptr %15, align 4
%199 = mul nsw i32 %197, %198
%200 = add nsw i32 %196, %199
%201 = load i32, ptr %11, align 4
%202 = load i32, ptr %12, align 4
%203 = load i32, ptr %16, align 4
%204 = mul nsw i32 %202, %203
%205 = add nsw i32 %201, %204
%206 = load i32, ptr %11, align 4
%207 = load i32, ptr %12, align 4
%208 = load i32, ptr %17, align 4
%209 = mul nsw i32 %207, %208
%210 = add nsw i32 %206, %209
%211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.10, i32 noundef %189, i32 noundef %190, i32 noundef %195, i32 noundef %200, i32 noundef %205, i32 noundef %210)
%212 = load ptr, ptr %9, align 8
%213 = call i32 @fclose(ptr noundef %212)
store i32 0, ptr %3, align 4
br label %214
214: ; preds = %177, %67
%215 = load i32, ptr %3, align 4
ret i32 %215
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7x3wzir4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"all_eops.txt\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"finals.all\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c" PM-x (arcsec) PM-y TDT-UT1 dPsi (mas) dEps\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Command-line option '%s' unrecognized\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"%.9s %.9s %10.7f %.8s %.8s\0A\00", align 1
@.str.8 = private unnamed_addr constant [210 x i8] c"Above was derived from\0Aftp://maia.usno.navy.mil/ser7/finals.all\0Awith only the five Bulletin A earth orientation parameters\0Aextracted (no sigmas, BullB, etc.)\0ARun with 'eop_proc' version Mar 15 2022 20:43:41\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [36 x i8] c"See bottom of file for description\0A\00", align 1
@.str.10 = private unnamed_addr constant [25 x i8] c"%5d %5d %5d %5d %5d %5d\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 [200 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca ptr, align 8
%21 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store ptr @.str.1, ptr %7, align 8
store i32 0, ptr %11, align 4
store i32 1, ptr %12, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
store double 4.418400e+01, ptr %18, align 8
store double 8.080000e-01, ptr %19, align 8
store ptr @.str.2, ptr %20, align 8
store i32 1, ptr %13, align 4
%22 = load i32, ptr %13, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %81
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %75
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %13, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %35, label %74
35: ; preds = %25
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %13, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
switch i32 %43, label %66 [
i32 105, label %44
i32 111, label %51
i32 115, label %58
]
44: ; preds = %35
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %13, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 2
store ptr %50, ptr %7, align 8
br label %73
51: ; preds = %35
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %52, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 2
store ptr %57, ptr %6, align 8
br label %73
58: ; preds = %35
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 2
%65 = call i32 @atoi(ptr noundef %64)
store i32 %65, ptr %12, align 4
br label %73
66: ; preds = %35
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 @printf(ptr noundef @.str.3, ptr noundef %71)
store i32 -1, ptr %3, align 4
br label %216
73: ; preds = %58, %51, %44
br label %74
74: ; preds = %73, %25
br label %75
75: ; preds = %74
%76 = load i32, ptr %13, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %13, align 4
%78 = load i32, ptr %13, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %2
%82 = load ptr, ptr %7, align 8
%83 = call ptr @fopen(ptr noundef %82, ptr noundef @.str.4)
store ptr %83, ptr %8, align 8
%84 = load ptr, ptr %8, align 8
%85 = call i32 @assert(ptr noundef %84)
%86 = load ptr, ptr %6, align 8
%87 = call ptr @fopen(ptr noundef %86, ptr noundef @.str.5)
store ptr %87, ptr %9, align 8
%88 = load ptr, ptr %9, align 8
%89 = call i32 @assert(ptr noundef %88)
%90 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%91 = load ptr, ptr %9, align 8
%92 = call i32 @fwrite(ptr noundef %90, i32 noundef 70, i32 noundef 1, ptr noundef %91)
%93 = load ptr, ptr %9, align 8
%94 = load ptr, ptr %20, align 8
%95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.6, ptr noundef %94)
store i32 0, ptr %13, align 4
br label %96
96: ; preds = %176, %81
%97 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%98 = load ptr, ptr %8, align 8
%99 = call i64 @fgets(ptr noundef %97, i32 noundef 200, ptr noundef %98)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %106
101: ; preds = %96
%102 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 16
%103 = load i8, ptr %102, align 16
%104 = sext i8 %103 to i32
%105 = icmp ne i32 %104, 32
br label %106
106: ; preds = %101, %96
%107 = phi i1 [ false, %96 ], [ %105, %101 ]
br i1 %107, label %108, label %179
108: ; preds = %106
%109 = load i32, ptr %13, align 4
%110 = load i32, ptr %12, align 4
%111 = srem i32 %109, %110
%112 = icmp ne i32 %111, 0
br i1 %112, label %175, label %113
113: ; preds = %108
%114 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%115 = getelementptr inbounds i8, ptr %114, i64 58
%116 = call double @atof(ptr noundef %115)
store double %116, ptr %21, align 8
%117 = load i32, ptr %13, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %123, label %119
119: ; preds = %113
%120 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%121 = getelementptr inbounds i8, ptr %120, i64 7
%122 = call i32 @atoi(ptr noundef %121)
store i32 %122, ptr %11, align 4
br label %123
123: ; preds = %119, %113
%124 = load double, ptr %19, align 8
%125 = load double, ptr %21, align 8
%126 = fsub double %124, %125
%127 = fcmp olt double %126, -5.000000e-01
br i1 %127, label %128, label %131
128: ; preds = %123
%129 = load double, ptr %18, align 8
%130 = fadd double %129, 1.000000e+00
store double %130, ptr %18, align 8
br label %131
131: ; preds = %128, %123
%132 = load double, ptr %21, align 8
store double %132, ptr %19, align 8
%133 = load ptr, ptr %9, align 8
%134 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%135 = getelementptr inbounds i8, ptr %134, i64 18
%136 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%137 = getelementptr inbounds i8, ptr %136, i64 37
%138 = load double, ptr %18, align 8
%139 = load double, ptr %21, align 8
%140 = fsub double %138, %139
%141 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%142 = getelementptr inbounds i8, ptr %141, i64 98
%143 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%144 = getelementptr inbounds i8, ptr %143, i64 117
%145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.7, ptr noundef %135, ptr noundef %137, double noundef %140, ptr noundef %142, ptr noundef %144)
%146 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 95
%147 = load i8, ptr %146, align 1
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 73
br i1 %149, label %153, label %150
150: ; preds = %131
%151 = load i32, ptr %13, align 4
%152 = icmp slt i32 %151, 2900
br i1 %152, label %153, label %156
153: ; preds = %150, %131
%154 = load i32, ptr %14, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %14, align 4
br label %156
156: ; preds = %153, %150
%157 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 16
%158 = load i8, ptr %157, align 16
%159 = sext i8 %158 to i32
%160 = icmp eq i32 %159, 73
br i1 %160, label %161, label %164
161: ; preds = %156
%162 = load i32, ptr %15, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %15, align 4
br label %164
164: ; preds = %161, %156
%165 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 95
%166 = load i8, ptr %165, align 1
%167 = sext i8 %166 to i32
%168 = icmp ne i32 %167, 32
br i1 %168, label %169, label %172
169: ; preds = %164
%170 = load i32, ptr %16, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %16, align 4
br label %172
172: ; preds = %169, %164
%173 = load i32, ptr %17, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %17, align 4
br label %175
175: ; preds = %172, %108
br label %176
176: ; preds = %175
%177 = load i32, ptr %13, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %13, align 4
br label %96, !llvm.loop !8
179: ; preds = %106
%180 = load ptr, ptr %9, align 8
%181 = load ptr, ptr %20, align 8
%182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.6, ptr noundef %181)
%183 = load ptr, ptr %9, align 8
%184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.8)
%185 = load ptr, ptr %9, align 8
%186 = load i32, ptr @SEEK_SET, align 4
%187 = call i32 @fseek(ptr noundef %185, i64 noundef 0, i32 noundef %186)
%188 = load ptr, ptr %9, align 8
%189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.9)
%190 = load ptr, ptr %9, align 8
%191 = load i32, ptr %11, align 4
%192 = load i32, ptr %12, align 4
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr %12, align 4
%195 = load i32, ptr %14, align 4
%196 = mul nsw i32 %194, %195
%197 = add nsw i32 %193, %196
%198 = load i32, ptr %11, align 4
%199 = load i32, ptr %12, align 4
%200 = load i32, ptr %15, align 4
%201 = mul nsw i32 %199, %200
%202 = add nsw i32 %198, %201
%203 = load i32, ptr %11, align 4
%204 = load i32, ptr %12, align 4
%205 = load i32, ptr %16, align 4
%206 = mul nsw i32 %204, %205
%207 = add nsw i32 %203, %206
%208 = load i32, ptr %11, align 4
%209 = load i32, ptr %12, align 4
%210 = load i32, ptr %17, align 4
%211 = mul nsw i32 %209, %210
%212 = add nsw i32 %208, %211
%213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.10, i32 noundef %191, i32 noundef %192, i32 noundef %197, i32 noundef %202, i32 noundef %207, i32 noundef %212)
%214 = load ptr, ptr %9, align 8
%215 = call i32 @fclose(ptr noundef %214)
store i32 0, ptr %3, align 4
br label %216
216: ; preds = %179, %66
%217 = load i32, ptr %3, align 4
ret i32 %217
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsrot9vq6.c'
source_filename = "/tmp/tmpsrot9vq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_copy_to_offset(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %13)
ret i8 1
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsrot9vq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_copy_to_offset(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %8, align 8
%14 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %13)
ret i8 1
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_idk7fdd.c'
source_filename = "/tmp/tmp_idk7fdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ETH_ALEN = dso_local global i32 0, align 4
@ETH_P_IP = dso_local global i64 0, align 8
@INADDR_LOOPBACK = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_idk7fdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ETH_ALEN = dso_local global i32 0, align 4
@ETH_P_IP = dso_local global i64 0, align 8
@INADDR_LOOPBACK = 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/tmpeallyym3.c'
source_filename = "/tmp/tmpeallyym3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @console_getc() #0 {
br label %1
1: ; preds = %5, %0
%2 = call i32 (...) @SerialIsReadyChar()
%3 = icmp ne i32 %2, 0
%4 = xor i1 %3, true
br i1 %4, label %5, label %6
5: ; preds = %1
br label %1, !llvm.loop !6
6: ; preds = %1
%7 = call i32 (...) @SerialIsGetChar()
%8 = and i32 %7, 255
ret i32 %8
}
declare i32 @SerialIsReadyChar(...) #1
declare i32 @SerialIsGetChar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpeallyym3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @console_getc() #0 {
br label %1
1: ; preds = %1, %0
%2 = call i32 (...) @SerialIsReadyChar()
%3 = icmp ne i32 %2, 0
%4 = xor i1 %3, true
br i1 %4, label %1, label %5, !llvm.loop !6
5: ; preds = %1
%6 = call i32 (...) @SerialIsGetChar()
%7 = and i32 %6, 255
ret i32 %7
}
declare i32 @SerialIsReadyChar(...) #1
declare i32 @SerialIsGetChar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptuwil6ig.c'
source_filename = "/tmp/tmptuwil6ig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [31 x i8] c"position is %d and item is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Item not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 20, i1 false)
store i32 0, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 7, ptr %5, align 4
br label %6
6: ; preds = %21, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %24
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %21
17: ; preds = %10
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %5, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %19)
store i32 0, ptr %1, align 4
br label %26
21: ; preds = %10
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %26
26: ; preds = %24, %17
%27 = load i32, ptr %1, align 4
ret i32 %27
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptuwil6ig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [31 x i8] c"position is %d and item is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Item not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.array, i64 20, i1 false)
store i32 0, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 7, ptr %5, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %20
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %20
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %18)
store i32 0, ptr %1, align 4
br label %28
20: ; preds = %9
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %28
28: ; preds = %26, %16
%29 = load i32, ptr %1, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp67t_5da.c'
source_filename = "/tmp/tmpp67t_5da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"bar\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"baz\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @anoi(i32 noundef %4, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @anoi(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp67t_5da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"bar\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"baz\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @anoi(i32 noundef %4, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @anoi(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1z7e_c69.c'
source_filename = "/tmp/tmp1z7e_c69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"\0AResult of Multiplication %.2f and %.2f is %.2f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Multiplication(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = load float, ptr %3, align 4
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %6, float noundef %9)
%11 = load float, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = fmul float %11, %12
ret float %13
}
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1z7e_c69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"\0AResult of Multiplication %.2f and %.2f is %.2f.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Multiplication(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = load float, ptr %3, align 4
%8 = load float, ptr %4, align 4
%9 = fmul float %7, %8
%10 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %6, float noundef %9)
%11 = load float, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = fmul float %11, %12
ret float %13
}
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqk3yz5g1.c'
source_filename = "/tmp/tmpqk3yz5g1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sem_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_sem(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 i64 @sem_init(ptr noundef %3, i32 noundef 0, i32 noundef 0)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @terminal_error(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
ret void
}
declare i64 @sem_init(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terminal_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/tmpqk3yz5g1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sem_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_sem(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 i64 @sem_init(ptr noundef %3, i32 noundef 0, i32 noundef 0)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @terminal_error(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
ret void
}
declare i64 @sem_init(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terminal_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/tmptbbfakjr.c'
source_filename = "/tmp/tmptbbfakjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Calling waitpid()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitpid(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = call i32 @anvil_syslog(i32 noundef 0, ptr noundef @.str)
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @wait4(i32 noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef null)
ret i32 %11
}
declare i32 @anvil_syslog(i32 noundef, ptr noundef) #1
declare i32 @wait4(i32 noundef, ptr 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/tmptbbfakjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Calling waitpid()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitpid(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = call i32 @anvil_syslog(i32 noundef 0, ptr noundef @.str)
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @wait4(i32 noundef %8, ptr noundef %9, i32 noundef %10, ptr noundef null)
ret i32 %11
}
declare i32 @anvil_syslog(i32 noundef, ptr noundef) #1
declare i32 @wait4(i32 noundef, ptr 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/tmpkltych4f.c'
source_filename = "/tmp/tmpkltych4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFile seek test\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/tmp/test.dat\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Cannot open file for reading\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%3d\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [20 x i8] c"SEEK_END failed %d\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [16 x i8] c"Cannot SEEK_SET\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"SEEK_SET failed %d\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [16 x i8] c"Cannot SEEK_CUR\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"SEEK_CUR failed %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"Test succeeded.\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"Test FAILED!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %122
11: ; preds = %0
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %19, %11
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 256
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = call i32 @putc(i32 noundef %16, ptr noundef %17)
br label %19
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %12, !llvm.loop !6
22: ; preds = %12
%23 = load ptr, ptr %2, align 8
%24 = call ptr @freopen(ptr noundef @.str.1, ptr noundef @.str.3, ptr noundef %23)
%25 = load ptr, ptr %2, align 8
%26 = icmp ne ptr %24, %25
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %1, align 4
br label %122
29: ; preds = %22
store i32 1, ptr %3, align 4
br label %30
30: ; preds = %106, %29
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 255
br i1 %32, label %33, label %109
33: ; preds = %30
%34 = load i32, ptr %3, align 4
%35 = call i32 @printf(ptr noundef @.str.5, i32 noundef %34)
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %3, align 4
%38 = sub nsw i32 0, %37
%39 = sext i32 %38 to i64
%40 = load i32, ptr @SEEK_END, align 4
%41 = call i64 @fseek(ptr noundef %36, i64 noundef %39, i32 noundef %40)
%42 = load ptr, ptr %2, align 8
%43 = call i32 @getc(ptr noundef %42)
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %3, align 4
%45 = sub nsw i32 256, %44
%46 = icmp ne i32 %43, %45
br i1 %46, label %47, label %50
47: ; preds = %33
%48 = load i32, ptr %4, align 4
%49 = call i32 @printf(ptr noundef @.str.6, i32 noundef %48)
br label %109
50: ; preds = %33
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = load i32, ptr @SEEK_SET, align 4
%55 = call i64 @fseek(ptr noundef %51, i64 noundef %53, i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @puts(ptr noundef @.str.7)
br label %109
59: ; preds = %50
%60 = load ptr, ptr %2, align 8
%61 = call i32 @getc(ptr noundef %60)
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp ne i32 %61, %62
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, ptr %4, align 4
%66 = call i32 @printf(ptr noundef @.str.8, i32 noundef %65)
br label %109
67: ; preds = %59
%68 = load ptr, ptr %2, align 8
%69 = load i32, ptr %3, align 4
%70 = sext i32 %69 to i64
%71 = load i32, ptr @SEEK_SET, align 4
%72 = call i64 @fseek(ptr noundef %68, i64 noundef %70, i32 noundef %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %67
%75 = call i32 @puts(ptr noundef @.str.7)
br label %109
76: ; preds = %67
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %3, align 4
%79 = icmp sge i32 %78, 128
%80 = zext i1 %79 to i64
%81 = select i1 %79, i32 -128, i32 128
%82 = sext i32 %81 to i64
%83 = load i32, ptr @SEEK_CUR, align 4
%84 = call i64 @fseek(ptr noundef %77, i64 noundef %82, i32 noundef %83)
%85 = icmp ne i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %76
%87 = call i32 @puts(ptr noundef @.str.9)
br label %109
88: ; preds = %76
%89 = load ptr, ptr %2, align 8
%90 = call i32 @getc(ptr noundef %89)
store i32 %90, ptr %4, align 4
%91 = load i32, ptr %3, align 4
%92 = icmp sge i32 %91, 128
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, ptr %3, align 4
%95 = sub nsw i32 %94, 128
br label %99
96: ; preds = %88
%97 = load i32, ptr %3, align 4
%98 = add nsw i32 %97, 128
br label %99
99: ; preds = %96, %93
%100 = phi i32 [ %95, %93 ], [ %98, %96 ]
%101 = icmp ne i32 %90, %100
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i32, ptr %4, align 4
%104 = call i32 @printf(ptr noundef @.str.10, i32 noundef %103)
br label %109
105: ; preds = %99
br label %106
106: ; preds = %105
%107 = load i32, ptr %3, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %3, align 4
br label %30, !llvm.loop !8
109: ; preds = %102, %86, %74, %64, %57, %47, %30
%110 = load ptr, ptr %2, align 8
%111 = call i32 @fclose(ptr noundef %110)
%112 = call i32 @remove(ptr noundef @.str.1)
%113 = load i32, ptr %3, align 4
%114 = icmp sgt i32 %113, 255
%115 = zext i1 %114 to i64
%116 = select i1 %114, ptr @.str.11, ptr @.str.12
%117 = call i32 @puts(ptr noundef %116)
%118 = load i32, ptr %3, align 4
%119 = icmp sgt i32 %118, 255
%120 = zext i1 %119 to i64
%121 = select i1 %119, i32 0, i32 1
store i32 %121, ptr %1, align 4
br label %122
122: ; preds = %109, %27, %9
%123 = load i32, ptr %1, align 4
ret i32 %123
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @putc(i32 noundef, ptr noundef) #1
declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkltych4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AFile seek test\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/tmp/test.dat\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Cannot open file for reading\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%3d\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [20 x i8] c"SEEK_END failed %d\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [16 x i8] c"Cannot SEEK_SET\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"SEEK_SET failed %d\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [16 x i8] c"Cannot SEEK_CUR\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"SEEK_CUR failed %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"Test succeeded.\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"Test FAILED!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %124
11: ; preds = %0
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 256
br i1 %13, label %.lr.ph, label %23
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %18
%15 = load i32, ptr %3, align 4
%16 = load ptr, ptr %2, align 8
%17 = call i32 @putc(i32 noundef %15, ptr noundef %16)
br label %18
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 256
br i1 %22, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %11
%24 = load ptr, ptr %2, align 8
%25 = call ptr @freopen(ptr noundef @.str.1, ptr noundef @.str.3, ptr noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = icmp ne ptr %25, %26
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %1, align 4
br label %124
30: ; preds = %23
store i32 1, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 255
br i1 %32, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %33
33: ; preds = %.lr.ph2, %106
%34 = load i32, ptr %3, align 4
%35 = call i32 @printf(ptr noundef @.str.5, i32 noundef %34)
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %3, align 4
%38 = sub nsw i32 0, %37
%39 = sext i32 %38 to i64
%40 = load i32, ptr @SEEK_END, align 4
%41 = call i64 @fseek(ptr noundef %36, i64 noundef %39, i32 noundef %40)
%42 = load ptr, ptr %2, align 8
%43 = call i32 @getc(ptr noundef %42)
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %3, align 4
%45 = sub nsw i32 256, %44
%46 = icmp ne i32 %43, %45
br i1 %46, label %47, label %50
47: ; preds = %33
%48 = load i32, ptr %4, align 4
%49 = call i32 @printf(ptr noundef @.str.6, i32 noundef %48)
br label %111
50: ; preds = %33
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = load i32, ptr @SEEK_SET, align 4
%55 = call i64 @fseek(ptr noundef %51, i64 noundef %53, i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @puts(ptr noundef @.str.7)
br label %111
59: ; preds = %50
%60 = load ptr, ptr %2, align 8
%61 = call i32 @getc(ptr noundef %60)
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp ne i32 %61, %62
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, ptr %4, align 4
%66 = call i32 @printf(ptr noundef @.str.8, i32 noundef %65)
br label %111
67: ; preds = %59
%68 = load ptr, ptr %2, align 8
%69 = load i32, ptr %3, align 4
%70 = sext i32 %69 to i64
%71 = load i32, ptr @SEEK_SET, align 4
%72 = call i64 @fseek(ptr noundef %68, i64 noundef %70, i32 noundef %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %67
%75 = call i32 @puts(ptr noundef @.str.7)
br label %111
76: ; preds = %67
%77 = load ptr, ptr %2, align 8
%78 = load i32, ptr %3, align 4
%79 = icmp sge i32 %78, 128
%80 = zext i1 %79 to i64
%81 = select i1 %79, i32 -128, i32 128
%82 = sext i32 %81 to i64
%83 = load i32, ptr @SEEK_CUR, align 4
%84 = call i64 @fseek(ptr noundef %77, i64 noundef %82, i32 noundef %83)
%85 = icmp ne i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %76
%87 = call i32 @puts(ptr noundef @.str.9)
br label %111
88: ; preds = %76
%89 = load ptr, ptr %2, align 8
%90 = call i32 @getc(ptr noundef %89)
store i32 %90, ptr %4, align 4
%91 = load i32, ptr %3, align 4
%92 = icmp sge i32 %91, 128
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, ptr %3, align 4
%95 = sub nsw i32 %94, 128
br label %99
96: ; preds = %88
%97 = load i32, ptr %3, align 4
%98 = add nsw i32 %97, 128
br label %99
99: ; preds = %96, %93
%100 = phi i32 [ %95, %93 ], [ %98, %96 ]
%101 = icmp ne i32 %90, %100
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i32, ptr %4, align 4
%104 = call i32 @printf(ptr noundef @.str.10, i32 noundef %103)
br label %111
105: ; preds = %99
br label %106
106: ; preds = %105
%107 = load i32, ptr %3, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %3, align 4
%109 = load i32, ptr %3, align 4
%110 = icmp sle i32 %109, 255
br i1 %110, label %33, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %106
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %111
111: ; preds = %.loopexit, %102, %86, %74, %64, %57, %47
%112 = load ptr, ptr %2, align 8
%113 = call i32 @fclose(ptr noundef %112)
%114 = call i32 @remove(ptr noundef @.str.1)
%115 = load i32, ptr %3, align 4
%116 = icmp sgt i32 %115, 255
%117 = zext i1 %116 to i64
%118 = select i1 %116, ptr @.str.11, ptr @.str.12
%119 = call i32 @puts(ptr noundef %118)
%120 = load i32, ptr %3, align 4
%121 = icmp sgt i32 %120, 255
%122 = zext i1 %121 to i64
%123 = select i1 %121, i32 0, i32 1
store i32 %123, ptr %1, align 4
br label %124
124: ; preds = %111, %28, %9
%125 = load i32, ptr %1, align 4
ret i32 %125
}
declare i32 @puts(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @putc(i32 noundef, ptr noundef) #1
declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i64 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp67xg93y9.c'
source_filename = "/tmp/tmp67xg93y9.c"
target datalayout = "e-m:e-p270: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/tmp67xg93y9.c"
target datalayout = "e-m:e-p270: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/tmp29g5pcy1.c'
source_filename = "/tmp/tmp29g5pcy1.c"
target datalayout = "e-m:e-p270: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/tmp29g5pcy1.c"
target datalayout = "e-m:e-p270: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/tmp6czj7cuo.c'
source_filename = "/tmp/tmp6czj7cuo.c"
target datalayout = "e-m:e-p270: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/tmp6czj7cuo.c"
target datalayout = "e-m:e-p270: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/tmpn2bdok59.c'
source_filename = "/tmp/tmpn2bdok59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_retrieve_standard_solution(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 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
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @_ada_use_c2phc4c(i32 noundef 34, ptr noundef %6, ptr noundef %10, ptr noundef %11, i32 noundef 0)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
ret i32 %13
}
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/tmpn2bdok59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_retrieve_standard_solution(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 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
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @_ada_use_c2phc4c(i32 noundef 34, ptr noundef %6, ptr noundef %10, ptr noundef %11, i32 noundef 0)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
ret i32 %13
}
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/tmp9w8td7iu.c'
source_filename = "/tmp/tmp9w8td7iu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_operation() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 (...) @random()
%6 = srem i32 %5, 50
%7 = add nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = add i64 %10, 1
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %4, align 8
store i32 0, ptr %1, align 4
br label %15
15: ; preds = %29, %0
%16 = load i32, ptr %1, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %32
19: ; preds = %15
%20 = call i32 (...) @random()
%21 = srem i32 %20, 26
%22 = add nsw i32 %21, 97
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %1, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 %24, ptr %28, align 1
br label %29
29: ; preds = %19
%30 = load i32, ptr %1, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %1, align 4
br label %15, !llvm.loop !6
32: ; preds = %15
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %2, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
%37 = load ptr, ptr %4, align 8
ret ptr %37
}
declare i32 @random(...) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9w8td7iu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_operation() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 (...) @random()
%6 = srem i32 %5, 50
%7 = add nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = add i64 %10, 1
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %4, align 8
store i32 0, ptr %1, align 4
%15 = load i32, ptr %1, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %28
%19 = call i32 (...) @random()
%20 = srem i32 %19, 26
%21 = add nsw i32 %20, 97
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %1, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
br label %28
28: ; preds = %18
%29 = load i32, ptr %1, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %1, align 4
%31 = load i32, ptr %1, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %0
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 0, ptr %38, align 1
%39 = load ptr, ptr %4, align 8
ret ptr %39
}
declare i32 @random(...) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1y6cyo54.c'
source_filename = "/tmp/tmp1y6cyo54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getkbcode() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = call signext i8 @inportb(i32 noundef 96)
store i8 %3, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 16
br i1 %6, label %7, label %8
7: ; preds = %0
store i8 81, ptr %1, align 1
br label %228
8: ; preds = %0
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 20
br i1 %11, label %12, label %13
12: ; preds = %8
store i8 84, ptr %1, align 1
br label %228
13: ; preds = %8
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 24
br i1 %16, label %17, label %18
17: ; preds = %13
store i8 79, ptr %1, align 1
br label %228
18: ; preds = %13
%19 = load i8, ptr %2, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 28
br i1 %21, label %22, label %23
22: ; preds = %18
store i8 10, ptr %1, align 1
br label %228
23: ; preds = %18
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 32
br i1 %26, label %27, label %28
27: ; preds = %23
store i8 68, ptr %1, align 1
br label %228
28: ; preds = %23
%29 = load i8, ptr %2, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 36
br i1 %31, label %32, label %33
32: ; preds = %28
store i8 74, ptr %1, align 1
br label %228
33: ; preds = %28
%34 = load i8, ptr %2, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 44
br i1 %36, label %37, label %38
37: ; preds = %33
store i8 90, ptr %1, align 1
br label %228
38: ; preds = %33
%39 = load i8, ptr %2, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 48
br i1 %41, label %42, label %43
42: ; preds = %38
store i8 66, ptr %1, align 1
br label %228
43: ; preds = %38
%44 = load i8, ptr %2, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 52
br i1 %46, label %47, label %48
47: ; preds = %43
store i8 46, ptr %1, align 1
br label %228
48: ; preds = %43
%49 = load i8, ptr %2, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 12
br i1 %51, label %52, label %53
52: ; preds = %48
store i8 45, ptr %1, align 1
br label %228
53: ; preds = %48
%54 = load i8, ptr %2, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 8
br i1 %56, label %57, label %58
57: ; preds = %53
store i8 55, ptr %1, align 1
br label %228
58: ; preds = %53
%59 = load i8, ptr %2, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 4
br i1 %61, label %62, label %63
62: ; preds = %58
store i8 51, ptr %1, align 1
br label %228
63: ; preds = %58
%64 = load i8, ptr %2, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 5
br i1 %66, label %67, label %68
67: ; preds = %63
store i8 52, ptr %1, align 1
br label %228
68: ; preds = %63
%69 = load i8, ptr %2, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 9
br i1 %71, label %72, label %73
72: ; preds = %68
store i8 56, ptr %1, align 1
br label %228
73: ; preds = %68
%74 = load i8, ptr %2, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 13
br i1 %76, label %77, label %78
77: ; preds = %73
store i8 61, ptr %1, align 1
br label %228
78: ; preds = %73
%79 = load i8, ptr %2, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 17
br i1 %81, label %82, label %83
82: ; preds = %78
store i8 87, ptr %1, align 1
br label %228
83: ; preds = %78
%84 = load i8, ptr %2, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 21
br i1 %86, label %87, label %88
87: ; preds = %83
store i8 89, ptr %1, align 1
br label %228
88: ; preds = %83
%89 = load i8, ptr %2, align 1
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 25
br i1 %91, label %92, label %93
92: ; preds = %88
store i8 80, ptr %1, align 1
br label %228
93: ; preds = %88
%94 = load i8, ptr %2, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 33
br i1 %96, label %97, label %98
97: ; preds = %93
store i8 70, ptr %1, align 1
br label %228
98: ; preds = %93
%99 = load i8, ptr %2, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 37
br i1 %101, label %102, label %103
102: ; preds = %98
store i8 75, ptr %1, align 1
br label %228
103: ; preds = %98
%104 = load i8, ptr %2, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 45
br i1 %106, label %107, label %108
107: ; preds = %103
store i8 88, ptr %1, align 1
br label %228
108: ; preds = %103
%109 = load i8, ptr %2, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 49
br i1 %111, label %112, label %113
112: ; preds = %108
store i8 78, ptr %1, align 1
br label %228
113: ; preds = %108
%114 = load i8, ptr %2, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 57
br i1 %116, label %117, label %118
117: ; preds = %113
store i8 32, ptr %1, align 1
br label %228
118: ; preds = %113
%119 = load i8, ptr %2, align 1
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 2
br i1 %121, label %122, label %123
122: ; preds = %118
store i8 49, ptr %1, align 1
br label %228
123: ; preds = %118
%124 = load i8, ptr %2, align 1
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 6
br i1 %126, label %127, label %128
127: ; preds = %123
store i8 53, ptr %1, align 1
br label %228
128: ; preds = %123
%129 = load i8, ptr %2, align 1
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 10
br i1 %131, label %132, label %133
132: ; preds = %128
store i8 57, ptr %1, align 1
br label %228
133: ; preds = %128
%134 = load i8, ptr %2, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 14
br i1 %136, label %137, label %138
137: ; preds = %133
store i8 8, ptr %1, align 1
br label %228
138: ; preds = %133
%139 = load i8, ptr %2, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 18
br i1 %141, label %142, label %143
142: ; preds = %138
store i8 69, ptr %1, align 1
br label %228
143: ; preds = %138
%144 = load i8, ptr %2, align 1
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 22
br i1 %146, label %147, label %148
147: ; preds = %143
store i8 85, ptr %1, align 1
br label %228
148: ; preds = %143
%149 = load i8, ptr %2, align 1
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 26
br i1 %151, label %152, label %153
152: ; preds = %148
store i8 91, ptr %1, align 1
br label %228
153: ; preds = %148
%154 = load i8, ptr %2, align 1
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 30
br i1 %156, label %157, label %158
157: ; preds = %153
store i8 65, ptr %1, align 1
br label %228
158: ; preds = %153
%159 = load i8, ptr %2, align 1
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 34
br i1 %161, label %162, label %163
162: ; preds = %158
store i8 71, ptr %1, align 1
br label %228
163: ; preds = %158
%164 = load i8, ptr %2, align 1
%165 = sext i8 %164 to i32
%166 = icmp eq i32 %165, 38
br i1 %166, label %167, label %168
167: ; preds = %163
store i8 76, ptr %1, align 1
br label %228
168: ; preds = %163
%169 = load i8, ptr %2, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 46
br i1 %171, label %172, label %173
172: ; preds = %168
store i8 67, ptr %1, align 1
br label %228
173: ; preds = %168
%174 = load i8, ptr %2, align 1
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 50
br i1 %176, label %177, label %178
177: ; preds = %173
store i8 77, ptr %1, align 1
br label %228
178: ; preds = %173
%179 = load i8, ptr %2, align 1
%180 = sext i8 %179 to i32
%181 = icmp eq i32 %180, 3
br i1 %181, label %182, label %183
182: ; preds = %178
store i8 50, ptr %1, align 1
br label %228
183: ; preds = %178
%184 = load i8, ptr %2, align 1
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 7
br i1 %186, label %187, label %188
187: ; preds = %183
store i8 54, ptr %1, align 1
br label %228
188: ; preds = %183
%189 = load i8, ptr %2, align 1
%190 = sext i8 %189 to i32
%191 = icmp eq i32 %190, 11
br i1 %191, label %192, label %193
192: ; preds = %188
store i8 48, ptr %1, align 1
br label %228
193: ; preds = %188
%194 = load i8, ptr %2, align 1
%195 = sext i8 %194 to i32
%196 = icmp eq i32 %195, 19
br i1 %196, label %197, label %198
197: ; preds = %193
store i8 82, ptr %1, align 1
br label %228
198: ; preds = %193
%199 = load i8, ptr %2, align 1
%200 = sext i8 %199 to i32
%201 = icmp eq i32 %200, 23
br i1 %201, label %202, label %203
202: ; preds = %198
store i8 73, ptr %1, align 1
br label %228
203: ; preds = %198
%204 = load i8, ptr %2, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %205, 27
br i1 %206, label %207, label %208
207: ; preds = %203
store i8 93, ptr %1, align 1
br label %228
208: ; preds = %203
%209 = load i8, ptr %2, align 1
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 31
br i1 %211, label %212, label %213
212: ; preds = %208
store i8 83, ptr %1, align 1
br label %228
213: ; preds = %208
%214 = load i8, ptr %2, align 1
%215 = sext i8 %214 to i32
%216 = icmp eq i32 %215, 35
br i1 %216, label %217, label %218
217: ; preds = %213
store i8 72, ptr %1, align 1
br label %228
218: ; preds = %213
%219 = load i8, ptr %2, align 1
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 47
br i1 %221, label %222, label %223
222: ; preds = %218
store i8 86, ptr %1, align 1
br label %228
223: ; preds = %218
%224 = load i8, ptr %2, align 1
%225 = sext i8 %224 to i32
%226 = icmp eq i32 %225, 39
br i1 %226, label %227, label %228
227: ; preds = %223
store i8 59, ptr %1, align 1
br label %228
228: ; preds = %7, %12, %17, %22, %27, %32, %37, %42, %47, %52, %57, %62, %67, %72, %77, %82, %87, %92, %97, %102, %107, %112, %117, %122, %127, %132, %137, %142, %147, %152, %157, %162, %167, %172, %177, %182, %187, %192, %197, %202, %207, %212, %217, %222, %227, %223
%229 = load i8, ptr %1, align 1
ret i8 %229
}
declare signext i8 @inportb(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/tmp1y6cyo54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getkbcode() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = call signext i8 @inportb(i32 noundef 96)
store i8 %3, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 16
br i1 %6, label %7, label %8
7: ; preds = %0
store i8 81, ptr %1, align 1
br label %228
8: ; preds = %0
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 20
br i1 %11, label %12, label %13
12: ; preds = %8
store i8 84, ptr %1, align 1
br label %228
13: ; preds = %8
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 24
br i1 %16, label %17, label %18
17: ; preds = %13
store i8 79, ptr %1, align 1
br label %228
18: ; preds = %13
%19 = load i8, ptr %2, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 28
br i1 %21, label %22, label %23
22: ; preds = %18
store i8 10, ptr %1, align 1
br label %228
23: ; preds = %18
%24 = load i8, ptr %2, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 32
br i1 %26, label %27, label %28
27: ; preds = %23
store i8 68, ptr %1, align 1
br label %228
28: ; preds = %23
%29 = load i8, ptr %2, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 36
br i1 %31, label %32, label %33
32: ; preds = %28
store i8 74, ptr %1, align 1
br label %228
33: ; preds = %28
%34 = load i8, ptr %2, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 44
br i1 %36, label %37, label %38
37: ; preds = %33
store i8 90, ptr %1, align 1
br label %228
38: ; preds = %33
%39 = load i8, ptr %2, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 48
br i1 %41, label %42, label %43
42: ; preds = %38
store i8 66, ptr %1, align 1
br label %228
43: ; preds = %38
%44 = load i8, ptr %2, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 52
br i1 %46, label %47, label %48
47: ; preds = %43
store i8 46, ptr %1, align 1
br label %228
48: ; preds = %43
%49 = load i8, ptr %2, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 12
br i1 %51, label %52, label %53
52: ; preds = %48
store i8 45, ptr %1, align 1
br label %228
53: ; preds = %48
%54 = load i8, ptr %2, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 8
br i1 %56, label %57, label %58
57: ; preds = %53
store i8 55, ptr %1, align 1
br label %228
58: ; preds = %53
%59 = load i8, ptr %2, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 4
br i1 %61, label %62, label %63
62: ; preds = %58
store i8 51, ptr %1, align 1
br label %228
63: ; preds = %58
%64 = load i8, ptr %2, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 5
br i1 %66, label %67, label %68
67: ; preds = %63
store i8 52, ptr %1, align 1
br label %228
68: ; preds = %63
%69 = load i8, ptr %2, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 9
br i1 %71, label %72, label %73
72: ; preds = %68
store i8 56, ptr %1, align 1
br label %228
73: ; preds = %68
%74 = load i8, ptr %2, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 13
br i1 %76, label %77, label %78
77: ; preds = %73
store i8 61, ptr %1, align 1
br label %228
78: ; preds = %73
%79 = load i8, ptr %2, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 17
br i1 %81, label %82, label %83
82: ; preds = %78
store i8 87, ptr %1, align 1
br label %228
83: ; preds = %78
%84 = load i8, ptr %2, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 21
br i1 %86, label %87, label %88
87: ; preds = %83
store i8 89, ptr %1, align 1
br label %228
88: ; preds = %83
%89 = load i8, ptr %2, align 1
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 25
br i1 %91, label %92, label %93
92: ; preds = %88
store i8 80, ptr %1, align 1
br label %228
93: ; preds = %88
%94 = load i8, ptr %2, align 1
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 33
br i1 %96, label %97, label %98
97: ; preds = %93
store i8 70, ptr %1, align 1
br label %228
98: ; preds = %93
%99 = load i8, ptr %2, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 37
br i1 %101, label %102, label %103
102: ; preds = %98
store i8 75, ptr %1, align 1
br label %228
103: ; preds = %98
%104 = load i8, ptr %2, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 45
br i1 %106, label %107, label %108
107: ; preds = %103
store i8 88, ptr %1, align 1
br label %228
108: ; preds = %103
%109 = load i8, ptr %2, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 49
br i1 %111, label %112, label %113
112: ; preds = %108
store i8 78, ptr %1, align 1
br label %228
113: ; preds = %108
%114 = load i8, ptr %2, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 57
br i1 %116, label %117, label %118
117: ; preds = %113
store i8 32, ptr %1, align 1
br label %228
118: ; preds = %113
%119 = load i8, ptr %2, align 1
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 2
br i1 %121, label %122, label %123
122: ; preds = %118
store i8 49, ptr %1, align 1
br label %228
123: ; preds = %118
%124 = load i8, ptr %2, align 1
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 6
br i1 %126, label %127, label %128
127: ; preds = %123
store i8 53, ptr %1, align 1
br label %228
128: ; preds = %123
%129 = load i8, ptr %2, align 1
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 10
br i1 %131, label %132, label %133
132: ; preds = %128
store i8 57, ptr %1, align 1
br label %228
133: ; preds = %128
%134 = load i8, ptr %2, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 14
br i1 %136, label %137, label %138
137: ; preds = %133
store i8 8, ptr %1, align 1
br label %228
138: ; preds = %133
%139 = load i8, ptr %2, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 18
br i1 %141, label %142, label %143
142: ; preds = %138
store i8 69, ptr %1, align 1
br label %228
143: ; preds = %138
%144 = load i8, ptr %2, align 1
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 22
br i1 %146, label %147, label %148
147: ; preds = %143
store i8 85, ptr %1, align 1
br label %228
148: ; preds = %143
%149 = load i8, ptr %2, align 1
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 26
br i1 %151, label %152, label %153
152: ; preds = %148
store i8 91, ptr %1, align 1
br label %228
153: ; preds = %148
%154 = load i8, ptr %2, align 1
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 30
br i1 %156, label %157, label %158
157: ; preds = %153
store i8 65, ptr %1, align 1
br label %228
158: ; preds = %153
%159 = load i8, ptr %2, align 1
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 34
br i1 %161, label %162, label %163
162: ; preds = %158
store i8 71, ptr %1, align 1
br label %228
163: ; preds = %158
%164 = load i8, ptr %2, align 1
%165 = sext i8 %164 to i32
%166 = icmp eq i32 %165, 38
br i1 %166, label %167, label %168
167: ; preds = %163
store i8 76, ptr %1, align 1
br label %228
168: ; preds = %163
%169 = load i8, ptr %2, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 46
br i1 %171, label %172, label %173
172: ; preds = %168
store i8 67, ptr %1, align 1
br label %228
173: ; preds = %168
%174 = load i8, ptr %2, align 1
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 50
br i1 %176, label %177, label %178
177: ; preds = %173
store i8 77, ptr %1, align 1
br label %228
178: ; preds = %173
%179 = load i8, ptr %2, align 1
%180 = sext i8 %179 to i32
%181 = icmp eq i32 %180, 3
br i1 %181, label %182, label %183
182: ; preds = %178
store i8 50, ptr %1, align 1
br label %228
183: ; preds = %178
%184 = load i8, ptr %2, align 1
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 7
br i1 %186, label %187, label %188
187: ; preds = %183
store i8 54, ptr %1, align 1
br label %228
188: ; preds = %183
%189 = load i8, ptr %2, align 1
%190 = sext i8 %189 to i32
%191 = icmp eq i32 %190, 11
br i1 %191, label %192, label %193
192: ; preds = %188
store i8 48, ptr %1, align 1
br label %228
193: ; preds = %188
%194 = load i8, ptr %2, align 1
%195 = sext i8 %194 to i32
%196 = icmp eq i32 %195, 19
br i1 %196, label %197, label %198
197: ; preds = %193
store i8 82, ptr %1, align 1
br label %228
198: ; preds = %193
%199 = load i8, ptr %2, align 1
%200 = sext i8 %199 to i32
%201 = icmp eq i32 %200, 23
br i1 %201, label %202, label %203
202: ; preds = %198
store i8 73, ptr %1, align 1
br label %228
203: ; preds = %198
%204 = load i8, ptr %2, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %205, 27
br i1 %206, label %207, label %208
207: ; preds = %203
store i8 93, ptr %1, align 1
br label %228
208: ; preds = %203
%209 = load i8, ptr %2, align 1
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 31
br i1 %211, label %212, label %213
212: ; preds = %208
store i8 83, ptr %1, align 1
br label %228
213: ; preds = %208
%214 = load i8, ptr %2, align 1
%215 = sext i8 %214 to i32
%216 = icmp eq i32 %215, 35
br i1 %216, label %217, label %218
217: ; preds = %213
store i8 72, ptr %1, align 1
br label %228
218: ; preds = %213
%219 = load i8, ptr %2, align 1
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 47
br i1 %221, label %222, label %223
222: ; preds = %218
store i8 86, ptr %1, align 1
br label %228
223: ; preds = %218
%224 = load i8, ptr %2, align 1
%225 = sext i8 %224 to i32
%226 = icmp eq i32 %225, 39
br i1 %226, label %227, label %228
227: ; preds = %223
store i8 59, ptr %1, align 1
br label %228
228: ; preds = %227, %223, %222, %217, %212, %207, %202, %197, %192, %187, %182, %177, %172, %167, %162, %157, %152, %147, %142, %137, %132, %127, %122, %117, %112, %107, %102, %97, %92, %87, %82, %77, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%229 = load i8, ptr %1, align 1
ret i8 %229
}
declare signext i8 @inportb(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/tmpcl6cgh06.c'
source_filename = "/tmp/tmpcl6cgh06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gencmd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @genconfig(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
store i8 47, ptr %8, align 1
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 98, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 105, ptr %12, align 1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
store i8 110, ptr %14, align 1
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 47, ptr %16, align 1
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
store i8 115, ptr %18, align 1
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 104, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
store i8 32, ptr %22, align 1
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
%28 = load ptr, ptr %2, align 8
ret ptr %28
}
declare i32 @genconfig(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcl6cgh06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gencmd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @genconfig(ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
store i8 47, ptr %8, align 1
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
store i8 98, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 105, ptr %12, align 1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
store i8 110, ptr %14, align 1
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 47, ptr %16, align 1
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
store i8 115, ptr %18, align 1
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
store i8 104, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
store i8 32, ptr %22, align 1
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @strcat(ptr noundef %25, ptr noundef %26)
%28 = load ptr, ptr %2, align 8
ret ptr %28
}
declare i32 @genconfig(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxmk5dsrw.c'
source_filename = "/tmp/tmpxmk5dsrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"p5600\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"mips1004K\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"mips24K\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"mips\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_libname() #0 {
%1 = call i32 (...) @detect()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %19
5: ; preds = %0
%6 = call i32 (...) @detect()
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @printf(ptr noundef @.str.1)
br label %18
10: ; preds = %5
%11 = call i32 (...) @detect()
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @printf(ptr noundef @.str.2)
br label %17
15: ; preds = %10
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %13
br label %18
18: ; preds = %17, %8
br label %19
19: ; preds = %18, %3
ret void
}
declare i32 @detect(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxmk5dsrw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"p5600\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"mips1004K\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"mips24K\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"mips\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_libname() #0 {
%1 = call i32 (...) @detect()
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %19
5: ; preds = %0
%6 = call i32 (...) @detect()
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @printf(ptr noundef @.str.1)
br label %18
10: ; preds = %5
%11 = call i32 (...) @detect()
%12 = icmp eq i32 %11, 3
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @printf(ptr noundef @.str.2)
br label %17
15: ; preds = %10
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %13
br label %18
18: ; preds = %17, %8
br label %19
19: ; preds = %18, %3
ret void
}
declare i32 @detect(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifuoenmi.c'
source_filename = "/tmp/tmpifuoenmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f(i32 noundef -1)
ret i32 0
}
declare i32 @f(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/tmpifuoenmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f(i32 noundef -1)
ret i32 0
}
declare i32 @f(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/tmp1800whsl.c'
source_filename = "/tmp/tmp1800whsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_wait_for_bump(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %41, %1
%4 = call i32 @get_create_lbump(i32 noundef 0)
%5 = icmp ne i32 %4, 1
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = call i32 @get_create_rbump(i32 noundef 0)
%8 = icmp ne i32 %7, 1
br label %9
9: ; preds = %6, %3
%10 = phi i1 [ true, %3 ], [ %8, %6 ]
br i1 %10, label %11, label %42
11: ; preds = %9
%12 = call i32 @get_create_lbump(i32 noundef 0)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = call i32 @get_create_rbump(i32 noundef 0)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i32, ptr %2, align 4
%19 = call i32 @create_drive(i32 noundef %18, i32 noundef 0)
%20 = call i32 @msleep(i32 noundef 100)
br label %21
21: ; preds = %17, %14, %11
%22 = call i32 @get_create_lbump(i32 noundef 0)
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = call i32 @get_create_rbump(i32 noundef 0)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = call i32 @create_drive(i32 noundef 0, i32 noundef %28)
%30 = call i32 @msleep(i32 noundef 100)
br label %31
31: ; preds = %27, %24, %21
%32 = call i32 @get_create_lbump(i32 noundef 0)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = call i32 @get_create_rbump(i32 noundef 0)
%36 = icmp ne i32 %35, 1
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i32, ptr %2, align 4
%39 = call i32 @create_drive_straight(i32 noundef %38)
%40 = call i32 @msleep(i32 noundef 100)
br label %41
41: ; preds = %37, %34, %31
br label %3, !llvm.loop !6
42: ; preds = %9
ret void
}
declare i32 @get_create_lbump(i32 noundef) #1
declare i32 @get_create_rbump(i32 noundef) #1
declare i32 @create_drive(i32 noundef, i32 noundef) #1
declare i32 @msleep(i32 noundef) #1
declare i32 @create_drive_straight(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/tmp1800whsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_wait_for_bump(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %41, %1
%4 = call i32 @get_create_lbump(i32 noundef 0)
%5 = icmp ne i32 %4, 1
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = call i32 @get_create_rbump(i32 noundef 0)
%8 = icmp ne i32 %7, 1
br label %9
9: ; preds = %6, %3
%10 = phi i1 [ true, %3 ], [ %8, %6 ]
br i1 %10, label %11, label %42
11: ; preds = %9
%12 = call i32 @get_create_lbump(i32 noundef 0)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = call i32 @get_create_rbump(i32 noundef 0)
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i32, ptr %2, align 4
%19 = call i32 @create_drive(i32 noundef %18, i32 noundef 0)
%20 = call i32 @msleep(i32 noundef 100)
br label %21
21: ; preds = %17, %14, %11
%22 = call i32 @get_create_lbump(i32 noundef 0)
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %31
24: ; preds = %21
%25 = call i32 @get_create_rbump(i32 noundef 0)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = call i32 @create_drive(i32 noundef 0, i32 noundef %28)
%30 = call i32 @msleep(i32 noundef 100)
br label %31
31: ; preds = %27, %24, %21
%32 = call i32 @get_create_lbump(i32 noundef 0)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = call i32 @get_create_rbump(i32 noundef 0)
%36 = icmp ne i32 %35, 1
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i32, ptr %2, align 4
%39 = call i32 @create_drive_straight(i32 noundef %38)
%40 = call i32 @msleep(i32 noundef 100)
br label %41
41: ; preds = %37, %34, %31
br label %3, !llvm.loop !6
42: ; preds = %9
ret void
}
declare i32 @get_create_lbump(i32 noundef) #1
declare i32 @get_create_rbump(i32 noundef) #1
declare i32 @create_drive(i32 noundef, i32 noundef) #1
declare i32 @msleep(i32 noundef) #1
declare i32 @create_drive_straight(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/tmpaj62qjz0.c'
source_filename = "/tmp/tmpaj62qjz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fillHash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %23, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load i32, ptr %5, align 4
%14 = call ptr @getVal(i32 noundef %13)
store ptr %14, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = call ptr @getString(i32 noundef %15)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @hashTableSet(ptr noundef %17, ptr noundef %18, ptr noundef %19)
%21 = load ptr, ptr %7, align 8
%22 = call i32 @free(ptr noundef %21)
br label %23
23: ; preds = %12
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
ret void
}
declare ptr @getVal(i32 noundef) #1
declare ptr @getString(i32 noundef) #1
declare i32 @hashTableSet(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaj62qjz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fillHash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %22
%12 = load i32, ptr %5, align 4
%13 = call ptr @getVal(i32 noundef %12)
store ptr %13, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = call ptr @getString(i32 noundef %14)
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %6, align 8
%19 = call i32 @hashTableSet(ptr noundef %16, ptr noundef %17, ptr noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = call i32 @free(ptr noundef %20)
br label %22
22: ; preds = %11
%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 %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %2
ret void
}
declare ptr @getVal(i32 noundef) #1
declare ptr @getString(i32 noundef) #1
declare i32 @hashTableSet(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmcoj3kj8.c'
source_filename = "/tmp/tmpmcoj3kj8.c"
target datalayout = "e-m:e-p270: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/tmpmcoj3kj8.c"
target datalayout = "e-m:e-p270: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/tmpq66jma_5.c'
source_filename = "/tmp/tmpq66jma_5.c"
target datalayout = "e-m:e-p270: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.rusage = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i64, i32 }
%struct.TYPE_3__ = type { i64, i32 }
@RUSAGE_SELF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @octave_getrusage_wrapper(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17) #0 {
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca %struct.rusage, align 8
%38 = alloca i32, align 4
store ptr %0, ptr %19, align 8
store ptr %1, ptr %20, align 8
store ptr %2, ptr %21, align 8
store ptr %3, ptr %22, align 8
store ptr %4, ptr %23, align 8
store ptr %5, ptr %24, align 8
store ptr %6, ptr %25, align 8
store ptr %7, ptr %26, align 8
store ptr %8, ptr %27, align 8
store ptr %9, ptr %28, align 8
store ptr %10, ptr %29, align 8
store ptr %11, ptr %30, align 8
store ptr %12, ptr %31, align 8
store ptr %13, ptr %32, align 8
store ptr %14, ptr %33, align 8
store ptr %15, ptr %34, align 8
store ptr %16, ptr %35, align 8
store ptr %17, ptr %36, align 8
%39 = load i32, ptr @RUSAGE_SELF, align 4
%40 = call i32 @getrusage(i32 noundef %39, ptr noundef %37)
store i32 %40, ptr %38, align 4
%41 = load i32, ptr %38, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %62
43: ; preds = %18
%44 = load ptr, ptr %19, align 8
store i32 0, ptr %44, align 4
%45 = load ptr, ptr %21, align 8
store i64 0, ptr %45, align 8
%46 = load ptr, ptr %20, align 8
store i32 0, ptr %46, align 4
%47 = load ptr, ptr %22, align 8
store i64 0, ptr %47, align 8
%48 = load ptr, ptr %23, align 8
store i64 0, ptr %48, align 8
%49 = load ptr, ptr %24, align 8
store i64 0, ptr %49, align 8
%50 = load ptr, ptr %25, align 8
store i64 0, ptr %50, align 8
%51 = load ptr, ptr %26, align 8
store i64 0, ptr %51, align 8
%52 = load ptr, ptr %27, align 8
store i64 0, ptr %52, align 8
%53 = load ptr, ptr %28, align 8
store i64 0, ptr %53, align 8
%54 = load ptr, ptr %29, align 8
store i64 0, ptr %54, align 8
%55 = load ptr, ptr %30, align 8
store i64 0, ptr %55, align 8
%56 = load ptr, ptr %31, align 8
store i64 0, ptr %56, align 8
%57 = load ptr, ptr %32, align 8
store i64 0, ptr %57, align 8
%58 = load ptr, ptr %33, align 8
store i64 0, ptr %58, align 8
%59 = load ptr, ptr %34, align 8
store i64 0, ptr %59, align 8
%60 = load ptr, ptr %35, align 8
store i64 0, ptr %60, align 8
%61 = load ptr, ptr %36, align 8
store i64 0, ptr %61, align 8
br label %121
62: ; preds = %18
%63 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 15
%64 = getelementptr inbounds %struct.TYPE_3__, ptr %63, i32 0, i32 1
%65 = load i32, ptr %64, align 8
%66 = load ptr, ptr %19, align 8
store i32 %65, ptr %66, align 4
%67 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 15
%68 = getelementptr inbounds %struct.TYPE_3__, ptr %67, i32 0, i32 0
%69 = load i64, ptr %68, align 8
%70 = load ptr, ptr %21, align 8
store i64 %69, ptr %70, align 8
%71 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 14
%72 = getelementptr inbounds %struct.TYPE_4__, ptr %71, i32 0, i32 1
%73 = load i32, ptr %72, align 8
%74 = load ptr, ptr %20, align 8
store i32 %73, ptr %74, align 4
%75 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 14
%76 = getelementptr inbounds %struct.TYPE_4__, ptr %75, i32 0, i32 0
%77 = load i64, ptr %76, align 8
%78 = load ptr, ptr %22, align 8
store i64 %77, ptr %78, align 8
%79 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 0
%80 = load i64, ptr %79, align 8
%81 = load ptr, ptr %23, align 8
store i64 %80, ptr %81, align 8
%82 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 1
%83 = load i64, ptr %82, align 8
%84 = load ptr, ptr %24, align 8
store i64 %83, ptr %84, align 8
%85 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 2
%86 = load i64, ptr %85, align 8
%87 = load ptr, ptr %25, align 8
store i64 %86, ptr %87, align 8
%88 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 3
%89 = load i64, ptr %88, align 8
%90 = load ptr, ptr %26, align 8
store i64 %89, ptr %90, align 8
%91 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 4
%92 = load i64, ptr %91, align 8
%93 = load ptr, ptr %27, align 8
store i64 %92, ptr %93, align 8
%94 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 5
%95 = load i64, ptr %94, align 8
%96 = load ptr, ptr %28, align 8
store i64 %95, ptr %96, align 8
%97 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 6
%98 = load i64, ptr %97, align 8
%99 = load ptr, ptr %29, align 8
store i64 %98, ptr %99, align 8
%100 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 7
%101 = load i64, ptr %100, align 8
%102 = load ptr, ptr %30, align 8
store i64 %101, ptr %102, align 8
%103 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 8
%104 = load i64, ptr %103, align 8
%105 = load ptr, ptr %31, align 8
store i64 %104, ptr %105, align 8
%106 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 9
%107 = load i64, ptr %106, align 8
%108 = load ptr, ptr %32, align 8
store i64 %107, ptr %108, align 8
%109 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 10
%110 = load i64, ptr %109, align 8
%111 = load ptr, ptr %33, align 8
store i64 %110, ptr %111, align 8
%112 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 11
%113 = load i64, ptr %112, align 8
%114 = load ptr, ptr %34, align 8
store i64 %113, ptr %114, align 8
%115 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 12
%116 = load i64, ptr %115, align 8
%117 = load ptr, ptr %35, align 8
store i64 %116, ptr %117, align 8
%118 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 13
%119 = load i64, ptr %118, align 8
%120 = load ptr, ptr %36, align 8
store i64 %119, ptr %120, align 8
br label %121
121: ; preds = %62, %43
%122 = load i32, ptr %38, align 4
ret i32 %122
}
declare i32 @getrusage(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/tmpq66jma_5.c"
target datalayout = "e-m:e-p270: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.rusage = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i64, i32 }
%struct.TYPE_3__ = type { i64, i32 }
@RUSAGE_SELF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @octave_getrusage_wrapper(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17) #0 {
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca %struct.rusage, align 8
%38 = alloca i32, align 4
store ptr %0, ptr %19, align 8
store ptr %1, ptr %20, align 8
store ptr %2, ptr %21, align 8
store ptr %3, ptr %22, align 8
store ptr %4, ptr %23, align 8
store ptr %5, ptr %24, align 8
store ptr %6, ptr %25, align 8
store ptr %7, ptr %26, align 8
store ptr %8, ptr %27, align 8
store ptr %9, ptr %28, align 8
store ptr %10, ptr %29, align 8
store ptr %11, ptr %30, align 8
store ptr %12, ptr %31, align 8
store ptr %13, ptr %32, align 8
store ptr %14, ptr %33, align 8
store ptr %15, ptr %34, align 8
store ptr %16, ptr %35, align 8
store ptr %17, ptr %36, align 8
%39 = load i32, ptr @RUSAGE_SELF, align 4
%40 = call i32 @getrusage(i32 noundef %39, ptr noundef %37)
store i32 %40, ptr %38, align 4
%41 = load i32, ptr %38, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %62
43: ; preds = %18
%44 = load ptr, ptr %19, align 8
store i32 0, ptr %44, align 4
%45 = load ptr, ptr %21, align 8
store i64 0, ptr %45, align 8
%46 = load ptr, ptr %20, align 8
store i32 0, ptr %46, align 4
%47 = load ptr, ptr %22, align 8
store i64 0, ptr %47, align 8
%48 = load ptr, ptr %23, align 8
store i64 0, ptr %48, align 8
%49 = load ptr, ptr %24, align 8
store i64 0, ptr %49, align 8
%50 = load ptr, ptr %25, align 8
store i64 0, ptr %50, align 8
%51 = load ptr, ptr %26, align 8
store i64 0, ptr %51, align 8
%52 = load ptr, ptr %27, align 8
store i64 0, ptr %52, align 8
%53 = load ptr, ptr %28, align 8
store i64 0, ptr %53, align 8
%54 = load ptr, ptr %29, align 8
store i64 0, ptr %54, align 8
%55 = load ptr, ptr %30, align 8
store i64 0, ptr %55, align 8
%56 = load ptr, ptr %31, align 8
store i64 0, ptr %56, align 8
%57 = load ptr, ptr %32, align 8
store i64 0, ptr %57, align 8
%58 = load ptr, ptr %33, align 8
store i64 0, ptr %58, align 8
%59 = load ptr, ptr %34, align 8
store i64 0, ptr %59, align 8
%60 = load ptr, ptr %35, align 8
store i64 0, ptr %60, align 8
%61 = load ptr, ptr %36, align 8
store i64 0, ptr %61, align 8
br label %121
62: ; preds = %18
%63 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 15
%64 = getelementptr inbounds %struct.TYPE_3__, ptr %63, i32 0, i32 1
%65 = load i32, ptr %64, align 8
%66 = load ptr, ptr %19, align 8
store i32 %65, ptr %66, align 4
%67 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 15
%68 = getelementptr inbounds %struct.TYPE_3__, ptr %67, i32 0, i32 0
%69 = load i64, ptr %68, align 8
%70 = load ptr, ptr %21, align 8
store i64 %69, ptr %70, align 8
%71 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 14
%72 = getelementptr inbounds %struct.TYPE_4__, ptr %71, i32 0, i32 1
%73 = load i32, ptr %72, align 8
%74 = load ptr, ptr %20, align 8
store i32 %73, ptr %74, align 4
%75 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 14
%76 = getelementptr inbounds %struct.TYPE_4__, ptr %75, i32 0, i32 0
%77 = load i64, ptr %76, align 8
%78 = load ptr, ptr %22, align 8
store i64 %77, ptr %78, align 8
%79 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 0
%80 = load i64, ptr %79, align 8
%81 = load ptr, ptr %23, align 8
store i64 %80, ptr %81, align 8
%82 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 1
%83 = load i64, ptr %82, align 8
%84 = load ptr, ptr %24, align 8
store i64 %83, ptr %84, align 8
%85 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 2
%86 = load i64, ptr %85, align 8
%87 = load ptr, ptr %25, align 8
store i64 %86, ptr %87, align 8
%88 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 3
%89 = load i64, ptr %88, align 8
%90 = load ptr, ptr %26, align 8
store i64 %89, ptr %90, align 8
%91 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 4
%92 = load i64, ptr %91, align 8
%93 = load ptr, ptr %27, align 8
store i64 %92, ptr %93, align 8
%94 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 5
%95 = load i64, ptr %94, align 8
%96 = load ptr, ptr %28, align 8
store i64 %95, ptr %96, align 8
%97 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 6
%98 = load i64, ptr %97, align 8
%99 = load ptr, ptr %29, align 8
store i64 %98, ptr %99, align 8
%100 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 7
%101 = load i64, ptr %100, align 8
%102 = load ptr, ptr %30, align 8
store i64 %101, ptr %102, align 8
%103 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 8
%104 = load i64, ptr %103, align 8
%105 = load ptr, ptr %31, align 8
store i64 %104, ptr %105, align 8
%106 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 9
%107 = load i64, ptr %106, align 8
%108 = load ptr, ptr %32, align 8
store i64 %107, ptr %108, align 8
%109 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 10
%110 = load i64, ptr %109, align 8
%111 = load ptr, ptr %33, align 8
store i64 %110, ptr %111, align 8
%112 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 11
%113 = load i64, ptr %112, align 8
%114 = load ptr, ptr %34, align 8
store i64 %113, ptr %114, align 8
%115 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 12
%116 = load i64, ptr %115, align 8
%117 = load ptr, ptr %35, align 8
store i64 %116, ptr %117, align 8
%118 = getelementptr inbounds %struct.rusage, ptr %37, i32 0, i32 13
%119 = load i64, ptr %118, align 8
%120 = load ptr, ptr %36, align 8
store i64 %119, ptr %120, align 8
br label %121
121: ; preds = %62, %43
%122 = load i32, ptr %38, align 4
ret i32 %122
}
declare i32 @getrusage(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/tmp2wtzhvee.c'
source_filename = "/tmp/tmp2wtzhvee.c"
target datalayout = "e-m:e-p270: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/tmp2wtzhvee.c"
target datalayout = "e-m:e-p270: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/tmpfaeakn2k.c'
source_filename = "/tmp/tmpfaeakn2k.c"
target datalayout = "e-m:e-p270: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/tmpfaeakn2k.c"
target datalayout = "e-m:e-p270: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/tmps5d6mutl.c'
source_filename = "/tmp/tmps5d6mutl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstrip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %23, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = call i64 @isspace(i8 noundef signext %16)
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %26
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %21
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 -1
store ptr %25, ptr %3, align 8
br label %10, !llvm.loop !6
26: ; preds = %19
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps5d6mutl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstrip(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %23, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = call i64 @isspace(i8 noundef signext %16)
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %26
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %21
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 -1
store ptr %25, ptr %3, align 8
br label %10, !llvm.loop !6
26: ; preds = %19
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwnsu_vj7.c'
source_filename = "/tmp/tmpwnsu_vj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dosync() #0 {
%1 = call i32 (...) @wake_up_sync_engine()
ret void
}
declare i32 @wake_up_sync_engine(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwnsu_vj7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dosync() #0 {
%1 = call i32 (...) @wake_up_sync_engine()
ret void
}
declare i32 @wake_up_sync_engine(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9bdfamtv.c'
source_filename = "/tmp/tmp9bdfamtv.c"
target datalayout = "e-m:e-p270: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_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = 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/tmp9bdfamtv.c"
target datalayout = "e-m:e-p270: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_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = 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/tmp72tqsbe8.c'
source_filename = "/tmp/tmp72tqsbe8.c"
target datalayout = "e-m:e-p270: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/tmp72tqsbe8.c"
target datalayout = "e-m:e-p270: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/tmpyhwz8r4w.c'
source_filename = "/tmp/tmpyhwz8r4w.c"
target datalayout = "e-m:e-p270: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/tmpyhwz8r4w.c"
target datalayout = "e-m:e-p270: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/tmp69cj_3co.c'
source_filename = "/tmp/tmp69cj_3co.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %0
store i64 0, ptr %2, align 8
br label %6
6: ; preds = %5
store i64 0, ptr %3, align 8
br label %7
7: ; preds = %6
store i64 100, ptr %4, align 8
br label %8
8: ; preds = %17, %7
%9 = load i64, ptr %3, align 8
%10 = add nsw i64 %9, 1
store i64 %10, ptr %3, align 8
br label %11
11: ; preds = %8
%12 = load i64, ptr %4, align 8
%13 = add nsw i64 %12, -1
store i64 %13, ptr %4, align 8
br label %14
14: ; preds = %11
%15 = load i64, ptr %4, align 8
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14
br label %8
18: ; preds = %14
br label %19
19: ; preds = %18
%20 = load i64, ptr %4, align 8
%21 = call i32 @printf(ptr noundef @.str, i64 noundef %20)
br label %22
22: ; preds = %19
%23 = load i64, ptr %3, align 8
%24 = call i32 @printf(ptr noundef @.str, i64 noundef %23)
br label %25
25: ; preds = %22
store i64 0, ptr %3, align 8
br label %26
26: ; preds = %25
store i64 0, ptr %4, align 8
br label %27
27: ; preds = %26
store i64 -20, ptr %2, align 8
br label %28
28: ; preds = %37, %27
%29 = load i64, ptr %3, align 8
%30 = add nsw i64 %29, -1
store i64 %30, ptr %3, align 8
br label %31
31: ; preds = %28
%32 = load i64, ptr %2, align 8
%33 = add nsw i64 %32, 1
store i64 %33, ptr %2, align 8
br label %34
34: ; preds = %31
%35 = load i64, ptr %2, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
br label %28
38: ; preds = %34
br label %39
39: ; preds = %38
%40 = load i64, ptr %2, align 8
%41 = call i32 @printf(ptr noundef @.str, i64 noundef %40)
br label %42
42: ; preds = %39
%43 = load i64, ptr %3, align 8
%44 = call i32 @printf(ptr noundef @.str, i64 noundef %43)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp69cj_3co.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %0
store i64 0, ptr %2, align 8
br label %6
6: ; preds = %5
store i64 0, ptr %3, align 8
br label %7
7: ; preds = %6
store i64 100, ptr %4, align 8
br label %8
8: ; preds = %14, %7
%9 = load i64, ptr %3, align 8
%10 = add nsw i64 %9, 1
store i64 %10, ptr %3, align 8
br label %11
11: ; preds = %8
%12 = load i64, ptr %4, align 8
%13 = add nsw i64 %12, -1
store i64 %13, ptr %4, align 8
br label %14
14: ; preds = %11
%15 = load i64, ptr %4, align 8
%16 = icmp ne i64 %15, 0
br i1 %16, label %8, label %17
17: ; preds = %14
br label %18
18: ; preds = %17
%19 = load i64, ptr %4, align 8
%20 = call i32 @printf(ptr noundef @.str, i64 noundef %19)
br label %21
21: ; preds = %18
%22 = load i64, ptr %3, align 8
%23 = call i32 @printf(ptr noundef @.str, i64 noundef %22)
br label %24
24: ; preds = %21
store i64 0, ptr %3, align 8
br label %25
25: ; preds = %24
store i64 0, ptr %4, align 8
br label %26
26: ; preds = %25
store i64 -20, ptr %2, align 8
br label %27
27: ; preds = %33, %26
%28 = load i64, ptr %3, align 8
%29 = add nsw i64 %28, -1
store i64 %29, ptr %3, align 8
br label %30
30: ; preds = %27
%31 = load i64, ptr %2, align 8
%32 = add nsw i64 %31, 1
store i64 %32, ptr %2, align 8
br label %33
33: ; preds = %30
%34 = load i64, ptr %2, align 8
%35 = icmp ne i64 %34, 0
br i1 %35, label %27, label %36
36: ; preds = %33
br label %37
37: ; preds = %36
%38 = load i64, ptr %2, align 8
%39 = call i32 @printf(ptr noundef @.str, i64 noundef %38)
br label %40
40: ; preds = %37
%41 = load i64, ptr %3, align 8
%42 = call i32 @printf(ptr noundef @.str, i64 noundef %41)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn3n4ic7f.c'
source_filename = "/tmp/tmpn3n4ic7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mataddc: nonconformability of matrices \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mataddc(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
store i32 0, ptr %19, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %14, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %53
23: ; preds = %8
%24 = load i32, ptr %15, align 4
%25 = load i32, ptr %16, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %53
27: ; preds = %23
store i32 0, ptr %17, align 4
br label %28
28: ; preds = %49, %27
%29 = load i32, ptr %17, align 4
%30 = load i32, ptr %12, align 4
%31 = sub nsw i32 %30, 1
%32 = icmp sle i32 %29, %31
br i1 %32, label %33, label %52
33: ; preds = %28
%34 = load ptr, ptr %10, align 8
%35 = load i32, ptr %17, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %17, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
%44 = fadd double %38, %43
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr %17, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
store double %44, ptr %48, align 8
br label %49
49: ; preds = %33
%50 = load i32, ptr %17, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %17, align 4
br label %28, !llvm.loop !6
52: ; preds = %28
store i32 1, ptr %19, align 4
br label %53
53: ; preds = %52, %23, %8
%54 = load i32, ptr %13, align 4
%55 = load i32, ptr %14, align 4
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %98
57: ; preds = %53
%58 = load i32, ptr %16, align 4
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %98
60: ; preds = %57
store i32 0, ptr %12, align 4
store i32 0, ptr %18, align 4
br label %61
61: ; preds = %94, %60
%62 = load i32, ptr %18, align 4
%63 = load i32, ptr %15, align 4
%64 = sub nsw i32 %63, 1
%65 = icmp sle i32 %62, %64
br i1 %65, label %66, label %97
66: ; preds = %61
store i32 0, ptr %17, align 4
br label %67
67: ; preds = %90, %66
%68 = load i32, ptr %17, align 4
%69 = load i32, ptr %13, align 4
%70 = sub nsw i32 %69, 1
%71 = icmp sle i32 %68, %70
br i1 %71, label %72, label %93
72: ; preds = %67
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %12, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = load ptr, ptr %11, align 8
%79 = load i32, ptr %17, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %78, i64 %80
%82 = load double, ptr %81, align 8
%83 = fadd double %77, %82
%84 = load ptr, ptr %9, align 8
%85 = load i32, ptr %12, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %84, i64 %86
store double %83, ptr %87, align 8
%88 = load i32, ptr %12, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %12, align 4
br label %90
90: ; preds = %72
%91 = load i32, ptr %17, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %17, align 4
br label %67, !llvm.loop !8
93: ; preds = %67
br label %94
94: ; preds = %93
%95 = load i32, ptr %18, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %18, align 4
br label %61, !llvm.loop !9
97: ; preds = %61
store i32 1, ptr %19, align 4
br label %98
98: ; preds = %97, %57, %53
%99 = load i32, ptr %13, align 4
%100 = load i32, ptr %14, align 4
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %143
102: ; preds = %98
%103 = load i32, ptr %15, align 4
%104 = icmp eq i32 %103, 1
br i1 %104, label %105, label %143
105: ; preds = %102
store i32 0, ptr %12, align 4
store i32 0, ptr %18, align 4
br label %106
106: ; preds = %139, %105
%107 = load i32, ptr %18, align 4
%108 = load i32, ptr %16, align 4
%109 = sub nsw i32 %108, 1
%110 = icmp sle i32 %107, %109
br i1 %110, label %111, label %142
111: ; preds = %106
store i32 0, ptr %17, align 4
br label %112
112: ; preds = %135, %111
%113 = load i32, ptr %17, align 4
%114 = load i32, ptr %13, align 4
%115 = sub nsw i32 %114, 1
%116 = icmp sle i32 %113, %115
br i1 %116, label %117, label %138
117: ; preds = %112
%118 = load ptr, ptr %11, align 8
%119 = load i32, ptr %12, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, ptr %118, i64 %120
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %10, align 8
%124 = load i32, ptr %17, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %123, i64 %125
%127 = load double, ptr %126, align 8
%128 = fadd double %122, %127
%129 = load ptr, ptr %9, align 8
%130 = load i32, ptr %12, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %129, i64 %131
store double %128, ptr %132, align 8
%133 = load i32, ptr %12, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %12, align 4
br label %135
135: ; preds = %117
%136 = load i32, ptr %17, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %17, align 4
br label %112, !llvm.loop !10
138: ; preds = %112
br label %139
139: ; preds = %138
%140 = load i32, ptr %18, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %18, align 4
br label %106, !llvm.loop !11
142: ; preds = %106
store i32 1, ptr %19, align 4
br label %143
143: ; preds = %142, %102, %98
%144 = load i32, ptr %15, align 4
%145 = load i32, ptr %16, align 4
%146 = icmp eq i32 %144, %145
br i1 %146, label %147, label %188
147: ; preds = %143
%148 = load i32, ptr %14, align 4
%149 = icmp eq i32 %148, 1
br i1 %149, label %150, label %188
150: ; preds = %147
store i32 0, ptr %12, align 4
store i32 0, ptr %17, align 4
br label %151
151: ; preds = %184, %150
%152 = load i32, ptr %17, align 4
%153 = load i32, ptr %15, align 4
%154 = sub nsw i32 %153, 1
%155 = icmp sle i32 %152, %154
br i1 %155, label %156, label %187
156: ; preds = %151
store i32 0, ptr %18, align 4
br label %157
157: ; preds = %180, %156
%158 = load i32, ptr %18, align 4
%159 = load i32, ptr %13, align 4
%160 = sub nsw i32 %159, 1
%161 = icmp sle i32 %158, %160
br i1 %161, label %162, label %183
162: ; preds = %157
%163 = load ptr, ptr %10, align 8
%164 = load i32, ptr %12, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, ptr %163, i64 %165
%167 = load double, ptr %166, align 8
%168 = load ptr, ptr %11, align 8
%169 = load i32, ptr %17, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %168, i64 %170
%172 = load double, ptr %171, align 8
%173 = fadd double %167, %172
%174 = load ptr, ptr %9, align 8
%175 = load i32, ptr %12, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, ptr %174, i64 %176
store double %173, ptr %177, align 8
%178 = load i32, ptr %12, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %12, align 4
br label %180
180: ; preds = %162
%181 = load i32, ptr %18, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %18, align 4
br label %157, !llvm.loop !12
183: ; preds = %157
br label %184
184: ; preds = %183
%185 = load i32, ptr %17, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %17, align 4
br label %151, !llvm.loop !13
187: ; preds = %151
store i32 1, ptr %19, align 4
br label %188
188: ; preds = %187, %147, %143
%189 = load i32, ptr %15, align 4
%190 = load i32, ptr %16, align 4
%191 = icmp eq i32 %189, %190
br i1 %191, label %192, label %233
192: ; preds = %188
%193 = load i32, ptr %13, align 4
%194 = icmp eq i32 %193, 1
br i1 %194, label %195, label %233
195: ; preds = %192
store i32 0, ptr %12, align 4
store i32 0, ptr %17, align 4
br label %196
196: ; preds = %229, %195
%197 = load i32, ptr %17, align 4
%198 = load i32, ptr %15, align 4
%199 = sub nsw i32 %198, 1
%200 = icmp sle i32 %197, %199
br i1 %200, label %201, label %232
201: ; preds = %196
store i32 0, ptr %18, align 4
br label %202
202: ; preds = %225, %201
%203 = load i32, ptr %18, align 4
%204 = load i32, ptr %14, align 4
%205 = sub nsw i32 %204, 1
%206 = icmp sle i32 %203, %205
br i1 %206, label %207, label %228
207: ; preds = %202
%208 = load ptr, ptr %11, align 8
%209 = load i32, ptr %12, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %208, i64 %210
%212 = load double, ptr %211, align 8
%213 = load ptr, ptr %10, align 8
%214 = load i32, ptr %17, align 4
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, ptr %213, i64 %215
%217 = load double, ptr %216, align 8
%218 = fadd double %212, %217
%219 = load ptr, ptr %9, align 8
%220 = load i32, ptr %12, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
store double %218, ptr %222, align 8
%223 = load i32, ptr %12, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %12, align 4
br label %225
225: ; preds = %207
%226 = load i32, ptr %18, align 4
%227 = add nsw i32 %226, 1
store i32 %227, ptr %18, align 4
br label %202, !llvm.loop !14
228: ; preds = %202
br label %229
229: ; preds = %228
%230 = load i32, ptr %17, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %17, align 4
br label %196, !llvm.loop !15
232: ; preds = %196
store i32 1, ptr %19, align 4
br label %233
233: ; preds = %232, %192, %188
%234 = load i32, ptr %19, align 4
%235 = icmp eq i32 %234, 0
br i1 %235, label %236, label %238
236: ; preds = %233
%237 = call i32 @printf(ptr noundef @.str)
br label %238
238: ; preds = %236, %233
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn3n4ic7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mataddc: nonconformability of matrices \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mataddc(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store i32 %7, ptr %16, align 4
store i32 0, ptr %19, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %14, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %56
23: ; preds = %8
%24 = load i32, ptr %15, align 4
%25 = load i32, ptr %16, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %56
27: ; preds = %23
store i32 0, ptr %17, align 4
%28 = load i32, ptr %17, align 4
%29 = load i32, ptr %12, align 4
%30 = sub nsw i32 %29, 1
%31 = icmp sle i32 %28, %30
br i1 %31, label %.lr.ph, label %55
.lr.ph: ; preds = %27
br label %32
32: ; preds = %.lr.ph, %48
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr %17, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
%37 = load double, ptr %36, align 8
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr %17, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = fadd double %37, %42
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %17, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
store double %43, ptr %47, align 8
br label %48
48: ; preds = %32
%49 = load i32, ptr %17, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %17, align 4
%51 = load i32, ptr %17, align 4
%52 = load i32, ptr %12, align 4
%53 = sub nsw i32 %52, 1
%54 = icmp sle i32 %51, %53
br i1 %54, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %55
55: ; preds = %._crit_edge, %27
store i32 1, ptr %19, align 4
br label %56
56: ; preds = %55, %23, %8
%57 = load i32, ptr %13, align 4
%58 = load i32, ptr %14, align 4
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %107
60: ; preds = %56
%61 = load i32, ptr %16, align 4
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %107
63: ; preds = %60
store i32 0, ptr %12, align 4
store i32 0, ptr %18, align 4
%64 = load i32, ptr %18, align 4
%65 = load i32, ptr %15, align 4
%66 = sub nsw i32 %65, 1
%67 = icmp sle i32 %64, %66
br i1 %67, label %.lr.ph5, label %106
.lr.ph5: ; preds = %63
br label %68
68: ; preds = %.lr.ph5, %99
store i32 0, ptr %17, align 4
%69 = load i32, ptr %17, align 4
%70 = load i32, ptr %13, align 4
%71 = sub nsw i32 %70, 1
%72 = icmp sle i32 %69, %71
br i1 %72, label %.lr.ph2, label %98
.lr.ph2: ; preds = %68
br label %73
73: ; preds = %.lr.ph2, %91
%74 = load ptr, ptr %10, align 8
%75 = load i32, ptr %12, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %74, i64 %76
%78 = load double, ptr %77, align 8
%79 = load ptr, ptr %11, align 8
%80 = load i32, ptr %17, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = fadd double %78, %83
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %12, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, ptr %85, i64 %87
store double %84, ptr %88, align 8
%89 = load i32, ptr %12, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %12, align 4
br label %91
91: ; preds = %73
%92 = load i32, ptr %17, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %17, align 4
%94 = load i32, ptr %17, align 4
%95 = load i32, ptr %13, align 4
%96 = sub nsw i32 %95, 1
%97 = icmp sle i32 %94, %96
br i1 %97, label %73, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %91
br label %98
98: ; preds = %._crit_edge3, %68
br label %99
99: ; preds = %98
%100 = load i32, ptr %18, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %18, align 4
%102 = load i32, ptr %18, align 4
%103 = load i32, ptr %15, align 4
%104 = sub nsw i32 %103, 1
%105 = icmp sle i32 %102, %104
br i1 %105, label %68, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %99
br label %106
106: ; preds = %._crit_edge6, %63
store i32 1, ptr %19, align 4
br label %107
107: ; preds = %106, %60, %56
%108 = load i32, ptr %13, align 4
%109 = load i32, ptr %14, align 4
%110 = icmp eq i32 %108, %109
br i1 %110, label %111, label %158
111: ; preds = %107
%112 = load i32, ptr %15, align 4
%113 = icmp eq i32 %112, 1
br i1 %113, label %114, label %158
114: ; preds = %111
store i32 0, ptr %12, align 4
store i32 0, ptr %18, align 4
%115 = load i32, ptr %18, align 4
%116 = load i32, ptr %16, align 4
%117 = sub nsw i32 %116, 1
%118 = icmp sle i32 %115, %117
br i1 %118, label %.lr.ph11, label %157
.lr.ph11: ; preds = %114
br label %119
119: ; preds = %.lr.ph11, %150
store i32 0, ptr %17, align 4
%120 = load i32, ptr %17, align 4
%121 = load i32, ptr %13, align 4
%122 = sub nsw i32 %121, 1
%123 = icmp sle i32 %120, %122
br i1 %123, label %.lr.ph8, label %149
.lr.ph8: ; preds = %119
br label %124
124: ; preds = %.lr.ph8, %142
%125 = load ptr, ptr %11, align 8
%126 = load i32, ptr %12, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, ptr %125, i64 %127
%129 = load double, ptr %128, align 8
%130 = load ptr, ptr %10, align 8
%131 = load i32, ptr %17, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, ptr %130, i64 %132
%134 = load double, ptr %133, align 8
%135 = fadd double %129, %134
%136 = load ptr, ptr %9, align 8
%137 = load i32, ptr %12, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, ptr %136, i64 %138
store double %135, ptr %139, align 8
%140 = load i32, ptr %12, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %12, align 4
br label %142
142: ; preds = %124
%143 = load i32, ptr %17, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %17, align 4
%145 = load i32, ptr %17, align 4
%146 = load i32, ptr %13, align 4
%147 = sub nsw i32 %146, 1
%148 = icmp sle i32 %145, %147
br i1 %148, label %124, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %142
br label %149
149: ; preds = %._crit_edge9, %119
br label %150
150: ; preds = %149
%151 = load i32, ptr %18, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %18, align 4
%153 = load i32, ptr %18, align 4
%154 = load i32, ptr %16, align 4
%155 = sub nsw i32 %154, 1
%156 = icmp sle i32 %153, %155
br i1 %156, label %119, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %150
br label %157
157: ; preds = %._crit_edge12, %114
store i32 1, ptr %19, align 4
br label %158
158: ; preds = %157, %111, %107
%159 = load i32, ptr %15, align 4
%160 = load i32, ptr %16, align 4
%161 = icmp eq i32 %159, %160
br i1 %161, label %162, label %209
162: ; preds = %158
%163 = load i32, ptr %14, align 4
%164 = icmp eq i32 %163, 1
br i1 %164, label %165, label %209
165: ; preds = %162
store i32 0, ptr %12, align 4
store i32 0, ptr %17, align 4
%166 = load i32, ptr %17, align 4
%167 = load i32, ptr %15, align 4
%168 = sub nsw i32 %167, 1
%169 = icmp sle i32 %166, %168
br i1 %169, label %.lr.ph17, label %208
.lr.ph17: ; preds = %165
br label %170
170: ; preds = %.lr.ph17, %201
store i32 0, ptr %18, align 4
%171 = load i32, ptr %18, align 4
%172 = load i32, ptr %13, align 4
%173 = sub nsw i32 %172, 1
%174 = icmp sle i32 %171, %173
br i1 %174, label %.lr.ph14, label %200
.lr.ph14: ; preds = %170
br label %175
175: ; preds = %.lr.ph14, %193
%176 = load ptr, ptr %10, align 8
%177 = load i32, ptr %12, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %176, i64 %178
%180 = load double, ptr %179, align 8
%181 = load ptr, ptr %11, align 8
%182 = load i32, ptr %17, align 4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, ptr %181, i64 %183
%185 = load double, ptr %184, align 8
%186 = fadd double %180, %185
%187 = load ptr, ptr %9, align 8
%188 = load i32, ptr %12, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, ptr %187, i64 %189
store double %186, ptr %190, align 8
%191 = load i32, ptr %12, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %12, align 4
br label %193
193: ; preds = %175
%194 = load i32, ptr %18, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %18, align 4
%196 = load i32, ptr %18, align 4
%197 = load i32, ptr %13, align 4
%198 = sub nsw i32 %197, 1
%199 = icmp sle i32 %196, %198
br i1 %199, label %175, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %193
br label %200
200: ; preds = %._crit_edge15, %170
br label %201
201: ; preds = %200
%202 = load i32, ptr %17, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %17, align 4
%204 = load i32, ptr %17, align 4
%205 = load i32, ptr %15, align 4
%206 = sub nsw i32 %205, 1
%207 = icmp sle i32 %204, %206
br i1 %207, label %170, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %201
br label %208
208: ; preds = %._crit_edge18, %165
store i32 1, ptr %19, align 4
br label %209
209: ; preds = %208, %162, %158
%210 = load i32, ptr %15, align 4
%211 = load i32, ptr %16, align 4
%212 = icmp eq i32 %210, %211
br i1 %212, label %213, label %260
213: ; preds = %209
%214 = load i32, ptr %13, align 4
%215 = icmp eq i32 %214, 1
br i1 %215, label %216, label %260
216: ; preds = %213
store i32 0, ptr %12, align 4
store i32 0, ptr %17, align 4
%217 = load i32, ptr %17, align 4
%218 = load i32, ptr %15, align 4
%219 = sub nsw i32 %218, 1
%220 = icmp sle i32 %217, %219
br i1 %220, label %.lr.ph23, label %259
.lr.ph23: ; preds = %216
br label %221
221: ; preds = %.lr.ph23, %252
store i32 0, ptr %18, align 4
%222 = load i32, ptr %18, align 4
%223 = load i32, ptr %14, align 4
%224 = sub nsw i32 %223, 1
%225 = icmp sle i32 %222, %224
br i1 %225, label %.lr.ph20, label %251
.lr.ph20: ; preds = %221
br label %226
226: ; preds = %.lr.ph20, %244
%227 = load ptr, ptr %11, align 8
%228 = load i32, ptr %12, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %227, i64 %229
%231 = load double, ptr %230, align 8
%232 = load ptr, ptr %10, align 8
%233 = load i32, ptr %17, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, ptr %232, i64 %234
%236 = load double, ptr %235, align 8
%237 = fadd double %231, %236
%238 = load ptr, ptr %9, align 8
%239 = load i32, ptr %12, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %238, i64 %240
store double %237, ptr %241, align 8
%242 = load i32, ptr %12, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %12, align 4
br label %244
244: ; preds = %226
%245 = load i32, ptr %18, align 4
%246 = add nsw i32 %245, 1
store i32 %246, ptr %18, align 4
%247 = load i32, ptr %18, align 4
%248 = load i32, ptr %14, align 4
%249 = sub nsw i32 %248, 1
%250 = icmp sle i32 %247, %249
br i1 %250, label %226, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %244
br label %251
251: ; preds = %._crit_edge21, %221
br label %252
252: ; preds = %251
%253 = load i32, ptr %17, align 4
%254 = add nsw i32 %253, 1
store i32 %254, ptr %17, align 4
%255 = load i32, ptr %17, align 4
%256 = load i32, ptr %15, align 4
%257 = sub nsw i32 %256, 1
%258 = icmp sle i32 %255, %257
br i1 %258, label %221, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %252
br label %259
259: ; preds = %._crit_edge24, %216
store i32 1, ptr %19, align 4
br label %260
260: ; preds = %259, %213, %209
%261 = load i32, ptr %19, align 4
%262 = icmp eq i32 %261, 0
br i1 %262, label %263, label %265
263: ; preds = %260
%264 = call i32 @printf(ptr noundef @.str)
br label %265
265: ; preds = %263, %260
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmpjfsfyphc.c'
source_filename = "/tmp/tmpjfsfyphc.c"
target datalayout = "e-m:e-p270: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/tmpjfsfyphc.c"
target datalayout = "e-m:e-p270: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/tmprw5dpp32.c'
source_filename = "/tmp/tmprw5dpp32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @LCDIntStatus(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store volatile i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load volatile i64, ptr %4, align 8
%10 = add i64 %9, 92
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
store i64 %12, ptr %3, align 8
br label %18
13: ; preds = %2
%14 = load volatile i64, ptr %4, align 8
%15 = add i64 %14, 88
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
store i64 %17, ptr %3, align 8
br label %18
18: ; preds = %13, %8
%19 = load i64, ptr %3, align 8
ret i64 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprw5dpp32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @LCDIntStatus(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store volatile i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load volatile i64, ptr %4, align 8
%10 = add i64 %9, 92
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
store i64 %12, ptr %3, align 8
br label %18
13: ; preds = %2
%14 = load volatile i64, ptr %4, align 8
%15 = add i64 %14, 88
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i64, ptr %16, align 8
store i64 %17, ptr %3, align 8
br label %18
18: ; preds = %13, %8
%19 = load i64, ptr %3, align 8
ret i64 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpugonaxhp.c'
source_filename = "/tmp/tmpugonaxhp.c"
target datalayout = "e-m:e-p270: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/tmpugonaxhp.c"
target datalayout = "e-m:e-p270: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/tmp0tcng0q1.c'
source_filename = "/tmp/tmp0tcng0q1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @verr(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = call i32 @vwarn(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
}
declare i32 @vwarn(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0tcng0q1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @verr(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = call i32 @vwarn(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
}
declare i32 @vwarn(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoz07z7pj.c'
source_filename = "/tmp/tmpoz07z7pj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [195 x i8] c"Ballistic Calculator\09 Copyright (C) 2017 Bryson O'Neill\0A This program comes with ABSOLUTELY NO WARRANTY\0A This is free software, and you are welcome to redistribute it\0A under certain conditions.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"\0AChangelog 0.02 -> 0.03\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Spelling fixes\0ASyntax corrections\0AFormatting\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Please enter a height above the ground in meters.\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"\0A You entered: %f meters\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"Input Error: Expected a positive number\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"Please enter a launch angle in degrees \0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"\0A You entered: %d degrees\0A\00", align 1
@.str.10 = private unnamed_addr constant [59 x i8] c"Input Error: Expected an angle between 90 and -90 degrees\0A\00", align 1
@.str.11 = private unnamed_addr constant [48 x i8] c"Please enter an initial launch velocity in m/s\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"\0A You entered: %f m/s\0A\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"launch height: %fm \0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"launch angle: %d degrees\0A\00", align 1
@.str.15 = private unnamed_addr constant [25 x i8] c"launch velocity: %fm/s \0A\00", align 1
@.str.16 = private unnamed_addr constant [22 x i8] c"time to impact: %fs \0A\00", align 1
@.str.17 = private unnamed_addr constant [26 x i8] c"distance travelled: %fm \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %15
15: ; preds = %26, %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %2)
%18 = load float, ptr %2, align 4
%19 = fpext float %18 to double
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %19)
%21 = load float, ptr %2, align 4
%22 = fcmp olt float %21, 0.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %25
25: ; preds = %23, %15
br label %26
26: ; preds = %25
%27 = load float, ptr %2, align 4
%28 = fcmp olt float %27, 0.000000e+00
br i1 %28, label %15, label %29, !llvm.loop !6
29: ; preds = %26
br label %30
30: ; preds = %49, %29
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%32 = call i32 (ptr, ...) @scanf(ptr noundef @.str.8, ptr noundef %3)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %33)
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %35, 90
br i1 %36, label %40, label %37
37: ; preds = %30
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %38, -90
br i1 %39, label %40, label %42
40: ; preds = %37, %30
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %42
42: ; preds = %40, %37
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = icmp sgt i32 %44, 90
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %47, -90
br label %49
49: ; preds = %46, %43
%50 = phi i1 [ true, %43 ], [ %48, %46 ]
br i1 %50, label %30, label %51, !llvm.loop !8
51: ; preds = %49
br label %52
52: ; preds = %63, %51
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%54 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %4)
%55 = load float, ptr %4, align 4
%56 = fpext float %55 to double
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %56)
%58 = load float, ptr %4, align 4
%59 = fcmp olt float %58, 0.000000e+00
br i1 %59, label %60, label %62
60: ; preds = %52
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %62
62: ; preds = %60, %52
br label %63
63: ; preds = %62
%64 = load float, ptr %4, align 4
%65 = fcmp olt float %64, 0.000000e+00
br i1 %65, label %52, label %66, !llvm.loop !9
66: ; preds = %63
%67 = load i32, ptr %3, align 4
%68 = sitofp i32 %67 to double
%69 = fmul double %68, 0x3F91DF46A1FAE711
%70 = fptrunc double %69 to float
store float %70, ptr %7, align 4
%71 = load float, ptr %4, align 4
%72 = load float, ptr %7, align 4
%73 = call float @cos(float noundef %72)
%74 = fmul float %71, %73
store float %74, ptr %6, align 4
%75 = load float, ptr %4, align 4
%76 = load float, ptr %7, align 4
%77 = call float @sin(float noundef %76)
%78 = fmul float %75, %77
store float %78, ptr %5, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %92
81: ; preds = %66
%82 = load float, ptr %5, align 4
%83 = fmul float 2.000000e+00, %82
%84 = fpext float %83 to double
%85 = fdiv double %84, 9.810000e+00
%86 = fptrunc double %85 to float
store float %86, ptr %10, align 4
%87 = load float, ptr %2, align 4
%88 = fmul float %87, 1.600000e+01
%89 = load float, ptr %5, align 4
%90 = fmul float %89, 1.500000e+01
%91 = fdiv float %88, %90
store float %91, ptr %11, align 4
br label %92
92: ; preds = %81, %66
%93 = load float, ptr %10, align 4
%94 = load float, ptr %11, align 4
%95 = fadd float %93, %94
store float %95, ptr %8, align 4
%96 = load float, ptr %8, align 4
%97 = load float, ptr %6, align 4
%98 = fmul float %96, %97
store float %98, ptr %9, align 4
%99 = load float, ptr %2, align 4
%100 = fpext float %99 to double
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %100)
%102 = load i32, ptr %3, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %102)
%104 = load float, ptr %4, align 4
%105 = fpext float %104 to double
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %105)
%107 = load float, ptr %8, align 4
%108 = fpext float %107 to double
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %108)
%110 = load float, ptr %9, align 4
%111 = fpext float %110 to double
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %111)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare float @cos(float noundef) #1
declare float @sin(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoz07z7pj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [195 x i8] c"Ballistic Calculator\09 Copyright (C) 2017 Bryson O'Neill\0A This program comes with ABSOLUTELY NO WARRANTY\0A This is free software, and you are welcome to redistribute it\0A under certain conditions.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"\0AChangelog 0.02 -> 0.03\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Spelling fixes\0ASyntax corrections\0AFormatting\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Please enter a height above the ground in meters.\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"\0A You entered: %f meters\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"Input Error: Expected a positive number\0A\00", align 1
@.str.7 = private unnamed_addr constant [41 x i8] c"Please enter a launch angle in degrees \0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"\0A You entered: %d degrees\0A\00", align 1
@.str.10 = private unnamed_addr constant [59 x i8] c"Input Error: Expected an angle between 90 and -90 degrees\0A\00", align 1
@.str.11 = private unnamed_addr constant [48 x i8] c"Please enter an initial launch velocity in m/s\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"\0A You entered: %f m/s\0A\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"launch height: %fm \0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"launch angle: %d degrees\0A\00", align 1
@.str.15 = private unnamed_addr constant [25 x i8] c"launch velocity: %fm/s \0A\00", align 1
@.str.16 = private unnamed_addr constant [22 x i8] c"time to impact: %fs \0A\00", align 1
@.str.17 = private unnamed_addr constant [26 x i8] c"distance travelled: %fm \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %15
15: ; preds = %26, %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %2)
%18 = load float, ptr %2, align 4
%19 = fpext float %18 to double
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %19)
%21 = load float, ptr %2, align 4
%22 = fcmp olt float %21, 0.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %25
25: ; preds = %23, %15
br label %26
26: ; preds = %25
%27 = load float, ptr %2, align 4
%28 = fcmp olt float %27, 0.000000e+00
br i1 %28, label %15, label %29, !llvm.loop !6
29: ; preds = %26
br label %30
30: ; preds = %49, %29
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%32 = call i32 (ptr, ...) @scanf(ptr noundef @.str.8, ptr noundef %3)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %33)
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %35, 90
br i1 %36, label %40, label %37
37: ; preds = %30
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %38, -90
br i1 %39, label %40, label %42
40: ; preds = %37, %30
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %42
42: ; preds = %40, %37
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = icmp sgt i32 %44, 90
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %47, -90
br label %49
49: ; preds = %46, %43
%50 = phi i1 [ true, %43 ], [ %48, %46 ]
br i1 %50, label %30, label %51, !llvm.loop !8
51: ; preds = %49
br label %52
52: ; preds = %63, %51
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%54 = call i32 (ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %4)
%55 = load float, ptr %4, align 4
%56 = fpext float %55 to double
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %56)
%58 = load float, ptr %4, align 4
%59 = fcmp olt float %58, 0.000000e+00
br i1 %59, label %60, label %62
60: ; preds = %52
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %62
62: ; preds = %60, %52
br label %63
63: ; preds = %62
%64 = load float, ptr %4, align 4
%65 = fcmp olt float %64, 0.000000e+00
br i1 %65, label %52, label %66, !llvm.loop !9
66: ; preds = %63
%67 = load i32, ptr %3, align 4
%68 = sitofp i32 %67 to double
%69 = fmul double %68, 0x3F91DF46A1FAE711
%70 = fptrunc double %69 to float
store float %70, ptr %7, align 4
%71 = load float, ptr %4, align 4
%72 = load float, ptr %7, align 4
%73 = call float @cos(float noundef %72)
%74 = fmul float %71, %73
store float %74, ptr %6, align 4
%75 = load float, ptr %4, align 4
%76 = load float, ptr %7, align 4
%77 = call float @sin(float noundef %76)
%78 = fmul float %75, %77
store float %78, ptr %5, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %92
81: ; preds = %66
%82 = load float, ptr %5, align 4
%83 = fmul float 2.000000e+00, %82
%84 = fpext float %83 to double
%85 = fdiv double %84, 9.810000e+00
%86 = fptrunc double %85 to float
store float %86, ptr %10, align 4
%87 = load float, ptr %2, align 4
%88 = fmul float %87, 1.600000e+01
%89 = load float, ptr %5, align 4
%90 = fmul float %89, 1.500000e+01
%91 = fdiv float %88, %90
store float %91, ptr %11, align 4
br label %92
92: ; preds = %81, %66
%93 = load float, ptr %10, align 4
%94 = load float, ptr %11, align 4
%95 = fadd float %93, %94
store float %95, ptr %8, align 4
%96 = load float, ptr %8, align 4
%97 = load float, ptr %6, align 4
%98 = fmul float %96, %97
store float %98, ptr %9, align 4
%99 = load float, ptr %2, align 4
%100 = fpext float %99 to double
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %100)
%102 = load i32, ptr %3, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %102)
%104 = load float, ptr %4, align 4
%105 = fpext float %104 to double
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %105)
%107 = load float, ptr %8, align 4
%108 = fpext float %107 to double
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %108)
%110 = load float, ptr %9, align 4
%111 = fpext float %110 to double
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %111)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare float @cos(float noundef) #1
declare float @sin(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmi_op5hu.c'
source_filename = "/tmp/tmpmi_op5hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @check()
%3 = call i32 (...) @func()
ret i32 0
}
declare i32 @check(...) #1
declare i32 @func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmi_op5hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @check()
%3 = call i32 (...) @func()
ret i32 0
}
declare i32 @check(...) #1
declare i32 @func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppl7k8n91.c'
source_filename = "/tmp/tmppl7k8n91.c"
target datalayout = "e-m:e-p270: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/tmppl7k8n91.c"
target datalayout = "e-m:e-p270: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.