llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmphb6fgz69.c'
source_filename = "/tmp/tmphb6fgz69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @plot1(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load double, ptr %7, align 8
%13 = load double, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load ptr, ptr %10, align 8
%16 = call i32 @plot_comm(ptr noundef %11, double noundef %12, double noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef @.str)
ret void
}
declare i32 @plot_comm(ptr noundef, double noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphb6fgz69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @plot1(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load double, ptr %7, align 8
%13 = load double, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load ptr, ptr %10, align 8
%16 = call i32 @plot_comm(ptr noundef %11, double noundef %12, double noundef %13, i32 noundef %14, ptr noundef %15, ptr noundef @.str)
ret void
}
declare i32 @plot_comm(ptr noundef, double noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp05237o1b.c'
source_filename = "/tmp/tmp05237o1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Hexify.HexDigits = internal global [17 x i8] c"0123456789abcdef\00", align 16
@.str = private unnamed_addr constant [30 x i8] c"Hexify: dest buffer too small\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Hexify(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
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i8, align 1
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
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
br label %12
12: ; preds = %52, %4
%13 = load i64, ptr %10, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp slt i64 %13, %14
br i1 %15, label %16, label %53
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %10, align 8
%19 = add nsw i64 %18, 1
store i64 %19, ptr %10, align 8
%20 = getelementptr inbounds i8, ptr %17, i64 %18
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %11, align 1
%22 = load i64, ptr %9, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp slt i64 %22, %23
br i1 %24, label %25, label %37
25: ; preds = %16
%26 = load i8, ptr %11, align 1
%27 = zext i8 %26 to i32
%28 = and i32 %27, 240
%29 = ashr i32 %28, 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [17 x i8], ptr @Hexify.HexDigits, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %9, align 8
%35 = add nsw i64 %34, 1
store i64 %35, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %33, i64 %34
store i8 %32, ptr %36, align 1
br label %37
37: ; preds = %25, %16
%38 = load i64, ptr %9, align 8
%39 = load i64, ptr %8, align 8
%40 = icmp slt i64 %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load i8, ptr %11, align 1
%43 = zext i8 %42 to i32
%44 = and i32 %43, 15
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [17 x i8], ptr @Hexify.HexDigits, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = load ptr, ptr %7, align 8
%49 = load i64, ptr %9, align 8
%50 = add nsw i64 %49, 1
store i64 %50, ptr %9, align 8
%51 = getelementptr inbounds i8, ptr %48, i64 %49
store i8 %47, ptr %51, align 1
br label %52
52: ; preds = %41, %37
br label %12, !llvm.loop !6
53: ; preds = %12
%54 = load i64, ptr %9, align 8
%55 = load i64, ptr %8, align 8
%56 = icmp slt i64 %54, %55
br i1 %56, label %57, label %62
57: ; preds = %53
%58 = load ptr, ptr %7, align 8
%59 = load i64, ptr %9, align 8
%60 = add nsw i64 %59, 1
store i64 %60, ptr %9, align 8
%61 = getelementptr inbounds i8, ptr %58, i64 %59
store i8 0, ptr %61, align 1
br label %64
62: ; preds = %53
%63 = call i32 @perror(ptr noundef @.str)
br label %64
64: ; preds = %62, %57
ret void
}
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp05237o1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Hexify.HexDigits = internal global [17 x i8] c"0123456789abcdef\00", align 16
@.str = private unnamed_addr constant [30 x i8] c"Hexify: dest buffer too small\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Hexify(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
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i8, align 1
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
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
%12 = load i64, ptr %10, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp slt i64 %12, %13
br i1 %14, label %.lr.ph, label %55
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %51
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %10, align 8
%18 = add nsw i64 %17, 1
store i64 %18, ptr %10, align 8
%19 = getelementptr inbounds i8, ptr %16, i64 %17
%20 = load i8, ptr %19, align 1
store i8 %20, ptr %11, align 1
%21 = load i64, ptr %9, align 8
%22 = load i64, ptr %8, align 8
%23 = icmp slt i64 %21, %22
br i1 %23, label %24, label %36
24: ; preds = %15
%25 = load i8, ptr %11, align 1
%26 = zext i8 %25 to i32
%27 = and i32 %26, 240
%28 = ashr i32 %27, 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [17 x i8], ptr @Hexify.HexDigits, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %7, align 8
%33 = load i64, ptr %9, align 8
%34 = add nsw i64 %33, 1
store i64 %34, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %32, i64 %33
store i8 %31, ptr %35, align 1
br label %36
36: ; preds = %24, %15
%37 = load i64, ptr %9, align 8
%38 = load i64, ptr %8, align 8
%39 = icmp slt i64 %37, %38
br i1 %39, label %40, label %51
40: ; preds = %36
%41 = load i8, ptr %11, align 1
%42 = zext i8 %41 to i32
%43 = and i32 %42, 15
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [17 x i8], ptr @Hexify.HexDigits, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %7, align 8
%48 = load i64, ptr %9, align 8
%49 = add nsw i64 %48, 1
store i64 %49, ptr %9, align 8
%50 = getelementptr inbounds i8, ptr %47, i64 %48
store i8 %46, ptr %50, align 1
br label %51
51: ; preds = %40, %36
%52 = load i64, ptr %10, align 8
%53 = load i64, ptr %6, align 8
%54 = icmp slt i64 %52, %53
br i1 %54, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %55
55: ; preds = %._crit_edge, %4
%56 = load i64, ptr %9, align 8
%57 = load i64, ptr %8, align 8
%58 = icmp slt i64 %56, %57
br i1 %58, label %59, label %64
59: ; preds = %55
%60 = load ptr, ptr %7, align 8
%61 = load i64, ptr %9, align 8
%62 = add nsw i64 %61, 1
store i64 %62, ptr %9, align 8
%63 = getelementptr inbounds i8, ptr %60, i64 %61
store i8 0, ptr %63, align 1
br label %66
64: ; preds = %55
%65 = call i32 @perror(ptr noundef @.str)
br label %66
66: ; preds = %64, %59
ret void
}
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz7ez4i64.c'
source_filename = "/tmp/tmpz7ez4i64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @no_op(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz7ez4i64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @no_op(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_997_vee.c'
source_filename = "/tmp/tmp_997_vee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for &\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x26() #0 {
%1 = call i64 @isalnum(i32 noundef 38)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 195, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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_997_vee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for &\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x26() #0 {
%1 = call i64 @isalnum(i32 noundef 38)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 195, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmpfsd0dgjf.c'
source_filename = "/tmp/tmpfsd0dgjf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"0x%x\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %25, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %2, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %26
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = call i64 @isprint(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = call i32 @putchar(i32 noundef %15)
br label %20
17: ; preds = %8
%18 = load i32, ptr %2, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %17, %14
%21 = load i32, ptr %3, align 4
%22 = icmp eq i32 %21, 80
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %23, %20
br label %4, !llvm.loop !6
26: ; preds = %4
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isprint(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfsd0dgjf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"0x%x\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %24
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = call i64 @isprint(i32 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %7
%14 = load i32, ptr %2, align 4
%15 = call i32 @putchar(i32 noundef %14)
br label %19
16: ; preds = %7
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %16, %13
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 80
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %22, %19
%25 = call i32 (...) @getchar()
store i32 %25, ptr %2, align 4
%26 = load i32, ptr @EOF, align 4
%27 = icmp ne i32 %25, %26
br i1 %27, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %28
28: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isprint(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj5lgj8lc.c'
source_filename = "/tmp/tmpj5lgj8lc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_push_point(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 1
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %13, %16
br i1 %17, label %18, label %55
18: ; preds = %2
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 1
%24 = load i32, ptr %23, align 4
%25 = mul nsw i32 2, %24
%26 = call ptr @new_line(i32 noundef %21, i32 noundef %25)
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %30
29: ; preds = %18
store i32 0, ptr %3, align 4
br label %87
30: ; preds = %18
store i32 3, ptr %7, align 4
br label %31
31: ; preds = %48, %30
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds i32, ptr %33, i64 1
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 %35, 3
%37 = icmp slt i32 %32, %36
br i1 %37, label %38, label %51
38: ; preds = %31
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
store i32 %43, ptr %47, align 4
br label %48
48: ; preds = %38
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %31, !llvm.loop !6
51: ; preds = %31
%52 = load ptr, ptr %6, align 8
%53 = call i32 @free(ptr noundef %52)
%54 = load ptr, ptr %8, align 8
store ptr %54, ptr %6, align 8
br label %55
55: ; preds = %51, %2
%56 = load ptr, ptr %6, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 2
%58 = load i32, ptr %57, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %72
60: ; preds = %55
%61 = load i32, ptr %5, align 4
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %6, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 2
%65 = load i32, ptr %64, align 4
%66 = add nsw i32 3, %65
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %62, i64 %68
%70 = load i32, ptr %69, align 4
%71 = icmp sgt i32 %61, %70
br i1 %71, label %72, label %86
72: ; preds = %60, %55
%73 = load i32, ptr %5, align 4
%74 = load ptr, ptr %6, align 8
%75 = load ptr, ptr %6, align 8
%76 = getelementptr inbounds i32, ptr %75, i64 2
%77 = load i32, ptr %76, align 4
%78 = add nsw i32 3, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %74, i64 %79
store i32 %73, ptr %80, align 4
%81 = load ptr, ptr %6, align 8
%82 = getelementptr inbounds i32, ptr %81, i64 2
%83 = load i32, ptr %82, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %82, align 4
%85 = add nsw i32 3, %83
store i32 %85, ptr %3, align 4
br label %87
86: ; preds = %60
store i32 0, ptr %3, align 4
br label %87
87: ; preds = %86, %72, %29
%88 = load i32, ptr %3, align 4
ret i32 %88
}
declare ptr @new_line(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj5lgj8lc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_push_point(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load i32, ptr %12, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 1
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %13, %16
br i1 %17, label %18, label %60
18: ; preds = %2
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 1
%24 = load i32, ptr %23, align 4
%25 = mul nsw i32 2, %24
%26 = call ptr @new_line(i32 noundef %21, i32 noundef %25)
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %30
29: ; preds = %18
store i32 0, ptr %3, align 4
br label %92
30: ; preds = %18
store i32 3, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 3
%36 = icmp slt i32 %31, %35
br i1 %36, label %.lr.ph, label %56
.lr.ph: ; preds = %30
br label %37
37: ; preds = %.lr.ph, %47
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 %42, ptr %46, align 4
br label %47
47: ; preds = %37
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load ptr, ptr %6, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 1
%53 = load i32, ptr %52, align 4
%54 = add nsw i32 %53, 3
%55 = icmp slt i32 %50, %54
br i1 %55, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %56
56: ; preds = %._crit_edge, %30
%57 = load ptr, ptr %6, align 8
%58 = call i32 @free(ptr noundef %57)
%59 = load ptr, ptr %8, align 8
store ptr %59, ptr %6, align 8
br label %60
60: ; preds = %56, %2
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 2
%63 = load i32, ptr %62, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %77
65: ; preds = %60
%66 = load i32, ptr %5, align 4
%67 = load ptr, ptr %6, align 8
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds i32, ptr %68, i64 2
%70 = load i32, ptr %69, align 4
%71 = add nsw i32 3, %70
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %67, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp sgt i32 %66, %75
br i1 %76, label %77, label %91
77: ; preds = %65, %60
%78 = load i32, ptr %5, align 4
%79 = load ptr, ptr %6, align 8
%80 = load ptr, ptr %6, align 8
%81 = getelementptr inbounds i32, ptr %80, i64 2
%82 = load i32, ptr %81, align 4
%83 = add nsw i32 3, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %79, i64 %84
store i32 %78, ptr %85, align 4
%86 = load ptr, ptr %6, align 8
%87 = getelementptr inbounds i32, ptr %86, i64 2
%88 = load i32, ptr %87, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %87, align 4
%90 = add nsw i32 3, %88
store i32 %90, ptr %3, align 4
br label %92
91: ; preds = %65
store i32 0, ptr %3, align 4
br label %92
92: ; preds = %91, %77, %29
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare ptr @new_line(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxyw1vs29.c'
source_filename = "/tmp/tmpxyw1vs29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"trovi un gatto nero morto\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"indirizzo: %p, contenuto: %1c\09%4d, i: %2d\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 50, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = call ptr @llvm.stacksave()
store ptr %6, ptr %4, align 8
%7 = alloca i8, i64 50, align 16
%8 = getelementptr inbounds i8, ptr %7, i64 0
store ptr %8, ptr %5, align 8
store ptr %7, ptr %5, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %30, %0
%11 = load ptr, ptr %5, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 50
br label %18
18: ; preds = %15, %10
%19 = phi i1 [ false, %10 ], [ %17, %15 ]
br i1 %19, label %20, label %33
20: ; preds = %18
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %3, align 4
%27 = call i32 @printf(ptr noundef @.str.1, ptr noundef %21, i8 noundef signext %23, i8 noundef signext %25, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
br label %30
30: ; preds = %20
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %10, !llvm.loop !6
33: ; preds = %18
%34 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %34)
%35 = load i32, ptr %1, align 4
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext, 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/tmpxyw1vs29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"trovi un gatto nero morto\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"indirizzo: %p, contenuto: %1c\09%4d, i: %2d\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 50, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = call ptr @llvm.stacksave()
store ptr %6, ptr %4, align 8
%7 = alloca i8, i64 50, align 16
%8 = getelementptr inbounds i8, ptr %7, i64 0
store ptr %8, ptr %5, align 8
store ptr %7, ptr %5, align 8
%9 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %30, %0
%11 = load ptr, ptr %5, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 50
br label %18
18: ; preds = %15, %10
%19 = phi i1 [ false, %10 ], [ %17, %15 ]
br i1 %19, label %20, label %33
20: ; preds = %18
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = load i32, ptr %3, align 4
%27 = call i32 @printf(ptr noundef @.str.1, ptr noundef %21, i8 noundef signext %23, i8 noundef signext %25, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
br label %30
30: ; preds = %20
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %10, !llvm.loop !6
33: ; preds = %18
%34 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %34)
%35 = load i32, ptr %1, align 4
ret i32 %35
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext, 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/tmpp7rztl5c.c'
source_filename = "/tmp/tmpp7rztl5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f %d\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 4, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = call i32 @time(ptr noundef null)
%25 = call i32 @srand(i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 2
br i1 %27, label %28, label %60
28: ; preds = %2
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %12, align 4
%33 = load i32, ptr %12, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i32, ptr %6, align 4
%37 = call ptr @vector_fill_almost_sorted(i32 noundef %36)
store ptr %37, ptr %7, align 8
br label %59
38: ; preds = %28
%39 = load i32, ptr %12, align 4
%40 = icmp eq i32 %39, 2
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = call ptr @vector_fill_few_unique(i32 noundef %42)
store ptr %43, ptr %7, align 8
br label %58
44: ; preds = %38
%45 = load i32, ptr %12, align 4
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %6, align 4
%49 = call ptr @vector_fill_reverse(i32 noundef %48)
store ptr %49, ptr %7, align 8
br label %57
50: ; preds = %44
%51 = load i32, ptr %12, align 4
%52 = icmp eq i32 %51, 4
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %6, align 4
%55 = call ptr @vector_fill_unique(i32 noundef %54)
store ptr %55, ptr %7, align 8
br label %56
56: ; preds = %53, %50
br label %57
57: ; preds = %56, %47
br label %58
58: ; preds = %57, %41
br label %59
59: ; preds = %58, %35
br label %63
60: ; preds = %2
%61 = load i32, ptr %6, align 4
%62 = call ptr @vector_fill_unique(i32 noundef %61)
store ptr %62, ptr %7, align 8
br label %63
63: ; preds = %60, %59
%64 = call i64 (...) @clock()
store i64 %64, ptr %13, align 8
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %6, align 4
%67 = call i32 @bubblesort(ptr noundef %65, i32 noundef %66)
%68 = call i64 (...) @clock()
%69 = load i64, ptr %13, align 8
%70 = sub nsw i64 %68, %69
store i64 %70, ptr %13, align 8
%71 = load i64, ptr %13, align 8
%72 = sitofp i64 %71 to double
%73 = load double, ptr @CLOCKS_PER_SEC, align 8
%74 = fdiv double %72, %73
%75 = load i32, ptr %6, align 4
%76 = call i32 @printf(ptr noundef @.str, double noundef %74, i32 noundef %75)
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %6, align 4
%79 = call i32 @isSane(ptr noundef %77, i32 noundef %78)
ret i32 %79
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @vector_fill_almost_sorted(i32 noundef) #1
declare ptr @vector_fill_few_unique(i32 noundef) #1
declare ptr @vector_fill_reverse(i32 noundef) #1
declare ptr @vector_fill_unique(i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @bubblesort(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #1
declare i32 @isSane(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/tmpp7rztl5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f %d\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 4, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = call i32 @time(ptr noundef null)
%25 = call i32 @srand(i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 2
br i1 %27, label %28, label %60
28: ; preds = %2
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 2
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %12, align 4
%33 = load i32, ptr %12, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i32, ptr %6, align 4
%37 = call ptr @vector_fill_almost_sorted(i32 noundef %36)
store ptr %37, ptr %7, align 8
br label %59
38: ; preds = %28
%39 = load i32, ptr %12, align 4
%40 = icmp eq i32 %39, 2
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = call ptr @vector_fill_few_unique(i32 noundef %42)
store ptr %43, ptr %7, align 8
br label %58
44: ; preds = %38
%45 = load i32, ptr %12, align 4
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %6, align 4
%49 = call ptr @vector_fill_reverse(i32 noundef %48)
store ptr %49, ptr %7, align 8
br label %57
50: ; preds = %44
%51 = load i32, ptr %12, align 4
%52 = icmp eq i32 %51, 4
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %6, align 4
%55 = call ptr @vector_fill_unique(i32 noundef %54)
store ptr %55, ptr %7, align 8
br label %56
56: ; preds = %53, %50
br label %57
57: ; preds = %56, %47
br label %58
58: ; preds = %57, %41
br label %59
59: ; preds = %58, %35
br label %63
60: ; preds = %2
%61 = load i32, ptr %6, align 4
%62 = call ptr @vector_fill_unique(i32 noundef %61)
store ptr %62, ptr %7, align 8
br label %63
63: ; preds = %60, %59
%64 = call i64 (...) @clock()
store i64 %64, ptr %13, align 8
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %6, align 4
%67 = call i32 @bubblesort(ptr noundef %65, i32 noundef %66)
%68 = call i64 (...) @clock()
%69 = load i64, ptr %13, align 8
%70 = sub nsw i64 %68, %69
store i64 %70, ptr %13, align 8
%71 = load i64, ptr %13, align 8
%72 = sitofp i64 %71 to double
%73 = load double, ptr @CLOCKS_PER_SEC, align 8
%74 = fdiv double %72, %73
%75 = load i32, ptr %6, align 4
%76 = call i32 @printf(ptr noundef @.str, double noundef %74, i32 noundef %75)
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %6, align 4
%79 = call i32 @isSane(ptr noundef %77, i32 noundef %78)
ret i32 %79
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @vector_fill_almost_sorted(i32 noundef) #1
declare ptr @vector_fill_few_unique(i32 noundef) #1
declare ptr @vector_fill_reverse(i32 noundef) #1
declare ptr @vector_fill_unique(i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @bubblesort(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #1
declare i32 @isSane(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/tmptt9opjy6.c'
source_filename = "/tmp/tmptt9opjy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @salvar(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [1080 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 -1, ptr %12, align 4
%18 = load ptr, ptr %6, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str)
store ptr %19, ptr %10, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %4
store i32 0, ptr %5, align 4
br label %106
22: ; preds = %4
br label %23
23: ; preds = %27, %22
%24 = load i32, ptr %12, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %12, align 4
%26 = icmp slt i32 %24, 1079
br i1 %26, label %27, label %33
27: ; preds = %23
%28 = load ptr, ptr %10, align 8
%29 = call i32 @fgetc(ptr noundef %28)
%30 = load i32, ptr %12, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1080 x i32], ptr %13, i64 0, i64 %31
store i32 %29, ptr %32, align 4
br label %23, !llvm.loop !6
33: ; preds = %23
%34 = load ptr, ptr %10, align 8
%35 = call i32 @fclose(ptr noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.1)
store ptr %37, ptr %11, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 0, ptr %5, align 4
br label %106
40: ; preds = %33
store i32 0, ptr %12, align 4
br label %41
41: ; preds = %52, %40
%42 = load i32, ptr %12, align 4
%43 = icmp slt i32 %42, 1078
br i1 %43, label %44, label %55
44: ; preds = %41
%45 = load ptr, ptr %11, align 8
%46 = load i32, ptr %12, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1080 x i32], ptr %13, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = trunc i32 %49 to i8
%51 = call i32 @fprintf(ptr noundef %45, ptr noundef @.str.2, i8 noundef signext %50)
br label %52
52: ; preds = %44
%53 = load i32, ptr %12, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %12, align 4
br label %41, !llvm.loop !8
55: ; preds = %41
store i32 0, ptr %15, align 4
br label %56
56: ; preds = %100, %55
%57 = load i32, ptr %15, align 4
%58 = load ptr, ptr %9, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 0
%60 = load i32, ptr %59, align 4
%61 = icmp slt i32 %57, %60
br i1 %61, label %62, label %103
62: ; preds = %56
store i32 0, ptr %16, align 4
br label %63
63: ; preds = %83, %62
%64 = load i32, ptr %16, align 4
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds i32, ptr %65, i64 1
%67 = load i32, ptr %66, align 4
%68 = icmp slt i32 %64, %67
br i1 %68, label %69, label %86
69: ; preds = %63
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %15, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds ptr, ptr %70, i64 %72
%74 = load ptr, ptr %73, align 8
%75 = load i32, ptr %16, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
store i32 %78, ptr %14, align 4
%79 = load ptr, ptr %11, align 8
%80 = load i32, ptr %14, align 4
%81 = trunc i32 %80 to i8
%82 = call i32 @fprintf(ptr noundef %79, ptr noundef @.str.2, i8 noundef signext %81)
br label %83
83: ; preds = %69
%84 = load i32, ptr %16, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %16, align 4
br label %63, !llvm.loop !9
86: ; preds = %63
store i32 0, ptr %17, align 4
br label %87
87: ; preds = %96, %86
%88 = load i32, ptr %17, align 4
%89 = load ptr, ptr %9, align 8
%90 = getelementptr inbounds i32, ptr %89, i64 2
%91 = load i32, ptr %90, align 4
%92 = icmp slt i32 %88, %91
br i1 %92, label %93, label %99
93: ; preds = %87
%94 = load ptr, ptr %11, align 8
%95 = call i32 @fprintf(ptr noundef %94, ptr noundef @.str.2, i8 noundef signext 0)
br label %96
96: ; preds = %93
%97 = load i32, ptr %17, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %17, align 4
br label %87, !llvm.loop !10
99: ; preds = %87
br label %100
100: ; preds = %99
%101 = load i32, ptr %15, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %15, align 4
br label %56, !llvm.loop !11
103: ; preds = %56
%104 = load ptr, ptr %11, align 8
%105 = call i32 @fclose(ptr noundef %104)
store i32 1, ptr %5, align 4
br label %106
106: ; preds = %103, %39, %21
%107 = load i32, ptr %5, align 4
ret i32 %107
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(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"}
!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/tmptt9opjy6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @salvar(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [1080 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 -1, ptr %12, align 4
%18 = load ptr, ptr %6, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str)
store ptr %19, ptr %10, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %4
store i32 0, ptr %5, align 4
br label %120
22: ; preds = %4
%23 = load i32, ptr %12, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %12, align 4
%25 = icmp slt i32 %23, 1079
br i1 %25, label %.lr.ph, label %35
.lr.ph: ; preds = %22
br label %26
26: ; preds = %.lr.ph, %26
%27 = load ptr, ptr %10, align 8
%28 = call i32 @fgetc(ptr noundef %27)
%29 = load i32, ptr %12, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1080 x i32], ptr %13, i64 0, i64 %30
store i32 %28, ptr %31, align 4
%32 = load i32, ptr %12, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %12, align 4
%34 = icmp slt i32 %32, 1079
br i1 %34, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %35
35: ; preds = %._crit_edge, %22
%36 = load ptr, ptr %10, align 8
%37 = call i32 @fclose(ptr noundef %36)
%38 = load ptr, ptr %7, align 8
%39 = call ptr @fopen(ptr noundef %38, ptr noundef @.str.1)
store ptr %39, ptr %11, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %42
41: ; preds = %35
store i32 0, ptr %5, align 4
br label %120
42: ; preds = %35
store i32 0, ptr %12, align 4
%43 = load i32, ptr %12, align 4
%44 = icmp slt i32 %43, 1078
br i1 %44, label %.lr.ph2, label %58
.lr.ph2: ; preds = %42
br label %45
45: ; preds = %.lr.ph2, %53
%46 = load ptr, ptr %11, align 8
%47 = load i32, ptr %12, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [1080 x i32], ptr %13, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = trunc i32 %50 to i8
%52 = call i32 @fprintf(ptr noundef %46, ptr noundef @.str.2, i8 noundef signext %51)
br label %53
53: ; preds = %45
%54 = load i32, ptr %12, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %12, align 4
%56 = load i32, ptr %12, align 4
%57 = icmp slt i32 %56, 1078
br i1 %57, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %58
58: ; preds = %._crit_edge3, %42
store i32 0, ptr %15, align 4
%59 = load i32, ptr %15, align 4
%60 = load ptr, ptr %9, align 8
%61 = load i32, ptr %60, align 4
%62 = icmp slt i32 %59, %61
br i1 %62, label %.lr.ph11, label %117
.lr.ph11: ; preds = %58
br label %63
63: ; preds = %.lr.ph11, %109
store i32 0, ptr %16, align 4
%64 = load i32, ptr %16, align 4
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds i32, ptr %65, i64 1
%67 = load i32, ptr %66, align 4
%68 = icmp slt i32 %64, %67
br i1 %68, label %.lr.ph5, label %91
.lr.ph5: ; preds = %63
br label %69
69: ; preds = %.lr.ph5, %83
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %15, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds ptr, ptr %70, i64 %72
%74 = load ptr, ptr %73, align 8
%75 = load i32, ptr %16, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
store i32 %78, ptr %14, align 4
%79 = load ptr, ptr %11, align 8
%80 = load i32, ptr %14, align 4
%81 = trunc i32 %80 to i8
%82 = call i32 @fprintf(ptr noundef %79, ptr noundef @.str.2, i8 noundef signext %81)
br label %83
83: ; preds = %69
%84 = load i32, ptr %16, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %16, align 4
%86 = load i32, ptr %16, align 4
%87 = load ptr, ptr %9, align 8
%88 = getelementptr inbounds i32, ptr %87, i64 1
%89 = load i32, ptr %88, align 4
%90 = icmp slt i32 %86, %89
br i1 %90, label %69, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %83
br label %91
91: ; preds = %._crit_edge6, %63
store i32 0, ptr %17, align 4
%92 = load i32, ptr %17, align 4
%93 = load ptr, ptr %9, align 8
%94 = getelementptr inbounds i32, ptr %93, i64 2
%95 = load i32, ptr %94, align 4
%96 = icmp slt i32 %92, %95
br i1 %96, label %.lr.ph8, label %108
.lr.ph8: ; preds = %91
br label %97
97: ; preds = %.lr.ph8, %100
%98 = load ptr, ptr %11, align 8
%99 = call i32 @fprintf(ptr noundef %98, ptr noundef @.str.2, i8 noundef signext 0)
br label %100
100: ; preds = %97
%101 = load i32, ptr %17, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %17, align 4
%103 = load i32, ptr %17, align 4
%104 = load ptr, ptr %9, align 8
%105 = getelementptr inbounds i32, ptr %104, i64 2
%106 = load i32, ptr %105, align 4
%107 = icmp slt i32 %103, %106
br i1 %107, label %97, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %100
br label %108
108: ; preds = %._crit_edge9, %91
br label %109
109: ; preds = %108
%110 = load i32, ptr %15, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %15, align 4
%112 = load i32, ptr %15, align 4
%113 = load ptr, ptr %9, align 8
%114 = getelementptr inbounds i32, ptr %113, i64 0
%115 = load i32, ptr %114, align 4
%116 = icmp slt i32 %112, %115
br i1 %116, label %63, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %109
br label %117
117: ; preds = %._crit_edge12, %58
%118 = load ptr, ptr %11, align 8
%119 = call i32 @fclose(ptr noundef %118)
store i32 1, ptr %5, align 4
br label %120
120: ; preds = %117, %41, %21
%121 = load i32, ptr %5, align 4
ret i32 %121
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(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"}
!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/tmpitm39z5q.c'
source_filename = "/tmp/tmpitm39z5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"M32_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M32_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpitm39z5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"M32_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M32_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdsqfeseo.c'
source_filename = "/tmp/tmpdsqfeseo.c"
target datalayout = "e-m:e-p270: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/tmpdsqfeseo.c"
target datalayout = "e-m:e-p270: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/tmp67dva5pv.c'
source_filename = "/tmp/tmp67dva5pv.c"
target datalayout = "e-m:e-p270: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/tmp67dva5pv.c"
target datalayout = "e-m:e-p270: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/tmpq0y9h6g3.c'
source_filename = "/tmp/tmpq0y9h6g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @time_test01()
ret i32 0
}
declare i32 @time_test01(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq0y9h6g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @time_test01()
ret i32 0
}
declare i32 @time_test01(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkoanlwi6.c'
source_filename = "/tmp/tmpkoanlwi6.c"
target datalayout = "e-m:e-p270: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/tmpkoanlwi6.c"
target datalayout = "e-m:e-p270: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/tmpe_h47l18.c'
source_filename = "/tmp/tmpe_h47l18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @std_int_str(ptr noalias noundef %0, ptr noalias noundef %1, ptr noalias noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %25
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %12, align 4
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %11
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fputc(i8 noundef signext 45, ptr noundef %17)
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 0, %19
store i32 %20, ptr %7, align 4
br label %21
21: ; preds = %16, %11
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %6, align 8
%24 = call i32 @int_put(i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %21, %3
ret void
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @int_put(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/tmpe_h47l18.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @std_int_str(ptr noalias noundef %0, ptr noalias noundef %1, ptr noalias noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %25
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %12, align 4
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %11
%17 = load ptr, ptr %6, align 8
%18 = call i32 @fputc(i8 noundef signext 45, ptr noundef %17)
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 0, %19
store i32 %20, ptr %7, align 4
br label %21
21: ; preds = %16, %11
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %6, align 8
%24 = call i32 @int_put(i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %21, %3
ret void
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @int_put(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/tmp2tmg58uv.c'
source_filename = "/tmp/tmp2tmg58uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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/tmp2tmg58uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = 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/tmpk1h67tbq.c'
source_filename = "/tmp/tmpk1h67tbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Usage: client serverAddress serverPort\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"%s not found in /etc/hosts\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%s is not a number\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Port must be in [1024, 65535]\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [15 x i8] c"Opening Socket\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Socket created: sd=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"Insert Input: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [7 x i8] c"\0ADONE\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [256 x i8], align 16
%12 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
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 ptr @gethostbyname(ptr noundef %21)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %31
25: ; preds = %18
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 2) #3
unreachable
31: ; preds = %18
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i32 @isNumber(ptr noundef %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %44, label %37
37: ; preds = %31
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 2
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %41)
%43 = call i32 @exit(i32 noundef 3) #3
unreachable
44: ; preds = %31
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 2
%47 = load ptr, ptr %46, align 8
%48 = call i32 @atoi(ptr noundef %47)
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %8, align 4
%50 = icmp slt i32 %49, 1024
br i1 %50, label %54, label %51
51: ; preds = %44
%52 = load i32, ptr %8, align 4
%53 = icmp sgt i32 %52, 65535
br i1 %53, label %54, label %57
54: ; preds = %51, %44
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%56 = call i32 @exit(i32 noundef 4) #3
unreachable
57: ; preds = %51
%58 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%59 = load i32, ptr @AF_INET, align 4
%60 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %59, ptr %60, align 4
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds %struct.hostent, ptr %61, i32 0, i32 0
%63 = load i64, ptr %62, align 8
%64 = inttoptr i64 %63 to ptr
%65 = getelementptr inbounds %struct.in_addr, ptr %64, i32 0, i32 0
%66 = load i32, ptr %65, align 4
%67 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%68 = getelementptr inbounds %struct.TYPE_2__, ptr %67, i32 0, i32 0
store i32 %66, ptr %68, align 4
%69 = load i32, ptr %8, align 4
%70 = call i32 @htons(i32 noundef %69)
%71 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %70, ptr %71, align 4
%72 = load i32, ptr @AF_INET, align 4
%73 = load i32, ptr @SOCK_STREAM, align 4
%74 = call i32 @socket(i32 noundef %72, i32 noundef %73, i32 noundef 0)
store i32 %74, ptr %9, align 4
%75 = load i32, ptr %9, align 4
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %57
%78 = call i32 @perror(ptr noundef @.str.5)
%79 = call i32 @exit(i32 noundef 1) #3
unreachable
80: ; preds = %57
%81 = load i32, ptr %9, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %81)
%83 = load i32, ptr %9, align 4
%84 = call i64 @connect(i32 noundef %83, ptr noundef %7, i32 noundef 4)
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %80
%87 = call i32 @perror(ptr noundef @.str.7)
%88 = call i32 @exit(i32 noundef 1) #3
unreachable
89: ; preds = %80
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.9)
br label %91
91: ; preds = %129, %89
%92 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%93 = load i32, ptr @stdin, align 4
%94 = call ptr @fgets(ptr noundef %92, i32 noundef 256, i32 noundef %93)
%95 = icmp ne ptr %94, null
br i1 %95, label %96, label %132
96: ; preds = %91
%97 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%98 = call i32 @strlen(ptr noundef %97)
%99 = sub nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp eq i32 %103, 10
br i1 %104, label %105, label %111
105: ; preds = %96
%106 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%107 = call i32 @strlen(ptr noundef %106)
%108 = sub nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 %109
store i8 0, ptr %110, align 1
br label %111
111: ; preds = %105, %96
%112 = load i32, ptr %9, align 4
%113 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%115 = call i32 @strlen(ptr noundef %114)
%116 = add nsw i32 %115, 1
%117 = call i32 @write(i32 noundef %112, ptr noundef %113, i32 noundef %116)
br label %118
118: ; preds = %127, %111
%119 = load i32, ptr %9, align 4
%120 = call i32 @read(i32 noundef %119, ptr noundef %12, i32 noundef 1)
store i32 %120, ptr %10, align 4
%121 = icmp sgt i32 %120, 0
br i1 %121, label %122, label %129
122: ; preds = %118
%123 = load i8, ptr %12, align 1
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %127
126: ; preds = %122
br label %129
127: ; preds = %122
%128 = call i32 @write(i32 noundef 1, ptr noundef %12, i32 noundef 1)
br label %118, !llvm.loop !6
129: ; preds = %126, %118
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.9)
br label %91, !llvm.loop !8
132: ; preds = %91
%133 = load i32, ptr %9, align 4
%134 = call i32 @close(i32 noundef %133)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @isNumber(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1h67tbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Usage: client serverAddress serverPort\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"%s not found in /etc/hosts\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%s is not a number\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Port must be in [1024, 65535]\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [15 x i8] c"Opening Socket\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Socket created: sd=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"Insert Input: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [7 x i8] c"\0ADONE\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [256 x i8], align 16
%12 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
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 ptr @gethostbyname(ptr noundef %21)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %31
25: ; preds = %18
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 2) #3
unreachable
31: ; preds = %18
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i32 @isNumber(ptr noundef %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %44, label %37
37: ; preds = %31
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 2
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %41)
%43 = call i32 @exit(i32 noundef 3) #3
unreachable
44: ; preds = %31
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 2
%47 = load ptr, ptr %46, align 8
%48 = call i32 @atoi(ptr noundef %47)
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %8, align 4
%50 = icmp slt i32 %49, 1024
br i1 %50, label %54, label %51
51: ; preds = %44
%52 = load i32, ptr %8, align 4
%53 = icmp sgt i32 %52, 65535
br i1 %53, label %54, label %57
54: ; preds = %51, %44
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%56 = call i32 @exit(i32 noundef 4) #3
unreachable
57: ; preds = %51
%58 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%59 = load i32, ptr @AF_INET, align 4
%60 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %59, ptr %60, align 4
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds %struct.hostent, ptr %61, i32 0, i32 0
%63 = load i64, ptr %62, align 8
%64 = inttoptr i64 %63 to ptr
%65 = getelementptr inbounds %struct.in_addr, ptr %64, i32 0, i32 0
%66 = load i32, ptr %65, align 4
%67 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%68 = getelementptr inbounds %struct.TYPE_2__, ptr %67, i32 0, i32 0
store i32 %66, ptr %68, align 4
%69 = load i32, ptr %8, align 4
%70 = call i32 @htons(i32 noundef %69)
%71 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %70, ptr %71, align 4
%72 = load i32, ptr @AF_INET, align 4
%73 = load i32, ptr @SOCK_STREAM, align 4
%74 = call i32 @socket(i32 noundef %72, i32 noundef %73, i32 noundef 0)
store i32 %74, ptr %9, align 4
%75 = load i32, ptr %9, align 4
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %57
%78 = call i32 @perror(ptr noundef @.str.5)
%79 = call i32 @exit(i32 noundef 1) #3
unreachable
80: ; preds = %57
%81 = load i32, ptr %9, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %81)
%83 = load i32, ptr %9, align 4
%84 = call i64 @connect(i32 noundef %83, ptr noundef %7, i32 noundef 4)
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %80
%87 = call i32 @perror(ptr noundef @.str.7)
%88 = call i32 @exit(i32 noundef 1) #3
unreachable
89: ; preds = %80
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.9)
%91 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%92 = load i32, ptr @stdin, align 4
%93 = call ptr @fgets(ptr noundef %91, i32 noundef 256, i32 noundef %92)
%94 = icmp ne ptr %93, null
br i1 %94, label %.lr.ph1, label %136
.lr.ph1: ; preds = %89
br label %95
95: ; preds = %.lr.ph1, %130
%96 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%97 = call i32 @strlen(ptr noundef %96)
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 %99
%101 = load i8, ptr %100, align 1
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 10
br i1 %103, label %104, label %110
104: ; preds = %95
%105 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%106 = call i32 @strlen(ptr noundef %105)
%107 = sub nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 %108
store i8 0, ptr %109, align 1
br label %110
110: ; preds = %104, %95
%111 = load i32, ptr %9, align 4
%112 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%113 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%114 = call i32 @strlen(ptr noundef %113)
%115 = add nsw i32 %114, 1
%116 = call i32 @write(i32 noundef %111, ptr noundef %112, i32 noundef %115)
%117 = load i32, ptr %9, align 4
%118 = call i32 @read(i32 noundef %117, ptr noundef %12, i32 noundef 1)
store i32 %118, ptr %10, align 4
%119 = icmp sgt i32 %118, 0
br i1 %119, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %110
br label %120
120: ; preds = %.lr.ph, %125
%121 = load i8, ptr %12, align 1
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %125
124: ; preds = %120
br label %130
125: ; preds = %120
%126 = call i32 @write(i32 noundef 1, ptr noundef %12, i32 noundef 1)
%127 = load i32, ptr %9, align 4
%128 = call i32 @read(i32 noundef %127, ptr noundef %12, i32 noundef 1)
store i32 %128, ptr %10, align 4
%129 = icmp sgt i32 %128, 0
br i1 %129, label %120, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %125
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %110
br label %130
130: ; preds = %.loopexit, %124
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.9)
%133 = load i32, ptr @stdin, align 4
%134 = call ptr @fgets(ptr noundef %91, i32 noundef 256, i32 noundef %133)
%135 = icmp ne ptr %134, null
br i1 %135, label %95, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %130
br label %136
136: ; preds = %._crit_edge, %89
%137 = load i32, ptr %9, align 4
%138 = call i32 @close(i32 noundef %137)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @isNumber(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpegjhk81n.c'
source_filename = "/tmp/tmpegjhk81n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpHex(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [17 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 16
store i8 0, ptr %8, align 16
store i64 0, ptr %6, align 8
br label %9
9: ; preds = %91, %2
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %94
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i64, ptr %6, align 8
%16 = getelementptr inbounds i8, ptr %14, i64 %15
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = icmp sge i32 %18, 32
br i1 %19, label %20, label %35
20: ; preds = %13
%21 = load ptr, ptr %3, align 8
%22 = load i64, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = icmp sle i32 %25, 126
br i1 %26, label %27, label %35
27: ; preds = %20
%28 = load ptr, ptr %3, align 8
%29 = load i64, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load i64, ptr %6, align 8
%33 = urem i64 %32, 16
%34 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %33
store i8 %31, ptr %34, align 1
br label %39
35: ; preds = %20, %13
%36 = load i64, ptr %6, align 8
%37 = urem i64 %36, 16
%38 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %37
store i8 46, ptr %38, align 1
br label %39
39: ; preds = %35, %27
%40 = load i64, ptr %6, align 8
%41 = add i64 %40, 1
%42 = urem i64 %41, 8
%43 = icmp eq i64 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %39
%45 = load i64, ptr %6, align 8
%46 = add i64 %45, 1
%47 = load i64, ptr %4, align 8
%48 = icmp eq i64 %46, %47
br i1 %48, label %49, label %90
49: ; preds = %44, %39
%50 = load i64, ptr %6, align 8
%51 = add i64 %50, 1
%52 = urem i64 %51, 16
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load i64, ptr %6, align 8
%56 = add i64 %55, 1
%57 = load i64, ptr %4, align 8
%58 = icmp ult i64 %56, %57
br i1 %58, label %59, label %60
59: ; preds = %54
br label %60
60: ; preds = %59, %54
br label %89
61: ; preds = %49
%62 = load i64, ptr %6, align 8
%63 = add i64 %62, 1
%64 = load i64, ptr %4, align 8
%65 = icmp eq i64 %63, %64
br i1 %65, label %66, label %88
66: ; preds = %61
%67 = load i64, ptr %6, align 8
%68 = add i64 %67, 1
%69 = urem i64 %68, 16
%70 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %69
store i8 0, ptr %70, align 1
%71 = load i64, ptr %6, align 8
%72 = add i64 %71, 1
%73 = urem i64 %72, 16
%74 = icmp ule i64 %73, 8
br i1 %74, label %75, label %76
75: ; preds = %66
br label %76
76: ; preds = %75, %66
%77 = load i64, ptr %6, align 8
%78 = add i64 %77, 1
%79 = urem i64 %78, 16
store i64 %79, ptr %7, align 8
br label %80
80: ; preds = %84, %76
%81 = load i64, ptr %7, align 8
%82 = icmp ult i64 %81, 16
br i1 %82, label %83, label %87
83: ; preds = %80
br label %84
84: ; preds = %83
%85 = load i64, ptr %7, align 8
%86 = add i64 %85, 1
store i64 %86, ptr %7, align 8
br label %80, !llvm.loop !6
87: ; preds = %80
br label %88
88: ; preds = %87, %61
br label %89
89: ; preds = %88, %60
br label %90
90: ; preds = %89, %44
br label %91
91: ; preds = %90
%92 = load i64, ptr %6, align 8
%93 = add i64 %92, 1
store i64 %93, ptr %6, align 8
br label %9, !llvm.loop !8
94: ; preds = %9
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpegjhk81n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpHex(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [17 x i8], align 16
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 16
store i8 0, ptr %8, align 16
store i64 0, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph2, label %97
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %91
%13 = load ptr, ptr %3, align 8
%14 = load i64, ptr %6, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = icmp sge i32 %17, 32
br i1 %18, label %19, label %34
19: ; preds = %12
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = icmp sle i32 %24, 126
br i1 %25, label %26, label %34
26: ; preds = %19
%27 = load ptr, ptr %3, align 8
%28 = load i64, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load i64, ptr %6, align 8
%32 = urem i64 %31, 16
%33 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %32
store i8 %30, ptr %33, align 1
br label %38
34: ; preds = %19, %12
%35 = load i64, ptr %6, align 8
%36 = urem i64 %35, 16
%37 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %36
store i8 46, ptr %37, align 1
br label %38
38: ; preds = %34, %26
%39 = load i64, ptr %6, align 8
%40 = add i64 %39, 1
%41 = urem i64 %40, 8
%42 = icmp eq i64 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %38
%44 = load i64, ptr %6, align 8
%45 = add i64 %44, 1
%46 = load i64, ptr %4, align 8
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %90
48: ; preds = %43, %38
%49 = load i64, ptr %6, align 8
%50 = add i64 %49, 1
%51 = urem i64 %50, 16
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %60
53: ; preds = %48
%54 = load i64, ptr %6, align 8
%55 = add i64 %54, 1
%56 = load i64, ptr %4, align 8
%57 = icmp ult i64 %55, %56
br i1 %57, label %58, label %59
58: ; preds = %53
br label %59
59: ; preds = %58, %53
br label %89
60: ; preds = %48
%61 = load i64, ptr %6, align 8
%62 = add i64 %61, 1
%63 = load i64, ptr %4, align 8
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %88
65: ; preds = %60
%66 = load i64, ptr %6, align 8
%67 = add i64 %66, 1
%68 = urem i64 %67, 16
%69 = getelementptr inbounds [17 x i8], ptr %5, i64 0, i64 %68
store i8 0, ptr %69, align 1
%70 = load i64, ptr %6, align 8
%71 = add i64 %70, 1
%72 = urem i64 %71, 16
%73 = icmp ule i64 %72, 8
br i1 %73, label %74, label %75
74: ; preds = %65
br label %75
75: ; preds = %74, %65
%76 = load i64, ptr %6, align 8
%77 = add i64 %76, 1
%78 = urem i64 %77, 16
store i64 %78, ptr %7, align 8
%79 = load i64, ptr %7, align 8
%80 = icmp ult i64 %79, 16
br i1 %80, label %.lr.ph, label %87
.lr.ph: ; preds = %75
br label %81
81: ; preds = %.lr.ph, %82
br label %82
82: ; preds = %81
%83 = load i64, ptr %7, align 8
%84 = add i64 %83, 1
store i64 %84, ptr %7, align 8
%85 = load i64, ptr %7, align 8
%86 = icmp ult i64 %85, 16
br i1 %86, label %81, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %82
br label %87
87: ; preds = %._crit_edge, %75
br label %88
88: ; preds = %87, %60
br label %89
89: ; preds = %88, %59
br label %90
90: ; preds = %89, %43
br label %91
91: ; preds = %90
%92 = load i64, ptr %6, align 8
%93 = add i64 %92, 1
store i64 %93, ptr %6, align 8
%94 = load i64, ptr %6, align 8
%95 = load i64, ptr %4, align 8
%96 = icmp ult i64 %94, %95
br i1 %96, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %91
br label %97
97: ; preds = %._crit_edge3, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsgm21b4o.c'
source_filename = "/tmp/tmpsgm21b4o.c"
target datalayout = "e-m:e-p270: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/tmpsgm21b4o.c"
target datalayout = "e-m:e-p270: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/tmpuqzm8fqf.c'
source_filename = "/tmp/tmpuqzm8fqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"usage: %s <dirname>\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"My child is going to execute command \22ls -laR %s\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"creat\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"-laR\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Command not executed !\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %3
store ptr null, ptr %9, align 8
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 3
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %9, align 8
br label %26
26: ; preds = %22, %19
%27 = call i64 (...) @fork()
store i64 %27, ptr %8, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp sgt i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33)
br label %61
35: ; preds = %26
%36 = load i64, ptr %8, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %60
38: ; preds = %35
%39 = load ptr, ptr %9, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %53
41: ; preds = %38
%42 = load ptr, ptr %9, align 8
%43 = call i32 @creat(ptr noundef %42, i32 noundef 511)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @perror(ptr noundef @.str.2)
br label %52
48: ; preds = %41
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr @STDOUT_FILENO, align 4
%51 = call i32 @dup2(i32 noundef %49, i32 noundef %50)
br label %52
52: ; preds = %48, %46
br label %53
53: ; preds = %52, %38
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 @execlp(ptr noundef @.str.3, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%59 = call i32 @exit(i32 noundef 1) #3
unreachable
60: ; preds = %35
br label %61
61: ; preds = %60, %30
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpuqzm8fqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"usage: %s <dirname>\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"My child is going to execute command \22ls -laR %s\22\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"creat\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"-laR\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Command not executed !\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %3
store ptr null, ptr %9, align 8
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 3
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %9, align 8
br label %26
26: ; preds = %22, %19
%27 = call i64 (...) @fork()
store i64 %27, ptr %8, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp sgt i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33)
br label %61
35: ; preds = %26
%36 = load i64, ptr %8, align 8
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %60
38: ; preds = %35
%39 = load ptr, ptr %9, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %53
41: ; preds = %38
%42 = load ptr, ptr %9, align 8
%43 = call i32 @creat(ptr noundef %42, i32 noundef 511)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @perror(ptr noundef @.str.2)
br label %52
48: ; preds = %41
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr @STDOUT_FILENO, align 4
%51 = call i32 @dup2(i32 noundef %49, i32 noundef %50)
br label %52
52: ; preds = %48, %46
br label %53
53: ; preds = %52, %38
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 @execlp(ptr noundef @.str.3, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%59 = call i32 @exit(i32 noundef 1) #3
unreachable
60: ; preds = %35
br label %61
61: ; preds = %60, %30
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fork(...) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp1087vf3m.c'
source_filename = "/tmp/tmp1087vf3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dynarr_clear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @dynarr_resize(ptr noundef %3, i32 noundef 0)
ret ptr %4
}
declare ptr @dynarr_resize(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/tmp1087vf3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dynarr_clear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @dynarr_resize(ptr noundef %3, i32 noundef 0)
ret ptr %4
}
declare ptr @dynarr_resize(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/tmpnyxsvftg.c'
source_filename = "/tmp/tmpnyxsvftg.c"
target datalayout = "e-m:e-p270: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/tmpnyxsvftg.c"
target datalayout = "e-m:e-p270: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/tmpk_zasb9x.c'
source_filename = "/tmp/tmpk_zasb9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Please enter path to file: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Please enter path to modified file:\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Done!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4096 x i8], align 16
%3 = alloca [4096 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4097 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%10 = call i32 @printf(ptr noundef @.str.2)
%11 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
%13 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str.3)
store ptr %14, ptr %4, align 8
%15 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.4)
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %24
19: ; preds = %0
%20 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%21 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @copy(ptr noundef %20, ptr noundef %21)
%23 = call i32 @printf(ptr noundef @.str.5)
br label %24
24: ; preds = %19, %0
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @copy(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/tmpk_zasb9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Please enter path to file: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Please enter path to modified file:\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Done!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4096 x i8], align 16
%3 = alloca [4096 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4097 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%10 = call i32 @printf(ptr noundef @.str.2)
%11 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
%13 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str.3)
store ptr %14, ptr %4, align 8
%15 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.4)
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %24
19: ; preds = %0
%20 = getelementptr inbounds [4096 x i8], ptr %2, i64 0, i64 0
%21 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @copy(ptr noundef %20, ptr noundef %21)
%23 = call i32 @printf(ptr noundef @.str.5)
br label %24
24: ; preds = %19, %0
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @copy(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/tmp6l9rfgzy.c'
source_filename = "/tmp/tmp6l9rfgzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Enter a string and a number.\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c" %u%*c\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Reversed string:\0A%s\0A\0AReversed number: %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [82 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 80, i32 noundef %8)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 %14
store i8 0, ptr %15, align 1
store i32 0, ptr %4, align 4
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %20, %0
%18 = load i32, ptr %4, align 4
%19 = add i32 %18, 1
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = udiv i32 %21, 10
store i32 %22, ptr %5, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %17, label %24, !llvm.loop !6
24: ; preds = %20
store i32 0, ptr %5, align 4
br label %25
25: ; preds = %34, %24
%26 = load i32, ptr %3, align 4
%27 = urem i32 %26, 10
%28 = load i32, ptr %4, align 4
%29 = add i32 %28, -1
store i32 %29, ptr %4, align 4
%30 = call i32 @pow(i32 noundef 10, i32 noundef %29)
%31 = mul i32 %27, %30
%32 = load i32, ptr %5, align 4
%33 = add i32 %32, %31
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %25
%35 = load i32, ptr %3, align 4
%36 = udiv i32 %35, 10
store i32 %36, ptr %3, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %25, label %38, !llvm.loop !8
38: ; preds = %34
%39 = load i32, ptr %5, align 4
store i32 %39, ptr %3, align 4
%40 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%41 = call ptr @strrev(ptr noundef %40)
%42 = load i32, ptr %3, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %41, i32 noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare ptr @strrev(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6l9rfgzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Enter a string and a number.\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c" %u%*c\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c"Reversed string:\0A%s\0A\0AReversed number: %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [82 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 80, i32 noundef %8)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 %14
store i8 0, ptr %15, align 1
store i32 0, ptr %4, align 4
%16 = load i32, ptr %3, align 4
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %20, %0
%18 = load i32, ptr %4, align 4
%19 = add i32 %18, 1
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = udiv i32 %21, 10
store i32 %22, ptr %5, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %17, label %24, !llvm.loop !6
24: ; preds = %20
store i32 0, ptr %5, align 4
br label %25
25: ; preds = %34, %24
%26 = load i32, ptr %3, align 4
%27 = urem i32 %26, 10
%28 = load i32, ptr %4, align 4
%29 = add i32 %28, -1
store i32 %29, ptr %4, align 4
%30 = call i32 @pow(i32 noundef 10, i32 noundef %29)
%31 = mul i32 %27, %30
%32 = load i32, ptr %5, align 4
%33 = add i32 %32, %31
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %25
%35 = load i32, ptr %3, align 4
%36 = udiv i32 %35, 10
store i32 %36, ptr %3, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %25, label %38, !llvm.loop !8
38: ; preds = %34
%39 = load i32, ptr %5, align 4
store i32 %39, ptr %3, align 4
%40 = getelementptr inbounds [82 x i8], ptr %2, i64 0, i64 0
%41 = call ptr @strrev(ptr noundef %40)
%42 = load i32, ptr %3, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %41, i32 noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare ptr @strrev(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpcl3kxgn9.c'
source_filename = "/tmp/tmpcl3kxgn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages > \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%f%f%f%f\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Student has a B grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Student has a C grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"Student has a D grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"Student has failed the course\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 float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%11 = load float, ptr %6, align 4
%12 = load float, ptr %2, align 4
%13 = fcmp oge float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.4)
br label %44
16: ; preds = %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %3, align 4
%19 = fcmp oge float %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.5)
br label %43
22: ; preds = %16
%23 = load float, ptr %6, align 4
%24 = load float, ptr %4, align 4
%25 = fcmp oge float %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.6)
br label %42
28: ; preds = %22
%29 = load float, ptr %6, align 4
%30 = load float, ptr %5, align 4
%31 = fcmp oge float %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(ptr noundef @.str.7)
br label %41
34: ; preds = %28
%35 = load float, ptr %6, align 4
%36 = load float, ptr %5, align 4
%37 = fcmp olt float %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @printf(ptr noundef @.str.8)
br label %40
40: ; preds = %38, %34
br label %41
41: ; preds = %40, %32
br label %42
42: ; preds = %41, %26
br label %43
43: ; preds = %42, %20
br label %44
44: ; preds = %43, %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcl3kxgn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Enter thresholds for A, B, C, D\0Ain that order, decreasing percentages > \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%f%f%f%f\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Student has an A grade\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Student has a B grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Student has a C grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"Student has a D grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"Student has failed the course\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 float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%11 = load float, ptr %6, align 4
%12 = load float, ptr %2, align 4
%13 = fcmp oge float %11, %12
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(ptr noundef @.str.4)
br label %44
16: ; preds = %0
%17 = load float, ptr %6, align 4
%18 = load float, ptr %3, align 4
%19 = fcmp oge float %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.5)
br label %43
22: ; preds = %16
%23 = load float, ptr %6, align 4
%24 = load float, ptr %4, align 4
%25 = fcmp oge float %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(ptr noundef @.str.6)
br label %42
28: ; preds = %22
%29 = load float, ptr %6, align 4
%30 = load float, ptr %5, align 4
%31 = fcmp oge float %29, %30
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @printf(ptr noundef @.str.7)
br label %41
34: ; preds = %28
%35 = load float, ptr %6, align 4
%36 = load float, ptr %5, align 4
%37 = fcmp olt float %35, %36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @printf(ptr noundef @.str.8)
br label %40
40: ; preds = %38, %34
br label %41
41: ; preds = %40, %32
br label %42
42: ; preds = %41, %26
br label %43
43: ; preds = %42, %20
br label %44
44: ; preds = %43, %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ntte_ow.c'
source_filename = "/tmp/tmp5ntte_ow.c"
target datalayout = "e-m:e-p270: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/tmp5ntte_ow.c"
target datalayout = "e-m:e-p270: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/tmp42qu711b.c'
source_filename = "/tmp/tmp42qu711b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcm2835_aux_muart_transfernb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = call i32 @bcm2835_aux_muart_transfer(i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
br label %3, !llvm.loop !6
14: ; preds = %3
%15 = call i32 @bcm2835_aux_muart_transfer(i32 noundef 13)
%16 = call i32 @bcm2835_aux_muart_transfer(i32 noundef 10)
ret void
}
declare i32 @bcm2835_aux_muart_transfer(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/tmp42qu711b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcm2835_aux_muart_transfernb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = call i32 @bcm2835_aux_muart_transfer(i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %16
16: ; preds = %._crit_edge, %1
%17 = call i32 @bcm2835_aux_muart_transfer(i32 noundef 13)
%18 = call i32 @bcm2835_aux_muart_transfer(i32 noundef 10)
ret void
}
declare i32 @bcm2835_aux_muart_transfer(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/tmpmuuidept.c'
source_filename = "/tmp/tmpmuuidept.c"
target datalayout = "e-m:e-p270: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/tmpmuuidept.c"
target datalayout = "e-m:e-p270: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/tmpql91infz.c'
source_filename = "/tmp/tmpql91infz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qTU(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double 9.734000e+01, ptr %5, align 8
store double -1.139000e-02, ptr %6, align 8
store double -4.917000e-02, ptr %7, align 8
%8 = load double, ptr %3, align 8
%9 = fcmp ogt double %8, 1.000000e+02
br i1 %9, label %10, label %11
10: ; preds = %1
store double 5.000000e+00, ptr %2, align 8
br label %23
11: ; preds = %1
%12 = load double, ptr %5, align 8
%13 = load double, ptr %6, align 8
%14 = load double, ptr %3, align 8
%15 = load double, ptr %7, align 8
%16 = load double, ptr %3, align 8
%17 = call double @sqrt(double noundef %16) #3
%18 = fmul double %15, %17
%19 = call double @llvm.fmuladd.f64(double %13, double %14, double %18)
%20 = call double @exp(double noundef %19) #3
%21 = fmul double %12, %20
store double %21, ptr %4, align 8
%22 = load double, ptr %4, align 8
store double %22, ptr %2, align 8
br label %23
23: ; preds = %11, %10
%24 = load double, ptr %2, align 8
ret double %24
}
; Function Attrs: nounwind
declare double @exp(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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpql91infz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qTU(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double 9.734000e+01, ptr %5, align 8
store double -1.139000e-02, ptr %6, align 8
store double -4.917000e-02, ptr %7, align 8
%8 = load double, ptr %3, align 8
%9 = fcmp ogt double %8, 1.000000e+02
br i1 %9, label %10, label %11
10: ; preds = %1
store double 5.000000e+00, ptr %2, align 8
br label %23
11: ; preds = %1
%12 = load double, ptr %5, align 8
%13 = load double, ptr %6, align 8
%14 = load double, ptr %3, align 8
%15 = load double, ptr %7, align 8
%16 = load double, ptr %3, align 8
%17 = call double @sqrt(double noundef %16) #3
%18 = fmul double %15, %17
%19 = call double @llvm.fmuladd.f64(double %13, double %14, double %18)
%20 = call double @exp(double noundef %19) #3
%21 = fmul double %12, %20
store double %21, ptr %4, align 8
%22 = load double, ptr %4, align 8
store double %22, ptr %2, align 8
br label %23
23: ; preds = %11, %10
%24 = load double, ptr %2, align 8
ret double %24
}
; Function Attrs: nounwind
declare double @exp(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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpoighupvn.c'
source_filename = "/tmp/tmpoighupvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@eslib_proc_getname.name = internal global [32 x i8] zeroinitializer, align 16
@eslib_proc_getname.once = internal global i32 1, align 4
@.str = private unnamed_addr constant [17 x i8] c"/proc/%d/cmdline\00", align 1
@O_CLOEXEC = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"could not open %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [12 x i8] c"no-procname\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @eslib_proc_getname() #0 {
%1 = alloca ptr, align 8
%2 = alloca [64 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = load i32, ptr @eslib_proc_getname.once, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %47
7: ; preds = %0
%8 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%9 = call i32 (...) @getpid()
%10 = call i32 (ptr, i32, ptr, ptr, ...) @eslib_string_sprintf(ptr noundef %8, i32 noundef 64, ptr noundef null, ptr noundef @.str, i32 noundef %9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %7
br label %48
13: ; preds = %7
%14 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr @O_CLOEXEC, align 4
%16 = load i32, ptr @O_RDONLY, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @O_NOCTTY, align 4
%19 = or i32 %17, %18
%20 = call i32 @open(ptr noundef %14, i32 noundef %19)
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %13
%24 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%25 = call i32 @printf(ptr noundef @.str.1, ptr noundef %24)
br label %48
26: ; preds = %13
br label %27
27: ; preds = %26, %40
%28 = load i32, ptr %3, align 4
%29 = call i32 @read(i32 noundef %28, ptr noundef @eslib_proc_getname.name, i32 noundef 31)
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %41
32: ; preds = %27
%33 = load i64, ptr @errno, align 8
%34 = load i64, ptr @EINTR, align 8
%35 = icmp eq i64 %33, %34
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = load i64, ptr @errno, align 8
%38 = load i64, ptr @EAGAIN, align 8
%39 = icmp eq i64 %37, %38
br i1 %39, label %40, label %41
40: ; preds = %36, %32
br label %27
41: ; preds = %36, %27
%42 = load i32, ptr %4, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41
br label %46
45: ; preds = %41
br label %48
46: ; preds = %44
store i32 0, ptr @eslib_proc_getname.once, align 4
br label %47
47: ; preds = %46, %0
store i8 0, ptr getelementptr inbounds ([32 x i8], ptr @eslib_proc_getname.name, i64 0, i64 31), align 1
store ptr @eslib_proc_getname.name, ptr %1, align 8
br label %50
48: ; preds = %45, %23, %12
store i32 0, ptr @eslib_proc_getname.once, align 4
%49 = call i32 (ptr, i32, ptr, ptr, ...) @eslib_string_sprintf(ptr noundef @eslib_proc_getname.name, i32 noundef 32, ptr noundef null, ptr noundef @.str.2)
store ptr @eslib_proc_getname.name, ptr %1, align 8
br label %50
50: ; preds = %48, %47
%51 = load ptr, ptr %1, align 8
ret ptr %51
}
declare i32 @eslib_string_sprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoighupvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@eslib_proc_getname.name = internal global [32 x i8] zeroinitializer, align 16
@eslib_proc_getname.once = internal global i32 1, align 4
@.str = private unnamed_addr constant [17 x i8] c"/proc/%d/cmdline\00", align 1
@O_CLOEXEC = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"could not open %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [12 x i8] c"no-procname\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @eslib_proc_getname() #0 {
%1 = alloca ptr, align 8
%2 = alloca [64 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = load i32, ptr @eslib_proc_getname.once, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %50
7: ; preds = %0
%8 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%9 = call i32 (...) @getpid()
%10 = call i32 (ptr, i32, ptr, ptr, ...) @eslib_string_sprintf(ptr noundef %8, i32 noundef 64, ptr noundef null, ptr noundef @.str, i32 noundef %9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %7
br label %51
13: ; preds = %7
%14 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr @O_CLOEXEC, align 4
%16 = load i32, ptr @O_RDONLY, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @O_NOCTTY, align 4
%19 = or i32 %17, %18
%20 = call i32 @open(ptr noundef %14, i32 noundef %19)
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %13
%24 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%25 = call i32 @printf(ptr noundef @.str.1, ptr noundef %24)
br label %51
26: ; preds = %13
%27 = load i32, ptr %3, align 4
%28 = call i32 @read(i32 noundef %27, ptr noundef @eslib_proc_getname.name, i32 noundef 31)
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %.lr.ph, label %44
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %39
%32 = load i64, ptr @errno, align 8
%33 = load i64, ptr @EINTR, align 8
%34 = icmp eq i64 %32, %33
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = load i64, ptr @errno, align 8
%37 = load i64, ptr @EAGAIN, align 8
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %._crit_edge
39: ; preds = %35, %31
%40 = load i32, ptr %3, align 4
%41 = call i32 @read(i32 noundef %40, ptr noundef @eslib_proc_getname.name, i32 noundef 31)
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %42, -1
br i1 %43, label %31, label %._crit_edge1
._crit_edge: ; preds = %35
br label %44
._crit_edge1: ; preds = %39
br label %44
44: ; preds = %._crit_edge1, %._crit_edge, %26
%45 = load i32, ptr %4, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %44
br label %49
48: ; preds = %44
br label %51
49: ; preds = %47
store i32 0, ptr @eslib_proc_getname.once, align 4
br label %50
50: ; preds = %49, %0
store i8 0, ptr getelementptr inbounds ([32 x i8], ptr @eslib_proc_getname.name, i64 0, i64 31), align 1
store ptr @eslib_proc_getname.name, ptr %1, align 8
br label %53
51: ; preds = %48, %23, %12
store i32 0, ptr @eslib_proc_getname.once, align 4
%52 = call i32 (ptr, i32, ptr, ptr, ...) @eslib_string_sprintf(ptr noundef @eslib_proc_getname.name, i32 noundef 32, ptr noundef null, ptr noundef @.str.2)
store ptr @eslib_proc_getname.name, ptr %1, align 8
br label %53
53: ; preds = %51, %50
%54 = load ptr, ptr %1, align 8
ret ptr %54
}
declare i32 @eslib_string_sprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbkjriwwo.c'
source_filename = "/tmp/tmpbkjriwwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table_end(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %10, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds ptr, ptr %11, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @free(ptr noundef %16)
br label %6, !llvm.loop !6
18: ; preds = %6
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbkjriwwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table_end(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %5, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds ptr, ptr %10, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @free(ptr noundef %15)
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %20
20: ; preds = %._crit_edge, %2
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ktfv9n_.c'
source_filename = "/tmp/tmp7ktfv9n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca [5 x i32], align 16
%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.x, i64 20, i1 false)
store i32 5, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %16, %0
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i32, ptr %5, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
br label %6, !llvm.loop !6
19: ; preds = %6
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%21 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%22 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%23 = load i32, ptr %4, align 4
%24 = call i32 @reverse(ptr noundef %21, ptr noundef %22, i32 noundef %23)
store i32 0, ptr %5, align 4
br label %25
25: ; preds = %35, %19
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %25, !llvm.loop !8
38: ; preds = %25
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @reverse(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ktfv9n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca [5 x i32], align 16
%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.x, i64 20, i1 false)
store i32 5, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %5, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%23 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%24 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%25 = load i32, ptr %4, align 4
%26 = call i32 @reverse(ptr noundef %23, ptr noundef %24, i32 noundef %25)
store i32 0, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph2, label %42
.lr.ph2: ; preds = %21
br label %30
30: ; preds = %.lr.ph2, %36
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %34)
br label %36
36: ; preds = %30
%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 slt i32 %39, %40
br i1 %41, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %21
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @reverse(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpax5vg_nh.c'
source_filename = "/tmp/tmpax5vg_nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rindex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @strchr(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @strchr(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpax5vg_nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rindex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call ptr @strchr(ptr noundef %5, i32 noundef %6)
ret ptr %7
}
declare ptr @strchr(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaix4gbgz.c'
source_filename = "/tmp/tmpaix4gbgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @right(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call i32 @motion_direction(i32 noundef 10)
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @speed_control(i32 noundef %6, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @cal_angle(i32 noundef %9)
%11 = call i32 @_delay_us(i32 noundef 10)
ret void
}
declare i32 @motion_direction(i32 noundef) #1
declare i32 @speed_control(i32 noundef, i32 noundef) #1
declare i32 @cal_angle(i32 noundef) #1
declare i32 @_delay_us(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/tmpaix4gbgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @right(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call i32 @motion_direction(i32 noundef 10)
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @speed_control(i32 noundef %6, i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @cal_angle(i32 noundef %9)
%11 = call i32 @_delay_us(i32 noundef 10)
ret void
}
declare i32 @motion_direction(i32 noundef) #1
declare i32 @speed_control(i32 noundef, i32 noundef) #1
declare i32 @cal_angle(i32 noundef) #1
declare i32 @_delay_us(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/tmp9gbor29k.c'
source_filename = "/tmp/tmp9gbor29k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Help:\0A? - help\0Aq - quit\0Aarrows - move and rotate\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9gbor29k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Help:\0A? - help\0Aq - quit\0Aarrows - move and rotate\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmezrfnds.c'
source_filename = "/tmp/tmpmezrfnds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @aio_write(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(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/tmpmezrfnds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @aio_write(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(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/tmph6i8lcx8.c'
source_filename = "/tmp/tmph6i8lcx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbuf_split(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %3
br label %34
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %8, align 8
br label %15
15: ; preds = %22, %12
%16 = load ptr, ptr %8, align 8
%17 = load i8, ptr %6, align 1
%18 = call ptr @strrchr(ptr noundef %16, i8 noundef signext %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %22, label %21
21: ; preds = %15
br label %28
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = call i32 @sbuf_list_prepend(ptr noundef %23, ptr noundef %25)
%27 = load ptr, ptr %7, align 8
store i8 0, ptr %27, align 1
br label %15
28: ; preds = %21
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %8, align 8
%31 = call i32 @sbuf_list_prepend(ptr noundef %29, ptr noundef %30)
%32 = load ptr, ptr %8, align 8
%33 = call i32 @free(ptr noundef %32)
br label %34
34: ; preds = %28, %11
ret void
}
declare ptr @strdup(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @sbuf_list_prepend(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph6i8lcx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbuf_split(ptr noundef %0, ptr noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %3
br label %38
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %8, align 8
%15 = load ptr, ptr %8, align 8
%16 = load i8, ptr %6, align 1
%17 = call ptr @strrchr(ptr noundef %15, i8 noundef signext %16)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %20
.lr.ph: ; preds = %12
br label %21
._crit_edge: ; preds = %21
br label %20
20: ; preds = %._crit_edge, %12
br label %32
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = call i32 @sbuf_list_prepend(ptr noundef %22, ptr noundef %24)
%26 = load ptr, ptr %7, align 8
store i8 0, ptr %26, align 1
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %6, align 1
%29 = call ptr @strrchr(ptr noundef %27, i8 noundef signext %28)
store ptr %29, ptr %7, align 8
%30 = load ptr, ptr %7, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %21, label %._crit_edge
32: ; preds = %20
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i32 @sbuf_list_prepend(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %8, align 8
%37 = call i32 @free(ptr noundef %36)
br label %38
38: ; preds = %32, %11
ret void
}
declare ptr @strdup(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @sbuf_list_prepend(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"}
|
; ModuleID = '/tmp/tmpdnkk3pi4.c'
source_filename = "/tmp/tmpdnkk3pi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = alloca i32, align 4
%2 = call i32 @malloc(i32 noundef 1)
%3 = load volatile i32, ptr %1, align 4
ret void
}
declare i32 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdnkk3pi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = alloca i32, align 4
%2 = call i32 @malloc(i32 noundef 1)
%3 = load volatile i32, ptr %1, align 4
ret void
}
declare i32 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuqch_krz.c'
source_filename = "/tmp/tmpuqch_krz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Enter your agent number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Enter your single-digit code key: \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%ch\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Welcome aboard, James Bond!\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"You may commence with operation \22FreeCell\22\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"The authorities have been notified by this illegal access\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fpurge(i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 7
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i8, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 66
br i1 %15, label %20, label %16
16: ; preds = %12, %0
%17 = load i8, ptr %3, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 98
br i1 %19, label %20, label %23
20: ; preds = %16, %12
%21 = call i32 @puts(ptr noundef @.str.4)
%22 = call i32 @puts(ptr noundef @.str.5)
br label %25
23: ; preds = %16
%24 = call i32 @puts(ptr noundef @.str.6)
br label %25
25: ; preds = %23, %20
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @fpurge(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/tmpuqch_krz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Enter your agent number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Enter your single-digit code key: \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%ch\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Welcome aboard, James Bond!\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"You may commence with operation \22FreeCell\22\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"The authorities have been notified by this illegal access\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr @stdin, align 4
%7 = call i32 @fpurge(i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 7
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = load i8, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 66
br i1 %15, label %20, label %16
16: ; preds = %12, %0
%17 = load i8, ptr %3, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 98
br i1 %19, label %20, label %23
20: ; preds = %16, %12
%21 = call i32 @puts(ptr noundef @.str.4)
%22 = call i32 @puts(ptr noundef @.str.5)
br label %25
23: ; preds = %16
%24 = call i32 @puts(ptr noundef @.str.6)
br label %25
25: ; preds = %23, %20
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @fpurge(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/tmpson15km0.c'
source_filename = "/tmp/tmpson15km0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d\0A%d\0A%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 ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store ptr %2, ptr %3, align 8
store ptr %3, ptr %4, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %7, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpson15km0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d\0A%d\0A%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 ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store ptr %2, ptr %3, align 8
store ptr %3, ptr %4, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %7, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpasiy0yez.c'
source_filename = "/tmp/tmpasiy0yez.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Can't fork process\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Current fork's PID: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %26, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %29
7: ; preds = %4
%8 = call i32 (...) @fork()
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %29
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = call i32 @system(ptr noundef @.str.1)
br label %19
19: ; preds = %17, %14
%20 = load i32, ptr %3, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %3, align 4
%24 = call i32 @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %2, align 4
br label %4, !llvm.loop !6
29: ; preds = %11, %4
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpasiy0yez.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Can't fork process\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Current fork's PID: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %25
%7 = call i32 (...) @fork()
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %30
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = call i32 @system(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %13
%19 = load i32, ptr %3, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %3, align 4
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %28, 10
br i1 %29, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %25
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %30
30: ; preds = %.loopexit, %10
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare i32 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi_zmeyvz.c'
source_filename = "/tmp/tmpi_zmeyvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = icmp sge i32 %7, 2
br i1 %8, label %9, label %34
9: ; preds = %0
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = call i64 @gcd(i64 noundef %12, i64 noundef %13)
store i64 %14, ptr %5, align 8
%15 = load i32, ptr %2, align 4
%16 = sub nsw i32 %15, 2
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %29, %9
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4
%20 = icmp ne i32 %18, 0
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%23 = load i64, ptr %5, align 8
%24 = icmp ne i64 %23, 1
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = load i64, ptr %5, align 8
%27 = load i64, ptr %3, align 8
%28 = call i64 @gcd(i64 noundef %26, i64 noundef %27)
store i64 %28, ptr %5, align 8
br label %29
29: ; preds = %25, %21
br label %17, !llvm.loop !6
30: ; preds = %17
%31 = load i64, ptr %5, align 8
%32 = call i32 @fib(i64 noundef %31)
%33 = call i32 @printf(ptr noundef @.str.2, i32 noundef %32)
br label %39
34: ; preds = %0
%35 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%36 = load i64, ptr %3, align 8
%37 = call i32 @fib(i64 noundef %36)
%38 = call i32 @printf(ptr noundef @.str.2, i32 noundef %37)
br label %39
39: ; preds = %34, %30
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @gcd(i64 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_zmeyvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = icmp sge i32 %7, 2
br i1 %8, label %9, label %36
9: ; preds = %0
%10 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = call i64 @gcd(i64 noundef %12, i64 noundef %13)
store i64 %14, ptr %5, align 8
%15 = load i32, ptr %2, align 4
%16 = sub nsw i32 %15, 2
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %2, align 4
%19 = icmp ne i32 %17, 0
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %9
br label %20
20: ; preds = %.lr.ph, %28
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%22 = load i64, ptr %5, align 8
%23 = icmp ne i64 %22, 1
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i64, ptr %5, align 8
%26 = load i64, ptr %3, align 8
%27 = call i64 @gcd(i64 noundef %25, i64 noundef %26)
store i64 %27, ptr %5, align 8
br label %28
28: ; preds = %24, %20
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %2, align 4
%31 = icmp ne i32 %29, 0
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %32
32: ; preds = %._crit_edge, %9
%33 = load i64, ptr %5, align 8
%34 = call i32 @fib(i64 noundef %33)
%35 = call i32 @printf(ptr noundef @.str.2, i32 noundef %34)
br label %41
36: ; preds = %0
%37 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%38 = load i64, ptr %3, align 8
%39 = call i32 @fib(i64 noundef %38)
%40 = call i32 @printf(ptr noundef @.str.2, i32 noundef %39)
br label %41
41: ; preds = %36, %32
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @gcd(i64 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxt1gvk3x.c'
source_filename = "/tmp/tmpxt1gvk3x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Usage: randline [file [file2 ..]|-]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@EX_USAGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_help() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fputs(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @EX_USAGE, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fputs(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/tmpxt1gvk3x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Usage: randline [file [file2 ..]|-]\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@EX_USAGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_help() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fputs(ptr noundef @.str, i32 noundef %1)
%3 = load i32, ptr @EX_USAGE, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fputs(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/tmplcm5_uvo.c'
source_filename = "/tmp/tmplcm5_uvo.c"
target datalayout = "e-m:e-p270: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/tmplcm5_uvo.c"
target datalayout = "e-m:e-p270: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/tmptzoiivvt.c'
source_filename = "/tmp/tmptzoiivvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sk_file_content_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @sk_file_extname(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @sk_file_content_type_ext(ptr noundef %6)
ret ptr %7
}
declare ptr @sk_file_extname(ptr noundef) #1
declare ptr @sk_file_content_type_ext(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptzoiivvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sk_file_content_type(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @sk_file_extname(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @sk_file_content_type_ext(ptr noundef %6)
ret ptr %7
}
declare ptr @sk_file_extname(ptr noundef) #1
declare ptr @sk_file_content_type_ext(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjkxm8fbm.c'
source_filename = "/tmp/tmpjkxm8fbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c(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 @a(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @b(i32 noundef %5)
%7 = mul nsw i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = call i32 @c(i32 noundef %8)
%10 = mul nsw i32 %7, %9
ret i32 %10
}
declare i32 @a(i32 noundef) #1
declare i32 @b(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/tmpjkxm8fbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c(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 @a(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @b(i32 noundef %5)
%7 = mul nsw i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = call i32 @c(i32 noundef %8)
%10 = mul nsw i32 %7, %9
ret i32 %10
}
declare i32 @a(i32 noundef) #1
declare i32 @b(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/tmp409hrxbm.c'
source_filename = "/tmp/tmp409hrxbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AdjuBlackProc() #0 {
%1 = call i32 @UserAdjudicationEvent(i32 noundef -1)
ret void
}
declare i32 @UserAdjudicationEvent(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/tmp409hrxbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AdjuBlackProc() #0 {
%1 = call i32 @UserAdjudicationEvent(i32 noundef -1)
ret void
}
declare i32 @UserAdjudicationEvent(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/tmpmn5qcqxj.c'
source_filename = "/tmp/tmpmn5qcqxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @target(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 90
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @reportError2(ptr noundef null)
store i32 -22, ptr %2, align 4
br label %11
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 12
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %8, %6
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @reportError2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmn5qcqxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @target(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 90
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @reportError2(ptr noundef null)
store i32 -22, ptr %2, align 4
br label %11
8: ; preds = %1
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 12
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %8, %6
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @reportError2(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqye4nbkd.c'
source_filename = "/tmp/tmpqye4nbkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @e() #0 {
%1 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqye4nbkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @e() #0 {
%1 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvwbebmre.c'
source_filename = "/tmp/tmpvwbebmre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPalindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @reverse(i32 noundef %8, i32 noundef 0)
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %7, %6
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @reverse(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvwbebmre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPalindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @reverse(i32 noundef %8, i32 noundef 0)
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %7, %6
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @reverse(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiane54sq.c'
source_filename = "/tmp/tmpiane54sq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getchar() #0 {
%1 = load i32, ptr @stdin, align 4
%2 = call i32 @myfgetc(i32 noundef %1)
ret i32 %2
}
declare i32 @myfgetc(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/tmpiane54sq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getchar() #0 {
%1 = load i32, ptr @stdin, align 4
%2 = call i32 @myfgetc(i32 noundef %1)
ret i32 %2
}
declare i32 @myfgetc(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/tmpe4xlwxoj.c'
source_filename = "/tmp/tmpe4xlwxoj.c"
target datalayout = "e-m:e-p270: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/tmpe4xlwxoj.c"
target datalayout = "e-m:e-p270: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/tmpbgj67vhx.c'
source_filename = "/tmp/tmpbgj67vhx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [23 x i8] c"usage: %s path <mode>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %20
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @open_and_stat(ptr noundef %23, ptr noundef %10)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = load i32, ptr @EXIT_FAILURE, align 4
%29 = call i32 @exit(i32 noundef %28) #3
unreachable
30: ; preds = %20
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %8, align 4
%35 = call i32 (...) @fork()
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %6, align 4
br label %62
40: ; preds = %30
%41 = load i32, ptr %9, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %8, align 4
%46 = call i32 @testfchmod(i32 noundef %44, i32 noundef %45)
store i32 %46, ptr %6, align 4
br label %61
47: ; preds = %40
%48 = load i32, ptr %9, align 4
%49 = call i32 @check_end_child_status(i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
br label %62
53: ; preds = %47
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %8, align 4
%56 = call i32 @check_changes(i32 noundef %54, ptr noundef %10, i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %53
br label %62
60: ; preds = %53
br label %61
61: ; preds = %60, %43
br label %62
62: ; preds = %61, %59, %52, %38
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %6, align 4
%65 = call i32 @close_and_exit(i32 noundef %63, i32 noundef %64)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open_and_stat(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @testfchmod(i32 noundef, i32 noundef) #1
declare i32 @check_end_child_status(i32 noundef) #1
declare i32 @check_changes(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close_and_exit(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbgj67vhx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [23 x i8] c"usage: %s path <mode>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %20
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @open_and_stat(ptr noundef %23, ptr noundef %10)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %20
%28 = load i32, ptr @EXIT_FAILURE, align 4
%29 = call i32 @exit(i32 noundef %28) #3
unreachable
30: ; preds = %20
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %8, align 4
%35 = call i32 (...) @fork()
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %30
%39 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %6, align 4
br label %62
40: ; preds = %30
%41 = load i32, ptr %9, align 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %8, align 4
%46 = call i32 @testfchmod(i32 noundef %44, i32 noundef %45)
store i32 %46, ptr %6, align 4
br label %61
47: ; preds = %40
%48 = load i32, ptr %9, align 4
%49 = call i32 @check_end_child_status(i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
br label %62
53: ; preds = %47
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %8, align 4
%56 = call i32 @check_changes(i32 noundef %54, ptr noundef %10, i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %53
br label %62
60: ; preds = %53
br label %61
61: ; preds = %60, %43
br label %62
62: ; preds = %61, %59, %52, %38
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %6, align 4
%65 = call i32 @close_and_exit(i32 noundef %63, i32 noundef %64)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open_and_stat(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @testfchmod(i32 noundef, i32 noundef) #1
declare i32 @check_end_child_status(i32 noundef) #1
declare i32 @check_changes(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close_and_exit(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfm4wsvqz.c'
source_filename = "/tmp/tmpfm4wsvqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sortiraj(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 i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %68, %1
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %71
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %64, %10
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %67
16: ; preds = %13
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sle i32 %21, %26
br i1 %27, label %28, label %48
28: ; preds = %16
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %6, align 4
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
%43 = load i32, ptr %6, align 4
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
store i32 %43, ptr %47, align 4
br label %48
48: ; preds = %28, %16
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
%59 = icmp ne i32 %53, %58
br i1 %59, label %60, label %63
60: ; preds = %48
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
br label %63
63: ; preds = %60, %48
br label %64
64: ; preds = %63
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %4, align 4
br label %13, !llvm.loop !6
67: ; preds = %13
br label %68
68: ; preds = %67
%69 = load i32, ptr %3, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %3, align 4
br label %7, !llvm.loop !8
71: ; preds = %7
%72 = load ptr, ptr %2, align 8
%73 = load i32, ptr %5, align 4
%74 = call i32 @ispisi(ptr noundef %72, i32 noundef %73)
ret void
}
declare i32 @ispisi(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfm4wsvqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sortiraj(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 i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph2, label %73
.lr.ph2: ; preds = %1
br label %9
9: ; preds = %.lr.ph2, %68
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %.lr.ph, label %67
.lr.ph: ; preds = %9
br label %14
14: ; preds = %.lr.ph, %62
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = icmp sle i32 %19, %24
br i1 %25, label %26, label %46
26: ; preds = %14
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %6, align 4
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 %36, ptr %40, align 4
%41 = load i32, ptr %6, align 4
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
store i32 %41, ptr %45, align 4
br label %46
46: ; preds = %26, %14
%47 = load ptr, ptr %2, align 8
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = icmp ne i32 %51, %56
br i1 %57, label %58, label %61
58: ; preds = %46
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
br label %61
61: ; preds = %58, %46
br label %62
62: ; preds = %61
%63 = load i32, ptr %4, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %4, align 4
%65 = load i32, ptr %4, align 4
%66 = icmp slt i32 %65, 3
br i1 %66, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %67
67: ; preds = %._crit_edge, %9
br label %68
68: ; preds = %67
%69 = load i32, ptr %3, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %3, align 4
%71 = load i32, ptr %3, align 4
%72 = icmp slt i32 %71, 3
br i1 %72, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %68
br label %73
73: ; preds = %._crit_edge3, %1
%74 = load ptr, ptr %2, align 8
%75 = load i32, ptr %5, align 4
%76 = call i32 @ispisi(ptr noundef %74, i32 noundef %75)
ret void
}
declare i32 @ispisi(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpq1hnlaoe.c'
source_filename = "/tmp/tmpq1hnlaoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq1hnlaoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ej0t9eo.c'
source_filename = "/tmp/tmp3ej0t9eo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@SEEK_CUR = 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/tmp3ej0t9eo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@SEEK_CUR = 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/tmp1b6nswjn.c'
source_filename = "/tmp/tmp1b6nswjn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = call i32 @my_ctolower(i8 noundef signext %8)
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = call i32 @my_ctolower(i8 noundef signext %11)
%13 = sub nsw i32 %9, %12
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %6
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = icmp ne i8 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %16, %6
%21 = load i32, ptr %5, align 4
ret i32 %21
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %3, align 8
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %4, align 8
br label %6
}
declare i32 @my_ctolower(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/tmp1b6nswjn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = call i32 @my_ctolower(i8 noundef signext %7)
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = call i32 @my_ctolower(i8 noundef signext %10)
%12 = sub nsw i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %19, label %.lr.ph
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %22
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = icmp ne i8 %17, 0
br i1 %18, label %21, label %._crit_edge
._crit_edge: ; preds = %15
br label %19
._crit_edge1: ; preds = %22
br label %19
19: ; preds = %._crit_edge1, %._crit_edge, %2
%20 = load i32, ptr %5, align 4
ret i32 %20
21: ; preds = %15
br label %22
22: ; preds = %21
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %3, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %3, align 8
%28 = load i8, ptr %27, align 1
%29 = call i32 @my_ctolower(i8 noundef signext %28)
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = call i32 @my_ctolower(i8 noundef signext %31)
%33 = sub nsw i32 %29, %32
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %._crit_edge1, label %15
}
declare i32 @my_ctolower(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/tmp7h5z8qc1.c'
source_filename = "/tmp/tmp7h5z8qc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS: test9\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time8(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7h5z8qc1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PASS: test9\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time8(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpduacxblx.c'
source_filename = "/tmp/tmpduacxblx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merc_lon(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @rad_deg(double noundef %3)
%5 = fdiv double %4, 0x415854A640000000
ret double %5
}
declare double @rad_deg(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpduacxblx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merc_lon(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @rad_deg(double noundef %3)
%5 = fdiv double %4, 0x415854A640000000
ret double %5
}
declare double @rad_deg(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr2umuv2k.c'
source_filename = "/tmp/tmpr2umuv2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_init() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 40, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 @lcd_send_command(i32 noundef %2)
%4 = call i32 @usleep(i32 noundef 8000)
store i32 6, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @lcd_send_command(i32 noundef %5)
%7 = call i32 @usleep(i32 noundef 8000)
store i32 14, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @lcd_send_command(i32 noundef %8)
%10 = call i32 @usleep(i32 noundef 8000)
ret void
}
declare i32 @lcd_send_command(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr2umuv2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_init() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 40, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 @lcd_send_command(i32 noundef %2)
%4 = call i32 @usleep(i32 noundef 8000)
store i32 6, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @lcd_send_command(i32 noundef %5)
%7 = call i32 @usleep(i32 noundef 8000)
store i32 14, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @lcd_send_command(i32 noundef %8)
%10 = call i32 @usleep(i32 noundef 8000)
ret void
}
declare i32 @lcd_send_command(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqoayo86b.c'
source_filename = "/tmp/tmpqoayo86b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"int\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @arg_parse_int(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 i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = call ptr @get_argv(i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef @.str)
store ptr %15, ptr %10, align 8
%16 = load ptr, ptr %10, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %29
18: ; preds = %4
%19 = load ptr, ptr %10, align 8
%20 = load ptr, ptr %9, align 8
%21 = call i32 @str_2_int(ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 -1, i32 1
%28 = mul nsw i32 %23, %27
store i32 %28, ptr %5, align 4
br label %30
29: ; preds = %4
store i32 -1, ptr %5, align 4
br label %30
30: ; preds = %29, %18
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare ptr @get_argv(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @str_2_int(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/tmpqoayo86b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"int\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @arg_parse_int(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 i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %6, align 4
%15 = call ptr @get_argv(i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef @.str)
store ptr %15, ptr %10, align 8
%16 = load ptr, ptr %10, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %29
18: ; preds = %4
%19 = load ptr, ptr %10, align 8
%20 = load ptr, ptr %9, align 8
%21 = call i32 @str_2_int(ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 -1, i32 1
%28 = mul nsw i32 %23, %27
store i32 %28, ptr %5, align 4
br label %30
29: ; preds = %4
store i32 -1, ptr %5, align 4
br label %30
30: ; preds = %29, %18
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare ptr @get_argv(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @str_2_int(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/tmp1sj3ts_q.c'
source_filename = "/tmp/tmp1sj3ts_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"The third angle is %.2f\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 float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float 3.000000e+01, ptr %6, align 4
store float 6.000000e+01, ptr %7, align 4
%9 = load float, ptr %6, align 4
%10 = load float, ptr %7, align 4
%11 = call float @remainingAngle(float noundef %9, float noundef %10)
store float %11, ptr %8, align 4
%12 = load float, ptr %8, align 4
%13 = call i32 @printf(ptr noundef @.str, float noundef %12)
ret i32 0
}
declare float @remainingAngle(float noundef, float noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1sj3ts_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"The third angle is %.2f\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 float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store float 3.000000e+01, ptr %6, align 4
store float 6.000000e+01, ptr %7, align 4
%9 = load float, ptr %6, align 4
%10 = load float, ptr %7, align 4
%11 = call float @remainingAngle(float noundef %9, float noundef %10)
store float %11, ptr %8, align 4
%12 = load float, ptr %8, align 4
%13 = call i32 @printf(ptr noundef @.str, float noundef %12)
ret i32 0
}
declare float @remainingAngle(float noundef, float noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphuj9ic_f.c'
source_filename = "/tmp/tmphuj9ic_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @os_isatty(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 @isatty(i32 noundef %3)
ret i32 %4
}
declare i32 @isatty(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/tmphuj9ic_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @os_isatty(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 @isatty(i32 noundef %3)
ret i32 %4
}
declare i32 @isatty(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/tmp1h7ou3j0.c'
source_filename = "/tmp/tmp1h7ou3j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [39 x i8] c"Usage: %s <command>.\0Asuch as: %s \22ls\22\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Can not create socket\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %15, ptr noundef %18)
store i32 0, ptr %3, align 4
br label %54
20: ; preds = %2
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %54
28: ; preds = %20
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 1024, i1 false)
store i32 12, ptr %9, align 4
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = call i32 @htons(i32 noundef 10000)
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %31, ptr %32, align 4
%33 = call i32 @inet_addr(ptr noundef @.str.2)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load i32, ptr %7, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add nsw i64 %43, 1
%45 = load i32, ptr %9, align 4
%46 = call i32 @sendto(i32 noundef %36, ptr noundef %39, i64 noundef %44, i32 noundef 0, ptr noundef %6, i32 noundef %45)
%47 = load i32, ptr %7, align 4
%48 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%49 = call i32 @recvfrom(i32 noundef %47, ptr noundef %48, i32 noundef 1024, i32 noundef 0, ptr noundef %6, ptr noundef %9)
%50 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%51 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %50)
%52 = load i32, ptr %7, align 4
%53 = call i32 @close(i32 noundef %52)
store i32 0, ptr %3, align 4
br label %54
54: ; preds = %28, %26, %12
%55 = load i32, ptr %3, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1h7ou3j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [39 x i8] c"Usage: %s <command>.\0Asuch as: %s \22ls\22\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Can not create socket\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %20
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %15, ptr noundef %18)
store i32 0, ptr %3, align 4
br label %54
20: ; preds = %2
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %54
28: ; preds = %20
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 1024, i1 false)
store i32 12, ptr %9, align 4
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = call i32 @htons(i32 noundef 10000)
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %31, ptr %32, align 4
%33 = call i32 @inet_addr(ptr noundef @.str.2)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
store i32 %33, ptr %35, align 4
%36 = load i32, ptr %7, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add nsw i64 %43, 1
%45 = load i32, ptr %9, align 4
%46 = call i32 @sendto(i32 noundef %36, ptr noundef %39, i64 noundef %44, i32 noundef 0, ptr noundef %6, i32 noundef %45)
%47 = load i32, ptr %7, align 4
%48 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%49 = call i32 @recvfrom(i32 noundef %47, ptr noundef %48, i32 noundef 1024, i32 noundef 0, ptr noundef %6, ptr noundef %9)
%50 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%51 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %50)
%52 = load i32, ptr %7, align 4
%53 = call i32 @close(i32 noundef %52)
store i32 0, ptr %3, align 4
br label %54
54: ; preds = %28, %26, %12
%55 = load i32, ptr %3, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqzza9lp5.c'
source_filename = "/tmp/tmpqzza9lp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i64 @malloc(i32 noundef 40)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %29, %0
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %32
13: ; preds = %10
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %17, align 4
%19 = add nsw i32 %16, %18
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, %19
store i32 %21, ptr %2, align 4
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i32, ptr %22, i32 1
store ptr %23, ptr %3, align 8
%24 = load ptr, ptr %4, align 8
%25 = ptrtoint ptr %24 to i32
%26 = sext i32 %25 to i64
%27 = add i64 %26, 4
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %4, align 8
br label %29
29: ; preds = %13
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %10, !llvm.loop !6
32: ; preds = %10
%33 = load i32, ptr %2, align 4
ret i32 %33
}
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/tmpqzza9lp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i64 @malloc(i32 noundef 40)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %4, align 8
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %28
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %16, align 4
%18 = add nsw i32 %15, %17
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %2, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i32, ptr %21, i32 1
store ptr %22, ptr %3, align 8
%23 = load ptr, ptr %4, align 8
%24 = ptrtoint ptr %23 to i32
%25 = sext i32 %24 to i64
%26 = add i64 %25, 4
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %4, align 8
br label %28
28: ; preds = %12
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %0
%34 = load i32, ptr %2, align 4
ret i32 %34
}
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/tmp6zu6e6c7.c'
source_filename = "/tmp/tmp6zu6e6c7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@range_to_darray.nbuf = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c", \09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @range_to_darray(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = call ptr @strtok(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %77, %3
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %18, %15
%25 = phi i1 [ false, %15 ], [ %23, %18 ]
br i1 %25, label %26, label %79
26: ; preds = %24
%27 = load ptr, ptr %7, align 8
%28 = call i32 @in_string(ptr noundef %27, ptr noundef @.str.1)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp sle i32 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %26
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load ptr, ptr %7, align 8
%37 = call double @atof(ptr noundef %36)
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = sext i32 %39 to i64
%42 = getelementptr inbounds double, ptr %38, i64 %41
store double %37, ptr %42, align 8
br label %43
43: ; preds = %35, %31
br label %77
44: ; preds = %26
%45 = load ptr, ptr %7, align 8
%46 = call i32 @strcpy(ptr noundef @range_to_darray.nbuf, ptr noundef %45)
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [256 x i8], ptr @range_to_darray.nbuf, i64 0, i64 %48
store i8 0, ptr %49, align 1
%50 = call double @atof(ptr noundef @range_to_darray.nbuf)
store double %50, ptr %11, align 8
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [256 x i8], ptr @range_to_darray.nbuf, i64 0, i64 %53
%55 = call double @atof(ptr noundef %54)
store double %55, ptr %12, align 8
%56 = load double, ptr %11, align 8
store double %56, ptr %10, align 8
br label %57
57: ; preds = %73, %44
%58 = load double, ptr %10, align 8
%59 = load double, ptr %12, align 8
%60 = fcmp ole double %58, %59
br i1 %60, label %61, label %76
61: ; preds = %57
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %5, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %72
65: ; preds = %61
%66 = load double, ptr %10, align 8
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds double, ptr %67, i64 %70
store double %66, ptr %71, align 8
br label %72
72: ; preds = %65, %61
br label %73
73: ; preds = %72
%74 = load double, ptr %10, align 8
%75 = fadd double %74, 1.000000e+00
store double %75, ptr %10, align 8
br label %57, !llvm.loop !6
76: ; preds = %57
br label %77
77: ; preds = %76, %43
%78 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %78, ptr %7, align 8
br label %15, !llvm.loop !8
79: ; preds = %24
%80 = load i32, ptr %8, align 4
ret i32 %80
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @in_string(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6zu6e6c7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@range_to_darray.nbuf = internal global [256 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c", \09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @range_to_darray(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = call ptr @strtok(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %79, %3
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %18, %15
%25 = phi i1 [ false, %15 ], [ %23, %18 ]
br i1 %25, label %26, label %81
26: ; preds = %24
%27 = load ptr, ptr %7, align 8
%28 = call i32 @in_string(ptr noundef %27, ptr noundef @.str.1)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp sle i32 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %26
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %43
35: ; preds = %31
%36 = load ptr, ptr %7, align 8
%37 = call double @atof(ptr noundef %36)
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = sext i32 %39 to i64
%42 = getelementptr inbounds double, ptr %38, i64 %41
store double %37, ptr %42, align 8
br label %43
43: ; preds = %35, %31
br label %79
44: ; preds = %26
%45 = load ptr, ptr %7, align 8
%46 = call i32 @strcpy(ptr noundef @range_to_darray.nbuf, ptr noundef %45)
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [256 x i8], ptr @range_to_darray.nbuf, i64 0, i64 %48
store i8 0, ptr %49, align 1
%50 = call double @atof(ptr noundef @range_to_darray.nbuf)
store double %50, ptr %11, align 8
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [256 x i8], ptr @range_to_darray.nbuf, i64 0, i64 %53
%55 = call double @atof(ptr noundef %54)
store double %55, ptr %12, align 8
%56 = load double, ptr %11, align 8
store double %56, ptr %10, align 8
%57 = load double, ptr %10, align 8
%58 = load double, ptr %12, align 8
%59 = fcmp ole double %57, %58
br i1 %59, label %.lr.ph, label %78
.lr.ph: ; preds = %44
br label %60
60: ; preds = %.lr.ph, %72
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %5, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load double, ptr %10, align 8
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds double, ptr %66, i64 %69
store double %65, ptr %70, align 8
br label %71
71: ; preds = %64, %60
br label %72
72: ; preds = %71
%73 = load double, ptr %10, align 8
%74 = fadd double %73, 1.000000e+00
store double %74, ptr %10, align 8
%75 = load double, ptr %10, align 8
%76 = load double, ptr %12, align 8
%77 = fcmp ole double %75, %76
br i1 %77, label %60, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %44
br label %79
79: ; preds = %78, %43
%80 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %80, ptr %7, align 8
br label %15, !llvm.loop !8
81: ; preds = %24
%82 = load i32, ptr %8, align 4
ret i32 %82
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @in_string(ptr noundef, ptr noundef) #1
declare double @atof(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpoolfz7t2.c'
source_filename = "/tmp/tmpoolfz7t2.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Option -%c requires an argument.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @args_value_error(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 116
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = load i8, ptr %2, align 1
%9 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, i8 noundef signext %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #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/tmpoolfz7t2.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Option -%c requires an argument.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @args_value_error(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 116
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = load i8, ptr %2, align 1
%9 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, i8 noundef signext %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef signext) #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/tmp41o54xf3.c'
source_filename = "/tmp/tmp41o54xf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Entre com um inteiro da linha %d e coluna %d: \0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Vetor [%d][%d]: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x [5 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %29, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %32
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %25, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 5
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr @stdin, align 4
%17 = call i32 @fflush(i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [2 x [5 x i32]], ptr %2, i64 0, i64 %19
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], ptr %20, i64 0, i64 %22
%24 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %12
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %9, !llvm.loop !6
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %5, !llvm.loop !8
32: ; preds = %5
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %55, %32
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %34, 2
br i1 %35, label %36, label %58
36: ; preds = %33
store i32 0, ptr %4, align 4
br label %37
37: ; preds = %51, %36
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 5
br i1 %39, label %40, label %54
40: ; preds = %37
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [2 x [5 x i32]], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x i32], ptr %45, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %41, i32 noundef %42, i32 noundef %49)
br label %51
51: ; preds = %40
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
br label %37, !llvm.loop !9
54: ; preds = %37
br label %55
55: ; preds = %54
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
br label %33, !llvm.loop !10
58: ; preds = %33
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp41o54xf3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Entre com um inteiro da linha %d e coluna %d: \0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Vetor [%d][%d]: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x [5 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 2
br i1 %6, label %.lr.ph2, label %34
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %29
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 5
br i1 %9, label %.lr.ph, label %28
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %23
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @stdin, align 4
%15 = call i32 @fflush(i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [2 x [5 x i32]], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x i32], ptr %18, i64 0, i64 %20
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %21)
br label %23
23: ; preds = %10
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 5
br i1 %27, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %7
br label %29
29: ; preds = %28
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %32, 2
br i1 %33, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %0
store i32 0, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 2
br i1 %36, label %.lr.ph8, label %62
.lr.ph8: ; preds = %34
br label %37
37: ; preds = %.lr.ph8, %57
store i32 0, ptr %4, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 5
br i1 %39, label %.lr.ph5, label %56
.lr.ph5: ; preds = %37
br label %40
40: ; preds = %.lr.ph5, %51
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [2 x [5 x i32]], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x i32], ptr %45, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %41, i32 noundef %42, i32 noundef %49)
br label %51
51: ; preds = %40
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %54, 5
br i1 %55, label %40, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %51
br label %56
56: ; preds = %._crit_edge6, %37
br label %57
57: ; preds = %56
%58 = load i32, ptr %3, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %3, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp slt i32 %60, 2
br i1 %61, label %37, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %57
br label %62
62: ; preds = %._crit_edge9, %34
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmppq034ecw.c'
source_filename = "/tmp/tmppq034ecw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"The result is %u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 245, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @rightrot(i32 noundef %5, i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rightrot(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppq034ecw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"The result is %u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 245, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @rightrot(i32 noundef %5, i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
ret i32 %9
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rightrot(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq8mz_v8f.c'
source_filename = "/tmp/tmpq8mz_v8f.c"
target datalayout = "e-m:e-p270: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/tmpq8mz_v8f.c"
target datalayout = "e-m:e-p270: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/tmpfpsp5t6i.c'
source_filename = "/tmp/tmpfpsp5t6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printAllPermutation(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %36
14: ; preds = %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
br label %16
16: ; preds = %33, %14
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %36
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %7, align 4
%24 = call i32 @swap(ptr noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = load i32, ptr %6, align 4
call void @printAllPermutation(ptr noundef %25, i32 noundef %27, i32 noundef %28)
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %7, align 4
%32 = call i32 @swap(ptr noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %20
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %16, !llvm.loop !6
36: ; preds = %11, %16
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @swap(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfpsp5t6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printAllPermutation(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %38
14: ; preds = %3
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %32
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @swap(ptr noundef %20, i32 noundef %21, i32 noundef %22)
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
%27 = load i32, ptr %6, align 4
call void @printAllPermutation(ptr noundef %24, i32 noundef %26, i32 noundef %27)
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %7, align 4
%31 = call i32 @swap(ptr noundef %28, i32 noundef %29, i32 noundef %30)
br label %32
32: ; preds = %19
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %32
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %38
38: ; preds = %.loopexit, %11
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @swap(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"}
|
; ModuleID = '/tmp/tmpkhdhowyb.c'
source_filename = "/tmp/tmpkhdhowyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glTexParameteriv_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 @__glTexParameterfv_size(i32 noundef %3)
ret i32 %4
}
declare i32 @__glTexParameterfv_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/tmpkhdhowyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glTexParameteriv_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 @__glTexParameterfv_size(i32 noundef %3)
ret i32 %4
}
declare i32 @__glTexParameterfv_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/tmpdunilcx3.c'
source_filename = "/tmp/tmpdunilcx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokendup(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = ptrtoint ptr %7 to i64
%10 = ptrtoint ptr %8 to i64
%11 = sub i64 %9, %10
%12 = add nsw i64 %11, 1
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
%14 = call i64 @malloc(i64 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %5, align 8
%19 = sub i64 %18, 1
%20 = call i32 @memmove(ptr noundef %16, ptr noundef %17, i64 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = load i64, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
store i8 0, ptr %23, align 1
%24 = load ptr, ptr %6, align 8
ret ptr %24
}
declare i64 @malloc(i64 noundef) #1
declare i32 @memmove(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/tmpdunilcx3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tokendup(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = ptrtoint ptr %7 to i64
%10 = ptrtoint ptr %8 to i64
%11 = sub i64 %9, %10
%12 = add nsw i64 %11, 1
store i64 %12, ptr %5, align 8
%13 = load i64, ptr %5, align 8
%14 = call i64 @malloc(i64 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %5, align 8
%19 = sub i64 %18, 1
%20 = call i32 @memmove(ptr noundef %16, ptr noundef %17, i64 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = load i64, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
store i8 0, ptr %23, align 1
%24 = load ptr, ptr %6, align 8
ret ptr %24
}
declare i64 @malloc(i64 noundef) #1
declare i32 @memmove(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/tmp896u4_zq.c'
source_filename = "/tmp/tmp896u4_zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sembuf = type { i32, i32, i64 }
@.str = private unnamed_addr constant [33 x i8] c"No se pudo hacer P del sem\C3\A1foro\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @p(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sembuf, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 0
store i32 %6, ptr %7, align 8
%8 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 1
store i32 -1, ptr %8, align 4
%9 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = load i32, ptr %3, align 4
%11 = call i64 @semop(i32 noundef %10, ptr noundef %5, i32 noundef 1)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
ret i32 0
}
declare i64 @semop(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp896u4_zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sembuf = type { i32, i32, i64 }
@.str = private unnamed_addr constant [33 x i8] c"No se pudo hacer P del sem\C3\A1foro\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @p(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sembuf, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 0
store i32 %6, ptr %7, align 8
%8 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 1
store i32 -1, ptr %8, align 4
%9 = getelementptr inbounds %struct.sembuf, ptr %5, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = load i32, ptr %3, align 4
%11 = call i64 @semop(i32 noundef %10, ptr noundef %5, i32 noundef 1)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
ret i32 0
}
declare i64 @semop(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5hk90j_m.c'
source_filename = "/tmp/tmp5hk90j_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0x91\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x91() #0 {
%1 = call i64 @isalnum(i32 noundef 145)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 730, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmp5hk90j_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0x91\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x91() #0 {
%1 = call i64 @isalnum(i32 noundef 145)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 730, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmpnu5xyirj.c'
source_filename = "/tmp/tmpnu5xyirj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Lendo %s.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"Executando benchmark e imprimindo saida em %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [100 x i8], align 16
%8 = alloca [100 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @ler_parametros(i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %6)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %2
store i32 -1, ptr %3, align 4
br label %42
20: ; preds = %2
%21 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%22 = call i32 @printf(ptr noundef @.str, ptr noundef %21)
%23 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%24 = call ptr @fopen(ptr noundef %23, ptr noundef @.str.1)
store ptr %24, ptr %11, align 8
%25 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.2)
store ptr %26, ptr %12, align 8
%27 = load ptr, ptr %11, align 8
%28 = call i32 @ler_arquivo_entrada(ptr noundef %27, ptr noundef %10, ptr noundef %9)
%29 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%30 = call i32 @printf(ptr noundef @.str.3, ptr noundef %29)
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %6, align 4
%35 = call i32 @executar_benchmark(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
%36 = load ptr, ptr %11, align 8
%37 = call i32 @fclose(ptr noundef %36)
%38 = load ptr, ptr %12, align 8
%39 = call i32 @fclose(ptr noundef %38)
%40 = load ptr, ptr %10, align 8
%41 = call i32 @free(ptr noundef %40)
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %20, %19
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @ler_parametros(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @ler_arquivo_entrada(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @executar_benchmark(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnu5xyirj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Lendo %s.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"Executando benchmark e imprimindo saida em %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [100 x i8], align 16
%8 = alloca [100 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @ler_parametros(i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %6)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %2
store i32 -1, ptr %3, align 4
br label %42
20: ; preds = %2
%21 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%22 = call i32 @printf(ptr noundef @.str, ptr noundef %21)
%23 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%24 = call ptr @fopen(ptr noundef %23, ptr noundef @.str.1)
store ptr %24, ptr %11, align 8
%25 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.2)
store ptr %26, ptr %12, align 8
%27 = load ptr, ptr %11, align 8
%28 = call i32 @ler_arquivo_entrada(ptr noundef %27, ptr noundef %10, ptr noundef %9)
%29 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%30 = call i32 @printf(ptr noundef @.str.3, ptr noundef %29)
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %9, align 4
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %6, align 4
%35 = call i32 @executar_benchmark(ptr noundef %31, i32 noundef %32, ptr noundef %33, i32 noundef %34)
%36 = load ptr, ptr %11, align 8
%37 = call i32 @fclose(ptr noundef %36)
%38 = load ptr, ptr %12, align 8
%39 = call i32 @fclose(ptr noundef %38)
%40 = load ptr, ptr %10, align 8
%41 = call i32 @free(ptr noundef %40)
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %20, %19
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @ler_parametros(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @ler_arquivo_entrada(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @executar_benchmark(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9cezfuoc.c'
source_filename = "/tmp/tmp9cezfuoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cl_buffer_copy(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i64 %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store i64 %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %12, align 4
%22 = load i64, ptr %13, align 8
%23 = load i64, ptr %14, align 8
%24 = load i64, ptr %15, align 8
%25 = load i32, ptr %16, align 4
%26 = load ptr, ptr %17, align 8
%27 = load ptr, ptr %18, align 8
%28 = call i32 @inner_buffer_copy(i32 noundef %19, i32 noundef %20, i32 noundef %21, i64 noundef %22, i64 noundef %23, i64 noundef %24, i32 noundef %25, ptr noundef %26, ptr noundef %27)
ret void
}
declare i32 @inner_buffer_copy(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9cezfuoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cl_buffer_copy(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store i64 %3, ptr %13, align 8
store i64 %4, ptr %14, align 8
store i64 %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = load i32, ptr %12, align 4
%22 = load i64, ptr %13, align 8
%23 = load i64, ptr %14, align 8
%24 = load i64, ptr %15, align 8
%25 = load i32, ptr %16, align 4
%26 = load ptr, ptr %17, align 8
%27 = load ptr, ptr %18, align 8
%28 = call i32 @inner_buffer_copy(i32 noundef %19, i32 noundef %20, i32 noundef %21, i64 noundef %22, i64 noundef %23, i64 noundef %24, i32 noundef %25, ptr noundef %26, ptr noundef %27)
ret void
}
declare i32 @inner_buffer_copy(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnktvd6qn.c'
source_filename = "/tmp/tmpnktvd6qn.c"
target datalayout = "e-m:e-p270: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/tmpnktvd6qn.c"
target datalayout = "e-m:e-p270: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/tmpq5hjzcxf.c'
source_filename = "/tmp/tmpq5hjzcxf.c"
target datalayout = "e-m:e-p270: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/tmpq5hjzcxf.c"
target datalayout = "e-m:e-p270: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/tmpmoajpvsk.c'
source_filename = "/tmp/tmpmoajpvsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NoName%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SanitizeWaveName(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str, i32 noundef %17)
store i32 1, ptr %3, align 4
br label %76
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = call i64 @isalpha(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %41, label %30
30: ; preds = %26, %19
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 1
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
%36 = call i32 @memmove(ptr noundef %32, ptr noundef %33, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
store i8 88, ptr %38, align 1
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
store i32 1, ptr %9, align 4
br label %41
41: ; preds = %30, %26
%42 = load i32, ptr %6, align 4
%43 = icmp sgt i32 %42, 31
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 31
store i8 0, ptr %46, align 1
store i32 31, ptr %6, align 4
store i32 1, ptr %9, align 4
br label %47
47: ; preds = %44, %41
store i32 1, ptr %7, align 4
br label %48
48: ; preds = %71, %47
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %74
52: ; preds = %48
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %52
%62 = load i32, ptr %8, align 4
%63 = call i64 @isalnum(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %70, label %65
65: ; preds = %61, %52
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %7, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 95, ptr %69, align 1
store i32 1, ptr %9, align 4
br label %70
70: ; preds = %65, %61
br label %71
71: ; preds = %70
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %7, align 4
br label %48, !llvm.loop !6
74: ; preds = %48
%75 = load i32, ptr %9, align 4
store i32 %75, ptr %3, align 4
br label %76
76: ; preds = %74, %15
%77 = load i32, ptr %3, align 4
ret i32 %77
}
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isalnum(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/tmpmoajpvsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NoName%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SanitizeWaveName(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = call i32 @sprintf(ptr noundef %16, ptr noundef @.str, i32 noundef %17)
store i32 1, ptr %3, align 4
br label %78
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %19
%27 = load i32, ptr %8, align 4
%28 = call i64 @isalpha(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %41, label %30
30: ; preds = %26, %19
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 1
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
%36 = call i32 @memmove(ptr noundef %32, ptr noundef %33, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
store i8 88, ptr %38, align 1
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
store i32 1, ptr %9, align 4
br label %41
41: ; preds = %30, %26
%42 = load i32, ptr %6, align 4
%43 = icmp sgt i32 %42, 31
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 31
store i8 0, ptr %46, align 1
store i32 31, ptr %6, align 4
store i32 1, ptr %9, align 4
br label %47
47: ; preds = %44, %41
store i32 1, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph, label %76
.lr.ph: ; preds = %47
br label %51
51: ; preds = %.lr.ph, %70
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %51
%61 = load i32, ptr %8, align 4
%62 = call i64 @isalnum(i32 noundef %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %69, label %64
64: ; preds = %60, %51
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %7, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
store i8 95, ptr %68, align 1
store i32 1, ptr %9, align 4
br label %69
69: ; preds = %64, %60
br label %70
70: ; preds = %69
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %47
%77 = load i32, ptr %9, align 4
store i32 %77, ptr %3, align 4
br label %78
78: ; preds = %76, %15
%79 = load i32, ptr %3, align 4
ret i32 %79
}
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isalnum(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/tmpgq8cckq1.c'
source_filename = "/tmp/tmpgq8cckq1.c"
target datalayout = "e-m:e-p270: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/tmpgq8cckq1.c"
target datalayout = "e-m:e-p270: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/tmpshou28eh.c'
source_filename = "/tmp/tmpshou28eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_int_and_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%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 i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpshou28eh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_int_and_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%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 i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5wwvueet.c'
source_filename = "/tmp/tmp5wwvueet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"TRIANGULO: %.3lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCULO: %.3lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"TRAPEZIO: %.3lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"QUADRADO: %.3lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"RETANGULO: %.3lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load double, ptr %2, align 8
%7 = load double, ptr %4, align 8
%8 = fmul double %6, %7
%9 = fdiv double %8, 2.000000e+00
%10 = call i32 @printf(ptr noundef @.str.1, double noundef %9)
%11 = load double, ptr %4, align 8
%12 = fmul double 3.141590e+00, %11
%13 = load double, ptr %4, align 8
%14 = fmul double %12, %13
%15 = call i32 @printf(ptr noundef @.str.2, double noundef %14)
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = fdiv double %18, 2.000000e+00
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 @printf(ptr noundef @.str.3, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %3, align 8
%25 = fmul double %23, %24
%26 = call i32 @printf(ptr noundef @.str.4, double noundef %25)
%27 = load double, ptr %2, align 8
%28 = load double, ptr %3, align 8
%29 = fmul double %27, %28
%30 = call i32 @printf(ptr noundef @.str.5, double noundef %29)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5wwvueet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"TRIANGULO: %.3lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCULO: %.3lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"TRAPEZIO: %.3lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"QUADRADO: %.3lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"RETANGULO: %.3lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load double, ptr %2, align 8
%7 = load double, ptr %4, align 8
%8 = fmul double %6, %7
%9 = fdiv double %8, 2.000000e+00
%10 = call i32 @printf(ptr noundef @.str.1, double noundef %9)
%11 = load double, ptr %4, align 8
%12 = fmul double 3.141590e+00, %11
%13 = load double, ptr %4, align 8
%14 = fmul double %12, %13
%15 = call i32 @printf(ptr noundef @.str.2, double noundef %14)
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = fdiv double %18, 2.000000e+00
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 @printf(ptr noundef @.str.3, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %3, align 8
%25 = fmul double %23, %24
%26 = call i32 @printf(ptr noundef @.str.4, double noundef %25)
%27 = load double, ptr %2, align 8
%28 = load double, ptr %3, align 8
%29 = fmul double %27, %28
%30 = call i32 @printf(ptr noundef @.str.5, double noundef %29)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ftyc4sy.c'
source_filename = "/tmp/tmp5ftyc4sy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @g1parse()
%3 = call i32 (...) @g2parse()
ret i32 0
}
declare i32 @g1parse(...) #1
declare i32 @g2parse(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ftyc4sy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @g1parse()
%3 = call i32 (...) @g2parse()
ret i32 0
}
declare i32 @g1parse(...) #1
declare i32 @g2parse(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ktpnxjx.c'
source_filename = "/tmp/tmp2ktpnxjx.c"
target datalayout = "e-m:e-p270: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/tmp2ktpnxjx.c"
target datalayout = "e-m:e-p270: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/tmpg5gdoa5r.c'
source_filename = "/tmp/tmpg5gdoa5r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dist(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %11, %12
%14 = sitofp i32 %13 to float
store float %14, ptr %9, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %15, %16
%18 = sitofp i32 %17 to float
store float %18, ptr %10, align 4
%19 = load float, ptr %9, align 4
%20 = load float, ptr %9, align 4
%21 = load float, ptr %10, align 4
%22 = load float, ptr %10, align 4
%23 = fmul float %21, %22
%24 = call float @llvm.fmuladd.f32(float %19, float %20, float %23)
%25 = call double @sqrt(float noundef %24)
%26 = fadd double %25, 5.000000e-01
ret double %26
}
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg5gdoa5r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dist(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %11, %12
%14 = sitofp i32 %13 to float
store float %14, ptr %9, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %15, %16
%18 = sitofp i32 %17 to float
store float %18, ptr %10, align 4
%19 = load float, ptr %9, align 4
%20 = load float, ptr %9, align 4
%21 = load float, ptr %10, align 4
%22 = load float, ptr %10, align 4
%23 = fmul float %21, %22
%24 = call float @llvm.fmuladd.f32(float %19, float %20, float %23)
%25 = call double @sqrt(float noundef %24)
%26 = fadd double %25, 5.000000e-01
ret double %26
}
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp56xe1mrc.c'
source_filename = "/tmp/tmp56xe1mrc.c"
target datalayout = "e-m:e-p270: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/tmp56xe1mrc.c"
target datalayout = "e-m:e-p270: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_y1n801o.c'
source_filename = "/tmp/tmp_y1n801o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gfx_write_reg32(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @WRITE_REG32(i64 noundef %5, i64 noundef %6)
ret void
}
declare i32 @WRITE_REG32(i64 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/tmp_y1n801o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gfx_write_reg32(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @WRITE_REG32(i64 noundef %5, i64 noundef %6)
ret void
}
declare i32 @WRITE_REG32(i64 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/tmpcapt5t9p.c'
source_filename = "/tmp/tmpcapt5t9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"[%3d] 0x%02x %c %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DumpBinString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca [9 x i8], align 1
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 9)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %6, align 4
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %38, %1
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %41
16: ; preds = %12
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %4, align 1
%22 = load i32, ptr %3, align 4
%23 = load i8, ptr %4, align 1
%24 = load i8, ptr %4, align 1
%25 = call i64 @isprint(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %16
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
br label %31
30: ; preds = %16
br label %31
31: ; preds = %30, %27
%32 = phi i32 [ %29, %27 ], [ 46, %30 ]
%33 = trunc i32 %32 to i8
%34 = load i8, ptr %4, align 1
%35 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
%36 = call ptr @BinString(i8 noundef signext %34, ptr noundef %35, i32 noundef 8)
%37 = call i32 @printf(ptr noundef @.str, i32 noundef %22, i8 noundef signext %23, i8 noundef signext %33, ptr noundef %36)
br label %38
38: ; preds = %31
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %12, !llvm.loop !6
41: ; preds = %12
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, i8 noundef signext, ptr noundef) #1
declare i64 @isprint(i8 noundef signext) #1
declare ptr @BinString(i8 noundef signext, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcapt5t9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"[%3d] 0x%02x %c %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DumpBinString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca [9 x i8], align 1
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 9)
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %6, align 4
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %43
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %37
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
store i8 %20, ptr %4, align 1
%21 = load i32, ptr %3, align 4
%22 = load i8, ptr %4, align 1
%23 = load i8, ptr %4, align 1
%24 = call i64 @isprint(i8 noundef signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %15
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
br label %30
29: ; preds = %15
br label %30
30: ; preds = %29, %26
%31 = phi i32 [ %28, %26 ], [ 46, %29 ]
%32 = trunc i32 %31 to i8
%33 = load i8, ptr %4, align 1
%34 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 0
%35 = call ptr @BinString(i8 noundef signext %33, ptr noundef %34, i32 noundef 8)
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %21, i8 noundef signext %22, i8 noundef signext %32, ptr noundef %35)
br label %37
37: ; preds = %30
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %1
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i8 noundef signext, i8 noundef signext, ptr noundef) #1
declare i64 @isprint(i8 noundef signext) #1
declare ptr @BinString(i8 noundef signext, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqajx_xix.c'
source_filename = "/tmp/tmpqajx_xix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Unable to verify ownership of stmt.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @STMT_OWN_ERR() #0 {
%1 = call ptr @gettext(ptr noundef @.str)
ret ptr %1
}
declare ptr @gettext(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqajx_xix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Unable to verify ownership of stmt.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @STMT_OWN_ERR() #0 {
%1 = call ptr @gettext(ptr noundef @.str)
ret ptr %1
}
declare ptr @gettext(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt3ri8j_2.c'
source_filename = "/tmp/tmpt3ri8j_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"
%struct.udphdr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @udphdr_uh_ulen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.udphdr, ptr %3, i32 0, i32 0
ret ptr %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt3ri8j_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"
%struct.udphdr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @udphdr_uh_ulen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.udphdr, ptr %3, i32 0, i32 0
ret ptr %4
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpibww_onf.c'
source_filename = "/tmp/tmpibww_onf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [20 x i32], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
%7 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
store ptr %7, ptr %4, align 8
store ptr %2, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = icmp eq ptr %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpibww_onf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [20 x i32], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
%7 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
store ptr %7, ptr %4, align 8
store ptr %2, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = icmp eq ptr %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9fjw17qu.c'
source_filename = "/tmp/tmp9fjw17qu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Input 2 numbers divided by a comma(,): \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d, %d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%d to the power of %d equals: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @power(i32 noundef %8, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6, i32 noundef %7, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @power(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9fjw17qu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"Input 2 numbers divided by a comma(,): \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d, %d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%d to the power of %d equals: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @power(i32 noundef %8, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6, i32 noundef %7, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @power(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9jhbdwxu.c'
source_filename = "/tmp/tmp9jhbdwxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"How many data? \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = call ptr @sieve_of_eratosthenes(i32 noundef %7)
store ptr %8, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %27, %0
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %30
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %13
%21 = load i32, ptr %4, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
%23 = load i32, ptr %4, align 4
%24 = call i32 @is_prime(i32 noundef %23)
%25 = call i32 @assert(i32 noundef %24)
br label %26
26: ; preds = %20, %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %9, !llvm.loop !6
30: ; preds = %9
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @sieve_of_eratosthenes(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @is_prime(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/tmp9jhbdwxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"How many data? \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = call ptr @sieve_of_eratosthenes(i32 noundef %7)
store ptr %8, ptr %3, align 8
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %26
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %12
%20 = load i32, ptr %4, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = call i32 @is_prime(i32 noundef %22)
%24 = call i32 @assert(i32 noundef %23)
br label %25
25: ; preds = %19, %12
br label %26
26: ; preds = %25
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @sieve_of_eratosthenes(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @is_prime(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/tmp0_26sn2x.c'
source_filename = "/tmp/tmp0_26sn2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tree.txt\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @readExpression(ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %3, align 4
%6 = call i32 @initStack(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @createTree(ptr noundef %7, i32 noundef %8)
%10 = call i32 @printTree(ptr noundef @.str)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %11
}
declare i32 @readExpression(ptr noundef, ptr noundef) #1
declare i32 @initStack(i32 noundef) #1
declare i32 @createTree(ptr noundef, i32 noundef) #1
declare i32 @printTree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0_26sn2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tree.txt\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @readExpression(ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %3, align 4
%6 = call i32 @initStack(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = call i32 @createTree(ptr noundef %7, i32 noundef %8)
%10 = call i32 @printTree(ptr noundef @.str)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %11
}
declare i32 @readExpression(ptr noundef, ptr noundef) #1
declare i32 @initStack(i32 noundef) #1
declare i32 @createTree(ptr noundef, i32 noundef) #1
declare i32 @printTree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph8eirp1l.c'
source_filename = "/tmp/tmph8eirp1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inet_ntoa.buf = internal global [16 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [12 x i8] c"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @inet_ntoa(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store ptr %2, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 255
%9 = trunc i32 %8 to i8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = and i32 %13, 255
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 2
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = and i32 %19, 255
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 3
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = and i32 %25, 255
%27 = trunc i32 %26 to i8
%28 = call i32 @sprintf(ptr noundef @inet_ntoa.buf, ptr noundef @.str, i8 noundef zeroext %9, i8 noundef zeroext %15, i8 noundef zeroext %21, i8 noundef zeroext %27)
ret ptr @inet_ntoa.buf
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph8eirp1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inet_ntoa.buf = internal global [16 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [12 x i8] c"%d.%d.%d.%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @inet_ntoa(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store ptr %2, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 255
%9 = trunc i32 %8 to i8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = and i32 %13, 255
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 2
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = and i32 %19, 255
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 3
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = and i32 %25, 255
%27 = trunc i32 %26 to i8
%28 = call i32 @sprintf(ptr noundef @inet_ntoa.buf, ptr noundef @.str, i8 noundef zeroext %9, i8 noundef zeroext %15, i8 noundef zeroext %21, i8 noundef zeroext %27)
ret ptr @inet_ntoa.buf
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7520ohsp.c'
source_filename = "/tmp/tmp7520ohsp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gds_write_mag.count = internal global i32 0, align 4
@gds_write_mag.token = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gds_write_mag(i32 noundef %0, float noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 %0, ptr %3, align 4
store float %1, ptr %4, align 4
store i32 12, ptr @gds_write_mag.count, align 4
%5 = call i32 @gds_swap2bytes(ptr noundef @gds_write_mag.count)
%6 = load i32, ptr %3, align 4
%7 = call i32 @write(i32 noundef %6, ptr noundef @gds_write_mag.count, i32 noundef 2)
store i32 6917, ptr @gds_write_mag.token, align 4
%8 = call i32 @gds_swap2bytes(ptr noundef @gds_write_mag.token)
%9 = load i32, ptr %3, align 4
%10 = call i32 @write(i32 noundef %9, ptr noundef @gds_write_mag.token, i32 noundef 2)
%11 = load i32, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = call i32 @gds_write_float(i32 noundef %11, float noundef %12)
ret void
}
declare i32 @gds_swap2bytes(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @gds_write_float(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7520ohsp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gds_write_mag.count = internal global i32 0, align 4
@gds_write_mag.token = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gds_write_mag(i32 noundef %0, float noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 %0, ptr %3, align 4
store float %1, ptr %4, align 4
store i32 12, ptr @gds_write_mag.count, align 4
%5 = call i32 @gds_swap2bytes(ptr noundef @gds_write_mag.count)
%6 = load i32, ptr %3, align 4
%7 = call i32 @write(i32 noundef %6, ptr noundef @gds_write_mag.count, i32 noundef 2)
store i32 6917, ptr @gds_write_mag.token, align 4
%8 = call i32 @gds_swap2bytes(ptr noundef @gds_write_mag.token)
%9 = load i32, ptr %3, align 4
%10 = call i32 @write(i32 noundef %9, ptr noundef @gds_write_mag.token, i32 noundef 2)
%11 = load i32, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = call i32 @gds_write_float(i32 noundef %11, float noundef %12)
ret void
}
declare i32 @gds_swap2bytes(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @gds_write_float(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"}
|
; ModuleID = '/tmp/tmpumuophgd.c'
source_filename = "/tmp/tmpumuophgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"\0AError en la reserva de memoria\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0ASe ha reservado memoria para %i elementos\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @reservaMemoria(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 i64 @calloc(i32 noundef 4, i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
br label %14
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
ret ptr %15
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpumuophgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"\0AError en la reserva de memoria\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0ASe ha reservado memoria para %i elementos\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @reservaMemoria(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 i64 @calloc(i32 noundef 4, i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef -1) #3
unreachable
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
br label %14
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
ret ptr %15
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpclmbrrwp.c'
source_filename = "/tmp/tmpclmbrrwp.c"
target datalayout = "e-m:e-p270: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/tmpclmbrrwp.c"
target datalayout = "e-m:e-p270: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/tmpxit_6b0c.c'
source_filename = "/tmp/tmpxit_6b0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genann_act_sigmoid(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %3, align 8
%4 = load double, ptr %3, align 8
%5 = fcmp olt double %4, -4.500000e+01
br i1 %5, label %6, label %7
6: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %18
7: ; preds = %1
%8 = load double, ptr %3, align 8
%9 = fcmp ogt double %8, 4.500000e+01
br i1 %9, label %10, label %11
10: ; preds = %7
store double 1.000000e+00, ptr %2, align 8
br label %18
11: ; preds = %7
%12 = load double, ptr %3, align 8
%13 = fneg double %12
%14 = call i32 @exp(double noundef %13)
%15 = add nsw i32 1, %14
%16 = sitofp i32 %15 to double
%17 = fdiv double 1.000000e+00, %16
store double %17, ptr %2, align 8
br label %18
18: ; preds = %11, %10, %6
%19 = load double, ptr %2, align 8
ret double %19
}
declare i32 @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxit_6b0c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @genann_act_sigmoid(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %3, align 8
%4 = load double, ptr %3, align 8
%5 = fcmp olt double %4, -4.500000e+01
br i1 %5, label %6, label %7
6: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %18
7: ; preds = %1
%8 = load double, ptr %3, align 8
%9 = fcmp ogt double %8, 4.500000e+01
br i1 %9, label %10, label %11
10: ; preds = %7
store double 1.000000e+00, ptr %2, align 8
br label %18
11: ; preds = %7
%12 = load double, ptr %3, align 8
%13 = fneg double %12
%14 = call i32 @exp(double noundef %13)
%15 = add nsw i32 1, %14
%16 = sitofp i32 %15 to double
%17 = fdiv double 1.000000e+00, %16
store double %17, ptr %2, align 8
br label %18
18: ; preds = %11, %10, %6
%19 = load double, ptr %2, align 8
ret double %19
}
declare i32 @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.