llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpaqwbq2up.c'
source_filename = "/tmp/tmpaqwbq2up.c"
target datalayout = "e-m:e-p270: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/tmpaqwbq2up.c"
target datalayout = "e-m:e-p270: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/tmpua0fjod_.c'
source_filename = "/tmp/tmpua0fjod_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_8__ = type { i32, ptr, ptr }
%struct.TYPE_7__ = type { i64, i64, ptr, ptr }
@FTS_NAMEONLY = dso_local global i32 0, align 4
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@FTS_STOP = dso_local global i32 0, align 4
@FTS_INIT = dso_local global i64 0, align 8
@FTS_D = dso_local global i64 0, align 8
@FTS_ROOTLEVEL = dso_local global i64 0, align 8
@FTS_NOCHDIR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fts_children(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @FTS_NAMEONLY, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = load i64, ptr @EINVAL, align 8
store i64 %15, ptr @errno, align 8
store ptr null, ptr %3, align 8
br label %115
16: ; preds = %10, %2
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds %struct.TYPE_8__, ptr %17, i32 0, i32 2
%19 = load ptr, ptr %18, align 8
store ptr %19, ptr %6, align 8
store i64 0, ptr @errno, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds %struct.TYPE_8__, ptr %20, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = load i32, ptr @FTS_STOP, align 4
%24 = and i32 %22, %23
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %16
store ptr null, ptr %3, align 8
br label %115
27: ; preds = %16
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds %struct.TYPE_7__, ptr %28, i32 0, i32 0
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr @FTS_INIT, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds %struct.TYPE_7__, ptr %34, i32 0, i32 3
%36 = load ptr, ptr %35, align 8
store ptr %36, ptr %3, align 8
br label %115
37: ; preds = %27
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds %struct.TYPE_7__, ptr %38, i32 0, i32 0
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr @FTS_D, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %37
store ptr null, ptr %3, align 8
br label %115
44: ; preds = %37
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds %struct.TYPE_8__, ptr %45, i32 0, i32 1
%47 = load ptr, ptr %46, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %54
49: ; preds = %44
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds %struct.TYPE_8__, ptr %50, i32 0, i32 1
%52 = load ptr, ptr %51, align 8
%53 = call i32 @fts_lfree(ptr noundef %52)
br label %54
54: ; preds = %49, %44
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr @FTS_NAMEONLY, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load i32, ptr @FTS_NAMEONLY, align 4
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds %struct.TYPE_8__, ptr %60, i32 0, i32 0
%62 = load i32, ptr %61, align 8
%63 = or i32 %62, %59
store i32 %63, ptr %61, align 8
store i32 2, ptr %5, align 4
br label %65
64: ; preds = %54
store i32 1, ptr %5, align 4
br label %65
65: ; preds = %64, %58
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds %struct.TYPE_7__, ptr %66, i32 0, i32 1
%68 = load i64, ptr %67, align 8
%69 = load i64, ptr @FTS_ROOTLEVEL, align 8
%70 = icmp ne i64 %68, %69
br i1 %70, label %86, label %71
71: ; preds = %65
%72 = load ptr, ptr %6, align 8
%73 = getelementptr inbounds %struct.TYPE_7__, ptr %72, i32 0, i32 2
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 0
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 47
br i1 %78, label %86, label %79
79: ; preds = %71
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds %struct.TYPE_8__, ptr %80, i32 0, i32 0
%82 = load i32, ptr %81, align 8
%83 = load i32, ptr @FTS_NOCHDIR, align 4
%84 = and i32 %82, %83
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %79, %71, %65
%87 = load ptr, ptr %4, align 8
%88 = load i32, ptr %5, align 4
%89 = call ptr @fts_build(ptr noundef %87, i32 noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds %struct.TYPE_8__, ptr %90, i32 0, i32 1
store ptr %89, ptr %91, align 8
store ptr %89, ptr %3, align 8
br label %115
92: ; preds = %79
%93 = load i32, ptr @O_RDONLY, align 4
%94 = call i32 @open(ptr noundef @.str, i32 noundef %93, i32 noundef 0)
store i32 %94, ptr %7, align 4
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store ptr null, ptr %3, align 8
br label %115
97: ; preds = %92
%98 = load ptr, ptr %4, align 8
%99 = load i32, ptr %5, align 4
%100 = call ptr @fts_build(ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds %struct.TYPE_8__, ptr %101, i32 0, i32 1
store ptr %100, ptr %102, align 8
%103 = load i32, ptr %7, align 4
%104 = call i64 @fchdir(i32 noundef %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %97
%107 = load i32, ptr %7, align 4
%108 = call i32 @close(i32 noundef %107)
store ptr null, ptr %3, align 8
br label %115
109: ; preds = %97
%110 = load i32, ptr %7, align 4
%111 = call i32 @close(i32 noundef %110)
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds %struct.TYPE_8__, ptr %112, i32 0, i32 1
%114 = load ptr, ptr %113, align 8
store ptr %114, ptr %3, align 8
br label %115
115: ; preds = %109, %106, %96, %86, %43, %33, %26, %14
%116 = load ptr, ptr %3, align 8
ret ptr %116
}
declare i32 @fts_lfree(ptr noundef) #1
declare ptr @fts_build(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fchdir(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpua0fjod_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_8__ = type { i32, ptr, ptr }
%struct.TYPE_7__ = type { i64, i64, ptr, ptr }
@FTS_NAMEONLY = dso_local global i32 0, align 4
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@FTS_STOP = dso_local global i32 0, align 4
@FTS_INIT = dso_local global i64 0, align 8
@FTS_D = dso_local global i64 0, align 8
@FTS_ROOTLEVEL = dso_local global i64 0, align 8
@FTS_NOCHDIR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fts_children(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @FTS_NAMEONLY, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = load i64, ptr @EINVAL, align 8
store i64 %15, ptr @errno, align 8
store ptr null, ptr %3, align 8
br label %115
16: ; preds = %10, %2
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds %struct.TYPE_8__, ptr %17, i32 0, i32 2
%19 = load ptr, ptr %18, align 8
store ptr %19, ptr %6, align 8
store i64 0, ptr @errno, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds %struct.TYPE_8__, ptr %20, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = load i32, ptr @FTS_STOP, align 4
%24 = and i32 %22, %23
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %16
store ptr null, ptr %3, align 8
br label %115
27: ; preds = %16
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds %struct.TYPE_7__, ptr %28, i32 0, i32 0
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr @FTS_INIT, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %27
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds %struct.TYPE_7__, ptr %34, i32 0, i32 3
%36 = load ptr, ptr %35, align 8
store ptr %36, ptr %3, align 8
br label %115
37: ; preds = %27
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds %struct.TYPE_7__, ptr %38, i32 0, i32 0
%40 = load i64, ptr %39, align 8
%41 = load i64, ptr @FTS_D, align 8
%42 = icmp ne i64 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %37
store ptr null, ptr %3, align 8
br label %115
44: ; preds = %37
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds %struct.TYPE_8__, ptr %45, i32 0, i32 1
%47 = load ptr, ptr %46, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %54
49: ; preds = %44
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds %struct.TYPE_8__, ptr %50, i32 0, i32 1
%52 = load ptr, ptr %51, align 8
%53 = call i32 @fts_lfree(ptr noundef %52)
br label %54
54: ; preds = %49, %44
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr @FTS_NAMEONLY, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load i32, ptr @FTS_NAMEONLY, align 4
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds %struct.TYPE_8__, ptr %60, i32 0, i32 0
%62 = load i32, ptr %61, align 8
%63 = or i32 %62, %59
store i32 %63, ptr %61, align 8
store i32 2, ptr %5, align 4
br label %65
64: ; preds = %54
store i32 1, ptr %5, align 4
br label %65
65: ; preds = %64, %58
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds %struct.TYPE_7__, ptr %66, i32 0, i32 1
%68 = load i64, ptr %67, align 8
%69 = load i64, ptr @FTS_ROOTLEVEL, align 8
%70 = icmp ne i64 %68, %69
br i1 %70, label %86, label %71
71: ; preds = %65
%72 = load ptr, ptr %6, align 8
%73 = getelementptr inbounds %struct.TYPE_7__, ptr %72, i32 0, i32 2
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 0
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 47
br i1 %78, label %86, label %79
79: ; preds = %71
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds %struct.TYPE_8__, ptr %80, i32 0, i32 0
%82 = load i32, ptr %81, align 8
%83 = load i32, ptr @FTS_NOCHDIR, align 4
%84 = and i32 %82, %83
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %79, %71, %65
%87 = load ptr, ptr %4, align 8
%88 = load i32, ptr %5, align 4
%89 = call ptr @fts_build(ptr noundef %87, i32 noundef %88)
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds %struct.TYPE_8__, ptr %90, i32 0, i32 1
store ptr %89, ptr %91, align 8
store ptr %89, ptr %3, align 8
br label %115
92: ; preds = %79
%93 = load i32, ptr @O_RDONLY, align 4
%94 = call i32 @open(ptr noundef @.str, i32 noundef %93, i32 noundef 0)
store i32 %94, ptr %7, align 4
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store ptr null, ptr %3, align 8
br label %115
97: ; preds = %92
%98 = load ptr, ptr %4, align 8
%99 = load i32, ptr %5, align 4
%100 = call ptr @fts_build(ptr noundef %98, i32 noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds %struct.TYPE_8__, ptr %101, i32 0, i32 1
store ptr %100, ptr %102, align 8
%103 = load i32, ptr %7, align 4
%104 = call i64 @fchdir(i32 noundef %103)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %97
%107 = load i32, ptr %7, align 4
%108 = call i32 @close(i32 noundef %107)
store ptr null, ptr %3, align 8
br label %115
109: ; preds = %97
%110 = load i32, ptr %7, align 4
%111 = call i32 @close(i32 noundef %110)
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds %struct.TYPE_8__, ptr %112, i32 0, i32 1
%114 = load ptr, ptr %113, align 8
store ptr %114, ptr %3, align 8
br label %115
115: ; preds = %109, %106, %96, %86, %43, %33, %26, %14
%116 = load ptr, ptr %3, align 8
ret ptr %116
}
declare i32 @fts_lfree(ptr noundef) #1
declare ptr @fts_build(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fchdir(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphootwp6p.c'
source_filename = "/tmp/tmphootwp6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mq_receive\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"data:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @deal_data(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [200 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %3, align 4
%8 = call i32 (...) @pthread_self()
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @pthread_detach(i32 noundef %9)
%11 = call i32 @sleep(i32 noundef 3)
%12 = load i32, ptr %3, align 4
%13 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 0
%14 = call i32 @mq_receive(i32 noundef %12, ptr noundef %13, i32 noundef 200, ptr noundef null)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %1
%20 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str.1, ptr noundef %20)
ret ptr inttoptr (i64 1 to ptr)
}
declare i32 @pthread_self(...) #1
declare i32 @pthread_detach(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @mq_receive(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmphootwp6p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mq_receive\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"data:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @deal_data(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [200 x i8], align 16
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %3, align 4
%8 = call i32 (...) @pthread_self()
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @pthread_detach(i32 noundef %9)
%11 = call i32 @sleep(i32 noundef 3)
%12 = load i32, ptr %3, align 4
%13 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 0
%14 = call i32 @mq_receive(i32 noundef %12, ptr noundef %13, i32 noundef 200, ptr noundef null)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %1
%20 = getelementptr inbounds [200 x i8], ptr %4, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str.1, ptr noundef %20)
ret ptr inttoptr (i64 1 to ptr)
}
declare i32 @pthread_self(...) #1
declare i32 @pthread_detach(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @mq_receive(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp4jrdomg_.c'
source_filename = "/tmp/tmp4jrdomg_.c"
target datalayout = "e-m:e-p270: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/tmp4jrdomg_.c"
target datalayout = "e-m:e-p270: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/tmpw7ru26eb.c'
source_filename = "/tmp/tmpw7ru26eb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Press a key to start\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x i32], align 4
store i32 0, ptr %1, align 4
%3 = call i32 @BiosSetGfxMode(i32 noundef 1)
%4 = call i32 @text(i32 noundef 10, i32 noundef 12, ptr noundef @.str, i32 noundef 15)
br label %5
5: ; preds = %8, %0
%6 = call i64 (...) @BiosKeyAvailable()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 (...) @BiosReadKey()
br label %5, !llvm.loop !6
10: ; preds = %5
%11 = call i32 (...) @BiosReadKey()
%12 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%13 = call i32 @BiosGetTicks(ptr noundef %12)
%14 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%15 = load i32, ptr %14, align 4
%16 = call i32 @srand(i32 noundef %15)
%17 = call i32 (...) @play()
%18 = call i32 @BiosSetGfxMode(i32 noundef 3)
ret i32 0
}
declare i32 @BiosSetGfxMode(i32 noundef) #1
declare i32 @text(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @BiosKeyAvailable(...) #1
declare i32 @BiosReadKey(...) #1
declare i32 @BiosGetTicks(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @play(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpw7ru26eb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Press a key to start\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x i32], align 4
store i32 0, ptr %1, align 4
%3 = call i32 @BiosSetGfxMode(i32 noundef 1)
%4 = call i32 @text(i32 noundef 10, i32 noundef 12, ptr noundef @.str, i32 noundef 15)
%5 = call i64 (...) @BiosKeyAvailable()
%6 = icmp ne i64 %5, 0
br i1 %6, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = call i32 (...) @BiosReadKey()
%9 = call i64 (...) @BiosKeyAvailable()
%10 = icmp ne i64 %9, 0
br i1 %10, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %11
11: ; preds = %._crit_edge, %0
%12 = call i32 (...) @BiosReadKey()
%13 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%14 = call i32 @BiosGetTicks(ptr noundef %13)
%15 = getelementptr inbounds [2 x i32], ptr %2, i64 0, i64 0
%16 = load i32, ptr %15, align 4
%17 = call i32 @srand(i32 noundef %16)
%18 = call i32 (...) @play()
%19 = call i32 @BiosSetGfxMode(i32 noundef 3)
ret i32 0
}
declare i32 @BiosSetGfxMode(i32 noundef) #1
declare i32 @text(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @BiosKeyAvailable(...) #1
declare i32 @BiosReadKey(...) #1
declare i32 @BiosGetTicks(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @play(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvjr48c7c.c'
source_filename = "/tmp/tmpvjr48c7c.c"
target datalayout = "e-m:e-p270: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/tmpvjr48c7c.c"
target datalayout = "e-m:e-p270: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/tmpsyr9vcer.c'
source_filename = "/tmp/tmpsyr9vcer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @main() #0 {
%1 = call i32 @fact(i32 noundef 5)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fact(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/tmpsyr9vcer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @main() #0 {
%1 = call i32 @fact(i32 noundef 5)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fact(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/tmpphygzp7u.c'
source_filename = "/tmp/tmpphygzp7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SeekOptimalBinTree(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
store i32 0, ptr %11, align 4
br label %15
15: ; preds = %59, %5
%16 = load i32, ptr %11, align 4
%17 = load i32, ptr %10, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %62
19: ; preds = %15
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %11, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %11, align 4
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
store i32 %24, ptr %33, align 4
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %11, 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 %6, align 8
%40 = load i32, ptr %11, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %43, i64 %46
store i32 %38, ptr %47, align 4
%48 = load i32, ptr %11, align 4
%49 = add nsw i32 %48, 1
%50 = load ptr, ptr %8, align 8
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %11, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %54, i64 %57
store i32 %49, ptr %58, align 4
br label %59
59: ; preds = %19
%60 = load i32, ptr %11, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %11, align 4
br label %15, !llvm.loop !6
62: ; preds = %15
store i32 2, ptr %12, align 4
br label %63
63: ; preds = %129, %62
%64 = load i32, ptr %12, align 4
%65 = load i32, ptr %10, align 4
%66 = icmp sle i32 %64, %65
br i1 %66, label %67, label %132
67: ; preds = %63
%68 = load i32, ptr %12, align 4
store i32 %68, ptr %13, align 4
br label %69
69: ; preds = %125, %67
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp sle i32 %70, %71
br i1 %72, label %73, label %128
73: ; preds = %69
%74 = load i32, ptr %13, align 4
%75 = load i32, ptr %12, align 4
%76 = sub nsw i32 %74, %75
store i32 %76, ptr %14, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %77, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %13, align 4
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %9, align 8
%88 = load i32, ptr %13, align 4
%89 = sub nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %87, i64 %90
%92 = load i32, ptr %91, align 4
%93 = add nsw i32 %86, %92
%94 = load ptr, ptr %7, align 8
%95 = load i32, ptr %14, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %94, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %13, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %93, ptr %101, align 4
%102 = load ptr, ptr %7, align 8
%103 = load i32, ptr %14, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
%107 = load i32, ptr %13, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, ptr %106, i64 %108
%110 = load i32, ptr %109, align 4
%111 = load i32, ptr %14, align 4
%112 = load i32, ptr %13, align 4
%113 = load ptr, ptr %8, align 8
%114 = load ptr, ptr %6, align 8
%115 = call i32 @Min(i32 noundef %111, i32 noundef %112, ptr noundef %113, ptr noundef %114)
%116 = add nsw i32 %110, %115
%117 = load ptr, ptr %6, align 8
%118 = load i32, ptr %14, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds ptr, ptr %117, i64 %119
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %13, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, ptr %121, i64 %123
store i32 %116, ptr %124, align 4
br label %125
125: ; preds = %73
%126 = load i32, ptr %13, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %13, align 4
br label %69, !llvm.loop !8
128: ; preds = %69
br label %129
129: ; preds = %128
%130 = load i32, ptr %12, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %12, align 4
br label %63, !llvm.loop !9
132: ; preds = %63
ret void
}
declare i32 @Min(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpphygzp7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SeekOptimalBinTree(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
store i32 0, ptr %11, align 4
%15 = load i32, ptr %11, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %64
.lr.ph: ; preds = %5
br label %18
18: ; preds = %.lr.ph, %58
%19 = load ptr, ptr %9, align 8
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %11, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr %11, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
store i32 %23, ptr %32, align 4
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %42, i64 %45
store i32 %37, ptr %46, align 4
%47 = load i32, ptr %11, align 4
%48 = add nsw i32 %47, 1
%49 = load ptr, ptr %8, align 8
%50 = load i32, ptr %11, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %11, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %53, i64 %56
store i32 %48, ptr %57, align 4
br label %58
58: ; preds = %18
%59 = load i32, ptr %11, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %11, align 4
%61 = load i32, ptr %11, align 4
%62 = load i32, ptr %10, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %5
store i32 2, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %10, align 4
%67 = icmp sle i32 %65, %66
br i1 %67, label %.lr.ph5, label %138
.lr.ph5: ; preds = %64
br label %68
68: ; preds = %.lr.ph5, %132
%69 = load i32, ptr %12, align 4
store i32 %69, ptr %13, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp sle i32 %70, %71
br i1 %72, label %.lr.ph2, label %131
.lr.ph2: ; preds = %68
br label %73
73: ; preds = %.lr.ph2, %125
%74 = load i32, ptr %13, align 4
%75 = load i32, ptr %12, align 4
%76 = sub nsw i32 %74, %75
store i32 %76, ptr %14, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %77, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %13, align 4
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %9, align 8
%88 = load i32, ptr %13, align 4
%89 = sub nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %87, i64 %90
%92 = load i32, ptr %91, align 4
%93 = add nsw i32 %86, %92
%94 = load ptr, ptr %7, align 8
%95 = load i32, ptr %14, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %94, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %13, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %93, ptr %101, align 4
%102 = load ptr, ptr %7, align 8
%103 = load i32, ptr %14, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
%107 = load i32, ptr %13, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, ptr %106, i64 %108
%110 = load i32, ptr %109, align 4
%111 = load i32, ptr %14, align 4
%112 = load i32, ptr %13, align 4
%113 = load ptr, ptr %8, align 8
%114 = load ptr, ptr %6, align 8
%115 = call i32 @Min(i32 noundef %111, i32 noundef %112, ptr noundef %113, ptr noundef %114)
%116 = add nsw i32 %110, %115
%117 = load ptr, ptr %6, align 8
%118 = load i32, ptr %14, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds ptr, ptr %117, i64 %119
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %13, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, ptr %121, i64 %123
store i32 %116, ptr %124, align 4
br label %125
125: ; preds = %73
%126 = load i32, ptr %13, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %13, align 4
%128 = load i32, ptr %13, align 4
%129 = load i32, ptr %10, align 4
%130 = icmp sle i32 %128, %129
br i1 %130, label %73, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %125
br label %131
131: ; preds = %._crit_edge3, %68
br label %132
132: ; preds = %131
%133 = load i32, ptr %12, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %12, align 4
%135 = load i32, ptr %12, align 4
%136 = load i32, ptr %10, align 4
%137 = icmp sle i32 %135, %136
br i1 %137, label %68, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %132
br label %138
138: ; preds = %._crit_edge6, %64
ret void
}
declare i32 @Min(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpwnnosapz.c'
source_filename = "/tmp/tmpwnnosapz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncpy_irc(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %8, align 8
br label %13
13: ; preds = %27, %3
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %7, align 8
%16 = icmp ult ptr %14, %15
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %5, align 8
%20 = load i8, ptr %18, align 1
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
store i8 %20, ptr %21, align 1
%23 = sext i8 %20 to i32
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %17, %13
%26 = phi i1 [ false, %13 ], [ %24, %17 ]
br i1 %26, label %27, label %28
27: ; preds = %25
br label %13, !llvm.loop !6
28: ; preds = %25
%29 = load ptr, ptr %4, align 8
ret ptr %29
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpwnnosapz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncpy_irc(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %8, align 8
br label %13
13: ; preds = %25, %3
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %7, align 8
%16 = icmp ult ptr %14, %15
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %5, align 8
%20 = load i8, ptr %18, align 1
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
store i8 %20, ptr %21, align 1
%23 = sext i8 %20 to i32
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %17, %13
%26 = phi i1 [ false, %13 ], [ %24, %17 ]
br i1 %26, label %13, label %27, !llvm.loop !6
27: ; preds = %25
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4xq8ixvz.c'
source_filename = "/tmp/tmp4xq8ixvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fftss_r4_sse2_u4_f(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %10, align 8
%15 = mul nsw i64 %13, %14
%16 = mul nsw i64 %15, 2
%17 = getelementptr inbounds double, ptr %12, i64 %16
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %9, align 8
%20 = load i64, ptr %10, align 8
%21 = mul nsw i64 %19, %20
%22 = mul nsw i64 %21, 4
%23 = getelementptr inbounds double, ptr %18, i64 %22
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %9, align 8
%26 = load i64, ptr %10, align 8
%27 = mul nsw i64 %25, %26
%28 = mul nsw i64 %27, 6
%29 = getelementptr inbounds double, ptr %24, i64 %28
%30 = load ptr, ptr %6, align 8
%31 = load ptr, ptr %8, align 8
%32 = load i64, ptr %10, align 8
%33 = call i32 @kern_r4_sse2_u4_f(ptr noundef %11, ptr noundef %17, ptr noundef %23, ptr noundef %29, ptr noundef %30, ptr noundef %31, i64 noundef %32)
ret void
}
declare i32 @kern_r4_sse2_u4_f(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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/tmp4xq8ixvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fftss_r4_sse2_u4_f(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %10, align 8
%15 = mul nsw i64 %13, %14
%16 = mul nsw i64 %15, 2
%17 = getelementptr inbounds double, ptr %12, i64 %16
%18 = load ptr, ptr %7, align 8
%19 = load i64, ptr %9, align 8
%20 = load i64, ptr %10, align 8
%21 = mul nsw i64 %19, %20
%22 = mul nsw i64 %21, 4
%23 = getelementptr inbounds double, ptr %18, i64 %22
%24 = load ptr, ptr %7, align 8
%25 = load i64, ptr %9, align 8
%26 = load i64, ptr %10, align 8
%27 = mul nsw i64 %25, %26
%28 = mul nsw i64 %27, 6
%29 = getelementptr inbounds double, ptr %24, i64 %28
%30 = load ptr, ptr %6, align 8
%31 = load ptr, ptr %8, align 8
%32 = load i64, ptr %10, align 8
%33 = call i32 @kern_r4_sse2_u4_f(ptr noundef %11, ptr noundef %17, ptr noundef %23, ptr noundef %29, ptr noundef %30, ptr noundef %31, i64 noundef %32)
ret void
}
declare i32 @kern_r4_sse2_u4_f(ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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/tmpvk5w7vzm.c'
source_filename = "/tmp/tmpvk5w7vzm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @malloc(i64 noundef %3) #2
ret ptr %4
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvk5w7vzm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmalloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @malloc(i64 noundef %3) #2
ret ptr %4
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxm3cl8yr.c'
source_filename = "/tmp/tmpxm3cl8yr.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [50 x i8] c"qwertyuioplkjhgfdsaxcvbnmz\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [7 x i8] c"%s\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s1, i64 50, i1 false)
%4 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %4, ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @substr(ptr noundef %7, ptr noundef %8, i32 noundef 10, i32 noundef 32)
%10 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @substr(ptr noundef %13, ptr noundef %14, i32 noundef 10, i32 noundef 10)
%16 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%17 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%21 = call i32 @substr(ptr noundef %19, ptr noundef %20, i32 noundef 10, i32 noundef -1)
%22 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%23 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %22, ptr noundef %23)
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, ptr noundef, ptr noundef) #2
declare i32 @substr(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxm3cl8yr.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [50 x i8] c"qwertyuioplkjhgfdsaxcvbnmz\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [7 x i8] c"%s\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.s1, i64 50, i1 false)
%4 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %4, ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @substr(ptr noundef %7, ptr noundef %8, i32 noundef 10, i32 noundef 32)
%10 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @substr(ptr noundef %13, ptr noundef %14, i32 noundef 10, i32 noundef 10)
%16 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%17 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%20 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%21 = call i32 @substr(ptr noundef %19, ptr noundef %20, i32 noundef 10, i32 noundef -1)
%22 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%23 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %22, ptr noundef %23)
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, ptr noundef, ptr noundef) #2
declare i32 @substr(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx2buhx4l.c'
source_filename = "/tmp/tmpx2buhx4l.c"
target datalayout = "e-m:e-p270: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/tmpx2buhx4l.c"
target datalayout = "e-m:e-p270: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_1ibfoal.c'
source_filename = "/tmp/tmp_1ibfoal.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_1ibfoal.c"
target datalayout = "e-m:e-p270: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/tmp29n_n4f6.c'
source_filename = "/tmp/tmp29n_n4f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @op_STRING_REPEAT(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @OP1_TYPECAST(ptr noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i64 @OP2_TYPECAST(ptr noundef %16)
%18 = trunc i64 %17 to i32
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sle i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = call i64 @alloc(i32 noundef 1)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %8, align 8
store ptr %26, ptr %3, align 8
br label %87
27: ; preds = %2
store i32 0, ptr %9, align 4
store i32 0, ptr %9, align 4
br label %28
28: ; preds = %36, %27
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %28
br label %36
36: ; preds = %35
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
br label %28, !llvm.loop !6
39: ; preds = %28
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %7, align 4
%42 = mul nsw i32 %40, %41
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = mul i64 1, %44
%46 = trunc i64 %45 to i32
%47 = call i64 @alloc(i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %49
49: ; preds = %76, %39
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %79
53: ; preds = %49
store i32 0, ptr %12, align 4
br label %54
54: ; preds = %72, %53
%55 = load i32, ptr %12, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %75
58: ; preds = %54
%59 = load ptr, ptr %6, align 8
%60 = load i32, ptr %12, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = load ptr, ptr %10, align 8
%65 = load i32, ptr %11, align 4
%66 = load i32, ptr %9, align 4
%67 = mul nsw i32 %65, %66
%68 = load i32, ptr %12, align 4
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %64, i64 %70
store i8 %63, ptr %71, align 1
br label %72
72: ; preds = %58
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %12, align 4
br label %54, !llvm.loop !8
75: ; preds = %54
br label %76
76: ; preds = %75
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
br label %49, !llvm.loop !9
79: ; preds = %49
%80 = load ptr, ptr %10, align 8
%81 = load i32, ptr %7, align 4
%82 = load i32, ptr %9, align 4
%83 = mul nsw i32 %81, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %80, i64 %84
store i8 0, ptr %85, align 1
%86 = load ptr, ptr %10, align 8
store ptr %86, ptr %3, align 8
br label %87
87: ; preds = %79, %21
%88 = load ptr, ptr %3, align 8
ret ptr %88
}
declare i64 @OP1_TYPECAST(ptr noundef) #1
declare i64 @OP2_TYPECAST(ptr noundef) #1
declare i64 @alloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp29n_n4f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @op_STRING_REPEAT(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @OP1_TYPECAST(ptr noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i64 @OP2_TYPECAST(ptr noundef %16)
%18 = trunc i64 %17 to i32
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sle i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = call i64 @alloc(i32 noundef 1)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %8, align 8
store ptr %26, ptr %3, align 8
br label %96
27: ; preds = %2
store i32 0, ptr %9, align 4
store i32 0, ptr %9, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %.lr.ph, label %44
.lr.ph: ; preds = %27
br label %34
34: ; preds = %.lr.ph, %35
br label %35
35: ; preds = %34
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = icmp ne i8 %42, 0
br i1 %43, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %44
44: ; preds = %._crit_edge, %27
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %7, align 4
%47 = mul nsw i32 %45, %46
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = mul i64 1, %49
%51 = trunc i64 %50 to i32
%52 = call i64 @alloc(i32 noundef %51)
%53 = inttoptr i64 %52 to ptr
store ptr %53, ptr %10, align 8
store i32 0, ptr %11, align 4
%54 = load i32, ptr %11, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %.lr.ph5, label %88
.lr.ph5: ; preds = %44
br label %57
57: ; preds = %.lr.ph5, %82
store i32 0, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %9, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph2, label %81
.lr.ph2: ; preds = %57
br label %61
61: ; preds = %.lr.ph2, %75
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
%66 = load i8, ptr %65, align 1
%67 = load ptr, ptr %10, align 8
%68 = load i32, ptr %11, align 4
%69 = load i32, ptr %9, align 4
%70 = mul nsw i32 %68, %69
%71 = load i32, ptr %12, align 4
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %67, i64 %73
store i8 %66, ptr %74, align 1
br label %75
75: ; preds = %61
%76 = load i32, ptr %12, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %12, align 4
%78 = load i32, ptr %12, align 4
%79 = load i32, ptr %9, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %57
br label %82
82: ; preds = %81
%83 = load i32, ptr %11, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %11, align 4
%85 = load i32, ptr %11, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %57, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %82
br label %88
88: ; preds = %._crit_edge6, %44
%89 = load ptr, ptr %10, align 8
%90 = load i32, ptr %7, align 4
%91 = load i32, ptr %9, align 4
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %89, i64 %93
store i8 0, ptr %94, align 1
%95 = load ptr, ptr %10, align 8
store ptr %95, ptr %3, align 8
br label %96
96: ; preds = %88, %21
%97 = load ptr, ptr %3, align 8
ret ptr %97
}
declare i64 @OP1_TYPECAST(ptr noundef) #1
declare i64 @OP2_TYPECAST(ptr noundef) #1
declare i64 @alloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxifg0kf7.c'
source_filename = "/tmp/tmpxifg0kf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SetSegmentReMap(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [1 x i8], align 1
store i8 %0, ptr %2, align 1
%4 = getelementptr inbounds [1 x i8], ptr %3, i64 0, i64 0
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = and i32 %6, 1
%8 = or i32 160, %7
%9 = trunc i32 %8 to i8
store i8 %9, ptr %4, align 1
%10 = getelementptr inbounds [1 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @oled_SendCommand(ptr noundef %10, i32 noundef 1)
ret void
}
declare i32 @oled_SendCommand(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/tmpxifg0kf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SetSegmentReMap(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [1 x i8], align 1
store i8 %0, ptr %2, align 1
%4 = getelementptr inbounds [1 x i8], ptr %3, i64 0, i64 0
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = and i32 %6, 1
%8 = or i32 160, %7
%9 = trunc i32 %8 to i8
store i8 %9, ptr %4, align 1
%10 = getelementptr inbounds [1 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @oled_SendCommand(ptr noundef %10, i32 noundef 1)
ret void
}
declare i32 @oled_SendCommand(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/tmp6aetys13.c'
source_filename = "/tmp/tmp6aetys13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @inverte(i32 noundef %4)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @inverte(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/tmp6aetys13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @inverte(i32 noundef %4)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @inverte(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/tmpq9gzehnq.c'
source_filename = "/tmp/tmpq9gzehnq.c"
target datalayout = "e-m:e-p270: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/tmpq9gzehnq.c"
target datalayout = "e-m:e-p270: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/tmp7c11dtn5.c'
source_filename = "/tmp/tmp7c11dtn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %18, %2
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 10001
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = call i64 @isPrime(i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %7, align 4
br label %18
18: ; preds = %15, %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @isPrime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7c11dtn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 10001
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load i32, ptr %6, align 4
%12 = call i64 @isPrime(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %14, %10
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 10001
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %2
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i64 @isPrime(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwa6ywibu.c'
source_filename = "/tmp/tmpwa6ywibu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset_bad1() #0 {
%1 = alloca [10 x i32], align 16
%2 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 44)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwa6ywibu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset_bad1() #0 {
%1 = alloca [10 x i32], align 16
%2 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 44)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4eol9fzu.c'
source_filename = "/tmp/tmp4eol9fzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dat_chscn_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
br label %21
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = call ptr @cnfCreim(ptr noundef %13, i32 noundef %14)
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @datChscn(ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = call i32 @cnfFree(ptr noundef %19)
br label %21
21: ; preds = %12, %11
ret void
}
declare ptr @cnfCreim(ptr noundef, i32 noundef) #1
declare i32 @datChscn(ptr noundef, ptr noundef) #1
declare i32 @cnfFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4eol9fzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dat_chscn_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
br label %21
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = call ptr @cnfCreim(ptr noundef %13, i32 noundef %14)
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @datChscn(ptr noundef %16, ptr noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = call i32 @cnfFree(ptr noundef %19)
br label %21
21: ; preds = %12, %11
ret void
}
declare ptr @cnfCreim(ptr noundef, i32 noundef) #1
declare i32 @datChscn(ptr noundef, ptr noundef) #1
declare i32 @cnfFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0ekko6z0.c'
source_filename = "/tmp/tmp0ekko6z0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_lmb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, 1
%6 = srem i32 %5, 5
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @read_mail_box(i32 noundef 0, i32 noundef %7)
ret i32 %8
}
declare i32 @read_mail_box(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/tmp0ekko6z0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_lmb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, 1
%6 = srem i32 %5, 5
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @read_mail_box(i32 noundef 0, i32 noundef %7)
ret i32 %8
}
declare i32 @read_mail_box(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/tmpd2s9go3g.c'
source_filename = "/tmp/tmpd2s9go3g.c"
target datalayout = "e-m:e-p270: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/tmpd2s9go3g.c"
target datalayout = "e-m:e-p270: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/tmpfmuk_eic.c'
source_filename = "/tmp/tmpfmuk_eic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"realpath()\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/picotm/picotm/refs/heads/master/tests/libsafeblk/safe_stdlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_realpath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @realpath(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @errno, align 4
%13 = call i32 @tap_error_errno_at(ptr noundef @.str, i32 noundef %12, ptr noundef @.str.1, i32 noundef 98)
%14 = call i32 (...) @abort_safe_block()
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
ret ptr %16
}
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @tap_error_errno_at(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @abort_safe_block(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfmuk_eic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"realpath()\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/picotm/picotm/refs/heads/master/tests/libsafeblk/safe_stdlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_realpath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @realpath(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @errno, align 4
%13 = call i32 @tap_error_errno_at(ptr noundef @.str, i32 noundef %12, ptr noundef @.str.1, i32 noundef 98)
%14 = call i32 (...) @abort_safe_block()
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
ret ptr %16
}
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @tap_error_errno_at(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @abort_safe_block(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11nleirr.c'
source_filename = "/tmp/tmp11nleirr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp11nleirr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgc69k5fq.c'
source_filename = "/tmp/tmpgc69k5fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scrambleWord(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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sle i32 %12, 3
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %106
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 2
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %7, align 8
%20 = alloca i8, i64 %18, align 16
store i64 %18, ptr %8, align 8
store i32 1, ptr %6, align 4
br label %21
21: ; preds = %40, %15
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %43
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load i32, ptr %6, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %20, i64 %34
store i8 %31, ptr %35, align 1
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 32, ptr %39, align 1
br label %40
40: ; preds = %26
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %21, !llvm.loop !6
43: ; preds = %21
store i32 0, ptr %6, align 4
br label %44
44: ; preds = %81, %43
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 5
br i1 %46, label %47, label %84
47: ; preds = %44
%48 = call i32 (...) @rand()
%49 = load i32, ptr %5, align 4
%50 = sub nsw i32 %49, 2
%51 = srem i32 %48, %50
store i32 %51, ptr %10, align 4
%52 = call i32 (...) @rand()
%53 = load i32, ptr %5, align 4
%54 = sub nsw i32 %53, 2
%55 = srem i32 %52, %54
store i32 %55, ptr %11, align 4
br label %56
56: ; preds = %60, %47
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %11, align 4
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = call i32 (...) @rand()
%62 = load i32, ptr %5, align 4
%63 = sub nsw i32 %62, 2
%64 = srem i32 %61, %63
store i32 %64, ptr %11, align 4
br label %56, !llvm.loop !8
65: ; preds = %56
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %20, i64 %67
%69 = load i8, ptr %68, align 1
store i8 %69, ptr %9, align 1
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %20, i64 %71
%73 = load i8, ptr %72, align 1
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %20, i64 %75
store i8 %73, ptr %76, align 1
%77 = load i8, ptr %9, align 1
%78 = load i32, ptr %11, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %20, i64 %79
store i8 %77, ptr %80, align 1
br label %81
81: ; preds = %65
%82 = load i32, ptr %6, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %6, align 4
br label %44, !llvm.loop !9
84: ; preds = %44
store i32 1, ptr %6, align 4
br label %85
85: ; preds = %100, %84
%86 = load i32, ptr %6, align 4
%87 = load i32, ptr %5, align 4
%88 = sub nsw i32 %87, 1
%89 = icmp slt i32 %86, %88
br i1 %89, label %90, label %103
90: ; preds = %85
%91 = load i32, ptr %6, align 4
%92 = sub nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %20, i64 %93
%95 = load i8, ptr %94, align 1
%96 = load ptr, ptr %4, align 8
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
store i8 %95, ptr %99, align 1
br label %100
100: ; preds = %90
%101 = load i32, ptr %6, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %6, align 4
br label %85, !llvm.loop !10
103: ; preds = %85
%104 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %104)
br label %105
105: ; preds = %103
store i32 0, ptr %3, align 4
br label %106
106: ; preds = %105, %14
%107 = load i32, ptr %3, align 4
ret i32 %107
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @rand(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgc69k5fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @scrambleWord(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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sle i32 %12, 3
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %115
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 2
%18 = zext i32 %17 to i64
%19 = call ptr @llvm.stacksave()
store ptr %19, ptr %7, align 8
%20 = alloca i8, i64 %18, align 16
store i64 %18, ptr %8, align 8
store i32 1, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 1
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %46
.lr.ph: ; preds = %15
br label %25
25: ; preds = %.lr.ph, %39
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %20, i64 %33
store i8 %30, ptr %34, align 1
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 32, ptr %38, align 1
br label %39
39: ; preds = %25
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %5, align 4
%44 = sub nsw i32 %43, 1
%45 = icmp slt i32 %42, %44
br i1 %45, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %46
46: ; preds = %._crit_edge, %15
store i32 0, ptr %6, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %47, 5
br i1 %48, label %.lr.ph5, label %90
.lr.ph5: ; preds = %46
br label %49
49: ; preds = %.lr.ph5, %85
%50 = call i32 (...) @rand()
%51 = load i32, ptr %5, align 4
%52 = sub nsw i32 %51, 2
%53 = srem i32 %50, %52
store i32 %53, ptr %10, align 4
%54 = call i32 (...) @rand()
%55 = load i32, ptr %5, align 4
%56 = sub nsw i32 %55, 2
%57 = srem i32 %54, %56
store i32 %57, ptr %11, align 4
%58 = load i32, ptr %10, align 4
%59 = load i32, ptr %11, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %.lr.ph2, label %69
.lr.ph2: ; preds = %49
br label %61
61: ; preds = %.lr.ph2, %61
%62 = call i32 (...) @rand()
%63 = load i32, ptr %5, align 4
%64 = sub nsw i32 %63, 2
%65 = srem i32 %62, %64
store i32 %65, ptr %11, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %11, align 4
%68 = icmp eq i32 %66, %67
br i1 %68, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %69
69: ; preds = %._crit_edge3, %49
%70 = load i32, ptr %10, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %20, i64 %71
%73 = load i8, ptr %72, align 1
store i8 %73, ptr %9, align 1
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %20, i64 %75
%77 = load i8, ptr %76, align 1
%78 = load i32, ptr %10, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %20, i64 %79
store i8 %77, ptr %80, align 1
%81 = load i8, ptr %9, align 1
%82 = load i32, ptr %11, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %20, i64 %83
store i8 %81, ptr %84, align 1
br label %85
85: ; preds = %69
%86 = load i32, ptr %6, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %6, align 4
%88 = load i32, ptr %6, align 4
%89 = icmp slt i32 %88, 5
br i1 %89, label %49, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %85
br label %90
90: ; preds = %._crit_edge6, %46
store i32 1, ptr %6, align 4
%91 = load i32, ptr %6, align 4
%92 = load i32, ptr %5, align 4
%93 = sub nsw i32 %92, 1
%94 = icmp slt i32 %91, %93
br i1 %94, label %.lr.ph8, label %112
.lr.ph8: ; preds = %90
br label %95
95: ; preds = %.lr.ph8, %105
%96 = load i32, ptr %6, align 4
%97 = sub nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %20, i64 %98
%100 = load i8, ptr %99, align 1
%101 = load ptr, ptr %4, align 8
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
store i8 %100, ptr %104, align 1
br label %105
105: ; preds = %95
%106 = load i32, ptr %6, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %6, align 4
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %5, align 4
%110 = sub nsw i32 %109, 1
%111 = icmp slt i32 %108, %110
br i1 %111, label %95, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %105
br label %112
112: ; preds = %._crit_edge9, %90
%113 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %113)
br label %114
114: ; preds = %112
store i32 0, ptr %3, align 4
br label %115
115: ; preds = %114, %14
%116 = load i32, ptr %3, align 4
ret i32 %116
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @rand(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp70q_lgy2.c'
source_filename = "/tmp/tmp70q_lgy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ranf.ranf = internal global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ranf() #0 {
%1 = call double (...) @ignlgi()
%2 = fmul double %1, 0x3E0000000A9A37F7
%3 = fptrunc double %2 to float
store float %3, ptr @ranf.ranf, align 4
%4 = load float, ptr @ranf.ranf, align 4
ret float %4
}
declare double @ignlgi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp70q_lgy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ranf.ranf = internal global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ranf() #0 {
%1 = call double (...) @ignlgi()
%2 = fmul double %1, 0x3E0000000A9A37F7
%3 = fptrunc double %2 to float
store float %3, ptr @ranf.ranf, align 4
%4 = load float, ptr @ranf.ranf, align 4
ret float %4
}
declare double @ignlgi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy_9mk_lt.c'
source_filename = "/tmp/tmpy_9mk_lt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call i32 @ft_putstr(ptr noundef %8)
%10 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy_9mk_lt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call i32 @ft_putstr(ptr noundef %8)
%10 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp410qyj3c.c'
source_filename = "/tmp/tmp410qyj3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @exact_square(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exact_square(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp410qyj3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @exact_square(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exact_square(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzj1vion9.c'
source_filename = "/tmp/tmpzj1vion9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %50, %2
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %7
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %14, %7
%22 = phi i1 [ false, %7 ], [ %20, %14 ]
br i1 %22, label %23, label %53
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = icmp sgt i32 %28, %33
br i1 %34, label %35, label %36
35: ; preds = %23
store i32 1, ptr %3, align 4
br label %68
36: ; preds = %23
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = zext i8 %40 to i32
%42 = load ptr, ptr %5, align 8
%43 = load i64, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = zext i8 %45 to i32
%47 = icmp slt i32 %41, %46
br i1 %47, label %48, label %49
48: ; preds = %36
store i32 -1, ptr %3, align 4
br label %68
49: ; preds = %36
br label %50
50: ; preds = %49
%51 = load i64, ptr %6, align 8
%52 = add i64 %51, 1
store i64 %52, ptr %6, align 8
br label %7, !llvm.loop !6
53: ; preds = %21
%54 = load ptr, ptr %4, align 8
%55 = call i64 @strlen(ptr noundef %54)
%56 = load ptr, ptr %5, align 8
%57 = call i64 @strlen(ptr noundef %56)
%58 = icmp sgt i64 %55, %57
br i1 %58, label %59, label %60
59: ; preds = %53
store i32 1, ptr %3, align 4
br label %68
60: ; preds = %53
%61 = load ptr, ptr %4, align 8
%62 = call i64 @strlen(ptr noundef %61)
%63 = load ptr, ptr %5, align 8
%64 = call i64 @strlen(ptr noundef %63)
%65 = icmp slt i64 %62, %64
br i1 %65, label %66, label %67
66: ; preds = %60
store i32 -1, ptr %3, align 4
br label %68
67: ; preds = %60
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %66, %59, %48, %35
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzj1vion9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %50, %2
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %8, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %7
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %14, %7
%22 = phi i1 [ false, %7 ], [ %20, %14 ]
br i1 %22, label %23, label %53
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %6, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = icmp sgt i32 %28, %33
br i1 %34, label %35, label %36
35: ; preds = %23
store i32 1, ptr %3, align 4
br label %68
36: ; preds = %23
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
%40 = load i8, ptr %39, align 1
%41 = zext i8 %40 to i32
%42 = load ptr, ptr %5, align 8
%43 = load i64, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = zext i8 %45 to i32
%47 = icmp slt i32 %41, %46
br i1 %47, label %48, label %49
48: ; preds = %36
store i32 -1, ptr %3, align 4
br label %68
49: ; preds = %36
br label %50
50: ; preds = %49
%51 = load i64, ptr %6, align 8
%52 = add i64 %51, 1
store i64 %52, ptr %6, align 8
br label %7, !llvm.loop !6
53: ; preds = %21
%54 = load ptr, ptr %4, align 8
%55 = call i64 @strlen(ptr noundef %54)
%56 = load ptr, ptr %5, align 8
%57 = call i64 @strlen(ptr noundef %56)
%58 = icmp sgt i64 %55, %57
br i1 %58, label %59, label %60
59: ; preds = %53
store i32 1, ptr %3, align 4
br label %68
60: ; preds = %53
%61 = load ptr, ptr %4, align 8
%62 = call i64 @strlen(ptr noundef %61)
%63 = load ptr, ptr %5, align 8
%64 = call i64 @strlen(ptr noundef %63)
%65 = icmp slt i64 %62, %64
br i1 %65, label %66, label %67
66: ; preds = %60
store i32 -1, ptr %3, align 4
br label %68
67: ; preds = %60
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %66, %59, %48, %35
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3fil7zms.c'
source_filename = "/tmp/tmp3fil7zms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_compare_data(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3fil7zms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_compare_data(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7liwmhqu.c'
source_filename = "/tmp/tmp7liwmhqu.c"
target datalayout = "e-m:e-p270: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"usage: abing [-h] <more options>\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"The options are: \0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09 -d \09 destination host\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\09 -B \09 bind to local address\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\09 -t \09 repeating period (1,2,.. sec)\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"\09 -n \09 repeating factor (1,5,100,.. times)\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"\09 -P \09 server port \0A\00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c"\09 -k \09 run-keyword (K324a,freD,.. - same key on Reflector)\0A\00", align 1
@.str.8 = private unnamed_addr constant [50 x i8] c"\09 -a \09 alpha factor in EWMA (default value 0.75)\0A\00", align 1
@.str.9 = private unnamed_addr constant [49 x i8] c"\09 -b \09 number of PP bunches (default number 20)\0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"\09 -c \09 calibration mode \0A\00", align 1
@.str.11 = private unnamed_addr constant [72 x i8] c"\09 -l \09 dir (where ABW-node.log and monitoring results will be located)\0A\00", align 1
@.str.12 = private unnamed_addr constant [35 x i8] c"\09 -h \09 Help: produces this output\0A\00", align 1
@.str.13 = private unnamed_addr constant [88 x i8] c"\0ARemarks:\0A Don't forget that abw_rfl (reflector server) must run at destination host.\0A\00", align 1
@.str.14 = private unnamed_addr constant [75 x i8] c" The problems send to the ABW author ([email protected])\0A\09\09\09\09\09\09*jn*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7liwmhqu.c"
target datalayout = "e-m:e-p270: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"usage: abing [-h] <more options>\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"The options are: \0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09 -d \09 destination host\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\09 -B \09 bind to local address\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"\09 -t \09 repeating period (1,2,.. sec)\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c"\09 -n \09 repeating factor (1,5,100,.. times)\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"\09 -P \09 server port \0A\00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c"\09 -k \09 run-keyword (K324a,freD,.. - same key on Reflector)\0A\00", align 1
@.str.8 = private unnamed_addr constant [50 x i8] c"\09 -a \09 alpha factor in EWMA (default value 0.75)\0A\00", align 1
@.str.9 = private unnamed_addr constant [49 x i8] c"\09 -b \09 number of PP bunches (default number 20)\0A\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"\09 -c \09 calibration mode \0A\00", align 1
@.str.11 = private unnamed_addr constant [72 x i8] c"\09 -l \09 dir (where ABW-node.log and monitoring results will be located)\0A\00", align 1
@.str.12 = private unnamed_addr constant [35 x i8] c"\09 -h \09 Help: produces this output\0A\00", align 1
@.str.13 = private unnamed_addr constant [88 x i8] c"\0ARemarks:\0A Don't forget that abw_rfl (reflector server) must run at destination host.\0A\00", align 1
@.str.14 = private unnamed_addr constant [75 x i8] c" The problems send to the ABW author ([email protected])\0A\09\09\09\09\09\09*jn*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo7rbgmia.c'
source_filename = "/tmp/tmpo7rbgmia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test61_Led_targetInit__I() #0 {
%1 = call i32 (...) @test61_AvrPin_clear__E()
%2 = call i32 (...) @test61_AvrPin_makeOutput__E()
ret void
}
declare i32 @test61_AvrPin_clear__E(...) #1
declare i32 @test61_AvrPin_makeOutput__E(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7rbgmia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test61_Led_targetInit__I() #0 {
%1 = call i32 (...) @test61_AvrPin_clear__E()
%2 = call i32 (...) @test61_AvrPin_makeOutput__E()
ret void
}
declare i32 @test61_AvrPin_clear__E(...) #1
declare i32 @test61_AvrPin_makeOutput__E(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdfh_aw45.c'
source_filename = "/tmp/tmpdfh_aw45.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"I'd like an integer please: \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"You picked a positive number!\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"You picked a negative number!\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
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @GetInt()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.1)
br label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.2)
br label %11
11: ; preds = %9, %7
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @GetInt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdfh_aw45.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"I'd like an integer please: \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"You picked a positive number!\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"You picked a negative number!\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
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @GetInt()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.1)
br label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.2)
br label %11
11: ; preds = %9, %7
%12 = load i32, ptr %1, align 4
ret i32 %12
}
declare i32 @printf(ptr noundef) #1
declare i32 @GetInt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_zwrp9d.c'
source_filename = "/tmp/tmpe_zwrp9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i64 }
@STDIN_FILENO = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"dummy-LTP cmd: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"dummy-LTP listens to url: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"tp/dummy/listen: read\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Packet too big (%lu)!\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"dummy-LTP received command: %s (until first \\0)\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"1002\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"dummy/c: Time to say goodbye...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_conn(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [65537 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca %struct.timespec, align 8
store i32 %0, ptr %3, align 4
%7 = load i32, ptr @STDIN_FILENO, align 4
%8 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @read(i32 noundef %7, ptr noundef %8, i32 noundef 4)
%10 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 4
store i8 0, ptr %10, align 4
%11 = load i32, ptr @stderr, align 4
%12 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr @STDIN_FILENO, align 4
%15 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%16 = call i32 @read(i32 noundef %14, ptr noundef %15, i32 noundef 128)
%17 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 128
store i8 0, ptr %17, align 16
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %19)
%21 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
store i32 3, ptr %21, align 8
%22 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
store i64 0, ptr %22, align 8
%23 = call i32 @nanosleep(ptr noundef %6, ptr noundef null)
br label %24
24: ; preds = %1, %35, %52
%25 = load i32, ptr @STDIN_FILENO, align 4
%26 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%27 = call i32 @read(i32 noundef %25, ptr noundef %26, i32 noundef 65537)
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %2, align 4
br label %53
32: ; preds = %24
%33 = load i32, ptr %5, align 4
%34 = icmp sgt i32 %33, 65536
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = load i32, ptr @stderr, align 4
%37 = load i32, ptr %5, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.3, i32 noundef %37)
br label %24
39: ; preds = %32
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 %41
store i8 0, ptr %42, align 1
%43 = load i32, ptr @stderr, align 4
%44 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.4, ptr noundef %44)
%46 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%47 = call i32 @strncmp(ptr noundef %46, ptr noundef @.str.5, i32 noundef 4)
%48 = icmp ne i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %39
%50 = load i32, ptr @stderr, align 4
%51 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.6)
store i32 0, ptr %2, align 4
br label %53
52: ; preds = %39
br label %24
53: ; preds = %49, %30
%54 = load i32, ptr %2, align 4
ret i32 %54
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe_zwrp9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i32, i64 }
@STDIN_FILENO = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"dummy-LTP cmd: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"dummy-LTP listens to url: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"tp/dummy/listen: read\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Packet too big (%lu)!\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"dummy-LTP received command: %s (until first \\0)\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"1002\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"dummy/c: Time to say goodbye...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_conn(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [65537 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca %struct.timespec, align 8
store i32 %0, ptr %3, align 4
%7 = load i32, ptr @STDIN_FILENO, align 4
%8 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @read(i32 noundef %7, ptr noundef %8, i32 noundef 4)
%10 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 4
store i8 0, ptr %10, align 4
%11 = load i32, ptr @stderr, align 4
%12 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr @STDIN_FILENO, align 4
%15 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%16 = call i32 @read(i32 noundef %14, ptr noundef %15, i32 noundef 128)
%17 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 128
store i8 0, ptr %17, align 16
%18 = load i32, ptr @stderr, align 4
%19 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %19)
%21 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
store i32 3, ptr %21, align 8
%22 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
store i64 0, ptr %22, align 8
%23 = call i32 @nanosleep(ptr noundef %6, ptr noundef null)
%24 = load i32, ptr @STDIN_FILENO, align 4
%25 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @read(i32 noundef %24, ptr noundef %25, i32 noundef 65537)
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %.lr.ph
.lr.ph: ; preds = %1
br label %31
._crit_edge: ; preds = %.backedge
br label %29
29: ; preds = %._crit_edge, %1
%30 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %2, align 4
br label %56
31: ; preds = %.lr.ph, %.backedge
%32 = load i32, ptr %5, align 4
%33 = icmp sgt i32 %32, 65536
br i1 %33, label %34, label %42
34: ; preds = %31
%35 = load i32, ptr @stderr, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.3, i32 noundef %36)
br label %.backedge
.backedge: ; preds = %34, %55
%38 = load i32, ptr @STDIN_FILENO, align 4
%39 = call i32 @read(i32 noundef %38, ptr noundef %25, i32 noundef 65537)
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %._crit_edge, label %31
42: ; preds = %31
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 %44
store i8 0, ptr %45, align 1
%46 = load i32, ptr @stderr, align 4
%47 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.4, ptr noundef %47)
%49 = getelementptr inbounds [65537 x i8], ptr %4, i64 0, i64 0
%50 = call i32 @strncmp(ptr noundef %49, ptr noundef @.str.5, i32 noundef 4)
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %42
%53 = load i32, ptr @stderr, align 4
%54 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.6)
store i32 0, ptr %2, align 4
br label %56
55: ; preds = %42
br label %.backedge
56: ; preds = %52, %29
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @nanosleep(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_pal5fqf.c'
source_filename = "/tmp/tmp_pal5fqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_pal5fqf.c"
target datalayout = "e-m:e-p270: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/tmpin8o38ds.c'
source_filename = "/tmp/tmpin8o38ds.c"
target datalayout = "e-m:e-p270: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/tmpin8o38ds.c"
target datalayout = "e-m:e-p270: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/tmp8ft4r2cg.c'
source_filename = "/tmp/tmp8ft4r2cg.c"
target datalayout = "e-m:e-p270: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/tmp8ft4r2cg.c"
target datalayout = "e-m:e-p270: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/tmpffu_jimq.c'
source_filename = "/tmp/tmpffu_jimq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eval_phi(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, double noundef %7, double noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store double %7, ptr %17, align 8
store double %8, ptr %18, align 8
store double 0.000000e+00, ptr %20, align 8
store double 0.000000e+00, ptr %21, align 8
store i32 0, ptr %19, align 4
br label %22
22: ; preds = %62, %9
%23 = load i32, ptr %19, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %65
26: ; preds = %22
%27 = load ptr, ptr %16, align 8
%28 = load i32, ptr %19, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %27, i64 %29
%31 = load double, ptr %30, align 8
%32 = load double, ptr %20, align 8
%33 = fadd double %32, %31
store double %33, ptr %20, align 8
%34 = load ptr, ptr %15, align 8
%35 = load i32, ptr %19, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = fneg double %38
%40 = load ptr, ptr %16, align 8
%41 = load i32, ptr %19, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load double, ptr %43, align 8
%45 = fadd double %39, %44
%46 = load ptr, ptr %15, align 8
%47 = load i32, ptr %19, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
%50 = load double, ptr %49, align 8
%51 = load ptr, ptr %16, align 8
%52 = load i32, ptr %19, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %51, i64 %53
%55 = load double, ptr %54, align 8
%56 = fadd double %50, %55
%57 = fmul double %45, %56
%58 = call i64 @log(double noundef %57)
%59 = sitofp i64 %58 to double
%60 = load double, ptr %21, align 8
%61 = fsub double %60, %59
store double %61, ptr %21, align 8
br label %62
62: ; preds = %26
%63 = load i32, ptr %19, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %19, align 4
br label %22, !llvm.loop !6
65: ; preds = %22
%66 = load i32, ptr %10, align 4
%67 = load ptr, ptr %12, align 8
%68 = load ptr, ptr %13, align 8
%69 = load ptr, ptr %14, align 8
%70 = call i32 @logistic_loss2(i32 noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69)
%71 = load i32, ptr %10, align 4
%72 = sdiv i32 %70, %71
%73 = sitofp i32 %72 to double
%74 = load double, ptr %17, align 8
%75 = load double, ptr %20, align 8
%76 = call double @llvm.fmuladd.f64(double %74, double %75, double %73)
%77 = load double, ptr %21, align 8
%78 = load double, ptr %18, align 8
%79 = fdiv double %77, %78
%80 = fadd double %76, %79
ret double %80
}
declare i64 @log(double noundef) #1
declare i32 @logistic_loss2(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpffu_jimq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eval_phi(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, double noundef %7, double noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store double %7, ptr %17, align 8
store double %8, ptr %18, align 8
store double 0.000000e+00, ptr %20, align 8
store double 0.000000e+00, ptr %21, align 8
store i32 0, ptr %19, align 4
%22 = load i32, ptr %19, align 4
%23 = load i32, ptr %11, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %67
.lr.ph: ; preds = %9
br label %25
25: ; preds = %.lr.ph, %61
%26 = load ptr, ptr %16, align 8
%27 = load i32, ptr %19, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, ptr %26, i64 %28
%30 = load double, ptr %29, align 8
%31 = load double, ptr %20, align 8
%32 = fadd double %31, %30
store double %32, ptr %20, align 8
%33 = load ptr, ptr %15, align 8
%34 = load i32, ptr %19, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
%37 = load double, ptr %36, align 8
%38 = fneg double %37
%39 = load ptr, ptr %16, align 8
%40 = load i32, ptr %19, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
%44 = fadd double %38, %43
%45 = load ptr, ptr %15, align 8
%46 = load i32, ptr %19, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %16, align 8
%51 = load i32, ptr %19, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load double, ptr %53, align 8
%55 = fadd double %49, %54
%56 = fmul double %44, %55
%57 = call i64 @log(double noundef %56)
%58 = sitofp i64 %57 to double
%59 = load double, ptr %21, align 8
%60 = fsub double %59, %58
store double %60, ptr %21, align 8
br label %61
61: ; preds = %25
%62 = load i32, ptr %19, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %19, align 4
%64 = load i32, ptr %19, align 4
%65 = load i32, ptr %11, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %9
%68 = load i32, ptr %10, align 4
%69 = load ptr, ptr %12, align 8
%70 = load ptr, ptr %13, align 8
%71 = load ptr, ptr %14, align 8
%72 = call i32 @logistic_loss2(i32 noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71)
%73 = load i32, ptr %10, align 4
%74 = sdiv i32 %72, %73
%75 = sitofp i32 %74 to double
%76 = load double, ptr %17, align 8
%77 = load double, ptr %20, align 8
%78 = call double @llvm.fmuladd.f64(double %76, double %77, double %75)
%79 = load double, ptr %21, align 8
%80 = load double, ptr %18, align 8
%81 = fdiv double %79, %80
%82 = fadd double %78, %81
ret double %82
}
declare i64 @log(double noundef) #1
declare i32 @logistic_loss2(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvhsahpb9.c'
source_filename = "/tmp/tmpvhsahpb9.c"
target datalayout = "e-m:e-p270: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/tmpvhsahpb9.c"
target datalayout = "e-m:e-p270: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/tmpc53tuq88.c'
source_filename = "/tmp/tmpc53tuq88.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makeNext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 0
store i32 0, ptr %11, align 4
store i32 1, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %66, %2
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %69
16: ; preds = %12
br label %17
17: ; preds = %36, %16
%18 = load i32, ptr %6, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %34
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %26, %32
br label %34
34: ; preds = %20, %17
%35 = phi i1 [ false, %17 ], [ %33, %20 ]
br i1 %35, label %36, label %43
36: ; preds = %34
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %6, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %6, align 4
br label %17, !llvm.loop !6
43: ; preds = %34
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %49, %55
br i1 %56, label %57, label %60
57: ; preds = %43
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %43
%61 = load i32, ptr %6, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
br label %66
66: ; preds = %60
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
br label %12, !llvm.loop !8
69: ; preds = %12
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc53tuq88.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makeNext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 0
store i32 0, ptr %11, align 4
store i32 1, ptr %5, align 4
store i32 0, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %71
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %65
br label %16
16: ; preds = %35, %15
%17 = load i32, ptr %6, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %33
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %25, %31
br label %33
33: ; preds = %19, %16
%34 = phi i1 [ false, %16 ], [ %32, %19 ]
br i1 %34, label %35, label %42
35: ; preds = %33
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = load i32, ptr %40, align 4
store i32 %41, ptr %6, align 4
br label %16, !llvm.loop !6
42: ; preds = %33
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %48, %54
br i1 %55, label %56, label %59
56: ; preds = %42
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
br label %59
59: ; preds = %56, %42
%60 = load i32, ptr %6, align 4
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %5, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
br label %65
65: ; preds = %59
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %15, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeegbtd2f.c'
source_filename = "/tmp/tmpeegbtd2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%6 = alloca ptr, align 8
%7 = 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
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %24
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @rename(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %23
22: ; preds = %11
store i32 2, ptr %3, align 4
br label %24
23: ; preds = %11
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %23, %22, %10
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @rename(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/tmpeegbtd2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%6 = alloca ptr, align 8
%7 = 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
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %24
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @rename(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %23
22: ; preds = %11
store i32 2, ptr %3, align 4
br label %24
23: ; preds = %11
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %23, %22, %10
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @rename(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/tmphpug5ph8.c'
source_filename = "/tmp/tmphpug5ph8.c"
target datalayout = "e-m:e-p270: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/tmphpug5ph8.c"
target datalayout = "e-m:e-p270: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/tmpq4mqbxuq.c'
source_filename = "/tmp/tmpq4mqbxuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgnqst_() #0 {
%1 = call i32 (...) @bgnqstrip()
ret void
}
declare i32 @bgnqstrip(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq4mqbxuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgnqst_() #0 {
%1 = call i32 (...) @bgnqstrip()
ret void
}
declare i32 @bgnqstrip(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprrb6f5n1.c'
source_filename = "/tmp/tmprrb6f5n1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Informe o numero da conta [-999 para encerrar]: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Informe o nome (32 caracteres): \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%32s\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Informe o saldo: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.6 = private unnamed_addr constant [46 x i8] c"Conta: %d\0A\09Nome:%s\0A\09Saldo: R$%.2f\0A\09Positivo\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"Conta: %d\0A\09Nome:%s\0A\09Saldo: R$%.2f\0A\09Negativo\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [42 x i8] c"Total de clientes com saldo negativo: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c"Total de clientes na agencia: %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [24 x i8] c"Saldo da agencia: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ex10() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca [33 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store float 0.000000e+00, ptr %5, align 4
br label %7
7: ; preds = %45, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %8, %9
%11 = icmp slt i32 %10, 10000
br i1 %11, label %12, label %46
12: ; preds = %7
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %1)
%15 = load i32, ptr %1, align 4
%16 = icmp eq i32 %15, -999
br i1 %16, label %17, label %18
17: ; preds = %12
br label %46
18: ; preds = %12
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%20 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%23 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %4)
%24 = load float, ptr %4, align 4
%25 = load float, ptr %5, align 4
%26 = fadd float %25, %24
store float %26, ptr %5, align 4
%27 = load float, ptr %4, align 4
%28 = fcmp oge float %27, 0.000000e+00
br i1 %28, label %29, label %37
29: ; preds = %18
%30 = load i32, ptr %1, align 4
%31 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%32 = load float, ptr %4, align 4
%33 = fpext float %32 to double
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %30, ptr noundef %31, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %45
37: ; preds = %18
%38 = load i32, ptr %1, align 4
%39 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%40 = load float, ptr %4, align 4
%41 = fpext float %40 to double
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %38, ptr noundef %39, double noundef %41)
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %2, align 4
br label %45
45: ; preds = %37, %29
br label %7, !llvm.loop !6
46: ; preds = %17, %7
%47 = load i32, ptr %2, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %47)
%49 = load i32, ptr %3, align 4
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %49, %50
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %51)
%53 = load float, ptr %5, align 4
%54 = fpext float %53 to double
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %54)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprrb6f5n1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Informe o numero da conta [-999 para encerrar]: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Informe o nome (32 caracteres): \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%32s\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Informe o saldo: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.6 = private unnamed_addr constant [46 x i8] c"Conta: %d\0A\09Nome:%s\0A\09Saldo: R$%.2f\0A\09Positivo\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"Conta: %d\0A\09Nome:%s\0A\09Saldo: R$%.2f\0A\09Negativo\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [42 x i8] c"Total de clientes com saldo negativo: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c"Total de clientes na agencia: %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [24 x i8] c"Saldo da agencia: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ex10() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca [33 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store float 0.000000e+00, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %7, %8
%10 = icmp slt i32 %9, 10000
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %44
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %1)
%14 = load i32, ptr %1, align 4
%15 = icmp eq i32 %14, -999
br i1 %15, label %16, label %17
16: ; preds = %11
br label %49
17: ; preds = %11
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%20 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %4)
%23 = load float, ptr %4, align 4
%24 = load float, ptr %5, align 4
%25 = fadd float %24, %23
store float %25, ptr %5, align 4
%26 = load float, ptr %4, align 4
%27 = fcmp oge float %26, 0.000000e+00
br i1 %27, label %28, label %36
28: ; preds = %17
%29 = load i32, ptr %1, align 4
%30 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%31 = load float, ptr %4, align 4
%32 = fpext float %31 to double
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %29, ptr noundef %30, double noundef %32)
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %44
36: ; preds = %17
%37 = load i32, ptr %1, align 4
%38 = getelementptr inbounds [33 x i8], ptr %6, i64 0, i64 0
%39 = load float, ptr %4, align 4
%40 = fpext float %39 to double
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %37, ptr noundef %38, double noundef %40)
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
br label %44
44: ; preds = %36, %28
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %45, %46
%48 = icmp slt i32 %47, 10000
br i1 %48, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %44
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %49
49: ; preds = %.loopexit, %16
%50 = load i32, ptr %2, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %50)
%52 = load i32, ptr %3, align 4
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %52, %53
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %54)
%56 = load float, ptr %5, align 4
%57 = fpext float %56 to double
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %57)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4i0cckuk.c'
source_filename = "/tmp/tmp4i0cckuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @iommu_group_register_notifier(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @ENODEV, align 4
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4i0cckuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @iommu_group_register_notifier(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @ENODEV, align 4
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp47vo0k4q.c'
source_filename = "/tmp/tmp47vo0k4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BGM\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"bgm\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ONS\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"ons\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%s%02X.BGM\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"%s%02X.TON\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"%s ofs:0x%04x size:0x%04x\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write(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 i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i8, align 1
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 %13, align 4
store i32 0, ptr %14, align 4
store i8 0, ptr %15, align 1
store i32 0, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
store i64 %17, ptr %11, align 8
br label %18
18: ; preds = %159, %3
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %8, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = call i64 @memcmp(ptr noundef %22, ptr noundef @.str, i32 noundef 3)
%24 = icmp eq i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %18
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %8, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = call i64 @memcmp(ptr noundef %29, ptr noundef @.str.1, i32 noundef 3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %25, %18
store i8 1, ptr %15, align 1
br label %33
33: ; preds = %32, %25
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %8, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = call i64 @memcmp(ptr noundef %37, ptr noundef @.str.2, i32 noundef 3)
%39 = icmp eq i64 %38, 0
br i1 %39, label %47, label %40
40: ; preds = %33
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %8, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = call i64 @memcmp(ptr noundef %44, ptr noundef @.str.3, i32 noundef 3)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %40, %33
store i8 2, ptr %15, align 1
br label %48
48: ; preds = %47, %40
%49 = load i8, ptr %15, align 1
%50 = zext i8 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
br label %163
53: ; preds = %48
store i64 512, ptr %9, align 8
%54 = load i64, ptr %11, align 8
%55 = sub i64 %54, 512
store i64 %55, ptr %11, align 8
br label %56
56: ; preds = %96, %53
%57 = load i64, ptr %11, align 8
%58 = icmp ugt i64 %57, 0
br i1 %58, label %59, label %101
59: ; preds = %56
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %8, align 4
%62 = zext i32 %61 to i64
%63 = load i64, ptr %9, align 8
%64 = add i64 %62, %63
%65 = getelementptr inbounds i8, ptr %60, i64 %64
%66 = call i64 @memcmp(ptr noundef %65, ptr noundef @.str, i32 noundef 3)
%67 = icmp eq i64 %66, 0
br i1 %67, label %95, label %68
68: ; preds = %59
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %8, align 4
%71 = zext i32 %70 to i64
%72 = load i64, ptr %9, align 8
%73 = add i64 %71, %72
%74 = getelementptr inbounds i8, ptr %69, i64 %73
%75 = call i64 @memcmp(ptr noundef %74, ptr noundef @.str.1, i32 noundef 3)
%76 = icmp eq i64 %75, 0
br i1 %76, label %95, label %77
77: ; preds = %68
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %8, align 4
%80 = zext i32 %79 to i64
%81 = load i64, ptr %9, align 8
%82 = add i64 %80, %81
%83 = getelementptr inbounds i8, ptr %78, i64 %82
%84 = call i64 @memcmp(ptr noundef %83, ptr noundef @.str.2, i32 noundef 3)
%85 = icmp eq i64 %84, 0
br i1 %85, label %95, label %86
86: ; preds = %77
%87 = load ptr, ptr %4, align 8
%88 = load i32, ptr %8, align 4
%89 = zext i32 %88 to i64
%90 = load i64, ptr %9, align 8
%91 = add i64 %89, %90
%92 = getelementptr inbounds i8, ptr %87, i64 %91
%93 = call i64 @memcmp(ptr noundef %92, ptr noundef @.str.3, i32 noundef 3)
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %86, %77, %68, %59
br label %101
96: ; preds = %86
%97 = load i64, ptr %11, align 8
%98 = sub i64 %97, 512
store i64 %98, ptr %11, align 8
%99 = load i64, ptr %9, align 8
%100 = add i64 %99, 512
store i64 %100, ptr %9, align 8
br label %56, !llvm.loop !6
101: ; preds = %95, %56
%102 = load i8, ptr %15, align 1
%103 = zext i8 %102 to i32
%104 = icmp eq i32 %103, 1
br i1 %104, label %105, label %111
105: ; preds = %101
%106 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%107 = load ptr, ptr %6, align 8
%108 = load i32, ptr %13, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %13, align 4
%110 = call i32 @sprintf(ptr noundef %106, ptr noundef @.str.4, ptr noundef %107, i32 noundef %108)
br label %117
111: ; preds = %101
%112 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%113 = load ptr, ptr %6, align 8
%114 = load i32, ptr %14, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %14, align 4
%116 = call i32 @sprintf(ptr noundef %112, ptr noundef @.str.5, ptr noundef %113, i32 noundef %114)
br label %117
117: ; preds = %111, %105
%118 = load ptr, ptr %4, align 8
%119 = load i32, ptr %8, align 4
%120 = add i32 %119, 4
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %118, i64 %121
%123 = load i8, ptr %122, align 1
%124 = zext i8 %123 to i64
%125 = load ptr, ptr %4, align 8
%126 = load i32, ptr %8, align 4
%127 = add i32 %126, 5
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
%130 = load i8, ptr %129, align 1
%131 = zext i8 %130 to i64
%132 = shl i64 %131, 8
%133 = add i64 %124, %132
store i64 %133, ptr %10, align 8
%134 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%135 = load i32, ptr %8, align 4
%136 = load i64, ptr %10, align 8
%137 = call i32 @printf(ptr noundef @.str.6, ptr noundef %134, i32 noundef %135, i64 noundef %136)
%138 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%139 = call ptr @fopen(ptr noundef %138, ptr noundef @.str.7)
store ptr %139, ptr %7, align 8
%140 = load ptr, ptr %7, align 8
%141 = load i32, ptr @SEEK_SET, align 4
%142 = call i32 @fseek(ptr noundef %140, i32 noundef %141, i32 noundef 0)
%143 = load ptr, ptr %4, align 8
%144 = load i32, ptr %8, align 4
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %143, i64 %145
%147 = getelementptr inbounds i8, ptr %146, i64 16
%148 = load i64, ptr %9, align 8
%149 = sub i64 %148, 16
%150 = load ptr, ptr %7, align 8
%151 = call i32 @fwrite(ptr noundef %147, i32 noundef 1, i64 noundef %149, ptr noundef %150)
%152 = load ptr, ptr %7, align 8
%153 = call i32 @fclose(ptr noundef %152)
%154 = load i64, ptr %9, align 8
%155 = load i32, ptr %8, align 4
%156 = zext i32 %155 to i64
%157 = add i64 %156, %154
%158 = trunc i64 %157 to i32
store i32 %158, ptr %8, align 4
store i8 0, ptr %15, align 1
br label %159
159: ; preds = %117
%160 = load i32, ptr %8, align 4
%161 = load i32, ptr %5, align 4
%162 = icmp ult i32 %160, %161
br i1 %162, label %18, label %163, !llvm.loop !8
163: ; preds = %159, %52
ret void
}
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47vo0k4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BGM\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"bgm\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ONS\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"ons\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%s%02X.BGM\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"%s%02X.TON\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"%s ofs:0x%04x size:0x%04x\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write(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 i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i8, align 1
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 %13, align 4
store i32 0, ptr %14, align 4
store i8 0, ptr %15, align 1
store i32 0, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
store i64 %17, ptr %11, align 8
br label %18
18: ; preds = %160, %3
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %8, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = call i64 @memcmp(ptr noundef %22, ptr noundef @.str, i32 noundef 3)
%24 = icmp eq i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %18
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %8, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = call i64 @memcmp(ptr noundef %29, ptr noundef @.str.1, i32 noundef 3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %25, %18
store i8 1, ptr %15, align 1
br label %33
33: ; preds = %32, %25
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %8, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = call i64 @memcmp(ptr noundef %37, ptr noundef @.str.2, i32 noundef 3)
%39 = icmp eq i64 %38, 0
br i1 %39, label %47, label %40
40: ; preds = %33
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %8, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = call i64 @memcmp(ptr noundef %44, ptr noundef @.str.3, i32 noundef 3)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %40, %33
store i8 2, ptr %15, align 1
br label %48
48: ; preds = %47, %40
%49 = load i8, ptr %15, align 1
%50 = zext i8 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
br label %164
53: ; preds = %48
store i64 512, ptr %9, align 8
%54 = load i64, ptr %11, align 8
%55 = sub i64 %54, 512
store i64 %55, ptr %11, align 8
%56 = load i64, ptr %11, align 8
%57 = icmp ugt i64 %56, 0
br i1 %57, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %53
br label %58
58: ; preds = %.lr.ph, %95
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %8, align 4
%61 = zext i32 %60 to i64
%62 = load i64, ptr %9, align 8
%63 = add i64 %61, %62
%64 = getelementptr inbounds i8, ptr %59, i64 %63
%65 = call i64 @memcmp(ptr noundef %64, ptr noundef @.str, i32 noundef 3)
%66 = icmp eq i64 %65, 0
br i1 %66, label %94, label %67
67: ; preds = %58
%68 = load ptr, ptr %4, align 8
%69 = load i32, ptr %8, align 4
%70 = zext i32 %69 to i64
%71 = load i64, ptr %9, align 8
%72 = add i64 %70, %71
%73 = getelementptr inbounds i8, ptr %68, i64 %72
%74 = call i64 @memcmp(ptr noundef %73, ptr noundef @.str.1, i32 noundef 3)
%75 = icmp eq i64 %74, 0
br i1 %75, label %94, label %76
76: ; preds = %67
%77 = load ptr, ptr %4, align 8
%78 = load i32, ptr %8, align 4
%79 = zext i32 %78 to i64
%80 = load i64, ptr %9, align 8
%81 = add i64 %79, %80
%82 = getelementptr inbounds i8, ptr %77, i64 %81
%83 = call i64 @memcmp(ptr noundef %82, ptr noundef @.str.2, i32 noundef 3)
%84 = icmp eq i64 %83, 0
br i1 %84, label %94, label %85
85: ; preds = %76
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %8, align 4
%88 = zext i32 %87 to i64
%89 = load i64, ptr %9, align 8
%90 = add i64 %88, %89
%91 = getelementptr inbounds i8, ptr %86, i64 %90
%92 = call i64 @memcmp(ptr noundef %91, ptr noundef @.str.3, i32 noundef 3)
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %95
94: ; preds = %85, %76, %67, %58
br label %102
95: ; preds = %85
%96 = load i64, ptr %11, align 8
%97 = sub i64 %96, 512
store i64 %97, ptr %11, align 8
%98 = load i64, ptr %9, align 8
%99 = add i64 %98, 512
store i64 %99, ptr %9, align 8
%100 = load i64, ptr %11, align 8
%101 = icmp ugt i64 %100, 0
br i1 %101, label %58, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %95
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %53
br label %102
102: ; preds = %.loopexit, %94
%103 = load i8, ptr %15, align 1
%104 = zext i8 %103 to i32
%105 = icmp eq i32 %104, 1
br i1 %105, label %106, label %112
106: ; preds = %102
%107 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%108 = load ptr, ptr %6, align 8
%109 = load i32, ptr %13, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %13, align 4
%111 = call i32 @sprintf(ptr noundef %107, ptr noundef @.str.4, ptr noundef %108, i32 noundef %109)
br label %118
112: ; preds = %102
%113 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%114 = load ptr, ptr %6, align 8
%115 = load i32, ptr %14, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %14, align 4
%117 = call i32 @sprintf(ptr noundef %113, ptr noundef @.str.5, ptr noundef %114, i32 noundef %115)
br label %118
118: ; preds = %112, %106
%119 = load ptr, ptr %4, align 8
%120 = load i32, ptr %8, align 4
%121 = add i32 %120, 4
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %119, i64 %122
%124 = load i8, ptr %123, align 1
%125 = zext i8 %124 to i64
%126 = load ptr, ptr %4, align 8
%127 = load i32, ptr %8, align 4
%128 = add i32 %127, 5
%129 = zext i32 %128 to i64
%130 = getelementptr inbounds i8, ptr %126, i64 %129
%131 = load i8, ptr %130, align 1
%132 = zext i8 %131 to i64
%133 = shl i64 %132, 8
%134 = add i64 %125, %133
store i64 %134, ptr %10, align 8
%135 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%136 = load i32, ptr %8, align 4
%137 = load i64, ptr %10, align 8
%138 = call i32 @printf(ptr noundef @.str.6, ptr noundef %135, i32 noundef %136, i64 noundef %137)
%139 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%140 = call ptr @fopen(ptr noundef %139, ptr noundef @.str.7)
store ptr %140, ptr %7, align 8
%141 = load ptr, ptr %7, align 8
%142 = load i32, ptr @SEEK_SET, align 4
%143 = call i32 @fseek(ptr noundef %141, i32 noundef %142, i32 noundef 0)
%144 = load ptr, ptr %4, align 8
%145 = load i32, ptr %8, align 4
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds i8, ptr %144, i64 %146
%148 = getelementptr inbounds i8, ptr %147, i64 16
%149 = load i64, ptr %9, align 8
%150 = sub i64 %149, 16
%151 = load ptr, ptr %7, align 8
%152 = call i32 @fwrite(ptr noundef %148, i32 noundef 1, i64 noundef %150, ptr noundef %151)
%153 = load ptr, ptr %7, align 8
%154 = call i32 @fclose(ptr noundef %153)
%155 = load i64, ptr %9, align 8
%156 = load i32, ptr %8, align 4
%157 = zext i32 %156 to i64
%158 = add i64 %157, %155
%159 = trunc i64 %158 to i32
store i32 %159, ptr %8, align 4
store i8 0, ptr %15, align 1
br label %160
160: ; preds = %118
%161 = load i32, ptr %8, align 4
%162 = load i32, ptr %5, align 4
%163 = icmp ult i32 %161, %162
br i1 %163, label %18, label %.loopexit1, !llvm.loop !8
.loopexit1: ; preds = %160
br label %164
164: ; preds = %.loopexit1, %52
ret void
}
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdmfl60xn.c'
source_filename = "/tmp/tmpdmfl60xn.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [5 x i8] c"ACB2\00", align 1
@__const.main.s2 = private unnamed_addr constant [5 x i8] c"ABCD\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.s1, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s2, i64 5, i1 false)
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @mystrcmp(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
br label %23
13: ; preds = %0
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
br label %22
19: ; preds = %13
%20 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %19, %16
br label %23
23: ; preds = %22, %10
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @mystrcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdmfl60xn.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [5 x i8] c"ACB2\00", align 1
@__const.main.s2 = private unnamed_addr constant [5 x i8] c"ABCD\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.s1, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s2, i64 5, i1 false)
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @mystrcmp(ptr noundef %5, ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
br label %23
13: ; preds = %0
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %17)
br label %22
19: ; preds = %13
%20 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %19, %16
br label %23
23: ; preds = %22, %10
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @mystrcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps3tj1ui9.c'
source_filename = "/tmp/tmps3tj1ui9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i'm the child used for ls \0A\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"-la\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"i'm in the second child, which will be used to run grep\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"grep\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c".c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [2 x i32], align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%10 = call i32 @pipe(ptr noundef %9)
%11 = call i64 (...) @fork()
store i64 %11, ptr %6, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %24
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
%16 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr @STDOUT_FILENO, align 4
%19 = call i32 @dup2(i32 noundef %17, i32 noundef %18)
%20 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @close(i32 noundef %21)
%23 = call i32 @execlp(ptr noundef @.str.1, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef null)
br label %24
24: ; preds = %14, %2
%25 = call i64 (...) @fork()
store i64 %25, ptr %6, align 8
%26 = load i64, ptr %6, align 8
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = call i32 @printf(ptr noundef @.str.3)
%30 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr @STDIN_FILENO, align 4
%33 = call i32 @dup2(i32 noundef %31, i32 noundef %32)
%34 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%35 = load i32, ptr %34, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = call i32 @execlp(ptr noundef @.str.4, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef null)
br label %38
38: ; preds = %28, %24
%39 = call i32 @wait(ptr noundef %8)
ret i32 0
}
declare i32 @pipe(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3tj1ui9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i'm the child used for ls \0A\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"-la\00", align 1
@.str.3 = private unnamed_addr constant [57 x i8] c"i'm in the second child, which will be used to run grep\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"grep\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c".c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [2 x i32], align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%10 = call i32 @pipe(ptr noundef %9)
%11 = call i64 (...) @fork()
store i64 %11, ptr %6, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %24
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
%16 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr @STDOUT_FILENO, align 4
%19 = call i32 @dup2(i32 noundef %17, i32 noundef %18)
%20 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%21 = load i32, ptr %20, align 4
%22 = call i32 @close(i32 noundef %21)
%23 = call i32 @execlp(ptr noundef @.str.1, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef null)
br label %24
24: ; preds = %14, %2
%25 = call i64 (...) @fork()
store i64 %25, ptr %6, align 8
%26 = load i64, ptr %6, align 8
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = call i32 @printf(ptr noundef @.str.3)
%30 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr @STDIN_FILENO, align 4
%33 = call i32 @dup2(i32 noundef %31, i32 noundef %32)
%34 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%35 = load i32, ptr %34, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = call i32 @execlp(ptr noundef @.str.4, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef null)
br label %38
38: ; preds = %28, %24
%39 = call i32 @wait(ptr noundef %8)
ret i32 0
}
declare i32 @pipe(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp44kbv5wf.c'
source_filename = "/tmp/tmp44kbv5wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DES_crypt.buff = internal global [14 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @DES_crypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @DES_fcrypt(ptr noundef %5, ptr noundef %6, ptr noundef @DES_crypt.buff)
ret ptr %7
}
declare ptr @DES_fcrypt(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp44kbv5wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DES_crypt.buff = internal global [14 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @DES_crypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @DES_fcrypt(ptr noundef %5, ptr noundef %6, ptr noundef @DES_crypt.buff)
ret ptr %7
}
declare ptr @DES_fcrypt(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5pxm1wjv.c'
source_filename = "/tmp/tmp5pxm1wjv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { i64, i32 }
%struct.sockaddr_in = type { i32, %struct.in_addr, i32 }
%struct.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @retr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds %struct.hostent, ptr %5, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %7, ptr %9, align 4
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.hostent, ptr %12, i32 0, i32 0
%14 = load i64, ptr %13, align 8
%15 = inttoptr i64 %14 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %15, i64 4, i1 false)
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %16, i32 0, i32 0
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 0, i32 noundef 4)
ret ptr null
}
; 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 @memset(ptr noundef, i8 noundef signext, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5pxm1wjv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { i64, i32 }
%struct.sockaddr_in = type { i32, %struct.in_addr, i32 }
%struct.in_addr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @retr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds %struct.hostent, ptr %5, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %7, ptr %9, align 4
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.hostent, ptr %12, i32 0, i32 0
%14 = load i64, ptr %13, align 8
%15 = inttoptr i64 %14 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %15, i64 4, i1 false)
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %16, i32 0, i32 0
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 0, i32 noundef 4)
ret ptr null
}
; 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 @memset(ptr noundef, i8 noundef signext, 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"}
|
; ModuleID = '/tmp/tmpmb14_mn2.c'
source_filename = "/tmp/tmpmb14_mn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ola, eu sou uma mensagem qualquer\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg() #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/tmpmb14_mn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ola, eu sou uma mensagem qualquer\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg() #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/tmp6gqgxtbn.c'
source_filename = "/tmp/tmp6gqgxtbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6gqgxtbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv7ont14q.c'
source_filename = "/tmp/tmpv7ont14q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7ont14q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp55fdkqin.c'
source_filename = "/tmp/tmp55fdkqin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @putstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i8 0, ptr %3, align 1
br label %4
4: ; preds = %28, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %31
9: ; preds = %4
%10 = load i8, ptr %3, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fputc(i8 noundef signext 35, i32 noundef %13)
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fputc(i8 noundef signext 32, i32 noundef %15)
store i8 0, ptr %3, align 1
br label %17
17: ; preds = %12, %9
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @fputc(i8 noundef signext %19, i32 noundef %20)
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 10
br i1 %25, label %26, label %27
26: ; preds = %17
store i8 1, ptr %3, align 1
br label %27
27: ; preds = %26, %17
br label %28
28: ; preds = %27
%29 = load ptr, ptr %2, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %2, align 8
br label %4, !llvm.loop !6
31: ; preds = %4
ret void
}
declare i32 @fputc(i8 noundef signext, 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/tmp55fdkqin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @putstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i8 0, ptr %3, align 1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph, label %34
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %27
%9 = load i8, ptr %3, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr @stdout, align 4
%13 = call i32 @fputc(i8 noundef signext 35, i32 noundef %12)
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @fputc(i8 noundef signext 32, i32 noundef %14)
store i8 0, ptr %3, align 1
br label %16
16: ; preds = %11, %8
%17 = load ptr, ptr %2, align 8
%18 = load i8, ptr %17, align 1
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fputc(i8 noundef signext %18, i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %26
25: ; preds = %16
store i8 1, ptr %3, align 1
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %2, align 8
%30 = load ptr, ptr %2, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %1
ret void
}
declare i32 @fputc(i8 noundef signext, 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/tmpzzxf1tjb.c'
source_filename = "/tmp/tmpzzxf1tjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CAL_output_data(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i16, align 2
%4 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%5 = call i64 @gfx_pci_config_read(i32 noundef -2147446640)
store i64 %5, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = trunc i64 %6 to i16
store i16 %7, ptr %3, align 2
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i16, ptr %3, align 2
%12 = zext i16 %11 to i32
%13 = or i32 %12, 2048
%14 = trunc i32 %13 to i16
store i16 %14, ptr %3, align 2
br label %20
15: ; preds = %1
%16 = load i16, ptr %3, align 2
%17 = zext i16 %16 to i32
%18 = and i32 %17, -2049
%19 = trunc i32 %18 to i16
store i16 %19, ptr %3, align 2
br label %20
20: ; preds = %15, %10
%21 = load i16, ptr %3, align 2
%22 = zext i16 %21 to i64
store i64 %22, ptr %4, align 8
%23 = load i64, ptr %4, align 8
%24 = call i32 @gfx_pci_config_write(i32 noundef -2147446640, i64 noundef %23)
%25 = call i32 @gfx_delay_microseconds(i32 noundef 1)
ret void
}
declare i64 @gfx_pci_config_read(i32 noundef) #1
declare i32 @gfx_pci_config_write(i32 noundef, i64 noundef) #1
declare i32 @gfx_delay_microseconds(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/tmpzzxf1tjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CAL_output_data(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i16, align 2
%4 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%5 = call i64 @gfx_pci_config_read(i32 noundef -2147446640)
store i64 %5, ptr %4, align 8
%6 = load i64, ptr %4, align 8
%7 = trunc i64 %6 to i16
store i16 %7, ptr %3, align 2
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i16, ptr %3, align 2
%12 = zext i16 %11 to i32
%13 = or i32 %12, 2048
%14 = trunc i32 %13 to i16
store i16 %14, ptr %3, align 2
br label %20
15: ; preds = %1
%16 = load i16, ptr %3, align 2
%17 = zext i16 %16 to i32
%18 = and i32 %17, -2049
%19 = trunc i32 %18 to i16
store i16 %19, ptr %3, align 2
br label %20
20: ; preds = %15, %10
%21 = load i16, ptr %3, align 2
%22 = zext i16 %21 to i64
store i64 %22, ptr %4, align 8
%23 = load i64, ptr %4, align 8
%24 = call i32 @gfx_pci_config_write(i32 noundef -2147446640, i64 noundef %23)
%25 = call i32 @gfx_delay_microseconds(i32 noundef 1)
ret void
}
declare i64 @gfx_pci_config_read(i32 noundef) #1
declare i32 @gfx_pci_config_write(i32 noundef, i64 noundef) #1
declare i32 @gfx_delay_microseconds(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_klh2csu.c'
source_filename = "/tmp/tmp_klh2csu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @space(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %7, %1
%4 = load i32, ptr %2, align 4
%5 = add nsw i32 %4, -1
store i32 %5, ptr %2, align 4
%6 = icmp ne i32 %4, 0
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = call i32 @putchar(i8 noundef signext 32)
br label %3, !llvm.loop !6
9: ; preds = %3
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_klh2csu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @space(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, -1
store i32 %4, ptr %2, align 4
%5 = icmp ne i32 %3, 0
br i1 %5, label %.lr.ph, label %11
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = call i32 @putchar(i8 noundef signext 32)
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj107syae.c'
source_filename = "/tmp/tmpj107syae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Default_UsageFault_Handler() #0 {
br label %1
1: ; preds = %0, %1
br label %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj107syae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Default_UsageFault_Handler() #0 {
br label %1
1: ; preds = %1, %0
br label %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm353q4dw.c'
source_filename = "/tmp/tmpm353q4dw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Q_v_time(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr @M_PI, align 8
%18 = load double, ptr %10, align 8
%19 = fmul double %17, %18
%20 = load double, ptr %13, align 8
%21 = fmul double %19, %20
%22 = load double, ptr %16, align 8
%23 = fmul double %21, %22
%24 = load double, ptr @M_PI, align 8
%25 = load double, ptr %13, align 8
%26 = fmul double %24, %25
%27 = load double, ptr %15, align 8
%28 = fmul double %26, %27
%29 = load double, ptr %9, align 8
%30 = fdiv double %28, %29
%31 = call double @cos(double noundef %30) #2
%32 = fmul double %23, %31
%33 = load double, ptr %9, align 8
%34 = fdiv double %32, %33
%35 = load double, ptr @M_PI, align 8
%36 = load double, ptr %11, align 8
%37 = fmul double %35, %36
%38 = load double, ptr %12, align 8
%39 = fmul double %37, %38
%40 = load double, ptr %14, align 8
%41 = fmul double %39, %40
%42 = load double, ptr @M_PI, align 8
%43 = load double, ptr %12, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %15, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %9, align 8
%48 = fdiv double %46, %47
%49 = call double @cos(double noundef %48) #2
%50 = fmul double %41, %49
%51 = load double, ptr %9, align 8
%52 = fdiv double %50, %51
%53 = fadd double %34, %52
ret double %53
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpm353q4dw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Q_v_time(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr @M_PI, align 8
%18 = load double, ptr %10, align 8
%19 = fmul double %17, %18
%20 = load double, ptr %13, align 8
%21 = fmul double %19, %20
%22 = load double, ptr %16, align 8
%23 = fmul double %21, %22
%24 = load double, ptr @M_PI, align 8
%25 = load double, ptr %13, align 8
%26 = fmul double %24, %25
%27 = load double, ptr %15, align 8
%28 = fmul double %26, %27
%29 = load double, ptr %9, align 8
%30 = fdiv double %28, %29
%31 = call double @cos(double noundef %30) #2
%32 = fmul double %23, %31
%33 = load double, ptr %9, align 8
%34 = fdiv double %32, %33
%35 = load double, ptr @M_PI, align 8
%36 = load double, ptr %11, align 8
%37 = fmul double %35, %36
%38 = load double, ptr %12, align 8
%39 = fmul double %37, %38
%40 = load double, ptr %14, align 8
%41 = fmul double %39, %40
%42 = load double, ptr @M_PI, align 8
%43 = load double, ptr %12, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %15, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %9, align 8
%48 = fdiv double %46, %47
%49 = call double @cos(double noundef %48) #2
%50 = fmul double %41, %49
%51 = load double, ptr %9, align 8
%52 = fdiv double %50, %51
%53 = fadd double %34, %52
ret double %53
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpbtlev856.c'
source_filename = "/tmp/tmpbtlev856.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Usage: %s [-p<size>] [-s[8|16|32]] binaryfile\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"romsplit\00", align 1
@.str.2 = private unnamed_addr constant [52 x i8] c"-p : pad the total size of all image files to this\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"-s : specify the split style\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c" 32 %s : \22binaryfile0..3\22 created\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"(default)\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c" 16 %s : \22binaryfile4..5\22 created\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c" \00", align 1
@.str.8 = private unnamed_addr constant [38 x i8] c" 8 %s : \22binaryfile6\22 created\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"NOTE: the \22binaryfile\22 must have a word-aligned length\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.2)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.3)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.4, ptr noundef @.str.5)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.6, ptr noundef @.str.7)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.8, ptr noundef @.str.7)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.9)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbtlev856.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Usage: %s [-p<size>] [-s[8|16|32]] binaryfile\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"romsplit\00", align 1
@.str.2 = private unnamed_addr constant [52 x i8] c"-p : pad the total size of all image files to this\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"-s : specify the split style\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c" 32 %s : \22binaryfile0..3\22 created\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"(default)\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c" 16 %s : \22binaryfile4..5\22 created\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c" \00", align 1
@.str.8 = private unnamed_addr constant [38 x i8] c" 8 %s : \22binaryfile6\22 created\0A\00", align 1
@.str.9 = private unnamed_addr constant [56 x i8] c"NOTE: the \22binaryfile\22 must have a word-aligned length\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str.2)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %5, ptr noundef @.str.3)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str.4, ptr noundef @.str.5)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.6, ptr noundef @.str.7)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %11, ptr noundef @.str.8, ptr noundef @.str.7)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef @.str.9)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0iks1kgr.c'
source_filename = "/tmp/tmp0iks1kgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [39 x i8] c"unable to retrieve screen informations\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_screen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.TYPE_2__, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @xcb_get_setup(ptr noundef %6)
%8 = call ptr @xcb_setup_roots_iterator(i32 noundef %7)
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i32 0, i32 0
store ptr %8, ptr %9, align 8
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i32 0, i32 0
%11 = load ptr, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @errx(i32 noundef 1, ptr noundef @.str)
br label %18
18: ; preds = %16, %2
ret void
}
declare ptr @xcb_setup_roots_iterator(i32 noundef) #1
declare i32 @xcb_get_setup(ptr noundef) #1
declare i32 @errx(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/tmp0iks1kgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [39 x i8] c"unable to retrieve screen informations\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_screen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.TYPE_2__, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @xcb_get_setup(ptr noundef %6)
%8 = call ptr @xcb_setup_roots_iterator(i32 noundef %7)
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i32 0, i32 0
store ptr %8, ptr %9, align 8
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i32 0, i32 0
%11 = load ptr, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
store ptr %11, ptr %12, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @errx(i32 noundef 1, ptr noundef @.str)
br label %18
18: ; preds = %16, %2
ret void
}
declare ptr @xcb_setup_roots_iterator(i32 noundef) #1
declare i32 @xcb_get_setup(ptr noundef) #1
declare i32 @errx(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/tmptq4c5ouj.c'
source_filename = "/tmp/tmptq4c5ouj.c"
target datalayout = "e-m:e-p270: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/tmptq4c5ouj.c"
target datalayout = "e-m:e-p270: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/tmp8trdswzy.c'
source_filename = "/tmp/tmp8trdswzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRPOLYBEZIER_swap(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 i32 @core1_swap(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @core1_swap(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/tmp8trdswzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRPOLYBEZIER_swap(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 i32 @core1_swap(ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @core1_swap(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/tmpnx7tarsz.c'
source_filename = "/tmp/tmpnx7tarsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = sub nsw i64 %6, 1
%8 = call i32 @qs(ptr noundef %5, i32 noundef 0, i64 noundef %7)
ret void
}
declare i32 @qs(ptr noundef, i32 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/tmpnx7tarsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_sort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = sub nsw i64 %6, 1
%8 = call i32 @qs(ptr noundef %5, i32 noundef 0, i64 noundef %7)
ret void
}
declare i32 @qs(ptr noundef, i32 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/tmpd18bx8cz.c'
source_filename = "/tmp/tmpd18bx8cz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libconfig_yyfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd18bx8cz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libconfig_yyfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq5wkezmu.c'
source_filename = "/tmp/tmpq5wkezmu.c"
target datalayout = "e-m:e-p270: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/tmpq5wkezmu.c"
target datalayout = "e-m:e-p270: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_7ywr9zr.c'
source_filename = "/tmp/tmp_7ywr9zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_7ywr9zr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpudxkptrp.c'
source_filename = "/tmp/tmpudxkptrp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./a.out <year> <month> <day>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"the year must great than 1900\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"the month must between 1 and 12\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"the day must between 1 and 31\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"%d-%d-%d is %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 i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 4
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fputs(ptr noundef @.str, i32 noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = icmp slt i32 %19, 1900
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %22)
%24 = call i32 @exit(i32 noundef 0) #3
unreachable
25: ; preds = %15
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %7, align 4
%30 = icmp slt i32 %29, 1
br i1 %30, label %34, label %31
31: ; preds = %25
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %32, 12
br i1 %33, label %34, label %38
34: ; preds = %31, %25
%35 = load i32, ptr @stderr, align 4
%36 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %35)
%37 = call i32 @exit(i32 noundef 0) #3
unreachable
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
store i32 %42, ptr %8, align 4
%43 = icmp slt i32 %42, 1
br i1 %43, label %47, label %44
44: ; preds = %38
%45 = load i32, ptr %8, align 4
%46 = icmp sgt i32 %45, 31
br i1 %46, label %47, label %51
47: ; preds = %44, %38
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %48)
%50 = call i32 @exit(i32 noundef 0) #3
unreachable
51: ; preds = %44
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = call ptr @get_weekday(i32 noundef %55, i32 noundef %56, i32 noundef %57)
%59 = call i32 @printf(ptr noundef @.str.4, i32 noundef %52, i32 noundef %53, i32 noundef %54, ptr noundef %58)
%60 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @get_weekday(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" }
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/tmpudxkptrp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"./a.out <year> <month> <day>\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"the year must great than 1900\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"the month must between 1 and 12\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"the day must between 1 and 31\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"%d-%d-%d is %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 i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 4
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fputs(ptr noundef @.str, i32 noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = icmp slt i32 %19, 1900
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %22)
%24 = call i32 @exit(i32 noundef 0) #3
unreachable
25: ; preds = %15
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %7, align 4
%30 = icmp slt i32 %29, 1
br i1 %30, label %34, label %31
31: ; preds = %25
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %32, 12
br i1 %33, label %34, label %38
34: ; preds = %31, %25
%35 = load i32, ptr @stderr, align 4
%36 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %35)
%37 = call i32 @exit(i32 noundef 0) #3
unreachable
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
store i32 %42, ptr %8, align 4
%43 = icmp slt i32 %42, 1
br i1 %43, label %47, label %44
44: ; preds = %38
%45 = load i32, ptr %8, align 4
%46 = icmp sgt i32 %45, 31
br i1 %46, label %47, label %51
47: ; preds = %44, %38
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %48)
%50 = call i32 @exit(i32 noundef 0) #3
unreachable
51: ; preds = %44
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = call ptr @get_weekday(i32 noundef %55, i32 noundef %56, i32 noundef %57)
%59 = call i32 @printf(ptr noundef @.str.4, i32 noundef %52, i32 noundef %53, i32 noundef %54, ptr noundef %58)
%60 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @get_weekday(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" }
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/tmpdrddf_mc.c'
source_filename = "/tmp/tmpdrddf_mc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"/home/daimon/Desktop/yusuf.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %22, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %25
9: ; preds = %6
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %16, %9
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %11, 5
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(ptr noundef %14, ptr noundef @.str.2)
br label %16
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %10, !llvm.loop !6
19: ; preds = %10
%20 = load ptr, ptr %4, align 8
%21 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str.3)
br label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
br label %6, !llvm.loop !8
25: ; preds = %6
%26 = load ptr, ptr %4, align 8
%27 = call i32 @fprintf(ptr noundef %26, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %28
28: ; preds = %50, %25
%29 = load i32, ptr %2, align 4
%30 = icmp sle i32 %29, 5
br i1 %30, label %31, label %53
31: ; preds = %28
%32 = load i32, ptr %2, align 4
%33 = srem i32 %32, 2
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %49
35: ; preds = %31
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %43, %35
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %46
40: ; preds = %36
%41 = load ptr, ptr %4, align 8
%42 = call i32 @fprintf(ptr noundef %41, ptr noundef @.str.2)
br label %43
43: ; preds = %40
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %36, !llvm.loop !9
46: ; preds = %36
%47 = load ptr, ptr %4, align 8
%48 = call i32 @fprintf(ptr noundef %47, ptr noundef @.str.3)
br label %49
49: ; preds = %46, %31
br label %50
50: ; preds = %49
%51 = load i32, ptr %2, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %2, align 4
br label %28, !llvm.loop !10
53: ; preds = %28
%54 = load ptr, ptr %4, align 8
%55 = call i32 @fprintf(ptr noundef %54, ptr noundef @.str.3)
store i32 1, ptr %2, align 4
br label %56
56: ; preds = %80, %53
%57 = load i32, ptr %2, align 4
%58 = icmp sle i32 %57, 3
br i1 %58, label %59, label %83
59: ; preds = %56
%60 = load i32, ptr %2, align 4
%61 = srem i32 %60, 3
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load ptr, ptr %4, align 8
%65 = call i32 @fprintf(ptr noundef %64, ptr noundef @.str.4)
br label %79
66: ; preds = %59
store i32 0, ptr %3, align 4
br label %67
67: ; preds = %73, %66
%68 = load i32, ptr %3, align 4
%69 = icmp slt i32 %68, 5
br i1 %69, label %70, label %76
70: ; preds = %67
%71 = load ptr, ptr %4, align 8
%72 = call i32 @fprintf(ptr noundef %71, ptr noundef @.str.2)
br label %73
73: ; preds = %70
%74 = load i32, ptr %3, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %3, align 4
br label %67, !llvm.loop !11
76: ; preds = %67
%77 = load ptr, ptr %4, align 8
%78 = call i32 @fprintf(ptr noundef %77, ptr noundef @.str.3)
br label %79
79: ; preds = %76, %63
br label %80
80: ; preds = %79
%81 = load i32, ptr %2, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %2, align 4
br label %56, !llvm.loop !12
83: ; preds = %56
%84 = load ptr, ptr %4, align 8
%85 = call i32 @fprintf(ptr noundef %84, ptr noundef @.str.3)
%86 = load ptr, ptr %4, align 8
%87 = call i32 @fclose(ptr noundef %86)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdrddf_mc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"/home/daimon/Desktop/yusuf.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %4, align 8
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %.lr.ph2, label %27
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %22
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 5
br i1 %10, label %.lr.ph, label %19
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %14
%12 = load ptr, ptr %4, align 8
%13 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str.2)
br label %14
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 5
br i1 %18, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %8
%20 = load ptr, ptr %4, align 8
%21 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str.3)
br label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %25, 3
br i1 %26, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %22
br label %27
27: ; preds = %._crit_edge3, %0
%28 = load ptr, ptr %4, align 8
%29 = call i32 @fprintf(ptr noundef %28, ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp sle i32 %30, 5
br i1 %31, label %.lr.ph8, label %58
.lr.ph8: ; preds = %27
br label %32
32: ; preds = %.lr.ph8, %53
%33 = load i32, ptr %2, align 4
%34 = srem i32 %33, 2
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %52
36: ; preds = %32
store i32 0, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph5, label %49
.lr.ph5: ; preds = %36
br label %40
40: ; preds = %.lr.ph5, %43
%41 = load ptr, ptr %4, align 8
%42 = call i32 @fprintf(ptr noundef %41, ptr noundef @.str.2)
br label %43
43: ; preds = %40
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = load i32, ptr %2, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %40, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %43
br label %49
49: ; preds = %._crit_edge6, %36
%50 = load ptr, ptr %4, align 8
%51 = call i32 @fprintf(ptr noundef %50, ptr noundef @.str.3)
br label %52
52: ; preds = %49, %32
br label %53
53: ; preds = %52
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp sle i32 %56, 5
br i1 %57, label %32, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %53
br label %58
58: ; preds = %._crit_edge9, %27
%59 = load ptr, ptr %4, align 8
%60 = call i32 @fprintf(ptr noundef %59, ptr noundef @.str.3)
store i32 1, ptr %2, align 4
%61 = load i32, ptr %2, align 4
%62 = icmp sle i32 %61, 3
br i1 %62, label %.lr.ph14, label %90
.lr.ph14: ; preds = %58
br label %63
63: ; preds = %.lr.ph14, %85
%64 = load i32, ptr %2, align 4
%65 = srem i32 %64, 3
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load ptr, ptr %4, align 8
%69 = call i32 @fprintf(ptr noundef %68, ptr noundef @.str.4)
br label %84
70: ; preds = %63
store i32 0, ptr %3, align 4
%71 = load i32, ptr %3, align 4
%72 = icmp slt i32 %71, 5
br i1 %72, label %.lr.ph11, label %81
.lr.ph11: ; preds = %70
br label %73
73: ; preds = %.lr.ph11, %76
%74 = load ptr, ptr %4, align 8
%75 = call i32 @fprintf(ptr noundef %74, ptr noundef @.str.2)
br label %76
76: ; preds = %73
%77 = load i32, ptr %3, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp slt i32 %79, 5
br i1 %80, label %73, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %76
br label %81
81: ; preds = %._crit_edge12, %70
%82 = load ptr, ptr %4, align 8
%83 = call i32 @fprintf(ptr noundef %82, ptr noundef @.str.3)
br label %84
84: ; preds = %81, %67
br label %85
85: ; preds = %84
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp sle i32 %88, 3
br i1 %89, label %63, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %85
br label %90
90: ; preds = %._crit_edge15, %58
%91 = load ptr, ptr %4, align 8
%92 = call i32 @fprintf(ptr noundef %91, ptr noundef @.str.3)
%93 = load ptr, ptr %4, align 8
%94 = call i32 @fclose(ptr noundef %93)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmplsazz6m5.c'
source_filename = "/tmp/tmplsazz6m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clearerr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplsazz6m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clearerr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7cfxsudk.c'
source_filename = "/tmp/tmp7cfxsudk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_hitlist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @clear_hitlist(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @clear_hitlist(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/tmp7cfxsudk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_hitlist(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @clear_hitlist(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
br label %10
10: ; preds = %5, %1
ret void
}
declare i32 @clear_hitlist(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/tmp_xpufqgq.c'
source_filename = "/tmp/tmp_xpufqgq.c"
target datalayout = "e-m:e-p270: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/tmp_xpufqgq.c"
target datalayout = "e-m:e-p270: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/tmpyk6u53bb.c'
source_filename = "/tmp/tmpyk6u53bb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @staticLibFunc()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @staticLibFunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyk6u53bb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
%2 = call i32 (...) @staticLibFunc()
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @staticLibFunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1qwodebi.c'
source_filename = "/tmp/tmp1qwodebi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adbuf_reset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @adbuf_free(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @adbuf_init(ptr noundef %5)
ret i32 %6
}
declare i32 @adbuf_free(ptr noundef) #1
declare i32 @adbuf_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1qwodebi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adbuf_reset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @adbuf_free(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @adbuf_init(ptr noundef %5)
ret i32 %6
}
declare i32 @adbuf_free(ptr noundef) #1
declare i32 @adbuf_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpttqg3ioj.c'
source_filename = "/tmp/tmpttqg3ioj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @append_dotnr_to_path(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
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
store i8 46, ptr %12, align 1
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 48, %13
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
store i8 %15, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpttqg3ioj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @append_dotnr_to_path(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
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
store i8 46, ptr %12, align 1
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 48, %13
%15 = trunc i32 %14 to i8
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
store i8 %15, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_7axuf9s.c'
source_filename = "/tmp/tmp_7axuf9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_7axuf9s.c"
target datalayout = "e-m:e-p270: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/tmpl8zx0gdg.c'
source_filename = "/tmp/tmpl8zx0gdg.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"library message : \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_error_function(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(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/tmpl8zx0gdg.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"library message : \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_error_function(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(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/tmpamvmyzxd.c'
source_filename = "/tmp/tmpamvmyzxd.c"
target datalayout = "e-m:e-p270: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/tmpamvmyzxd.c"
target datalayout = "e-m:e-p270: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/tmp5ogpb_f3.c'
source_filename = "/tmp/tmp5ogpb_f3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load i32, ptr %4, align 4
%7 = call i32 @factorial(i32 noundef %6)
ret i32 %7
}
declare i32 @factorial(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/tmp5ogpb_f3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load i32, ptr %4, align 4
%7 = call i32 @factorial(i32 noundef %6)
ret i32 %7
}
declare i32 @factorial(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/tmpijl8h931.c'
source_filename = "/tmp/tmpijl8h931.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"This isn't a mistake, this test tests the tests!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpijl8h931.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"This isn't a mistake, this test tests the tests!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2v3rco_d.c'
source_filename = "/tmp/tmp2v3rco_d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_SCTP = dso_local global i32 0, align 4
@SCTP_GET_ASSOC_ID_LIST = 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/tmp2v3rco_d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_SCTP = dso_local global i32 0, align 4
@SCTP_GET_ASSOC_ID_LIST = 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/tmpex36u1l7.c'
source_filename = "/tmp/tmpex36u1l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"/dev/dvb/adapter%d/dvr0\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"Error: Cannot open dvr device. (errno=%d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_dvr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [32 x i8], align 16
store i32 %0, ptr %3, align 4
store i32 -1, ptr %4, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 32, i1 false)
%6 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%10 = load i32, ptr @O_RDONLY, align 4
%11 = load i32, ptr @O_NONBLOCK, align 4
%12 = or i32 %10, %11
%13 = call i32 @open(ptr noundef %9, i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %1
%16 = load i32, ptr @stderr, align 4
%17 = load i32, ptr @errno, align 4
%18 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str.1, i32 noundef %17)
store i32 -1, ptr %2, align 4
br label %21
19: ; preds = %1
%20 = load i32, ptr %4, align 4
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %19, %15
%22 = load i32, ptr %2, align 4
ret i32 %22
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpex36u1l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"/dev/dvb/adapter%d/dvr0\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"Error: Cannot open dvr device. (errno=%d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_dvr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [32 x i8], align 16
store i32 %0, ptr %3, align 4
store i32 -1, ptr %4, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 32, i1 false)
%6 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%10 = load i32, ptr @O_RDONLY, align 4
%11 = load i32, ptr @O_NONBLOCK, align 4
%12 = or i32 %10, %11
%13 = call i32 @open(ptr noundef %9, i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %1
%16 = load i32, ptr @stderr, align 4
%17 = load i32, ptr @errno, align 4
%18 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str.1, i32 noundef %17)
store i32 -1, ptr %2, align 4
br label %21
19: ; preds = %1
%20 = load i32, ptr %4, align 4
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %19, %15
%22 = load i32, ptr %2, align 4
ret i32 %22
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd634jun5.c'
source_filename = "/tmp/tmpd634jun5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ifaddrs = type { i32, i32, ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_getbroadcastaddr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = call i32 @getifaddrs(ptr noundef %6)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, ptr %3, align 4
br label %43
12: ; preds = %2
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %7, align 8
br label %14
14: ; preds = %35, %12
%15 = load ptr, ptr %7, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %39
17: ; preds = %14
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds %struct.ifaddrs, ptr %19, i32 0, i32 1
%21 = load i32, ptr %20, align 4
%22 = call i64 @sock_cmpaddr(ptr noundef %18, i32 noundef %21, i32 noundef 0)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %17
br label %35
25: ; preds = %17
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.ifaddrs, ptr %27, i32 0, i32 0
%29 = load i32, ptr %28, align 8
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds %struct.ifaddrs, ptr %30, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = call i32 @sock_addrlen(i32 noundef %32)
%34 = call i32 @memcpy(ptr noundef %26, i32 noundef %29, i32 noundef %33)
store i32 1, ptr %8, align 4
br label %39
35: ; preds = %24
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds %struct.ifaddrs, ptr %36, i32 0, i32 2
%38 = load ptr, ptr %37, align 8
store ptr %38, ptr %7, align 8
br label %14, !llvm.loop !6
39: ; preds = %25, %14
%40 = load ptr, ptr %6, align 8
%41 = call i32 @freeifaddrs(ptr noundef %40)
%42 = load i32, ptr %8, align 4
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %39, %11
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare i32 @getifaddrs(ptr noundef) #1
declare i64 @sock_cmpaddr(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sock_addrlen(i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpd634jun5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.ifaddrs = type { i32, i32, ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_getbroadcastaddr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = call i32 @getifaddrs(ptr noundef %6)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, ptr %3, align 4
br label %44
12: ; preds = %2
store i32 0, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %34
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %7, align 8
%19 = getelementptr inbounds %struct.ifaddrs, ptr %18, i32 0, i32 1
%20 = load i32, ptr %19, align 4
%21 = call i64 @sock_cmpaddr(ptr noundef %17, i32 noundef %20, i32 noundef 0)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %16
br label %34
24: ; preds = %16
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.ifaddrs, ptr %26, i32 0, i32 0
%28 = load i32, ptr %27, align 8
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.ifaddrs, ptr %29, i32 0, i32 0
%31 = load i32, ptr %30, align 8
%32 = call i32 @sock_addrlen(i32 noundef %31)
%33 = call i32 @memcpy(ptr noundef %25, i32 noundef %28, i32 noundef %32)
store i32 1, ptr %8, align 4
br label %40
34: ; preds = %23
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds %struct.ifaddrs, ptr %35, i32 0, i32 2
%37 = load ptr, ptr %36, align 8
store ptr %37, ptr %7, align 8
%38 = load ptr, ptr %7, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %16, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %34
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %40
40: ; preds = %.loopexit, %24
%41 = load ptr, ptr %6, align 8
%42 = call i32 @freeifaddrs(ptr noundef %41)
%43 = load i32, ptr %8, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %40, %11
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @getifaddrs(ptr noundef) #1
declare i64 @sock_cmpaddr(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sock_addrlen(i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9cp8va1e.c'
source_filename = "/tmp/tmp9cp8va1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 = %21, %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 %22
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = call i64 @isspace(i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
store i32 0, ptr %3, align 4
%16 = call i32 @putchar(i32 noundef 10)
br label %17
17: ; preds = %15, %12
br label %21
18: ; preds = %8
store i32 1, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = call i32 @putchar(i32 noundef %19)
br label %21
21: ; preds = %18, %17
br label %4, !llvm.loop !6
22: ; preds = %4
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @putchar(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/tmp9cp8va1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 %24
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %20
%8 = load i32, ptr %2, align 4
%9 = call i64 @isspace(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
store i32 0, ptr %3, align 4
%15 = call i32 @putchar(i32 noundef 10)
br label %16
16: ; preds = %14, %11
br label %20
17: ; preds = %7
store i32 1, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @putchar(i32 noundef %18)
br label %20
20: ; preds = %17, %16
%21 = call i32 (...) @getchar()
store i32 %21, ptr %2, align 4
%22 = load i32, ptr @EOF, align 4
%23 = icmp ne i32 %21, %22
br i1 %23, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %24
24: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @putchar(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/tmpsfm563qe.c'
source_filename = "/tmp/tmpsfm563qe.c"
target datalayout = "e-m:e-p270: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.month = type { i32, [3 x i8] }
@__const.main.months = private unnamed_addr constant [12 x %struct.month] [%struct.month { i32 31, [3 x i8] c"Jan" }, %struct.month { i32 28, [3 x i8] c"Feb" }, %struct.month { i32 31, [3 x i8] c"Mar" }, %struct.month { i32 30, [3 x i8] c"Apr" }, %struct.month { i32 31, [3 x i8] c"May" }, %struct.month { i32 30, [3 x i8] c"Jun" }, %struct.month { i32 31, [3 x i8] c"Jul" }, %struct.month { i32 31, [3 x i8] c"Aug" }, %struct.month { i32 30, [3 x i8] c"Sep" }, %struct.month { i32 31, [3 x i8] c"Oct" }, %struct.month { i32 30, [3 x i8] c"Nov" }, %struct.month { i32 31, [3 x i8] c"Dec" }], align 16
@.str = private unnamed_addr constant [24 x i8] c"Month Number of Days\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"----- ---------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c" %c%c%c %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 [12 x %struct.month], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.months, i64 96, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %37, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 12
br i1 %8, label %9, label %40
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %11
%13 = getelementptr inbounds %struct.month, ptr %12, i32 0, i32 1
%14 = getelementptr inbounds [3 x i8], ptr %13, i64 0, i64 0
%15 = load i8, ptr %14, align 4
%16 = sext i8 %15 to i32
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %18
%20 = getelementptr inbounds %struct.month, ptr %19, i32 0, i32 1
%21 = getelementptr inbounds [3 x i8], ptr %20, i64 0, i64 1
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %25
%27 = getelementptr inbounds %struct.month, ptr %26, i32 0, i32 1
%28 = getelementptr inbounds [3 x i8], ptr %27, i64 0, i64 2
%29 = load i8, ptr %28, align 2
%30 = sext i8 %29 to i32
%31 = load i32, ptr %2, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %32
%34 = getelementptr inbounds %struct.month, ptr %33, i32 0, i32 0
%35 = load i32, ptr %34, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16, i32 noundef %23, i32 noundef %30, i32 noundef %35)
br label %37
37: ; preds = %9
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
br label %6, !llvm.loop !6
40: ; preds = %6
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
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsfm563qe.c"
target datalayout = "e-m:e-p270: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.month = type { i32, [3 x i8] }
@__const.main.months = private unnamed_addr constant [12 x %struct.month] [%struct.month { i32 31, [3 x i8] c"Jan" }, %struct.month { i32 28, [3 x i8] c"Feb" }, %struct.month { i32 31, [3 x i8] c"Mar" }, %struct.month { i32 30, [3 x i8] c"Apr" }, %struct.month { i32 31, [3 x i8] c"May" }, %struct.month { i32 30, [3 x i8] c"Jun" }, %struct.month { i32 31, [3 x i8] c"Jul" }, %struct.month { i32 31, [3 x i8] c"Aug" }, %struct.month { i32 30, [3 x i8] c"Sep" }, %struct.month { i32 31, [3 x i8] c"Oct" }, %struct.month { i32 30, [3 x i8] c"Nov" }, %struct.month { i32 31, [3 x i8] c"Dec" }], align 16
@.str = private unnamed_addr constant [24 x i8] c"Month Number of Days\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"----- ---------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c" %c%c%c %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 [12 x %struct.month], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.months, i64 96, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 12
br i1 %7, label %.lr.ph, label %41
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %36
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %10
%12 = getelementptr inbounds %struct.month, ptr %11, i32 0, i32 1
%13 = getelementptr inbounds [3 x i8], ptr %12, i64 0, i64 0
%14 = load i8, ptr %13, align 4
%15 = sext i8 %14 to i32
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %17
%19 = getelementptr inbounds %struct.month, ptr %18, i32 0, i32 1
%20 = getelementptr inbounds [3 x i8], ptr %19, i64 0, i64 1
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %24
%26 = getelementptr inbounds %struct.month, ptr %25, i32 0, i32 1
%27 = getelementptr inbounds [3 x i8], ptr %26, i64 0, i64 2
%28 = load i8, ptr %27, align 2
%29 = sext i8 %28 to i32
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [12 x %struct.month], ptr %3, i64 0, i64 %31
%33 = getelementptr inbounds %struct.month, ptr %32, i32 0, i32 0
%34 = load i32, ptr %33, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15, i32 noundef %22, i32 noundef %29, i32 noundef %34)
br label %36
36: ; preds = %8
%37 = load i32, ptr %2, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = icmp slt i32 %39, 12
br i1 %40, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqzf9u8an.c'
source_filename = "/tmp/tmpqzf9u8an.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%*d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = 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 [5 x i8], align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
%6 = call i64 (ptr, ...) @scanf(ptr noundef @.str)
br label %7
7: ; preds = %31, %0
%8 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%9 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8)
%10 = load i64, ptr @EOF, align 8
%11 = icmp ne i64 %9, %10
br i1 %11, label %12, label %32
12: ; preds = %7
%13 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
switch i32 %15, label %22 [
i32 76, label %16
i32 82, label %19
]
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
br label %31
19: ; preds = %12
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %31
22: ; preds = %12
%23 = call i64 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %30
30: ; preds = %27, %22
br label %31
31: ; preds = %30, %19, %16
br label %7, !llvm.loop !6
32: ; preds = %7
%33 = load i32, ptr %5, align 4
%34 = call i32 @printf(ptr noundef @.str.3, i32 noundef %33)
ret i32 0
}
declare i64 @scanf(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/tmpqzf9u8an.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%*d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = 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 [5 x i8], align 1
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
%6 = call i64 (ptr, ...) @scanf(ptr noundef @.str)
%7 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%8 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %30
%12 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
switch i32 %14, label %21 [
i32 76, label %15
i32 82, label %18
]
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %3, align 4
br label %30
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %30
21: ; preds = %11
%22 = call i64 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %29
29: ; preds = %26, %21
br label %30
30: ; preds = %29, %18, %15
%31 = call i64 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%32 = load i64, ptr @EOF, align 8
%33 = icmp ne i64 %31, %32
br i1 %33, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %34
34: ; preds = %._crit_edge, %0
%35 = load i32, ptr %5, align 4
%36 = call i32 @printf(ptr noundef @.str.3, i32 noundef %35)
ret i32 0
}
declare i64 @scanf(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/tmplwy5f1qy.c'
source_filename = "/tmp/tmplwy5f1qy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_file_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @close(i32 noundef %4)
ret i32 0
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplwy5f1qy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_file_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @close(i32 noundef %4)
ret i32 0
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2w7671mw.c'
source_filename = "/tmp/tmp2w7671mw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @octave_glob_wrapper(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glob(ptr noundef %7, i32 noundef %8, i32 noundef 0, ptr noundef %9)
ret i32 %10
}
declare i32 @glob(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2w7671mw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @octave_glob_wrapper(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glob(ptr noundef %7, i32 noundef %8, i32 noundef 0, ptr noundef %9)
ret i32 %10
}
declare i32 @glob(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbz2q8co6.c'
source_filename = "/tmp/tmpbz2q8co6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@stdin = 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/tmpbz2q8co6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@stdin = 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/tmpq8zwn5a8.c'
source_filename = "/tmp/tmpq8zwn5a8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pad_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fgetsize(ptr noundef %6)
store i32 %7, ptr %4, align 4
store ptr null, ptr %5, align 8
store i32 512, ptr %3, align 4
br label %8
8: ; preds = %13, %1
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
br label %13
13: ; preds = %12
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 512
store i32 %15, ptr %3, align 4
br label %8, !llvm.loop !6
16: ; preds = %8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %18, %19
%21 = load ptr, ptr %2, align 8
%22 = call i32 @fwrite(ptr noundef %17, i32 noundef 1, i32 noundef %20, ptr noundef %21)
ret void
}
declare i32 @fgetsize(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq8zwn5a8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pad_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fgetsize(ptr noundef %6)
store i32 %7, ptr %4, align 4
store ptr null, ptr %5, align 8
store i32 512, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %12
br label %12
12: ; preds = %11
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 512
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %1
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %20, %21
%23 = load ptr, ptr %2, align 8
%24 = call i32 @fwrite(ptr noundef %19, i32 noundef 1, i32 noundef %22, ptr noundef %23)
ret void
}
declare i32 @fgetsize(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdb3kbdjj.c'
source_filename = "/tmp/tmpdb3kbdjj.c"
target datalayout = "e-m:e-p270: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/tmpdb3kbdjj.c"
target datalayout = "e-m:e-p270: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/tmpmu8354cq.c'
source_filename = "/tmp/tmpmu8354cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Setup GPIO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_pins() #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/tmpmu8354cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Setup GPIO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_pins() #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/tmpip8k2qjs.c'
source_filename = "/tmp/tmpip8k2qjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_stringops_with_values_2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %19, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 1000
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = load i32, ptr %5, align 4
%11 = icmp sgt i32 %10, 990
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = call i32 @test_stringops_2(i32 noundef %13)
br label %18
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = call i32 @test_stringops_2(i32 noundef %16)
br label %18
18: ; preds = %15, %12
br label %19
19: ; preds = %18
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %6, !llvm.loop !6
22: ; preds = %6
ret void
}
declare i32 @test_stringops_2(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/tmpip8k2qjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_stringops_with_values_2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 1000
br i1 %7, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %18
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 990
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = call i32 @test_stringops_2(i32 noundef %12)
br label %17
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = call i32 @test_stringops_2(i32 noundef %15)
br label %17
17: ; preds = %14, %11
br label %18
18: ; preds = %17
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 1000
br i1 %22, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %2
ret void
}
declare i32 @test_stringops_2(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/tmpskse8vyd.c'
source_filename = "/tmp/tmpskse8vyd.c"
target datalayout = "e-m:e-p270: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.mntent = type { ptr }
@.str = private unnamed_addr constant [3 x i8] c"-I\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-O\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"unknown option %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"/proc/mounts\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"setmntent\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"copying %s to %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"scp %s %s\00", align 1
@.str.9 = private unnamed_addr constant [63 x i8] c"%s not found. please ensure the device is correctly connected\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [256 x i8], align 16
%10 = alloca [256 x i8], align 16
%11 = alloca [256 x i8], align 16
%12 = alloca [512 x i8], align 16
%13 = alloca ptr, align 8
%14 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %6, align 4
br label %15
15: ; preds = %76, %2
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %79
19: ; preds = %15
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %43
32: ; preds = %27
%33 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %34, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = call i32 @strcpy(ptr noundef %33, ptr noundef %39)
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %75
43: ; preds = %27, %19
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = call i64 @strcmp(ptr noundef %48, ptr noundef @.str.1)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %67
51: ; preds = %43
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %67
56: ; preds = %51
%57 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call i32 @strcpy(ptr noundef %57, ptr noundef %63)
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %74
67: ; preds = %51, %43
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds ptr, ptr %68, i64 %70
%72 = load ptr, ptr %71, align 8
%73 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %72)
store i32 -1, ptr %7, align 4
br label %74
74: ; preds = %67, %56
br label %75
75: ; preds = %74, %32
br label %76
76: ; preds = %75
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %6, align 4
br label %15, !llvm.loop !6
79: ; preds = %15
%80 = load i32, ptr %7, align 4
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %127
82: ; preds = %79
%83 = call ptr @setmntent(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %83, ptr %14, align 8
%84 = load ptr, ptr %14, align 8
%85 = icmp eq ptr %84, null
br i1 %85, label %86, label %89
86: ; preds = %82
%87 = call i32 @perror(ptr noundef @.str.5)
%88 = call i32 @exit(i32 noundef 1) #3
unreachable
89: ; preds = %82
br label %90
90: ; preds = %107, %89
%91 = load ptr, ptr %14, align 8
%92 = call ptr @getmntent(ptr noundef %91)
store ptr %92, ptr %13, align 8
%93 = icmp ne ptr null, %92
br i1 %93, label %94, label %108
94: ; preds = %90
%95 = load ptr, ptr %13, align 8
%96 = getelementptr inbounds %struct.mntent, ptr %95, i32 0, i32 0
%97 = load ptr, ptr %96, align 8
%98 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%99 = call i64 @strstr(ptr noundef %97, ptr noundef %98)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %94
%102 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%103 = load ptr, ptr %13, align 8
%104 = getelementptr inbounds %struct.mntent, ptr %103, i32 0, i32 0
%105 = load ptr, ptr %104, align 8
%106 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %102, ptr noundef @.str.6, ptr noundef %105)
store i32 1, ptr %8, align 4
br label %107
107: ; preds = %101, %94
br label %90, !llvm.loop !8
108: ; preds = %90
%109 = load ptr, ptr %14, align 8
%110 = call i32 @endmntent(ptr noundef %109)
%111 = load i32, ptr %8, align 4
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %123
113: ; preds = %108
%114 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%115 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%116 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %114, ptr noundef %115)
%117 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%118 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%119 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%120 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %117, ptr noundef @.str.8, ptr noundef %118, ptr noundef %119)
%121 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%122 = call i32 @system(ptr noundef %121)
br label %126
123: ; preds = %108
%124 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%125 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %124)
store i32 -1, ptr %7, align 4
br label %126
126: ; preds = %123, %113
br label %127
127: ; preds = %126, %79
%128 = load i32, ptr %7, align 4
ret i32 %128
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare ptr @setmntent(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @getmntent(ptr noundef) #1
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @endmntent(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpskse8vyd.c"
target datalayout = "e-m:e-p270: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.mntent = type { ptr }
@.str = private unnamed_addr constant [3 x i8] c"-I\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-O\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"unknown option %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"/proc/mounts\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"setmntent\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"copying %s to %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"scp %s %s\00", align 1
@.str.9 = private unnamed_addr constant [63 x i8] c"%s not found. please ensure the device is correctly connected\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [256 x i8], align 16
%10 = alloca [256 x i8], align 16
%11 = alloca [256 x i8], align 16
%12 = alloca [512 x i8], align 16
%13 = alloca ptr, align 8
%14 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %81
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %75
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %42
26: ; preds = %18
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %42
31: ; preds = %26
%32 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %33, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = call i32 @strcpy(ptr noundef %32, ptr noundef %38)
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %74
42: ; preds = %26, %18
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i64 @strcmp(ptr noundef %47, ptr noundef @.str.1)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %66
50: ; preds = %42
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
%53 = load i32, ptr %4, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %66
55: ; preds = %50
%56 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %57, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = call i32 @strcpy(ptr noundef %56, ptr noundef %62)
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %73
66: ; preds = %50, %42
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %71)
store i32 -1, ptr %7, align 4
br label %73
73: ; preds = %66, %55
br label %74
74: ; preds = %73, %31
br label %75
75: ; preds = %74
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %2
%82 = load i32, ptr %7, align 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %131
84: ; preds = %81
%85 = call ptr @setmntent(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %85, ptr %14, align 8
%86 = load ptr, ptr %14, align 8
%87 = icmp eq ptr %86, null
br i1 %87, label %88, label %91
88: ; preds = %84
%89 = call i32 @perror(ptr noundef @.str.5)
%90 = call i32 @exit(i32 noundef 1) #3
unreachable
91: ; preds = %84
%92 = load ptr, ptr %14, align 8
%93 = call ptr @getmntent(ptr noundef %92)
store ptr %93, ptr %13, align 8
%94 = icmp ne ptr null, %93
br i1 %94, label %.lr.ph2, label %112
.lr.ph2: ; preds = %91
br label %95
95: ; preds = %.lr.ph2, %108
%96 = load ptr, ptr %13, align 8
%97 = getelementptr inbounds %struct.mntent, ptr %96, i32 0, i32 0
%98 = load ptr, ptr %97, align 8
%99 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%100 = call i64 @strstr(ptr noundef %98, ptr noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %95
%103 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%104 = load ptr, ptr %13, align 8
%105 = getelementptr inbounds %struct.mntent, ptr %104, i32 0, i32 0
%106 = load ptr, ptr %105, align 8
%107 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %103, ptr noundef @.str.6, ptr noundef %106)
store i32 1, ptr %8, align 4
br label %108
108: ; preds = %102, %95
%109 = load ptr, ptr %14, align 8
%110 = call ptr @getmntent(ptr noundef %109)
store ptr %110, ptr %13, align 8
%111 = icmp ne ptr null, %110
br i1 %111, label %95, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %108
br label %112
112: ; preds = %._crit_edge3, %91
%113 = load ptr, ptr %14, align 8
%114 = call i32 @endmntent(ptr noundef %113)
%115 = load i32, ptr %8, align 4
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %127
117: ; preds = %112
%118 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%119 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%120 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %118, ptr noundef %119)
%121 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%122 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%123 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
%124 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %121, ptr noundef @.str.8, ptr noundef %122, ptr noundef %123)
%125 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
%126 = call i32 @system(ptr noundef %125)
br label %130
127: ; preds = %112
%128 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%129 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %128)
store i32 -1, ptr %7, align 4
br label %130
130: ; preds = %127, %117
br label %131
131: ; preds = %130, %81
%132 = load i32, ptr %7, align 4
ret i32 %132
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare ptr @setmntent(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @getmntent(ptr noundef) #1
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @endmntent(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpi81if1lj.c'
source_filename = "/tmp/tmpi81if1lj.c"
target datalayout = "e-m:e-p270: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, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [35 x i8] c"Accepting web requests on port %d\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"in socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"setting socket option SO_REUSEADDR\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"binding to socket\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"listening on socket\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"accepting connection\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 80)
%9 = load i32, ptr @PF_INET, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %2, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @fatal(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr @SOL_SOCKET, align 4
%18 = load i32, ptr @SO_REUSEADDR, align 4
%19 = call i32 @setsockopt(i32 noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %4, i32 noundef 4)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 @fatal(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %15
%24 = load i32, ptr @AF_INET, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 3
store i32 %24, ptr %25, align 4
%26 = call i32 @htons(i32 noundef 80)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @INADDR_ANY, align 4
%29 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%30 = getelementptr inbounds %struct.TYPE_2__, ptr %29, i32 0, i32 0
store i32 %28, ptr %30, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%32 = call i32 @memset(ptr noundef %31, i8 noundef signext 0, i32 noundef 8)
%33 = load i32, ptr %2, align 4
%34 = call i32 @bind(i32 noundef %33, ptr noundef %5, i32 noundef 4)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %23
%37 = call i32 @fatal(ptr noundef @.str.3)
br label %38
38: ; preds = %36, %23
%39 = load i32, ptr %2, align 4
%40 = call i32 @listen(i32 noundef %39, i32 noundef 20)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @fatal(ptr noundef @.str.4)
br label %44
44: ; preds = %42, %38
br label %45
45: ; preds = %44, %52
store i32 16, ptr %7, align 4
%46 = load i32, ptr %2, align 4
%47 = call i32 @accept(i32 noundef %46, ptr noundef %6, ptr noundef %7)
store i32 %47, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 @fatal(ptr noundef @.str.5)
br label %52
52: ; preds = %50, %45
%53 = load i32, ptr %3, align 4
%54 = call i32 @handle_connection(i32 noundef %53, ptr noundef %6)
br label %45
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @handle_connection(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/tmpi81if1lj.c"
target datalayout = "e-m:e-p270: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, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [35 x i8] c"Accepting web requests on port %d\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"in socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"setting socket option SO_REUSEADDR\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"binding to socket\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"listening on socket\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"accepting connection\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 80)
%9 = load i32, ptr @PF_INET, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %2, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @fatal(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr @SOL_SOCKET, align 4
%18 = load i32, ptr @SO_REUSEADDR, align 4
%19 = call i32 @setsockopt(i32 noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %4, i32 noundef 4)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 @fatal(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %15
%24 = load i32, ptr @AF_INET, align 4
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 3
store i32 %24, ptr %25, align 4
%26 = call i32 @htons(i32 noundef 80)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @INADDR_ANY, align 4
%29 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%30 = getelementptr inbounds %struct.TYPE_2__, ptr %29, i32 0, i32 0
store i32 %28, ptr %30, align 4
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%32 = call i32 @memset(ptr noundef %31, i8 noundef signext 0, i32 noundef 8)
%33 = load i32, ptr %2, align 4
%34 = call i32 @bind(i32 noundef %33, ptr noundef %5, i32 noundef 4)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %23
%37 = call i32 @fatal(ptr noundef @.str.3)
br label %38
38: ; preds = %36, %23
%39 = load i32, ptr %2, align 4
%40 = call i32 @listen(i32 noundef %39, i32 noundef 20)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @fatal(ptr noundef @.str.4)
br label %44
44: ; preds = %42, %38
br label %45
45: ; preds = %52, %44
store i32 16, ptr %7, align 4
%46 = load i32, ptr %2, align 4
%47 = call i32 @accept(i32 noundef %46, ptr noundef %6, ptr noundef %7)
store i32 %47, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 @fatal(ptr noundef @.str.5)
br label %52
52: ; preds = %50, %45
%53 = load i32, ptr %3, align 4
%54 = call i32 @handle_connection(i32 noundef %53, ptr noundef %6)
br label %45
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @handle_connection(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/tmpn50sa0hp.c'
source_filename = "/tmp/tmpn50sa0hp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_prepare_clienthello_tlsext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn50sa0hp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_prepare_clienthello_tlsext(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuqk93imp.c'
source_filename = "/tmp/tmpuqk93imp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET /.hash=\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @search_kazaa(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %34
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %13, 2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 13
br i1 %19, label %20, label %34
20: ; preds = %11
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %21, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %34
29: ; preds = %20
%30 = load ptr, ptr %5, align 8
%31 = call i64 @memcmp(ptr noundef %30, ptr noundef @.str, i32 noundef 11)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 200, ptr %4, align 4
br label %35
34: ; preds = %29, %20, %11, %3
store i32 0, ptr %4, align 4
br label %35
35: ; preds = %34, %33
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqk93imp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET /.hash=\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @search_kazaa(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %34
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %13, 2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %12, i64 %15
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 13
br i1 %19, label %20, label %34
20: ; preds = %11
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %21, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %34
29: ; preds = %20
%30 = load ptr, ptr %5, align 8
%31 = call i64 @memcmp(ptr noundef %30, ptr noundef @.str, i32 noundef 11)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 200, ptr %4, align 4
br label %35
34: ; preds = %29, %20, %11, %3
store i32 0, ptr %4, align 4
br label %35
35: ; preds = %34, %33
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpypmboo4k.c'
source_filename = "/tmp/tmpypmboo4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_file(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 @safe_fopen(ptr noundef %4, ptr noundef @.str)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @read_header(ptr noundef %6)
%8 = call i32 (...) @balloc()
%9 = load ptr, ptr %3, align 8
%10 = call i32 @read_vertices(ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @read_faces(ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret void
}
declare ptr @safe_fopen(ptr noundef, ptr noundef) #1
declare i32 @read_header(ptr noundef) #1
declare i32 @balloc(...) #1
declare i32 @read_vertices(ptr noundef) #1
declare i32 @read_faces(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpypmboo4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_file(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 @safe_fopen(ptr noundef %4, ptr noundef @.str)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @read_header(ptr noundef %6)
%8 = call i32 (...) @balloc()
%9 = load ptr, ptr %3, align 8
%10 = call i32 @read_vertices(ptr noundef %9)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @read_faces(ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret void
}
declare ptr @safe_fopen(ptr noundef, ptr noundef) #1
declare i32 @read_header(ptr noundef) #1
declare i32 @balloc(...) #1
declare i32 @read_vertices(ptr noundef) #1
declare i32 @read_faces(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1hy3lova.c'
source_filename = "/tmp/tmp1hy3lova.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MHD_str_equal_caseless_n_(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %11
11: ; preds = %39, %3
%12 = load i64, ptr %8, align 8
%13 = load i64, ptr %7, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %42
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %8, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
store i8 %19, ptr %9, align 1
%20 = load ptr, ptr %6, align 8
%21 = load i64, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
%23 = load i8, ptr %22, align 1
store i8 %23, ptr %10, align 1
%24 = load i8, ptr %10, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 0, %25
br i1 %26, label %27, label %32
27: ; preds = %15
%28 = load i8, ptr %9, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 0, %29
%31 = zext i1 %30 to i32
store i32 %31, ptr %4, align 4
br label %43
32: ; preds = %15
%33 = load i8, ptr %9, align 1
%34 = load i8, ptr %10, align 1
%35 = call i64 @charsequalcaseless(i8 noundef signext %33, i8 noundef signext %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %32
br label %39
38: ; preds = %32
store i32 0, ptr %4, align 4
br label %43
39: ; preds = %37
%40 = load i64, ptr %8, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %8, align 8
br label %11, !llvm.loop !6
42: ; preds = %11
store i32 1, ptr %4, align 4
br label %43
43: ; preds = %42, %38, %27
%44 = load i32, ptr %4, align 4
ret i32 %44
}
declare i64 @charsequalcaseless(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1hy3lova.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MHD_str_equal_caseless_n_(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 0, ptr %8, align 8
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %.lr.ph, label %44
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %38
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %8, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
store i8 %18, ptr %9, align 1
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %10, align 1
%23 = load i8, ptr %10, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 0, %24
br i1 %25, label %26, label %31
26: ; preds = %14
%27 = load i8, ptr %9, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 0, %28
%30 = zext i1 %29 to i32
store i32 %30, ptr %4, align 4
br label %45
31: ; preds = %14
%32 = load i8, ptr %9, align 1
%33 = load i8, ptr %10, align 1
%34 = call i64 @charsequalcaseless(i8 noundef signext %32, i8 noundef signext %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
br label %38
37: ; preds = %31
store i32 0, ptr %4, align 4
br label %45
38: ; preds = %36
%39 = load i64, ptr %8, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %8, align 8
%41 = load i64, ptr %8, align 8
%42 = load i64, ptr %7, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %3
store i32 1, ptr %4, align 4
br label %45
45: ; preds = %44, %37, %26
%46 = load i32, ptr %4, align 4
ret i32 %46
}
declare i64 @charsequalcaseless(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6hx5ra8a.c'
source_filename = "/tmp/tmp6hx5ra8a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_fchmodat(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @fchmodat(i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @fchmodat(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6hx5ra8a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_fchmodat(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @fchmodat(i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @fchmodat(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.