llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpxghvdg9g.c'
source_filename = "/tmp/tmpxghvdg9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"could not parse format argument '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_column_format(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = add nsw i32 1, %8
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %3, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = call ptr @strchr(ptr noundef %12, i8 noundef signext 44)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %20, label %18
18: ; preds = %1
%19 = call i32 @warnx(ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %6, align 4
br label %27
20: ; preds = %1
%21 = load ptr, ptr %5, align 8
store i8 0, ptr %21, align 1
%22 = call i32 @strdup(ptr noundef %12)
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = call i32 @strdup(ptr noundef %24)
%26 = call i32 @column_format(i32 noundef %22, i32 noundef %25)
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %20, %18
%28 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %28)
%29 = load i32, ptr %6, align 4
switch i32 %29, label %31 [
i32 0, label %30
i32 1, label %30
]
30: ; preds = %27, %27
ret void
31: ; preds = %27
unreachable
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @warnx(ptr noundef, ptr noundef) #1
declare i32 @column_format(i32 noundef, i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxghvdg9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"could not parse format argument '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_column_format(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = add nsw i32 1, %8
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %3, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = call ptr @strchr(ptr noundef %12, i8 noundef signext 44)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %20, label %18
18: ; preds = %1
%19 = call i32 @warnx(ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %6, align 4
br label %27
20: ; preds = %1
%21 = load ptr, ptr %5, align 8
store i8 0, ptr %21, align 1
%22 = call i32 @strdup(ptr noundef %12)
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = call i32 @strdup(ptr noundef %24)
%26 = call i32 @column_format(i32 noundef %22, i32 noundef %25)
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %20, %18
%28 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %28)
%29 = load i32, ptr %6, align 4
switch i32 %29, label %31 [
i32 0, label %30
i32 1, label %30
]
30: ; preds = %27, %27
ret void
31: ; preds = %27
unreachable
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @warnx(ptr noundef, ptr noundef) #1
declare i32 @column_format(i32 noundef, i32 noundef) #1
declare i32 @strdup(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp78bqqckg.c'
source_filename = "/tmp/tmp78bqqckg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @f(i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4)
%2 = call i32 @g(i32 noundef 8, i32 noundef 9, i32 noundef 3, i32 noundef 4)
%3 = call i32 @f(i32 noundef 3, i32 noundef 4, i32 noundef 8, i32 noundef 9)
ret i32 0
}
declare i32 @f(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @g(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp78bqqckg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @f(i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 4)
%2 = call i32 @g(i32 noundef 8, i32 noundef 9, i32 noundef 3, i32 noundef 4)
%3 = call i32 @f(i32 noundef 3, i32 noundef 4, i32 noundef 8, i32 noundef 9)
ret i32 0
}
declare i32 @f(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @g(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph_g7153w.c'
source_filename = "/tmp/tmph_g7153w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @time_usec() #0 {
%1 = alloca i64, align 8
%2 = alloca %struct.timeval, align 8
%3 = call i64 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i64 0, ptr %1, align 8
br label %14
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%10 = load i32, ptr %9, align 8
%11 = mul nsw i32 %10, 1000000
%12 = sext i32 %11 to i64
%13 = add i64 %8, %12
store i64 %13, ptr %1, align 8
br label %14
14: ; preds = %6, %5
%15 = load i64, ptr %1, align 8
ret i64 %15
}
declare i64 @gettimeofday(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/tmph_g7153w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @time_usec() #0 {
%1 = alloca i64, align 8
%2 = alloca %struct.timeval, align 8
%3 = call i64 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i64 0, ptr %1, align 8
br label %14
6: ; preds = %0
%7 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%10 = load i32, ptr %9, align 8
%11 = mul nsw i32 %10, 1000000
%12 = sext i32 %11 to i64
%13 = add i64 %8, %12
store i64 %13, ptr %1, align 8
br label %14
14: ; preds = %6, %5
%15 = load i64, ptr %1, align 8
ret i64 %15
}
declare i64 @gettimeofday(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/tmp3o6c4tg4.c'
source_filename = "/tmp/tmp3o6c4tg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"mem is char dev\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"buf: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/dev/memdev0\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Open memdev0 error\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"buff is NULL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4096 x i8], align 16
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
%4 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %1, align 4
br label %29
13: ; preds = %0
%14 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fwrite(ptr noundef %14, i32 noundef 4096, i32 noundef 1, ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr @SEEK_SET, align 4
%19 = call i32 @fseek(ptr noundef %17, i32 noundef 0, i32 noundef %18)
%20 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @strcpy(ptr noundef %20, ptr noundef @.str.5)
%22 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %22)
%24 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fread(ptr noundef %24, i32 noundef 4096, i32 noundef 1, ptr noundef %25)
%27 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27)
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %13, %11
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(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/tmp3o6c4tg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"mem is char dev\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"buf: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"/dev/memdev0\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Open memdev0 error\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"buff is NULL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4096 x i8], align 16
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
%4 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 -1, ptr %1, align 4
br label %29
13: ; preds = %0
%14 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fwrite(ptr noundef %14, i32 noundef 4096, i32 noundef 1, ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr @SEEK_SET, align 4
%19 = call i32 @fseek(ptr noundef %17, i32 noundef 0, i32 noundef %18)
%20 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @strcpy(ptr noundef %20, ptr noundef @.str.5)
%22 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %22)
%24 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fread(ptr noundef %24, i32 noundef 4096, i32 noundef 1, ptr noundef %25)
%27 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27)
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %13, %11
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(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/tmpbjruv9m1.c'
source_filename = "/tmp/tmpbjruv9m1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32 }
@.str = private unnamed_addr constant [17 x i8] c"Usage: hbin FILE\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"open argv[1]\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"/tmp/hbin_binary\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"open TMP_FILE\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Failed to run the program\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @puts(ptr noundef @.str)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %15, ptr %3, align 4
br label %103
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 (ptr, i32, ...) @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %103
26: ; preds = %16
%27 = load i32, ptr @O_RDWR, align 4
%28 = load i32, ptr @O_CREAT, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @S_IRUSR, align 4
%31 = load i32, ptr @S_IWUSR, align 4
%32 = or i32 %30, %31
%33 = load i32, ptr @S_IXUSR, align 4
%34 = or i32 %32, %33
%35 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %29, i32 noundef %34)
store i32 %35, ptr %7, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %26
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %3, align 4
br label %103
40: ; preds = %26
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 1
%43 = load ptr, ptr %42, align 8
%44 = call i32 @stat(ptr noundef %43, ptr noundef %10)
%45 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr @PROT_READ, align 4
%48 = load i32, ptr @PROT_WRITE, align 4
%49 = or i32 %47, %48
%50 = load i32, ptr @MAP_SHARED, align 4
%51 = load i32, ptr %6, align 4
%52 = call ptr @mmap(ptr noundef null, i32 noundef %46, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef 0)
store ptr %52, ptr %9, align 8
%53 = load i32, ptr %7, align 4
%54 = load ptr, ptr %9, align 8
%55 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %54, i64 %57
%59 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = sub nsw i32 %60, %62
%64 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 1
%65 = load i32, ptr %64, align 4
%66 = srem i32 %63, %65
%67 = call i32 @write(i32 noundef %53, ptr noundef %58, i32 noundef %66)
%68 = load ptr, ptr %5, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 1
%71 = load i32, ptr %4, align 4
%72 = call i32 @memmove(ptr noundef %68, ptr noundef %70, i32 noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %4, align 4
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
store ptr null, ptr %77, align 8
%78 = load i32, ptr %7, align 4
%79 = call i32 @close(i32 noundef %78)
%80 = load ptr, ptr %9, align 8
%81 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%82 = load i32, ptr %81, align 4
%83 = call i32 @munmap(ptr noundef %80, i32 noundef %82)
%84 = call i32 (...) @fork()
switch i32 %84, label %91 [
i32 -1, label %85
i32 0, label %87
]
85: ; preds = %40
%86 = call i32 @perror(ptr noundef @.str.4)
br label %101
87: ; preds = %40
%88 = load ptr, ptr %5, align 8
%89 = call i32 @execv(ptr noundef @.str.2, ptr noundef %88)
%90 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %90, ptr %3, align 4
br label %103
91: ; preds = %40
%92 = call i32 @wait(ptr noundef %8)
%93 = load i32, ptr %8, align 4
%94 = call i32 @WIFEXITED(i32 noundef %93)
%95 = icmp ne i32 %94, 0
br i1 %95, label %99, label %96
96: ; preds = %91
%97 = load i32, ptr @stderr, align 4
%98 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %97)
br label %99
99: ; preds = %96, %91
%100 = call i32 @unlink(ptr noundef @.str.2)
br label %101
101: ; preds = %99, %85
%102 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %102, ptr %3, align 4
br label %103
103: ; preds = %101, %87, %37, %23, %13
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @puts(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbjruv9m1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32 }
@.str = private unnamed_addr constant [17 x i8] c"Usage: hbin FILE\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"open argv[1]\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"/tmp/hbin_binary\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"open TMP_FILE\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Failed to run the program\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @puts(ptr noundef @.str)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %15, ptr %3, align 4
br label %103
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 (ptr, i32, ...) @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %103
26: ; preds = %16
%27 = load i32, ptr @O_RDWR, align 4
%28 = load i32, ptr @O_CREAT, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @S_IRUSR, align 4
%31 = load i32, ptr @S_IWUSR, align 4
%32 = or i32 %30, %31
%33 = load i32, ptr @S_IXUSR, align 4
%34 = or i32 %32, %33
%35 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %29, i32 noundef %34)
store i32 %35, ptr %7, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %26
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %3, align 4
br label %103
40: ; preds = %26
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 1
%43 = load ptr, ptr %42, align 8
%44 = call i32 @stat(ptr noundef %43, ptr noundef %10)
%45 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr @PROT_READ, align 4
%48 = load i32, ptr @PROT_WRITE, align 4
%49 = or i32 %47, %48
%50 = load i32, ptr @MAP_SHARED, align 4
%51 = load i32, ptr %6, align 4
%52 = call ptr @mmap(ptr noundef null, i32 noundef %46, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef 0)
store ptr %52, ptr %9, align 8
%53 = load i32, ptr %7, align 4
%54 = load ptr, ptr %9, align 8
%55 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %54, i64 %57
%59 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = sub nsw i32 %60, %62
%64 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 1
%65 = load i32, ptr %64, align 4
%66 = srem i32 %63, %65
%67 = call i32 @write(i32 noundef %53, ptr noundef %58, i32 noundef %66)
%68 = load ptr, ptr %5, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 1
%71 = load i32, ptr %4, align 4
%72 = call i32 @memmove(ptr noundef %68, ptr noundef %70, i32 noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %4, align 4
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
store ptr null, ptr %77, align 8
%78 = load i32, ptr %7, align 4
%79 = call i32 @close(i32 noundef %78)
%80 = load ptr, ptr %9, align 8
%81 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 0
%82 = load i32, ptr %81, align 4
%83 = call i32 @munmap(ptr noundef %80, i32 noundef %82)
%84 = call i32 (...) @fork()
switch i32 %84, label %91 [
i32 -1, label %85
i32 0, label %87
]
85: ; preds = %40
%86 = call i32 @perror(ptr noundef @.str.4)
br label %101
87: ; preds = %40
%88 = load ptr, ptr %5, align 8
%89 = call i32 @execv(ptr noundef @.str.2, ptr noundef %88)
%90 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %90, ptr %3, align 4
br label %103
91: ; preds = %40
%92 = call i32 @wait(ptr noundef %8)
%93 = load i32, ptr %8, align 4
%94 = call i32 @WIFEXITED(i32 noundef %93)
%95 = icmp ne i32 %94, 0
br i1 %95, label %99, label %96
96: ; preds = %91
%97 = load i32, ptr @stderr, align 4
%98 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %97)
br label %99
99: ; preds = %96, %91
%100 = call i32 @unlink(ptr noundef @.str.2)
br label %101
101: ; preds = %99, %85
%102 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %102, ptr %3, align 4
br label %103
103: ; preds = %101, %87, %37, %23, %13
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @puts(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @execv(ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvw6ed2q3.c'
source_filename = "/tmp/tmpvw6ed2q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT16_MAX = dso_local global i32 0, align 4
@UINT32_MAX = dso_local global i32 0, align 4
@UINT8_MAX = 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/tmpvw6ed2q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT16_MAX = dso_local global i32 0, align 4
@UINT32_MAX = dso_local global i32 0, align 4
@UINT8_MAX = 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/tmpeyt7fn1_.c'
source_filename = "/tmp/tmpeyt7fn1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strclean(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %10, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %5, align 8
%13 = add i64 %12, 1
store i64 %13, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %11, i64 %12
store i8 0, ptr %14, align 1
br label %6, !llvm.loop !6
15: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeyt7fn1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strclean(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp ult i64 %6, %7
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = load i64, ptr %5, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %10, i64 %11
store i8 0, ptr %13, align 1
%14 = load i64, ptr %5, align 8
%15 = load i64, ptr %4, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf29zjazi.c'
source_filename = "/tmp/tmpf29zjazi.c"
target datalayout = "e-m:e-p270: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/tmpf29zjazi.c"
target datalayout = "e-m:e-p270: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/tmppu722jio.c'
source_filename = "/tmp/tmppu722jio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setPurpleAudio(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @sendConf(i32 noundef %3, i32 noundef 138)
ret void
}
declare i32 @sendConf(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/tmppu722jio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setPurpleAudio(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @sendConf(i32 noundef %3, i32 noundef 138)
ret void
}
declare i32 @sendConf(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/tmpc84erxhn.c'
source_filename = "/tmp/tmpc84erxhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %0, %3
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @__VERIFIER_assert(i32 noundef %6)
br label %3
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc84erxhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %3, %0
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @__VERIFIER_assert(i32 noundef %6)
br label %3
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmf9e32ao.c'
source_filename = "/tmp/tmpmf9e32ao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leaky_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = add nsw i32 %6, 1
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call ptr @leaky_malloc(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = call i32 @memcpy(ptr noundef %10, ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
ret ptr %14
}
declare i32 @strlen(ptr noundef) #1
declare ptr @leaky_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmf9e32ao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leaky_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = add nsw i32 %6, 1
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call ptr @leaky_malloc(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = call i32 @memcpy(ptr noundef %10, ptr noundef %11, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
ret ptr %14
}
declare i32 @strlen(ptr noundef) #1
declare ptr @leaky_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy4kwo8mg.c'
source_filename = "/tmp/tmpy4kwo8mg.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32 }
%struct.termios = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"/dev/ptmx: open\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"grantpt\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"unlockpt\00", align 1
@FILENAME_MAX = dso_local global i32 0, align 4
@TIOCGWINSZ = dso_local global i32 0, align 4
@TIOCSWINSZ = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pty_get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.winsize, align 4
%5 = alloca %struct.termios, align 4
store ptr %0, ptr %2, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str.1)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = call i64 @grantpt(i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = call i32 @perror(ptr noundef @.str.2)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %13
%21 = load i32, ptr %3, align 4
%22 = call i64 @unlockpt(i32 noundef %21)
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = call i32 @perror(ptr noundef @.str.3)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %20
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr @FILENAME_MAX, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %3, align 4
%35 = call i32 @ptsname(i32 noundef %34)
%36 = load i32, ptr @FILENAME_MAX, align 4
%37 = sub nsw i32 %36, 1
%38 = call i32 @strncpy(ptr noundef %33, i32 noundef %35, i32 noundef %37)
%39 = load i32, ptr @TIOCGWINSZ, align 4
%40 = call i32 @ioctl(i32 noundef 0, i32 noundef %39, ptr noundef %4)
%41 = icmp ne i32 %40, 0
br i1 %41, label %46, label %42
42: ; preds = %27
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr @TIOCSWINSZ, align 4
%45 = call i32 @ioctl(i32 noundef %43, i32 noundef %44, ptr noundef %4)
br label %46
46: ; preds = %42, %27
%47 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %5)
%48 = icmp ne i32 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %46
%50 = load i32, ptr %3, align 4
%51 = load i32, ptr @TCSANOW, align 4
%52 = call i32 @tcsetattr(i32 noundef %50, i32 noundef %51, ptr noundef %5)
br label %53
53: ; preds = %49, %46
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @grantpt(i32 noundef) #1
declare i64 @unlockpt(i32 noundef) #1
declare i32 @strncpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ptsname(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpy4kwo8mg.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32 }
%struct.termios = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"/dev/ptmx: open\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"grantpt\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"unlockpt\00", align 1
@FILENAME_MAX = dso_local global i32 0, align 4
@TIOCGWINSZ = dso_local global i32 0, align 4
@TIOCSWINSZ = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pty_get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca %struct.winsize, align 4
%5 = alloca %struct.termios, align 4
store ptr %0, ptr %2, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str.1)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = call i64 @grantpt(i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = call i32 @perror(ptr noundef @.str.2)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %13
%21 = load i32, ptr %3, align 4
%22 = call i64 @unlockpt(i32 noundef %21)
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = call i32 @perror(ptr noundef @.str.3)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %20
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr @FILENAME_MAX, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %3, align 4
%35 = call i32 @ptsname(i32 noundef %34)
%36 = load i32, ptr @FILENAME_MAX, align 4
%37 = sub nsw i32 %36, 1
%38 = call i32 @strncpy(ptr noundef %33, i32 noundef %35, i32 noundef %37)
%39 = load i32, ptr @TIOCGWINSZ, align 4
%40 = call i32 @ioctl(i32 noundef 0, i32 noundef %39, ptr noundef %4)
%41 = icmp ne i32 %40, 0
br i1 %41, label %46, label %42
42: ; preds = %27
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr @TIOCSWINSZ, align 4
%45 = call i32 @ioctl(i32 noundef %43, i32 noundef %44, ptr noundef %4)
br label %46
46: ; preds = %42, %27
%47 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %5)
%48 = icmp ne i32 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %46
%50 = load i32, ptr %3, align 4
%51 = load i32, ptr @TCSANOW, align 4
%52 = call i32 @tcsetattr(i32 noundef %50, i32 noundef %51, ptr noundef %5)
br label %53
53: ; preds = %49, %46
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @grantpt(i32 noundef) #1
declare i64 @unlockpt(i32 noundef) #1
declare i32 @strncpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ptsname(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp8puu5lhq.c'
source_filename = "/tmp/tmp8puu5lhq.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fsync(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @EINVAL, align 4
store i32 %3, ptr @errno, align 4
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/tmp8puu5lhq.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fsync(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr @EINVAL, align 4
store i32 %3, ptr @errno, align 4
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/tmpsb2ioimt.c'
source_filename = "/tmp/tmpsb2ioimt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalpdf(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = load double, ptr %5, align 8
%10 = fsub double %8, %9
%11 = load double, ptr %6, align 8
%12 = fdiv double %10, %11
store double %12, ptr %7, align 8
%13 = load double, ptr %7, align 8
%14 = fneg double %13
%15 = load double, ptr %7, align 8
%16 = fmul double %14, %15
%17 = fdiv double %16, 2.000000e+00
%18 = call double @exp(double noundef %17) #3
%19 = call double @sqrt(i32 noundef 6)
%20 = load double, ptr %6, align 8
%21 = fmul double %19, %20
%22 = fdiv double %18, %21
ret double %22
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare double @sqrt(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 = { 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsb2ioimt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @normalpdf(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = load double, ptr %5, align 8
%10 = fsub double %8, %9
%11 = load double, ptr %6, align 8
%12 = fdiv double %10, %11
store double %12, ptr %7, align 8
%13 = load double, ptr %7, align 8
%14 = fneg double %13
%15 = load double, ptr %7, align 8
%16 = fmul double %14, %15
%17 = fdiv double %16, 2.000000e+00
%18 = call double @exp(double noundef %17) #3
%19 = call double @sqrt(i32 noundef 6)
%20 = load double, ptr %6, align 8
%21 = fmul double %19, %20
%22 = fdiv double %18, %21
ret double %22
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare double @sqrt(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 = { 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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7kp_kmut.c'
source_filename = "/tmp/tmp7kp_kmut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"--player-status\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
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, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @printUsage(ptr noundef %13)
br label %15
15: ; preds = %10, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
store i32 2, ptr %7, align 4
br label %19
19: ; preds = %55, %15
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %58
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %23
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 0
%34 = load ptr, ptr %33, align 8
%35 = call i32 @printUsage(ptr noundef %34)
br label %54
36: ; preds = %23
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call i64 @strcmp(ptr noundef %41, ptr noundef @.str.1)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %53
44: ; preds = %36
%45 = load ptr, ptr %6, align 8
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %46, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @checkPlayerStatus(ptr noundef %45, ptr noundef %51)
br label %53
53: ; preds = %44, %36
br label %54
54: ; preds = %53, %31
br label %55
55: ; preds = %54
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %19, !llvm.loop !6
58: ; preds = %19
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @printUsage(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @checkPlayerStatus(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7kp_kmut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"--player-status\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
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, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @printUsage(ptr noundef %13)
br label %15
15: ; preds = %10, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
store i32 2, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %60
.lr.ph: ; preds = %15
br label %22
22: ; preds = %.lr.ph, %54
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %22
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 0
%33 = load ptr, ptr %32, align 8
%34 = call i32 @printUsage(ptr noundef %33)
br label %53
35: ; preds = %22
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.1)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %35
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %45, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = call i32 @checkPlayerStatus(ptr noundef %44, ptr noundef %50)
br label %52
52: ; preds = %43, %35
br label %53
53: ; preds = %52, %30
br label %54
54: ; preds = %53
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %7, align 4
%57 = load i32, ptr %7, align 4
%58 = load i32, ptr %4, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %15
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @printUsage(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @checkPlayerStatus(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2mdt48xc.c'
source_filename = "/tmp/tmp2mdt48xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EX_USAGE = 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/tmp2mdt48xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EX_USAGE = 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/tmpxd144tq_.c'
source_filename = "/tmp/tmpxd144tq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memccpy(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %34
14: ; preds = %4
%15 = load ptr, ptr %6, align 8
store ptr %15, ptr %10, align 8
%16 = load ptr, ptr %7, align 8
store ptr %16, ptr %11, align 8
br label %17
17: ; preds = %29, %14
%18 = load ptr, ptr %11, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %11, align 8
%20 = load i8, ptr %18, align 1
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %10, align 8
store i8 %20, ptr %21, align 1
%23 = zext i8 %20 to i32
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %17
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %5, align 8
br label %35
28: ; preds = %17
br label %29
29: ; preds = %28
%30 = load i64, ptr %9, align 8
%31 = add i64 %30, -1
store i64 %31, ptr %9, align 8
%32 = icmp ne i64 %31, 0
br i1 %32, label %17, label %33, !llvm.loop !6
33: ; preds = %29
br label %34
34: ; preds = %33, %4
store ptr null, ptr %5, align 8
br label %35
35: ; preds = %34, %26
%36 = load ptr, ptr %5, align 8
ret ptr %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxd144tq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memccpy(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %34
14: ; preds = %4
%15 = load ptr, ptr %6, align 8
store ptr %15, ptr %10, align 8
%16 = load ptr, ptr %7, align 8
store ptr %16, ptr %11, align 8
br label %17
17: ; preds = %29, %14
%18 = load ptr, ptr %11, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %11, align 8
%20 = load i8, ptr %18, align 1
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %10, align 8
store i8 %20, ptr %21, align 1
%23 = zext i8 %20 to i32
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %17
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %5, align 8
br label %35
28: ; preds = %17
br label %29
29: ; preds = %28
%30 = load i64, ptr %9, align 8
%31 = add i64 %30, -1
store i64 %31, ptr %9, align 8
%32 = icmp ne i64 %31, 0
br i1 %32, label %17, label %33, !llvm.loop !6
33: ; preds = %29
br label %34
34: ; preds = %33, %4
store ptr null, ptr %5, align 8
br label %35
35: ; preds = %34, %26
%36 = load ptr, ptr %5, align 8
ret ptr %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp56wqz0ll.c'
source_filename = "/tmp/tmp56wqz0ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refine_root(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %12, align 4
%14 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call i32 @_ada_use_c2phc4c(i32 noundef 149, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 0)
store i32 %18, ptr %8, align 4
%19 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %5, align 8
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %8, align 4
ret i32 %22
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp56wqz0ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @refine_root(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %12, align 4
%14 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %13, ptr %14, align 4
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call i32 @_ada_use_c2phc4c(i32 noundef 149, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 0)
store i32 %18, ptr %8, align 4
%19 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %5, align 8
store i32 %20, ptr %21, align 4
%22 = load i32, ptr %8, align 4
ret i32 %22
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphw538skt.c'
source_filename = "/tmp/tmphw538skt.c"
target datalayout = "e-m:e-p270: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/tmphw538skt.c"
target datalayout = "e-m:e-p270: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/tmpm557797_.c'
source_filename = "/tmp/tmpm557797_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"open source SW project\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"First GitHub : tranning\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm557797_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"open source SW project\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"First GitHub : tranning\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1js65ipv.c'
source_filename = "/tmp/tmp1js65ipv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %59, %5
%13 = load i32, ptr %11, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %62
16: ; preds = %12
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %11, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %11, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %21, %26
%28 = load ptr, ptr %10, align 8
%29 = load i32, ptr %11, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, %27
store i32 %33, ptr %31, align 4
%34 = load ptr, ptr %10, 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 = icmp sgt i32 %38, 9
br i1 %39, label %40, label %58
40: ; preds = %16
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = srem i32 %45, 10
%47 = load ptr, ptr %10, align 8
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
store i32 %46, ptr %50, align 4
%51 = load ptr, ptr %10, align 8
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %51, i64 %54
%56 = load i32, ptr %55, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %55, align 4
br label %58
58: ; preds = %40, %16
br label %59
59: ; preds = %58
%60 = load i32, ptr %11, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %11, align 4
br label %12, !llvm.loop !6
62: ; preds = %12
br label %63
63: ; preds = %79, %62
%64 = load i32, ptr %11, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %82
67: ; preds = %63
%68 = load ptr, ptr %6, align 8
%69 = load i32, ptr %11, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %68, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = add nsw i32 %77, %72
store i32 %78, ptr %76, align 4
br label %79
79: ; preds = %67
%80 = load i32, ptr %11, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %11, align 4
br label %63, !llvm.loop !8
82: ; preds = %63
%83 = load ptr, ptr %10, align 8
%84 = load i32, ptr %7, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %86, align 4
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %82
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, -1
store i32 %91, ptr %7, align 4
br label %92
92: ; preds = %89, %82
%93 = load i32, ptr %7, align 4
store i32 %93, ptr %11, align 4
br label %94
94: ; preds = %104, %92
%95 = load i32, ptr %11, align 4
%96 = icmp sge i32 %95, 0
br i1 %96, label %97, label %107
97: ; preds = %94
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %11, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
%102 = load i32, ptr %101, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %102)
br label %104
104: ; preds = %97
%105 = load i32, ptr %11, align 4
%106 = add nsw i32 %105, -1
store i32 %106, ptr %11, align 4
br label %94, !llvm.loop !9
107: ; preds = %94
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1js65ipv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %11, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %64
.lr.ph: ; preds = %5
br label %15
15: ; preds = %.lr.ph, %58
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %11, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %11, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %20, %25
%27 = load ptr, ptr %10, align 8
%28 = load i32, ptr %11, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = add nsw i32 %31, %26
store i32 %32, ptr %30, align 4
%33 = load ptr, ptr %10, 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 = icmp sgt i32 %37, 9
br i1 %38, label %39, label %57
39: ; preds = %15
%40 = load ptr, ptr %10, align 8
%41 = load i32, ptr %11, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = srem i32 %44, 10
%46 = load ptr, ptr %10, align 8
%47 = load i32, ptr %11, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
store i32 %45, ptr %49, align 4
%50 = load ptr, ptr %10, align 8
%51 = load i32, ptr %11, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %50, i64 %53
%55 = load i32, ptr %54, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %54, align 4
br label %57
57: ; preds = %39, %15
br label %58
58: ; preds = %57
%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 %9, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %5
%65 = load i32, ptr %11, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %.lr.ph2, label %86
.lr.ph2: ; preds = %64
br label %68
68: ; preds = %.lr.ph2, %80
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = load ptr, ptr %10, align 8
%75 = load i32, ptr %11, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %74, i64 %76
%78 = load i32, ptr %77, align 4
%79 = add nsw i32 %78, %73
store i32 %79, ptr %77, align 4
br label %80
80: ; preds = %68
%81 = load i32, ptr %11, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %11, align 4
%83 = load i32, ptr %11, align 4
%84 = load i32, ptr %7, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %68, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %86
86: ; preds = %._crit_edge3, %64
%87 = load ptr, ptr %10, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = load i32, ptr %7, align 4
%95 = add nsw i32 %94, -1
store i32 %95, ptr %7, align 4
br label %96
96: ; preds = %93, %86
%97 = load i32, ptr %7, align 4
store i32 %97, ptr %11, align 4
%98 = load i32, ptr %11, align 4
%99 = icmp sge i32 %98, 0
br i1 %99, label %.lr.ph5, label %112
.lr.ph5: ; preds = %96
br label %100
100: ; preds = %.lr.ph5, %107
%101 = load ptr, ptr %10, align 8
%102 = load i32, ptr %11, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
%105 = load i32, ptr %104, align 4
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %105)
br label %107
107: ; preds = %100
%108 = load i32, ptr %11, align 4
%109 = add nsw i32 %108, -1
store i32 %109, ptr %11, align 4
%110 = load i32, ptr %11, align 4
%111 = icmp sge i32 %110, 0
br i1 %111, label %100, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %107
br label %112
112: ; preds = %._crit_edge6, %96
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpb8kks9b6.c'
source_filename = "/tmp/tmpb8kks9b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"in ec_open() on opening file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ec_open(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 = load i32, ptr %4, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @fatal(ptr noundef @.str)
br label %13
13: ; preds = %11, %2
%14 = load i32, ptr %5, align 4
ret i32 %14
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8kks9b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"in ec_open() on opening file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ec_open(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 = load i32, ptr %4, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @fatal(ptr noundef @.str)
br label %13
13: ; preds = %11, %2
%14 = load i32, ptr %5, align 4
ret i32 %14
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx5ht9g3a.c'
source_filename = "/tmp/tmpx5ht9g3a.c"
target datalayout = "e-m:e-p270: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/tmpx5ht9g3a.c"
target datalayout = "e-m:e-p270: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/tmph3mjehed.c'
source_filename = "/tmp/tmph3mjehed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s, %s: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"not set\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c" with %i arguments:\0A\09\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @info(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @op_is_set(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %21
21: ; preds = %19, %17
%22 = load ptr, ptr %2, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @op_arg_cnt(ptr noundef %24)
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %50
28: ; preds = %21
%29 = load i32, ptr %3, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 0
%33 = load ptr, ptr %32, align 8
%34 = call i64 @op_args(ptr noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %4, align 8
br label %36
36: ; preds = %46, %28
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %3, align 4
%39 = sub i32 %38, 1
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %37, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %42)
%44 = load i32, ptr %3, align 4
%45 = add i32 %44, -1
store i32 %45, ptr %3, align 4
br label %46
46: ; preds = %36
%47 = load i32, ptr %3, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %36, label %49, !llvm.loop !6
49: ; preds = %46
br label %50
50: ; preds = %49, %21
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @op_is_set(ptr noundef) #1
declare i32 @op_arg_cnt(ptr noundef) #1
declare i64 @op_args(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmph3mjehed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%s, %s: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"not set\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c" with %i arguments:\0A\09\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @info(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @op_is_set(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %21
21: ; preds = %19, %17
%22 = load ptr, ptr %2, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @op_arg_cnt(ptr noundef %24)
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %50
28: ; preds = %21
%29 = load i32, ptr %3, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 0
%33 = load ptr, ptr %32, align 8
%34 = call i64 @op_args(ptr noundef %33)
%35 = inttoptr i64 %34 to ptr
store ptr %35, ptr %4, align 8
br label %36
36: ; preds = %46, %28
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %3, align 4
%39 = sub i32 %38, 1
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %37, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %42)
%44 = load i32, ptr %3, align 4
%45 = add i32 %44, -1
store i32 %45, ptr %3, align 4
br label %46
46: ; preds = %36
%47 = load i32, ptr %3, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %36, label %49, !llvm.loop !6
49: ; preds = %46
br label %50
50: ; preds = %49, %21
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @op_is_set(ptr noundef) #1
declare i32 @op_arg_cnt(ptr noundef) #1
declare i64 @op_args(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpna9rl3tg.c'
source_filename = "/tmp/tmpna9rl3tg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_file_search(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %19, label %15
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %3
store ptr @.str.1, ptr %6, align 8
br label %20
20: ; preds = %19, %15
%21 = load ptr, ptr %6, align 8
%22 = call ptr @util_strsav(ptr noundef %21)
store ptr %22, ptr %6, align 8
store ptr %22, ptr %11, align 8
store i32 0, ptr %8, align 4
br label %23
23: ; preds = %88, %20
%24 = load ptr, ptr %6, align 8
%25 = call ptr @strchr(ptr noundef %24, i8 noundef signext 58)
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %12, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = load ptr, ptr %12, align 8
store i8 0, ptr %29, align 1
br label %31
30: ; preds = %23
store i32 1, ptr %8, align 4
br label %31
31: ; preds = %30, %28
%32 = load ptr, ptr %6, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str.1)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr %5, align 8
%37 = call ptr @util_strsav(ptr noundef %36)
store ptr %37, ptr %9, align 8
br label %52
38: ; preds = %31
%39 = load ptr, ptr %6, align 8
%40 = call i64 @strlen(ptr noundef %39)
%41 = load ptr, ptr %5, align 8
%42 = call i64 @strlen(ptr noundef %41)
%43 = add nsw i64 %40, %42
%44 = add nsw i64 %43, 4
%45 = mul nsw i64 1, %44
%46 = call i64 @MMalloc(i64 noundef %45)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %9, align 8
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %6, align 8
%50 = load ptr, ptr %5, align 8
%51 = call i32 @sprintf(ptr noundef %48, ptr noundef @.str.2, ptr noundef %49, ptr noundef %50)
br label %52
52: ; preds = %38, %35
%53 = load ptr, ptr %9, align 8
%54 = call ptr @util_tilde_expand(ptr noundef %53)
store ptr %54, ptr %10, align 8
%55 = load ptr, ptr %9, align 8
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = load ptr, ptr %9, align 8
%59 = call i32 @free(ptr noundef %58)
store ptr null, ptr %9, align 8
br label %61
60: ; preds = %52
br label %61
61: ; preds = %60, %57
%62 = phi ptr [ null, %57 ], [ null, %60 ]
%63 = load ptr, ptr %10, align 8
%64 = load ptr, ptr %7, align 8
%65 = call i64 @check_file(ptr noundef %63, ptr noundef %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %77
67: ; preds = %61
%68 = load ptr, ptr %11, align 8
%69 = icmp ne ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load ptr, ptr %11, align 8
%72 = call i32 @free(ptr noundef %71)
store ptr null, ptr %11, align 8
br label %74
73: ; preds = %67
br label %74
74: ; preds = %73, %70
%75 = phi ptr [ null, %70 ], [ null, %73 ]
%76 = load ptr, ptr %10, align 8
store ptr %76, ptr %4, align 8
br label %101
77: ; preds = %61
%78 = load ptr, ptr %10, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = load ptr, ptr %10, align 8
%82 = call i32 @free(ptr noundef %81)
store ptr null, ptr %10, align 8
br label %84
83: ; preds = %77
br label %84
84: ; preds = %83, %80
%85 = phi ptr [ null, %80 ], [ null, %83 ]
%86 = load ptr, ptr %12, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %12, align 8
store ptr %87, ptr %6, align 8
br label %88
88: ; preds = %84
%89 = load i32, ptr %8, align 4
%90 = icmp ne i32 %89, 0
%91 = xor i1 %90, true
br i1 %91, label %23, label %92, !llvm.loop !6
92: ; preds = %88
%93 = load ptr, ptr %11, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load ptr, ptr %11, align 8
%97 = call i32 @free(ptr noundef %96)
store ptr null, ptr %11, align 8
br label %99
98: ; preds = %92
br label %99
99: ; preds = %98, %95
%100 = phi ptr [ null, %95 ], [ null, %98 ]
store ptr null, ptr %4, align 8
br label %101
101: ; preds = %99, %74
%102 = load ptr, ptr %4, align 8
ret ptr %102
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @util_strsav(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @MMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @util_tilde_expand(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @check_file(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpna9rl3tg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_file_search(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %19, label %15
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %3
store ptr @.str.1, ptr %6, align 8
br label %20
20: ; preds = %19, %15
%21 = load ptr, ptr %6, align 8
%22 = call ptr @util_strsav(ptr noundef %21)
store ptr %22, ptr %6, align 8
store ptr %22, ptr %11, align 8
store i32 0, ptr %8, align 4
br label %23
23: ; preds = %88, %20
%24 = load ptr, ptr %6, align 8
%25 = call ptr @strchr(ptr noundef %24, i8 noundef signext 58)
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %12, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = load ptr, ptr %12, align 8
store i8 0, ptr %29, align 1
br label %31
30: ; preds = %23
store i32 1, ptr %8, align 4
br label %31
31: ; preds = %30, %28
%32 = load ptr, ptr %6, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str.1)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr %5, align 8
%37 = call ptr @util_strsav(ptr noundef %36)
store ptr %37, ptr %9, align 8
br label %52
38: ; preds = %31
%39 = load ptr, ptr %6, align 8
%40 = call i64 @strlen(ptr noundef %39)
%41 = load ptr, ptr %5, align 8
%42 = call i64 @strlen(ptr noundef %41)
%43 = add nsw i64 %40, %42
%44 = add nsw i64 %43, 4
%45 = mul nsw i64 1, %44
%46 = call i64 @MMalloc(i64 noundef %45)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %9, align 8
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %6, align 8
%50 = load ptr, ptr %5, align 8
%51 = call i32 @sprintf(ptr noundef %48, ptr noundef @.str.2, ptr noundef %49, ptr noundef %50)
br label %52
52: ; preds = %38, %35
%53 = load ptr, ptr %9, align 8
%54 = call ptr @util_tilde_expand(ptr noundef %53)
store ptr %54, ptr %10, align 8
%55 = load ptr, ptr %9, align 8
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = load ptr, ptr %9, align 8
%59 = call i32 @free(ptr noundef %58)
store ptr null, ptr %9, align 8
br label %61
60: ; preds = %52
br label %61
61: ; preds = %60, %57
%62 = phi ptr [ null, %57 ], [ null, %60 ]
%63 = load ptr, ptr %10, align 8
%64 = load ptr, ptr %7, align 8
%65 = call i64 @check_file(ptr noundef %63, ptr noundef %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %77
67: ; preds = %61
%68 = load ptr, ptr %11, align 8
%69 = icmp ne ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load ptr, ptr %11, align 8
%72 = call i32 @free(ptr noundef %71)
store ptr null, ptr %11, align 8
br label %74
73: ; preds = %67
br label %74
74: ; preds = %73, %70
%75 = phi ptr [ null, %70 ], [ null, %73 ]
%76 = load ptr, ptr %10, align 8
store ptr %76, ptr %4, align 8
br label %101
77: ; preds = %61
%78 = load ptr, ptr %10, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = load ptr, ptr %10, align 8
%82 = call i32 @free(ptr noundef %81)
store ptr null, ptr %10, align 8
br label %84
83: ; preds = %77
br label %84
84: ; preds = %83, %80
%85 = phi ptr [ null, %80 ], [ null, %83 ]
%86 = load ptr, ptr %12, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %12, align 8
store ptr %87, ptr %6, align 8
br label %88
88: ; preds = %84
%89 = load i32, ptr %8, align 4
%90 = icmp ne i32 %89, 0
%91 = xor i1 %90, true
br i1 %91, label %23, label %92, !llvm.loop !6
92: ; preds = %88
%93 = load ptr, ptr %11, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load ptr, ptr %11, align 8
%97 = call i32 @free(ptr noundef %96)
store ptr null, ptr %11, align 8
br label %99
98: ; preds = %92
br label %99
99: ; preds = %98, %95
%100 = phi ptr [ null, %95 ], [ null, %98 ]
store ptr null, ptr %4, align 8
br label %101
101: ; preds = %99, %74
%102 = load ptr, ptr %4, align 8
ret ptr %102
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @util_strsav(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @MMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @util_tilde_expand(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @check_file(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxdl82qiq.c'
source_filename = "/tmp/tmpxdl82qiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c",\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_empty_priority() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(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/tmpxdl82qiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c",\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_empty_priority() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(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/tmps3u0m12z.c'
source_filename = "/tmp/tmps3u0m12z.c"
target datalayout = "e-m:e-p270: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, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Message to server: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"quit\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"sending: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"waiting for reply...\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"server sayz: %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 %struct.sockaddr_in, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
%10 = alloca { i64, i32 }, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%12 = call i32 @bzero(ptr noundef %11, i32 noundef 256)
%13 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%14 = call i32 @bzero(ptr noundef %13, i32 noundef 256)
%15 = call i32 (...) @create_socket()
store i32 %15, ptr %6, align 4
%16 = call i32 @bzero(ptr noundef %7, i32 noundef 12)
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @inet_addr(ptr noundef %19)
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
%22 = getelementptr inbounds %struct.TYPE_2__, ptr %21, i32 0, i32 0
store i32 %20, ptr %22, align 4
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %23, ptr %24, align 4
%25 = call i32 @htons(i32 noundef 4711)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %25, ptr %26, align 4
%27 = load i32, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %7, i64 12, i1 false)
%28 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 0
%29 = load i64, ptr %28, align 4
%30 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 1
%31 = load i32, ptr %30, align 4
%32 = call i32 @connect_to_socket(i32 noundef %27, i64 %29, i32 %31)
br label %33
33: ; preds = %2, %44
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%35 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%36 = call i32 @bzero(ptr noundef %35, i32 noundef 256)
%37 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%38 = load i32, ptr @stdin, align 4
%39 = call i32 @fgets(ptr noundef %37, i32 noundef 256, i32 noundef %38)
%40 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%41 = call i64 @strcmp(ptr noundef %40, ptr noundef @.str.1)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %33
br label %58
44: ; preds = %33
%45 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %45)
%47 = load i32, ptr %6, align 4
%48 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%49 = call i32 @send_message(i32 noundef %47, ptr noundef %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%51 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%52 = call i32 @bzero(ptr noundef %51, i32 noundef 256)
%53 = load i32, ptr %6, align 4
%54 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%55 = call i32 @get_message(i32 noundef %53, ptr noundef %54)
%56 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %56)
br label %33
58: ; preds = %43
%59 = load i32, ptr %6, align 4
%60 = call i32 @close(i32 noundef %59)
ret i32 0
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @create_socket(...) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect_to_socket(i32 noundef, i64, i32) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @send_message(i32 noundef, ptr noundef) #1
declare i32 @get_message(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3u0m12z.c"
target datalayout = "e-m:e-p270: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, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Message to server: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"quit\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"sending: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"waiting for reply...\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"server sayz: %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 %struct.sockaddr_in, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
%10 = alloca { i64, i32 }, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%12 = call i32 @bzero(ptr noundef %11, i32 noundef 256)
%13 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%14 = call i32 @bzero(ptr noundef %13, i32 noundef 256)
%15 = call i32 (...) @create_socket()
store i32 %15, ptr %6, align 4
%16 = call i32 @bzero(ptr noundef %7, i32 noundef 12)
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 @inet_addr(ptr noundef %19)
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
%22 = getelementptr inbounds %struct.TYPE_2__, ptr %21, i32 0, i32 0
store i32 %20, ptr %22, align 4
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %23, ptr %24, align 4
%25 = call i32 @htons(i32 noundef 4711)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %25, ptr %26, align 4
%27 = load i32, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %7, i64 12, i1 false)
%28 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 0
%29 = load i64, ptr %28, align 4
%30 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 1
%31 = load i32, ptr %30, align 4
%32 = call i32 @connect_to_socket(i32 noundef %27, i64 %29, i32 %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%34 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @bzero(ptr noundef %34, i32 noundef 256)
%36 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%37 = load i32, ptr @stdin, align 4
%38 = call i32 @fgets(ptr noundef %36, i32 noundef 256, i32 noundef %37)
%39 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.1)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %.lr.ph
.lr.ph: ; preds = %2
br label %43
._crit_edge: ; preds = %43
br label %42
42: ; preds = %._crit_edge, %2
br label %63
43: ; preds = %.lr.ph, %43
%44 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %44)
%46 = load i32, ptr %6, align 4
%47 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%48 = call i32 @send_message(i32 noundef %46, ptr noundef %47)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%50 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%51 = call i32 @bzero(ptr noundef %50, i32 noundef 256)
%52 = load i32, ptr %6, align 4
%53 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%54 = call i32 @get_message(i32 noundef %52, ptr noundef %53)
%55 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%58 = call i32 @bzero(ptr noundef %34, i32 noundef 256)
%59 = load i32, ptr @stdin, align 4
%60 = call i32 @fgets(ptr noundef %36, i32 noundef 256, i32 noundef %59)
%61 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.1)
%62 = icmp eq i64 %61, 0
br i1 %62, label %._crit_edge, label %43
63: ; preds = %42
%64 = load i32, ptr %6, align 4
%65 = call i32 @close(i32 noundef %64)
ret i32 0
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @create_socket(...) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect_to_socket(i32 noundef, i64, i32) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @send_message(i32 noundef, ptr noundef) #1
declare i32 @get_message(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg7470rmi.c'
source_filename = "/tmp/tmpg7470rmi.c"
target datalayout = "e-m:e-p270: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/tmpg7470rmi.c"
target datalayout = "e-m:e-p270: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/tmp2f70zh8c.c'
source_filename = "/tmp/tmp2f70zh8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Z_NO_FLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @streaming_commons_call_deflate_noflush(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 @Z_NO_FLUSH, align 4
%5 = call i32 @deflate(ptr noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @deflate(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/tmp2f70zh8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Z_NO_FLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @streaming_commons_call_deflate_noflush(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 @Z_NO_FLUSH, align 4
%5 = call i32 @deflate(ptr noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @deflate(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/tmpu3bwz4xg.c'
source_filename = "/tmp/tmpu3bwz4xg.c"
target datalayout = "e-m:e-p270: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/tmpu3bwz4xg.c"
target datalayout = "e-m:e-p270: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/tmpfafh332u.c'
source_filename = "/tmp/tmpfafh332u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"usage: cpnt <sourcefile> <destfile>\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c" sorry, only one file at a time yet.\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"cpnt: could not allocate buffer\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"cpnt: %s: %s\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [31 x i8] c"cpnt: error while reading: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"cpnt: error while writing: %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %11, align 4
store i32 0, ptr %12, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %101
18: ; preds = %2
%19 = call ptr @malloc(i32 noundef 16384)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %24, label %22
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %101
24: ; preds = %18
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr @O_RDONLY, align 4
%29 = call i32 (ptr, i32, ...) @open(ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %40
32: ; preds = %24
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %12, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %12, align 4
%38 = call ptr @strerror(i32 noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %36, ptr noundef %38)
store i32 1, ptr %3, align 4
br label %101
40: ; preds = %24
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @O_WRONLY, align 4
%45 = load i32, ptr @O_CREAT, align 4
%46 = or i32 %44, %45
%47 = call i32 (ptr, i32, ...) @open(ptr noundef %43, i32 noundef %46, i32 noundef 438)
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %58
50: ; preds = %40
%51 = load i32, ptr @errno, align 4
store i32 %51, ptr %12, align 4
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %12, align 4
%56 = call ptr @strerror(i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %54, ptr noundef %56)
store i32 1, ptr %3, align 4
br label %101
58: ; preds = %40
br label %59
59: ; preds = %89, %58
%60 = load i32, ptr %11, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %90
62: ; preds = %59
%63 = load i32, ptr %7, align 4
%64 = load ptr, ptr %6, align 8
%65 = call i32 @read(i32 noundef %63, ptr noundef %64, i32 noundef 16384)
store i32 %65, ptr %9, align 4
%66 = load i32, ptr %9, align 4
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %62
%69 = load i32, ptr @errno, align 4
store i32 %69, ptr %12, align 4
%70 = load i32, ptr %12, align 4
%71 = call ptr @strerror(i32 noundef %70)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %71)
store i32 0, ptr %11, align 4
br label %90
73: ; preds = %62
%74 = load i32, ptr %9, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 0, ptr %11, align 4
br label %77
77: ; preds = %76, %73
%78 = load i32, ptr %8, align 4
%79 = load ptr, ptr %6, align 8
%80 = load i32, ptr %9, align 4
%81 = call i32 @write(i32 noundef %78, ptr noundef %79, i32 noundef %80)
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %10, align 4
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %89
84: ; preds = %77
%85 = load i32, ptr @errno, align 4
store i32 %85, ptr %12, align 4
%86 = load i32, ptr %12, align 4
%87 = call ptr @strerror(i32 noundef %86)
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %87)
store i32 0, ptr %11, align 4
br label %89
89: ; preds = %84, %77
br label %59, !llvm.loop !6
90: ; preds = %68, %59
%91 = load i32, ptr %7, align 4
%92 = call i32 @close(i32 noundef %91)
%93 = load i32, ptr %8, align 4
%94 = call i32 @close(i32 noundef %93)
%95 = load ptr, ptr %6, align 8
%96 = call i32 @free(ptr noundef %95)
%97 = load i32, ptr %12, align 4
%98 = icmp ne i32 %97, 0
%99 = zext i1 %98 to i64
%100 = select i1 %98, i32 1, i32 0
store i32 %100, ptr %3, align 4
br label %101
101: ; preds = %90, %50, %32, %22, %15
%102 = load i32, ptr %3, align 4
ret i32 %102
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfafh332u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"usage: cpnt <sourcefile> <destfile>\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c" sorry, only one file at a time yet.\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"cpnt: could not allocate buffer\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"cpnt: %s: %s\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [31 x i8] c"cpnt: error while reading: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"cpnt: error while writing: %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 ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %11, align 4
store i32 0, ptr %12, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %102
18: ; preds = %2
%19 = call ptr @malloc(i32 noundef 16384)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %24, label %22
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %102
24: ; preds = %18
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr @O_RDONLY, align 4
%29 = call i32 (ptr, i32, ...) @open(ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %40
32: ; preds = %24
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %12, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %12, align 4
%38 = call ptr @strerror(i32 noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %36, ptr noundef %38)
store i32 1, ptr %3, align 4
br label %102
40: ; preds = %24
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @O_WRONLY, align 4
%45 = load i32, ptr @O_CREAT, align 4
%46 = or i32 %44, %45
%47 = call i32 (ptr, i32, ...) @open(ptr noundef %43, i32 noundef %46, i32 noundef 438)
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %58
50: ; preds = %40
%51 = load i32, ptr @errno, align 4
store i32 %51, ptr %12, align 4
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds ptr, ptr %52, i64 2
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %12, align 4
%56 = call ptr @strerror(i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %54, ptr noundef %56)
store i32 1, ptr %3, align 4
br label %102
58: ; preds = %40
%59 = load i32, ptr %11, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %58
br label %61
61: ; preds = %.lr.ph, %88
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %6, align 8
%64 = call i32 @read(i32 noundef %62, ptr noundef %63, i32 noundef 16384)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %61
%68 = load i32, ptr @errno, align 4
store i32 %68, ptr %12, align 4
%69 = load i32, ptr %12, align 4
%70 = call ptr @strerror(i32 noundef %69)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %70)
store i32 0, ptr %11, align 4
br label %91
72: ; preds = %61
%73 = load i32, ptr %9, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %72
store i32 0, ptr %11, align 4
br label %76
76: ; preds = %75, %72
%77 = load i32, ptr %8, align 4
%78 = load ptr, ptr %6, align 8
%79 = load i32, ptr %9, align 4
%80 = call i32 @write(i32 noundef %77, ptr noundef %78, i32 noundef %79)
store i32 %80, ptr %10, align 4
%81 = load i32, ptr %10, align 4
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %88
83: ; preds = %76
%84 = load i32, ptr @errno, align 4
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = call ptr @strerror(i32 noundef %85)
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %86)
store i32 0, ptr %11, align 4
br label %88
88: ; preds = %83, %76
%89 = load i32, ptr %11, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %61, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %88
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %58
br label %91
91: ; preds = %.loopexit, %67
%92 = load i32, ptr %7, align 4
%93 = call i32 @close(i32 noundef %92)
%94 = load i32, ptr %8, align 4
%95 = call i32 @close(i32 noundef %94)
%96 = load ptr, ptr %6, align 8
%97 = call i32 @free(ptr noundef %96)
%98 = load i32, ptr %12, align 4
%99 = icmp ne i32 %98, 0
%100 = zext i1 %99 to i64
%101 = select i1 %99, i32 1, i32 0
store i32 %101, ptr %3, align 4
br label %102
102: ; preds = %91, %50, %32, %22, %15
%103 = load i32, ptr %3, align 4
ret i32 %103
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8pde7ys_.c'
source_filename = "/tmp/tmp8pde7ys_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"B1950\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"B%7.2f\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c".00\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"galactic\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"ecliptic\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"J2000\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"J%7.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wcscstr(ptr noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%10 = load double, ptr %8, align 8
%11 = fcmp oeq double %10, 0.000000e+00
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = load double, ptr %7, align 8
store double %13, ptr %8, align 8
br label %14
14: ; preds = %12, %4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %42
17: ; preds = %14
%18 = load double, ptr %7, align 8
%19 = fcmp ogt double %18, 0.000000e+00
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load double, ptr %7, align 8
%22 = fcmp oeq double %21, 2.000000e+03
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %6, align 4
br label %29
24: ; preds = %20
%25 = load double, ptr %7, align 8
%26 = fcmp oeq double %25, 1.950000e+03
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 2, ptr %6, align 4
br label %28
28: ; preds = %27, %24
br label %29
29: ; preds = %28, %23
br label %41
30: ; preds = %17
%31 = load double, ptr %8, align 8
%32 = fcmp ogt double %31, 0.000000e+00
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load double, ptr %8, align 8
%35 = fcmp ogt double %34, 1.980000e+03
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, ptr %6, align 4
store double 2.000000e+03, ptr %7, align 8
br label %38
37: ; preds = %33
store i32 2, ptr %6, align 4
store double 1.950000e+03, ptr %7, align 8
br label %38
38: ; preds = %37, %36
br label %40
39: ; preds = %30
store i32 1, ptr %6, align 4
br label %40
40: ; preds = %39, %38
br label %41
41: ; preds = %40, %29
br label %42
42: ; preds = %41, %14
%43 = load i32, ptr %6, align 4
%44 = icmp eq i32 %43, 2
br i1 %44, label %45, label %70
45: ; preds = %42
%46 = load double, ptr %8, align 8
%47 = fcmp oeq double %46, 1.950000e+03
br i1 %47, label %51, label %48
48: ; preds = %45
%49 = load double, ptr %8, align 8
%50 = fcmp oeq double %49, 0.000000e+00
br i1 %50, label %51, label %54
51: ; preds = %48, %45
%52 = load ptr, ptr %5, align 8
%53 = call i32 @strcpy(ptr noundef %52, ptr noundef @.str)
br label %58
54: ; preds = %48
%55 = load ptr, ptr %5, align 8
%56 = load double, ptr %7, align 8
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.1, double noundef %56)
br label %58
58: ; preds = %54, %51
%59 = load ptr, ptr %5, align 8
%60 = call ptr @strstr(ptr noundef %59, ptr noundef @.str.2)
store ptr %60, ptr %9, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = load ptr, ptr %9, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
store i8 0, ptr %64, align 1
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 1
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 2
store i8 0, ptr %68, align 1
br label %69
69: ; preds = %62, %58
br label %113
70: ; preds = %42
%71 = load i32, ptr %6, align 4
%72 = icmp eq i32 %71, 3
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load ptr, ptr %5, align 8
%75 = call i32 @strcpy(ptr noundef %74, ptr noundef @.str.3)
br label %112
76: ; preds = %70
%77 = load i32, ptr %6, align 4
%78 = icmp eq i32 %77, 4
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load ptr, ptr %5, align 8
%81 = call i32 @strcpy(ptr noundef %80, ptr noundef @.str.4)
br label %111
82: ; preds = %76
%83 = load i32, ptr %6, align 4
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %110
85: ; preds = %82
%86 = load double, ptr %8, align 8
%87 = fcmp oeq double %86, 2.000000e+03
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = load double, ptr %8, align 8
%90 = fcmp oeq double %89, 0.000000e+00
br i1 %90, label %91, label %94
91: ; preds = %88, %85
%92 = load ptr, ptr %5, align 8
%93 = call i32 @strcpy(ptr noundef %92, ptr noundef @.str.5)
br label %98
94: ; preds = %88
%95 = load ptr, ptr %5, align 8
%96 = load double, ptr %7, align 8
%97 = call i32 @sprintf(ptr noundef %95, ptr noundef @.str.6, double noundef %96)
br label %98
98: ; preds = %94, %91
%99 = load ptr, ptr %5, align 8
%100 = call ptr @strstr(ptr noundef %99, ptr noundef @.str.2)
store ptr %100, ptr %9, align 8
%101 = icmp ne ptr %100, null
br i1 %101, label %102, label %109
102: ; preds = %98
%103 = load ptr, ptr %9, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 0
store i8 0, ptr %104, align 1
%105 = load ptr, ptr %9, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
store i8 0, ptr %106, align 1
%107 = load ptr, ptr %9, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 2
store i8 0, ptr %108, align 1
br label %109
109: ; preds = %102, %98
br label %110
110: ; preds = %109, %82
br label %111
111: ; preds = %110, %79
br label %112
112: ; preds = %111, %73
br label %113
113: ; preds = %112, %69
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef) #1
declare ptr @strstr(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/tmp8pde7ys_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"B1950\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"B%7.2f\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c".00\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"galactic\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"ecliptic\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"J2000\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"J%7.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wcscstr(ptr noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%10 = load double, ptr %8, align 8
%11 = fcmp oeq double %10, 0.000000e+00
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = load double, ptr %7, align 8
store double %13, ptr %8, align 8
br label %14
14: ; preds = %12, %4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %42
17: ; preds = %14
%18 = load double, ptr %7, align 8
%19 = fcmp ogt double %18, 0.000000e+00
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load double, ptr %7, align 8
%22 = fcmp oeq double %21, 2.000000e+03
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %6, align 4
br label %29
24: ; preds = %20
%25 = load double, ptr %7, align 8
%26 = fcmp oeq double %25, 1.950000e+03
br i1 %26, label %27, label %28
27: ; preds = %24
store i32 2, ptr %6, align 4
br label %28
28: ; preds = %27, %24
br label %29
29: ; preds = %28, %23
br label %41
30: ; preds = %17
%31 = load double, ptr %8, align 8
%32 = fcmp ogt double %31, 0.000000e+00
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load double, ptr %8, align 8
%35 = fcmp ogt double %34, 1.980000e+03
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, ptr %6, align 4
store double 2.000000e+03, ptr %7, align 8
br label %38
37: ; preds = %33
store i32 2, ptr %6, align 4
store double 1.950000e+03, ptr %7, align 8
br label %38
38: ; preds = %37, %36
br label %40
39: ; preds = %30
store i32 1, ptr %6, align 4
br label %40
40: ; preds = %39, %38
br label %41
41: ; preds = %40, %29
br label %42
42: ; preds = %41, %14
%43 = load i32, ptr %6, align 4
%44 = icmp eq i32 %43, 2
br i1 %44, label %45, label %70
45: ; preds = %42
%46 = load double, ptr %8, align 8
%47 = fcmp oeq double %46, 1.950000e+03
br i1 %47, label %51, label %48
48: ; preds = %45
%49 = load double, ptr %8, align 8
%50 = fcmp oeq double %49, 0.000000e+00
br i1 %50, label %51, label %54
51: ; preds = %48, %45
%52 = load ptr, ptr %5, align 8
%53 = call i32 @strcpy(ptr noundef %52, ptr noundef @.str)
br label %58
54: ; preds = %48
%55 = load ptr, ptr %5, align 8
%56 = load double, ptr %7, align 8
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.1, double noundef %56)
br label %58
58: ; preds = %54, %51
%59 = load ptr, ptr %5, align 8
%60 = call ptr @strstr(ptr noundef %59, ptr noundef @.str.2)
store ptr %60, ptr %9, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = load ptr, ptr %9, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
store i8 0, ptr %64, align 1
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 1
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 2
store i8 0, ptr %68, align 1
br label %69
69: ; preds = %62, %58
br label %113
70: ; preds = %42
%71 = load i32, ptr %6, align 4
%72 = icmp eq i32 %71, 3
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load ptr, ptr %5, align 8
%75 = call i32 @strcpy(ptr noundef %74, ptr noundef @.str.3)
br label %112
76: ; preds = %70
%77 = load i32, ptr %6, align 4
%78 = icmp eq i32 %77, 4
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load ptr, ptr %5, align 8
%81 = call i32 @strcpy(ptr noundef %80, ptr noundef @.str.4)
br label %111
82: ; preds = %76
%83 = load i32, ptr %6, align 4
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %110
85: ; preds = %82
%86 = load double, ptr %8, align 8
%87 = fcmp oeq double %86, 2.000000e+03
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = load double, ptr %8, align 8
%90 = fcmp oeq double %89, 0.000000e+00
br i1 %90, label %91, label %94
91: ; preds = %88, %85
%92 = load ptr, ptr %5, align 8
%93 = call i32 @strcpy(ptr noundef %92, ptr noundef @.str.5)
br label %98
94: ; preds = %88
%95 = load ptr, ptr %5, align 8
%96 = load double, ptr %7, align 8
%97 = call i32 @sprintf(ptr noundef %95, ptr noundef @.str.6, double noundef %96)
br label %98
98: ; preds = %94, %91
%99 = load ptr, ptr %5, align 8
%100 = call ptr @strstr(ptr noundef %99, ptr noundef @.str.2)
store ptr %100, ptr %9, align 8
%101 = icmp ne ptr %100, null
br i1 %101, label %102, label %109
102: ; preds = %98
%103 = load ptr, ptr %9, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 0
store i8 0, ptr %104, align 1
%105 = load ptr, ptr %9, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
store i8 0, ptr %106, align 1
%107 = load ptr, ptr %9, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 2
store i8 0, ptr %108, align 1
br label %109
109: ; preds = %102, %98
br label %110
110: ; preds = %109, %82
br label %111
111: ; preds = %110, %79
br label %112
112: ; preds = %111, %73
br label %113
113: ; preds = %112, %69
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef) #1
declare ptr @strstr(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/tmp7g24p0l8.c'
source_filename = "/tmp/tmp7g24p0l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_words_1(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 @reverse_words_aux(ptr noundef %3, i32 noundef 0)
ret void
}
declare i32 @reverse_words_aux(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/tmp7g24p0l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_words_1(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 @reverse_words_aux(ptr noundef %3, i32 noundef 0)
ret void
}
declare i32 @reverse_words_aux(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/tmprm86mdew.c'
source_filename = "/tmp/tmprm86mdew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [91 x i8] c"Quem foi melhor na escola?\0ADigite o nome de duas pessoas que terao suas notas comparadas:\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Digite agora as duas notas do %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"O aluno %s teve media superior a do aluno %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [21 x i8], align 16
%9 = alloca [21 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8, ptr noundef %9)
%12 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %12)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %2, ptr noundef %3)
%15 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %4, ptr noundef %5)
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
%21 = sdiv i32 %20, 2
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %22, %23
%25 = sdiv i32 %24, 2
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %0
%30 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%31 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %30, ptr noundef %31)
br label %37
33: ; preds = %0
%34 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%35 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %34, ptr noundef %35)
br label %37
37: ; preds = %33, %29
ret i32 0
}
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprm86mdew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [91 x i8] c"Quem foi melhor na escola?\0ADigite o nome de duas pessoas que terao suas notas comparadas:\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Digite agora as duas notas do %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.4 = private unnamed_addr constant [46 x i8] c"O aluno %s teve media superior a do aluno %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [21 x i8], align 16
%9 = alloca [21 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %8, ptr noundef %9)
%12 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %12)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %2, ptr noundef %3)
%15 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %4, ptr noundef %5)
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
%21 = sdiv i32 %20, 2
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %22, %23
%25 = sdiv i32 %24, 2
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %0
%30 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%31 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %30, ptr noundef %31)
br label %37
33: ; preds = %0
%34 = getelementptr inbounds [21 x i8], ptr %9, i64 0, i64 0
%35 = getelementptr inbounds [21 x i8], ptr %8, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %34, ptr noundef %35)
br label %37
37: ; preds = %33, %29
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmpg0bibeaj.c'
source_filename = "/tmp/tmpg0bibeaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GenWriteIdent(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 16, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @GenPreIdentAccess(i32 noundef %8)
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12, %3
store i32 14, ptr %7, align 4
br label %24
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp eq i32 %17, -2
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %23
22: ; preds = %19, %16
store i32 15, ptr %7, align 4
br label %23
23: ; preds = %22, %19
br label %24
24: ; preds = %23, %15
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @GenPrintInstr2Operands(i32 noundef %25, i32 noundef 0, i32 noundef %26, i32 noundef 0, i32 noundef 131, i32 noundef %27)
%29 = call i32 (...) @GenPostIdentAccess()
ret void
}
declare i32 @GenPreIdentAccess(i32 noundef) #1
declare i32 @GenPrintInstr2Operands(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GenPostIdentAccess(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg0bibeaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GenWriteIdent(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 16, ptr %7, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @GenPreIdentAccess(i32 noundef %8)
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12, %3
store i32 14, ptr %7, align 4
br label %24
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = icmp eq i32 %17, -2
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %23
22: ; preds = %19, %16
store i32 15, ptr %7, align 4
br label %23
23: ; preds = %22, %19
br label %24
24: ; preds = %23, %15
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @GenPrintInstr2Operands(i32 noundef %25, i32 noundef 0, i32 noundef %26, i32 noundef 0, i32 noundef 131, i32 noundef %27)
%29 = call i32 (...) @GenPostIdentAccess()
ret void
}
declare i32 @GenPreIdentAccess(i32 noundef) #1
declare i32 @GenPrintInstr2Operands(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @GenPostIdentAccess(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp63efoz1g.c'
source_filename = "/tmp/tmp63efoz1g.c"
target datalayout = "e-m:e-p270: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/tmp63efoz1g.c"
target datalayout = "e-m:e-p270: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/tmp1pnbv8f6.c'
source_filename = "/tmp/tmp1pnbv8f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @X509_VERIFY_PARAM_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @x509_verify_param_zero(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @OPENSSL_free(ptr noundef %5)
ret void
}
declare i32 @x509_verify_param_zero(ptr noundef) #1
declare i32 @OPENSSL_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/tmp1pnbv8f6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @X509_VERIFY_PARAM_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @x509_verify_param_zero(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @OPENSSL_free(ptr noundef %5)
ret void
}
declare i32 @x509_verify_param_zero(ptr noundef) #1
declare i32 @OPENSSL_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/tmpwtehvuvn.c'
source_filename = "/tmp/tmpwtehvuvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @input(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @malloc(i32 noundef 80000)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 10000, i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %10, i64 %14
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwtehvuvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @input(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @malloc(i32 noundef 80000)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @fgets(ptr noundef %7, i32 noundef 10000, i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %10, i64 %14
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb5awv___.c'
source_filename = "/tmp/tmpb5awv___.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_for_control_characters_cstr(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 ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @check_for_control_characters(ptr noundef %3, i32 noundef %5)
ret i32 %6
}
declare i32 @check_for_control_characters(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb5awv___.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_for_control_characters_cstr(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 ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @check_for_control_characters(ptr noundef %3, i32 noundef %5)
ret i32 %6
}
declare i32 @check_for_control_characters(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpue48g3uk.c'
source_filename = "/tmp/tmpue48g3uk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B115200 = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB0\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"erase\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"flash\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"exec\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"stderr open '%s'\0A\00", align 1
@TIOCM_DTR = dso_local global i32 0, align 4
@TIOCMBIS = dso_local global i32 0, align 4
@TIOCMBIC = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [14 x i8] c"sync failure\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [18 x i8] c"cannot read '%s'\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"erasing flash...\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"erase failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"sending %d bytes...\0A\00", align 1
@.str.10 = private unnamed_addr constant [14 x i8] c"write failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"done\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"flash erased\0A\00", align 1
@.str.13 = 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 i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [32768 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = 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
%18 = load i32, ptr @B115200, align 4
store i32 %18, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (...) @usage()
store i32 %22, ptr %3, align 4
br label %223
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strcmp(ptr noundef %26, ptr noundef @.str.1)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %23
store i32 1, ptr %12, align 4
br label %48
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strcmp(ptr noundef %33, ptr noundef @.str.2)
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %30
store i32 1, ptr %12, align 4
store i32 1, ptr %13, align 4
store i32 134217728, ptr %15, align 4
br label %47
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str.3)
%42 = icmp ne i32 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %37
store i32 1, ptr %13, align 4
store i32 1, ptr %14, align 4
store i32 536875008, ptr %15, align 4
br label %46
44: ; preds = %37
%45 = call i32 (...) @usage()
store i32 %45, ptr %3, align 4
br label %223
46: ; preds = %43
br label %47
47: ; preds = %46, %36
br label %48
48: ; preds = %47, %29
%49 = load i32, ptr %13, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load i32, ptr %4, align 4
%53 = icmp ne i32 %52, 3
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (...) @usage()
store i32 %55, ptr %3, align 4
br label %223
56: ; preds = %51, %48
%57 = load ptr, ptr %7, align 8
%58 = load i32, ptr %6, align 4
%59 = call i32 @openserial(ptr noundef %57, i32 noundef %58)
store i32 %59, ptr %9, align 4
%60 = load i32, ptr %9, align 4
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %56
%63 = load i32, ptr @stderr, align 4
%64 = load ptr, ptr %7, align 8
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.4, ptr noundef %64)
store i32 -1, ptr %3, align 4
br label %223
66: ; preds = %56
%67 = load i32, ptr @TIOCM_DTR, align 4
store i32 %67, ptr %10, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr @TIOCMBIS, align 4
%70 = call i32 @ioctl(i32 noundef %68, i32 noundef %69, ptr noundef %10)
%71 = call i32 @usleep(i32 noundef 2500)
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr @TIOCMBIC, align 4
%74 = call i32 @ioctl(i32 noundef %72, i32 noundef %73, ptr noundef %10)
%75 = call i32 @usleep(i32 noundef 2500)
store i32 0, ptr %10, align 4
br label %76
76: ; preds = %99, %66
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %77, 5
br i1 %78, label %79, label %102
79: ; preds = %76
store i8 127, ptr %16, align 1
%80 = load i32, ptr %9, align 4
%81 = call i64 @write(i32 noundef %80, ptr noundef %16, i32 noundef 1)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %79
br label %84
84: ; preds = %83, %79
%85 = load i32, ptr %9, align 4
%86 = call i32 @read(i32 noundef %85, ptr noundef %8, i32 noundef 1)
%87 = icmp ne i32 %86, 1
br i1 %87, label %88, label %89
88: ; preds = %84
br label %99
89: ; preds = %84
%90 = load i8, ptr %8, align 1
%91 = zext i8 %90 to i32
%92 = icmp eq i32 %91, 121
br i1 %92, label %97, label %93
93: ; preds = %89
%94 = load i8, ptr %8, align 1
%95 = zext i8 %94 to i32
%96 = icmp eq i32 %95, 31
br i1 %96, label %97, label %98
97: ; preds = %93, %89
br label %102
98: ; preds = %93
br label %99
99: ; preds = %98, %88
%100 = load i32, ptr %10, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %10, align 4
br label %76, !llvm.loop !6
102: ; preds = %97, %76
%103 = load i32, ptr %10, align 4
%104 = icmp eq i32 %103, 5
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, ptr @stderr, align 4
%107 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %223
108: ; preds = %102
%109 = load i32, ptr %13, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %174
111: ; preds = %108
%112 = load ptr, ptr %5, align 8
%113 = getelementptr inbounds ptr, ptr %112, i64 2
%114 = load ptr, ptr %113, align 8
%115 = load i32, ptr @O_RDONLY, align 4
%116 = call i32 @open(ptr noundef %114, i32 noundef %115)
store i32 %116, ptr %17, align 4
%117 = load i32, ptr %17, align 4
%118 = getelementptr inbounds [32768 x i8], ptr %11, i64 0, i64 0
%119 = call i32 @read(i32 noundef %117, ptr noundef %118, i32 noundef 32768)
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %17, align 4
%121 = call i32 @close(i32 noundef %120)
%122 = load i32, ptr %17, align 4
%123 = icmp slt i32 %122, 0
br i1 %123, label %127, label %124
124: ; preds = %111
%125 = load i32, ptr %10, align 4
%126 = icmp sle i32 %125, 0
br i1 %126, label %127, label %133
127: ; preds = %124, %111
%128 = load i32, ptr @stderr, align 4
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds ptr, ptr %129, i64 2
%131 = load ptr, ptr %130, align 8
%132 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %128, ptr noundef @.str.6, ptr noundef %131)
store i32 -1, ptr %3, align 4
br label %223
133: ; preds = %124
%134 = load i32, ptr %10, align 4
%135 = srem i32 %134, 4
%136 = load i32, ptr %10, align 4
%137 = add nsw i32 %136, %135
store i32 %137, ptr %10, align 4
%138 = load i32, ptr %12, align 4
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %150
140: ; preds = %133
%141 = load i32, ptr @stderr, align 4
%142 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %141, ptr noundef @.str.7)
%143 = load i32, ptr %9, align 4
%144 = call i64 @eraseFlash(i32 noundef %143)
%145 = icmp ne i64 %144, 0
br i1 %145, label %146, label %149
146: ; preds = %140
%147 = load i32, ptr @stderr, align 4
%148 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %147, ptr noundef @.str.8)
store i32 -1, ptr %3, align 4
br label %223
149: ; preds = %140
br label %150
150: ; preds = %149, %133
%151 = load i32, ptr @stderr, align 4
%152 = load i32, ptr %10, align 4
%153 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %151, ptr noundef @.str.9, i32 noundef %152)
%154 = load i32, ptr %9, align 4
%155 = load i32, ptr %15, align 4
%156 = getelementptr inbounds [32768 x i8], ptr %11, i64 0, i64 0
%157 = load i32, ptr %10, align 4
%158 = call i64 @writeMemory(i32 noundef %154, i32 noundef %155, ptr noundef %156, i32 noundef %157)
%159 = icmp ne i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %150
%161 = load i32, ptr @stderr, align 4
%162 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %161, ptr noundef @.str.10)
store i32 -1, ptr %3, align 4
br label %223
163: ; preds = %150
%164 = load i32, ptr @stderr, align 4
%165 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %164, ptr noundef @.str.11)
%166 = load i32, ptr %14, align 4
%167 = icmp ne i32 %166, 0
br i1 %167, label %168, label %172
168: ; preds = %163
%169 = load i32, ptr %9, align 4
%170 = load i32, ptr %15, align 4
%171 = call i32 @jumpToAddress(i32 noundef %169, i32 noundef %170)
br label %173
172: ; preds = %163
store i32 0, ptr %3, align 4
br label %223
173: ; preds = %168
br label %188
174: ; preds = %108
%175 = load i32, ptr %12, align 4
%176 = icmp ne i32 %175, 0
br i1 %176, label %177, label %187
177: ; preds = %174
%178 = load i32, ptr %9, align 4
%179 = call i64 @eraseFlash(i32 noundef %178)
%180 = icmp ne i64 %179, 0
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = load i32, ptr @stderr, align 4
%183 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %182, ptr noundef @.str.8)
store i32 -1, ptr %3, align 4
br label %223
184: ; preds = %177
%185 = load i32, ptr @stderr, align 4
%186 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %185, ptr noundef @.str.12)
store i32 0, ptr %3, align 4
br label %223
187: ; preds = %174
br label %188
188: ; preds = %187, %173
br label %189
189: ; preds = %221, %188
%190 = load i32, ptr %9, align 4
%191 = call i32 @read(i32 noundef %190, ptr noundef %8, i32 noundef 1)
%192 = icmp eq i32 %191, 1
br i1 %192, label %193, label %221
193: ; preds = %189
%194 = load i8, ptr %8, align 1
%195 = zext i8 %194 to i32
%196 = icmp eq i32 %195, 27
br i1 %196, label %197, label %198
197: ; preds = %193
br label %222
198: ; preds = %193
%199 = load i8, ptr %8, align 1
%200 = zext i8 %199 to i32
%201 = icmp slt i32 %200, 32
br i1 %201, label %206, label %202
202: ; preds = %198
%203 = load i8, ptr %8, align 1
%204 = zext i8 %203 to i32
%205 = icmp sgt i32 %204, 127
br i1 %205, label %206, label %216
206: ; preds = %202, %198
%207 = load i8, ptr %8, align 1
%208 = zext i8 %207 to i32
%209 = icmp ne i32 %208, 10
br i1 %209, label %210, label %215
210: ; preds = %206
%211 = load i8, ptr %8, align 1
%212 = zext i8 %211 to i32
%213 = icmp ne i32 %212, 13
br i1 %213, label %214, label %215
214: ; preds = %210
store i8 46, ptr %8, align 1
br label %215
215: ; preds = %214, %210, %206
br label %216
216: ; preds = %215, %202
%217 = load i32, ptr @stderr, align 4
%218 = load i8, ptr %8, align 1
%219 = zext i8 %218 to i32
%220 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %217, ptr noundef @.str.13, i32 noundef %219)
br label %221
221: ; preds = %216, %189
br label %189
222: ; preds = %197
store i32 0, ptr %3, align 4
br label %223
223: ; preds = %222, %184, %181, %172, %160, %146, %127, %105, %62, %54, %44, %21
%224 = load i32, ptr %3, align 4
ret i32 %224
}
declare i32 @usage(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @openserial(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @eraseFlash(i32 noundef) #1
declare i64 @writeMemory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @jumpToAddress(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpue48g3uk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B115200 = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB0\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"erase\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"flash\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"exec\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"stderr open '%s'\0A\00", align 1
@TIOCM_DTR = dso_local global i32 0, align 4
@TIOCMBIS = dso_local global i32 0, align 4
@TIOCMBIC = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [14 x i8] c"sync failure\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [18 x i8] c"cannot read '%s'\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"erasing flash...\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"erase failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"sending %d bytes...\0A\00", align 1
@.str.10 = private unnamed_addr constant [14 x i8] c"write failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"done\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"flash erased\0A\00", align 1
@.str.13 = 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 i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [32768 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = 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
%18 = load i32, ptr @B115200, align 4
store i32 %18, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (...) @usage()
store i32 %22, ptr %3, align 4
br label %224
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @strcmp(ptr noundef %26, ptr noundef @.str.1)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %23
store i32 1, ptr %12, align 4
br label %48
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strcmp(ptr noundef %33, ptr noundef @.str.2)
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %30
store i32 1, ptr %12, align 4
store i32 1, ptr %13, align 4
store i32 134217728, ptr %15, align 4
br label %47
37: ; preds = %30
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str.3)
%42 = icmp ne i32 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %37
store i32 1, ptr %13, align 4
store i32 1, ptr %14, align 4
store i32 536875008, ptr %15, align 4
br label %46
44: ; preds = %37
%45 = call i32 (...) @usage()
store i32 %45, ptr %3, align 4
br label %224
46: ; preds = %43
br label %47
47: ; preds = %46, %36
br label %48
48: ; preds = %47, %29
%49 = load i32, ptr %13, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load i32, ptr %4, align 4
%53 = icmp ne i32 %52, 3
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (...) @usage()
store i32 %55, ptr %3, align 4
br label %224
56: ; preds = %51, %48
%57 = load ptr, ptr %7, align 8
%58 = load i32, ptr %6, align 4
%59 = call i32 @openserial(ptr noundef %57, i32 noundef %58)
store i32 %59, ptr %9, align 4
%60 = load i32, ptr %9, align 4
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %56
%63 = load i32, ptr @stderr, align 4
%64 = load ptr, ptr %7, align 8
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.4, ptr noundef %64)
store i32 -1, ptr %3, align 4
br label %224
66: ; preds = %56
%67 = load i32, ptr @TIOCM_DTR, align 4
store i32 %67, ptr %10, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr @TIOCMBIS, align 4
%70 = call i32 @ioctl(i32 noundef %68, i32 noundef %69, ptr noundef %10)
%71 = call i32 @usleep(i32 noundef 2500)
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr @TIOCMBIC, align 4
%74 = call i32 @ioctl(i32 noundef %72, i32 noundef %73, ptr noundef %10)
%75 = call i32 @usleep(i32 noundef 2500)
store i32 0, ptr %10, align 4
%76 = load i32, ptr %10, align 4
%77 = icmp slt i32 %76, 5
br i1 %77, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %66
br label %78
78: ; preds = %.lr.ph, %98
store i8 127, ptr %16, align 1
%79 = load i32, ptr %9, align 4
%80 = call i64 @write(i32 noundef %79, ptr noundef %16, i32 noundef 1)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
br label %83
83: ; preds = %82, %78
%84 = load i32, ptr %9, align 4
%85 = call i32 @read(i32 noundef %84, ptr noundef %8, i32 noundef 1)
%86 = icmp ne i32 %85, 1
br i1 %86, label %87, label %88
87: ; preds = %83
br label %98
88: ; preds = %83
%89 = load i8, ptr %8, align 1
%90 = zext i8 %89 to i32
%91 = icmp eq i32 %90, 121
br i1 %91, label %96, label %92
92: ; preds = %88
%93 = load i8, ptr %8, align 1
%94 = zext i8 %93 to i32
%95 = icmp eq i32 %94, 31
br i1 %95, label %96, label %97
96: ; preds = %92, %88
br label %103
97: ; preds = %92
br label %98
98: ; preds = %97, %87
%99 = load i32, ptr %10, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %10, align 4
%101 = load i32, ptr %10, align 4
%102 = icmp slt i32 %101, 5
br i1 %102, label %78, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %98
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %66
br label %103
103: ; preds = %.loopexit, %96
%104 = load i32, ptr %10, align 4
%105 = icmp eq i32 %104, 5
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i32, ptr @stderr, align 4
%108 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %107, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %224
109: ; preds = %103
%110 = load i32, ptr %13, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %175
112: ; preds = %109
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds ptr, ptr %113, i64 2
%115 = load ptr, ptr %114, align 8
%116 = load i32, ptr @O_RDONLY, align 4
%117 = call i32 @open(ptr noundef %115, i32 noundef %116)
store i32 %117, ptr %17, align 4
%118 = load i32, ptr %17, align 4
%119 = getelementptr inbounds [32768 x i8], ptr %11, i64 0, i64 0
%120 = call i32 @read(i32 noundef %118, ptr noundef %119, i32 noundef 32768)
store i32 %120, ptr %10, align 4
%121 = load i32, ptr %17, align 4
%122 = call i32 @close(i32 noundef %121)
%123 = load i32, ptr %17, align 4
%124 = icmp slt i32 %123, 0
br i1 %124, label %128, label %125
125: ; preds = %112
%126 = load i32, ptr %10, align 4
%127 = icmp sle i32 %126, 0
br i1 %127, label %128, label %134
128: ; preds = %125, %112
%129 = load i32, ptr @stderr, align 4
%130 = load ptr, ptr %5, align 8
%131 = getelementptr inbounds ptr, ptr %130, i64 2
%132 = load ptr, ptr %131, align 8
%133 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %129, ptr noundef @.str.6, ptr noundef %132)
store i32 -1, ptr %3, align 4
br label %224
134: ; preds = %125
%135 = load i32, ptr %10, align 4
%136 = srem i32 %135, 4
%137 = load i32, ptr %10, align 4
%138 = add nsw i32 %137, %136
store i32 %138, ptr %10, align 4
%139 = load i32, ptr %12, align 4
%140 = icmp ne i32 %139, 0
br i1 %140, label %141, label %151
141: ; preds = %134
%142 = load i32, ptr @stderr, align 4
%143 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %142, ptr noundef @.str.7)
%144 = load i32, ptr %9, align 4
%145 = call i64 @eraseFlash(i32 noundef %144)
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %150
147: ; preds = %141
%148 = load i32, ptr @stderr, align 4
%149 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %148, ptr noundef @.str.8)
store i32 -1, ptr %3, align 4
br label %224
150: ; preds = %141
br label %151
151: ; preds = %150, %134
%152 = load i32, ptr @stderr, align 4
%153 = load i32, ptr %10, align 4
%154 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %152, ptr noundef @.str.9, i32 noundef %153)
%155 = load i32, ptr %9, align 4
%156 = load i32, ptr %15, align 4
%157 = getelementptr inbounds [32768 x i8], ptr %11, i64 0, i64 0
%158 = load i32, ptr %10, align 4
%159 = call i64 @writeMemory(i32 noundef %155, i32 noundef %156, ptr noundef %157, i32 noundef %158)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %164
161: ; preds = %151
%162 = load i32, ptr @stderr, align 4
%163 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %162, ptr noundef @.str.10)
store i32 -1, ptr %3, align 4
br label %224
164: ; preds = %151
%165 = load i32, ptr @stderr, align 4
%166 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %165, ptr noundef @.str.11)
%167 = load i32, ptr %14, align 4
%168 = icmp ne i32 %167, 0
br i1 %168, label %169, label %173
169: ; preds = %164
%170 = load i32, ptr %9, align 4
%171 = load i32, ptr %15, align 4
%172 = call i32 @jumpToAddress(i32 noundef %170, i32 noundef %171)
br label %174
173: ; preds = %164
store i32 0, ptr %3, align 4
br label %224
174: ; preds = %169
br label %189
175: ; preds = %109
%176 = load i32, ptr %12, align 4
%177 = icmp ne i32 %176, 0
br i1 %177, label %178, label %188
178: ; preds = %175
%179 = load i32, ptr %9, align 4
%180 = call i64 @eraseFlash(i32 noundef %179)
%181 = icmp ne i64 %180, 0
br i1 %181, label %182, label %185
182: ; preds = %178
%183 = load i32, ptr @stderr, align 4
%184 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %183, ptr noundef @.str.8)
store i32 -1, ptr %3, align 4
br label %224
185: ; preds = %178
%186 = load i32, ptr @stderr, align 4
%187 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %186, ptr noundef @.str.12)
store i32 0, ptr %3, align 4
br label %224
188: ; preds = %175
br label %189
189: ; preds = %188, %174
br label %190
190: ; preds = %222, %189
%191 = load i32, ptr %9, align 4
%192 = call i32 @read(i32 noundef %191, ptr noundef %8, i32 noundef 1)
%193 = icmp eq i32 %192, 1
br i1 %193, label %194, label %222
194: ; preds = %190
%195 = load i8, ptr %8, align 1
%196 = zext i8 %195 to i32
%197 = icmp eq i32 %196, 27
br i1 %197, label %198, label %199
198: ; preds = %194
br label %223
199: ; preds = %194
%200 = load i8, ptr %8, align 1
%201 = zext i8 %200 to i32
%202 = icmp slt i32 %201, 32
br i1 %202, label %207, label %203
203: ; preds = %199
%204 = load i8, ptr %8, align 1
%205 = zext i8 %204 to i32
%206 = icmp sgt i32 %205, 127
br i1 %206, label %207, label %217
207: ; preds = %203, %199
%208 = load i8, ptr %8, align 1
%209 = zext i8 %208 to i32
%210 = icmp ne i32 %209, 10
br i1 %210, label %211, label %216
211: ; preds = %207
%212 = load i8, ptr %8, align 1
%213 = zext i8 %212 to i32
%214 = icmp ne i32 %213, 13
br i1 %214, label %215, label %216
215: ; preds = %211
store i8 46, ptr %8, align 1
br label %216
216: ; preds = %215, %211, %207
br label %217
217: ; preds = %216, %203
%218 = load i32, ptr @stderr, align 4
%219 = load i8, ptr %8, align 1
%220 = zext i8 %219 to i32
%221 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %218, ptr noundef @.str.13, i32 noundef %220)
br label %222
222: ; preds = %217, %190
br label %190
223: ; preds = %198
store i32 0, ptr %3, align 4
br label %224
224: ; preds = %223, %185, %182, %173, %161, %147, %128, %106, %62, %54, %44, %21
%225 = load i32, ptr %3, align 4
ret i32 %225
}
declare i32 @usage(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @openserial(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @eraseFlash(i32 noundef) #1
declare i64 @writeMemory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @jumpToAddress(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk__w8w0i.c'
source_filename = "/tmp/tmpk__w8w0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy_5(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 @memcpy(ptr noundef %5, ptr noundef %6, i32 noundef 5)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk__w8w0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy_5(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 @memcpy(ptr noundef %5, ptr noundef %6, i32 noundef 5)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpab23q606.c'
source_filename = "/tmp/tmpab23q606.c"
target datalayout = "e-m:e-p270: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/tmpab23q606.c"
target datalayout = "e-m:e-p270: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/tmpjai97be5.c'
source_filename = "/tmp/tmpjai97be5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for :\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x3a() #0 {
%1 = call i64 @isalnum(i32 noundef 58)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 295, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjai97be5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 0 for :\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x3a() #0 {
%1 = call i64 @isalnum(i32 noundef 58)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 295, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphdffmjr3.c'
source_filename = "/tmp/tmphdffmjr3.c"
target datalayout = "e-m:e-p270: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/tmphdffmjr3.c"
target datalayout = "e-m:e-p270: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/tmpi81k32yy.c'
source_filename = "/tmp/tmpi81k32yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_array_of_floats.a = private unnamed_addr constant [4 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_array_of_floats() #0 {
%1 = alloca [4 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_array_of_floats.a, i64 16, i1 false)
%2 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 0
%3 = call i32 @takes_array_of_floats(ptr noundef %2)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @takes_array_of_floats(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/tmpi81k32yy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.test_array_of_floats.a = private unnamed_addr constant [4 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_array_of_floats() #0 {
%1 = alloca [4 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_array_of_floats.a, i64 16, i1 false)
%2 = getelementptr inbounds [4 x float], ptr %1, i64 0, i64 0
%3 = call i32 @takes_array_of_floats(ptr noundef %2)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @takes_array_of_floats(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/tmph21bp5ve.c'
source_filename = "/tmp/tmph21bp5ve.c"
target datalayout = "e-m:e-p270: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.dqblk = type { i32 }
%struct.dqinfo = type { i32 }
@Q_QUOTAON = dso_local global i32 0, align 4
@USRQUOTA = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"somedevice\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"staptestmnt/aquota.user\00", align 1
@Q_GETQUOTA = dso_local global i32 0, align 4
@Q_SETQUOTA = dso_local global i32 0, align 4
@Q_GETINFO = dso_local global i32 0, align 4
@Q_SETINFO = dso_local global i32 0, align 4
@Q_GETFMT = dso_local global i32 0, align 4
@Q_SYNC = dso_local global i32 0, align 4
@Q_QUOTAOFF = 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 %struct.dqblk, align 4
%3 = alloca %struct.dqinfo, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (...) @getuid()
store i32 %6, ptr %4, align 4
%7 = load i32, ptr @Q_QUOTAON, align 4
%8 = load i32, ptr @USRQUOTA, align 4
%9 = call i32 @QCMD(i32 noundef %7, i32 noundef %8)
%10 = call i32 @quotactl(i32 noundef %9, ptr noundef @.str, i32 noundef 2, ptr noundef @.str.1)
%11 = load i32, ptr @Q_GETQUOTA, align 4
%12 = load i32, ptr @USRQUOTA, align 4
%13 = call i32 @QCMD(i32 noundef %11, i32 noundef %12)
%14 = call i32 (...) @getuid()
%15 = call i32 @quotactl(i32 noundef %13, ptr noundef @.str, i32 noundef %14, ptr noundef %2)
%16 = load i32, ptr @Q_SETQUOTA, align 4
%17 = load i32, ptr @USRQUOTA, align 4
%18 = call i32 @QCMD(i32 noundef %16, i32 noundef %17)
%19 = call i32 (...) @getuid()
%20 = call i32 @quotactl(i32 noundef %18, ptr noundef @.str, i32 noundef %19, ptr noundef %2)
%21 = load i32, ptr @Q_GETINFO, align 4
%22 = load i32, ptr @USRQUOTA, align 4
%23 = call i32 @QCMD(i32 noundef %21, i32 noundef %22)
%24 = call i32 (...) @getuid()
%25 = call i32 @quotactl(i32 noundef %23, ptr noundef @.str, i32 noundef %24, ptr noundef %3)
%26 = load i32, ptr @Q_SETINFO, align 4
%27 = load i32, ptr @USRQUOTA, align 4
%28 = call i32 @QCMD(i32 noundef %26, i32 noundef %27)
%29 = call i32 (...) @getuid()
%30 = call i32 @quotactl(i32 noundef %28, ptr noundef @.str, i32 noundef %29, ptr noundef %3)
%31 = load i32, ptr @Q_GETFMT, align 4
%32 = load i32, ptr @USRQUOTA, align 4
%33 = call i32 @QCMD(i32 noundef %31, i32 noundef %32)
%34 = call i32 (...) @getuid()
%35 = call i32 @quotactl(i32 noundef %33, ptr noundef @.str, i32 noundef %34, ptr noundef %5)
%36 = load i32, ptr @Q_SYNC, align 4
%37 = load i32, ptr @USRQUOTA, align 4
%38 = call i32 @QCMD(i32 noundef %36, i32 noundef %37)
%39 = call i32 @quotactl(i32 noundef %38, ptr noundef @.str, i32 noundef 0, ptr noundef null)
%40 = load i32, ptr @Q_QUOTAOFF, align 4
%41 = load i32, ptr @USRQUOTA, align 4
%42 = call i32 @QCMD(i32 noundef %40, i32 noundef %41)
%43 = call i32 @quotactl(i32 noundef %42, ptr noundef @.str, i32 noundef 0, ptr noundef null)
%44 = load i32, ptr %4, align 4
%45 = call i32 @quotactl(i32 noundef -1, ptr noundef null, i32 noundef %44, ptr noundef %2)
%46 = load i32, ptr @Q_GETQUOTA, align 4
%47 = load i32, ptr @USRQUOTA, align 4
%48 = call i32 @QCMD(i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = call i32 @quotactl(i32 noundef %48, ptr noundef inttoptr (i64 -1 to ptr), i32 noundef %49, ptr noundef %2)
%51 = load i32, ptr @Q_GETQUOTA, align 4
%52 = load i32, ptr @USRQUOTA, align 4
%53 = call i32 @QCMD(i32 noundef %51, i32 noundef %52)
%54 = call i32 @quotactl(i32 noundef %53, ptr noundef null, i32 noundef -1, ptr noundef %2)
%55 = load i32, ptr @Q_GETQUOTA, align 4
%56 = load i32, ptr @USRQUOTA, align 4
%57 = call i32 @QCMD(i32 noundef %55, i32 noundef %56)
%58 = load i32, ptr %4, align 4
%59 = call i32 @quotactl(i32 noundef %57, ptr noundef null, i32 noundef %58, ptr noundef inttoptr (i64 -1 to ptr))
ret i32 0
}
declare i32 @getuid(...) #1
declare i32 @quotactl(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @QCMD(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/tmph21bp5ve.c"
target datalayout = "e-m:e-p270: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.dqblk = type { i32 }
%struct.dqinfo = type { i32 }
@Q_QUOTAON = dso_local global i32 0, align 4
@USRQUOTA = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"somedevice\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"staptestmnt/aquota.user\00", align 1
@Q_GETQUOTA = dso_local global i32 0, align 4
@Q_SETQUOTA = dso_local global i32 0, align 4
@Q_GETINFO = dso_local global i32 0, align 4
@Q_SETINFO = dso_local global i32 0, align 4
@Q_GETFMT = dso_local global i32 0, align 4
@Q_SYNC = dso_local global i32 0, align 4
@Q_QUOTAOFF = 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 %struct.dqblk, align 4
%3 = alloca %struct.dqinfo, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (...) @getuid()
store i32 %6, ptr %4, align 4
%7 = load i32, ptr @Q_QUOTAON, align 4
%8 = load i32, ptr @USRQUOTA, align 4
%9 = call i32 @QCMD(i32 noundef %7, i32 noundef %8)
%10 = call i32 @quotactl(i32 noundef %9, ptr noundef @.str, i32 noundef 2, ptr noundef @.str.1)
%11 = load i32, ptr @Q_GETQUOTA, align 4
%12 = load i32, ptr @USRQUOTA, align 4
%13 = call i32 @QCMD(i32 noundef %11, i32 noundef %12)
%14 = call i32 (...) @getuid()
%15 = call i32 @quotactl(i32 noundef %13, ptr noundef @.str, i32 noundef %14, ptr noundef %2)
%16 = load i32, ptr @Q_SETQUOTA, align 4
%17 = load i32, ptr @USRQUOTA, align 4
%18 = call i32 @QCMD(i32 noundef %16, i32 noundef %17)
%19 = call i32 (...) @getuid()
%20 = call i32 @quotactl(i32 noundef %18, ptr noundef @.str, i32 noundef %19, ptr noundef %2)
%21 = load i32, ptr @Q_GETINFO, align 4
%22 = load i32, ptr @USRQUOTA, align 4
%23 = call i32 @QCMD(i32 noundef %21, i32 noundef %22)
%24 = call i32 (...) @getuid()
%25 = call i32 @quotactl(i32 noundef %23, ptr noundef @.str, i32 noundef %24, ptr noundef %3)
%26 = load i32, ptr @Q_SETINFO, align 4
%27 = load i32, ptr @USRQUOTA, align 4
%28 = call i32 @QCMD(i32 noundef %26, i32 noundef %27)
%29 = call i32 (...) @getuid()
%30 = call i32 @quotactl(i32 noundef %28, ptr noundef @.str, i32 noundef %29, ptr noundef %3)
%31 = load i32, ptr @Q_GETFMT, align 4
%32 = load i32, ptr @USRQUOTA, align 4
%33 = call i32 @QCMD(i32 noundef %31, i32 noundef %32)
%34 = call i32 (...) @getuid()
%35 = call i32 @quotactl(i32 noundef %33, ptr noundef @.str, i32 noundef %34, ptr noundef %5)
%36 = load i32, ptr @Q_SYNC, align 4
%37 = load i32, ptr @USRQUOTA, align 4
%38 = call i32 @QCMD(i32 noundef %36, i32 noundef %37)
%39 = call i32 @quotactl(i32 noundef %38, ptr noundef @.str, i32 noundef 0, ptr noundef null)
%40 = load i32, ptr @Q_QUOTAOFF, align 4
%41 = load i32, ptr @USRQUOTA, align 4
%42 = call i32 @QCMD(i32 noundef %40, i32 noundef %41)
%43 = call i32 @quotactl(i32 noundef %42, ptr noundef @.str, i32 noundef 0, ptr noundef null)
%44 = load i32, ptr %4, align 4
%45 = call i32 @quotactl(i32 noundef -1, ptr noundef null, i32 noundef %44, ptr noundef %2)
%46 = load i32, ptr @Q_GETQUOTA, align 4
%47 = load i32, ptr @USRQUOTA, align 4
%48 = call i32 @QCMD(i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = call i32 @quotactl(i32 noundef %48, ptr noundef inttoptr (i64 -1 to ptr), i32 noundef %49, ptr noundef %2)
%51 = load i32, ptr @Q_GETQUOTA, align 4
%52 = load i32, ptr @USRQUOTA, align 4
%53 = call i32 @QCMD(i32 noundef %51, i32 noundef %52)
%54 = call i32 @quotactl(i32 noundef %53, ptr noundef null, i32 noundef -1, ptr noundef %2)
%55 = load i32, ptr @Q_GETQUOTA, align 4
%56 = load i32, ptr @USRQUOTA, align 4
%57 = call i32 @QCMD(i32 noundef %55, i32 noundef %56)
%58 = load i32, ptr %4, align 4
%59 = call i32 @quotactl(i32 noundef %57, ptr noundef null, i32 noundef %58, ptr noundef inttoptr (i64 -1 to ptr))
ret i32 0
}
declare i32 @getuid(...) #1
declare i32 @quotactl(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @QCMD(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/tmpcqaelku7.c'
source_filename = "/tmp/tmpcqaelku7.c"
target datalayout = "e-m:e-p270: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/tmpcqaelku7.c"
target datalayout = "e-m:e-p270: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/tmpbj5fgq25.c'
source_filename = "/tmp/tmpbj5fgq25.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @setup()
%3 = call i32 (...) @shell_loop()
ret i32 0
}
declare i32 @setup(...) #1
declare i32 @shell_loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbj5fgq25.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @setup()
%3 = call i32 (...) @shell_loop()
ret i32 0
}
declare i32 @setup(...) #1
declare i32 @shell_loop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpee60s3o4.c'
source_filename = "/tmp/tmpee60s3o4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @prime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, 1
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %2, align 8
%8 = add nsw i64 %7, 1
store i64 %8, ptr %2, align 8
br label %9
9: ; preds = %6, %1
br label %10
10: ; preds = %16, %9
%11 = load i64, ptr %2, align 8
%12 = call i64 @isprime(i64 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = load i64, ptr %2, align 8
ret i64 %15
16: ; preds = %10
%17 = load i64, ptr %2, align 8
%18 = add nsw i64 %17, 2
store i64 %18, ptr %2, align 8
br label %10
}
declare i64 @isprime(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/tmpee60s3o4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @prime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, 1
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i64, ptr %2, align 8
%8 = add nsw i64 %7, 1
store i64 %8, ptr %2, align 8
br label %9
9: ; preds = %6, %1
%10 = load i64, ptr %2, align 8
%11 = call i64 @isprime(i64 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %9
br label %15
._crit_edge: ; preds = %15
br label %13
13: ; preds = %._crit_edge, %9
%14 = load i64, ptr %2, align 8
ret i64 %14
15: ; preds = %.lr.ph, %15
%16 = load i64, ptr %2, align 8
%17 = add nsw i64 %16, 2
store i64 %17, ptr %2, align 8
%18 = load i64, ptr %2, align 8
%19 = call i64 @isprime(i64 noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %._crit_edge, label %15
}
declare i64 @isprime(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/tmp0z064s29.c'
source_filename = "/tmp/tmp0z064s29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"ispunct should be 0 for 0xa4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0xa4() #0 {
%1 = call i64 @ispunct(i32 noundef 164)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 825, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmp0z064s29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"ispunct should be 0 for 0xa4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0xa4() #0 {
%1 = call i64 @ispunct(i32 noundef 164)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 825, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmpjfj5_uk2.c'
source_filename = "/tmp/tmpjfj5_uk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @terminate_str_r(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %4, align 1
%8 = call ptr @strrchr(ptr noundef %6, i8 noundef signext %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 %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %11, %2
ret void
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjfj5_uk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @terminate_str_r(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %4, align 1
%8 = call ptr @strrchr(ptr noundef %6, i8 noundef signext %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 %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %11, %2
ret void
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphysum7_u.c'
source_filename = "/tmp/tmphysum7_u.c"
target datalayout = "e-m:e-p270: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/tmphysum7_u.c"
target datalayout = "e-m:e-p270: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/tmpl5azpacj.c'
source_filename = "/tmp/tmpl5azpacj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Podaj promien podstawy stozka r: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Podaj wysokosc stozka: \00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Objetosc stozka wynosi:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = mul nsw i32 %10, %11
%13 = mul nsw i32 %9, %12
store i32 %13, ptr %4, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %16, %17
%19 = sdiv i32 %18, 3
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl5azpacj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Podaj promien podstawy stozka r: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Podaj wysokosc stozka: \00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Objetosc stozka wynosi:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = mul nsw i32 %10, %11
%13 = mul nsw i32 %9, %12
store i32 %13, ptr %4, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = mul nsw i32 %16, %17
%19 = sdiv i32 %18, 3
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7x11gb7m.c'
source_filename = "/tmp/tmp7x11gb7m.c"
target datalayout = "e-m:e-p270: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
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7x11gb7m.c"
target datalayout = "e-m:e-p270: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
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmpft0juj.c'
source_filename = "/tmp/tmpmpft0juj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ESRCH = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kill(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @ESRCH, align 4
store i32 %5, ptr @errno, align 4
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/tmpmpft0juj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ESRCH = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kill(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @ESRCH, align 4
store i32 %5, ptr @errno, align 4
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/tmpknd3oabm.c'
source_filename = "/tmp/tmpknd3oabm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%8 = call ptr @malloc(i32 noundef 64)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpknd3oabm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%8 = call ptr @malloc(i32 noundef 64)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc9sgyws4.c'
source_filename = "/tmp/tmpc9sgyws4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [96 x i8] c"This software is under GNU GPL license. See http://minegrado.info/DWN/LICENSE.txt for details.\0A\00", align 1
@.str.1 = private unnamed_addr constant [220 x i8] c"crivello version 1.5a developed by OmegaSoftware (C) a Niccolo' Ferrari company, on 06 feb 2015, with GNU GPL license.\0AFor info:\[email protected]\0Aomegasoftware.altervista.org\0Aminegrado.info\0Aminegrado.info/DWN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = call i32 @write_to_console(ptr noundef @.str, i32 noundef 3, i32 noundef 1, i32 noundef 1)
%2 = call i32 @write_to_console(ptr noundef @.str.1, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret void
}
declare i32 @write_to_console(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9sgyws4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [96 x i8] c"This software is under GNU GPL license. See http://minegrado.info/DWN/LICENSE.txt for details.\0A\00", align 1
@.str.1 = private unnamed_addr constant [220 x i8] c"crivello version 1.5a developed by OmegaSoftware (C) a Niccolo' Ferrari company, on 06 feb 2015, with GNU GPL license.\0AFor info:\[email protected]\0Aomegasoftware.altervista.org\0Aminegrado.info\0Aminegrado.info/DWN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_version() #0 {
%1 = call i32 @write_to_console(ptr noundef @.str, i32 noundef 3, i32 noundef 1, i32 noundef 1)
%2 = call i32 @write_to_console(ptr noundef @.str.1, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret void
}
declare i32 @write_to_console(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_n39pejd.c'
source_filename = "/tmp/tmp_n39pejd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d\09%d\0A\00", align 1
@.str.1 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1900, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %45, %0
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
br i1 %8, label %9, label %46
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
store i32 1, ptr %4, align 4
br label %12
12: ; preds = %42, %9
%13 = load i32, ptr %2, align 4
%14 = call i32 @pantagon(i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = mul nsw i32 3, %15
%17 = add nsw i32 %16, 1
%18 = icmp sge i32 %14, %17
br i1 %18, label %19, label %45
19: ; preds = %12
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = call i32 @pantagon(i32 noundef %23)
%25 = load i32, ptr %4, align 4
%26 = call i32 @pantagon(i32 noundef %25)
%27 = add nsw i32 %24, %26
%28 = call i64 @ispantagon(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %42
30: ; preds = %19
%31 = load i32, ptr %2, align 4
%32 = call i32 @pantagon(i32 noundef %31)
%33 = load i32, ptr %4, align 4
%34 = call i32 @pantagon(i32 noundef %33)
%35 = mul nsw i32 2, %34
%36 = add nsw i32 %32, %35
%37 = call i64 @ispantagon(i32 noundef %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %30
%40 = load i32, ptr %2, align 4
%41 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %40)
store i32 1, ptr %3, align 4
br label %45
42: ; preds = %30, %19
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %12, !llvm.loop !6
45: ; preds = %39, %12
br label %5, !llvm.loop !8
46: ; preds = %5
ret i32 0
}
declare i32 @pantagon(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i64 @ispantagon(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_n39pejd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%d\09%d\0A\00", align 1
@.str.1 = 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1900, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
br i1 %7, label %.lr.ph1, label %53
.lr.ph1: ; preds = %0
br label %8
8: ; preds = %.lr.ph1, %49
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
store i32 1, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @pantagon(i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = mul nsw i32 3, %13
%15 = add nsw i32 %14, 1
%16 = icmp sge i32 %12, %15
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %8
br label %17
17: ; preds = %.lr.ph, %40
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %19)
%21 = load i32, ptr %2, align 4
%22 = call i32 @pantagon(i32 noundef %21)
%23 = load i32, ptr %4, align 4
%24 = call i32 @pantagon(i32 noundef %23)
%25 = add nsw i32 %22, %24
%26 = call i64 @ispantagon(i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %40
28: ; preds = %17
%29 = load i32, ptr %2, align 4
%30 = call i32 @pantagon(i32 noundef %29)
%31 = load i32, ptr %4, align 4
%32 = call i32 @pantagon(i32 noundef %31)
%33 = mul nsw i32 2, %32
%34 = add nsw i32 %30, %33
%35 = call i64 @ispantagon(i32 noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %28
%38 = load i32, ptr %2, align 4
%39 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
store i32 1, ptr %3, align 4
br label %49
40: ; preds = %28, %17
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
%43 = load i32, ptr %2, align 4
%44 = call i32 @pantagon(i32 noundef %43)
%45 = load i32, ptr %4, align 4
%46 = mul nsw i32 3, %45
%47 = add nsw i32 %46, 1
%48 = icmp sge i32 %44, %47
br i1 %48, label %17, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %40
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %8
br label %49
49: ; preds = %.loopexit, %37
%50 = load i32, ptr %3, align 4
%51 = icmp ne i32 %50, 0
%52 = xor i1 %51, true
br i1 %52, label %8, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %49
br label %53
53: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @pantagon(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i64 @ispantagon(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwxq5qcvp.c'
source_filename = "/tmp/tmpwxq5qcvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter an integer between 1 and 32000:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"%d is a multiple of X\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"%d is not a multiple of X\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i64 @multiple(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @multiple(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/tmpwxq5qcvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter an integer between 1 and 32000:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"%d is a multiple of X\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"%d is not a multiple of X\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i64 @multiple(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
br label %14
14: ; preds = %11, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @multiple(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/tmpaj46dhcv.c'
source_filename = "/tmp/tmpaj46dhcv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s is not valid\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"%s is not valid, hex out of range\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extract_u64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %8, align 8
store i32 0, ptr %9, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i8, ptr %13, align 1
%15 = call i64 @isxdigit(i8 noundef signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = call i32 @bitch(ptr noundef @.str, ptr noundef %18)
store i32 -1, ptr %4, align 4
br label %352
20: ; preds = %3
store i32 0, ptr %10, align 4
br label %21
21: ; preds = %68, %20
%22 = load ptr, ptr %8, align 8
%23 = load i8, ptr %22, align 1
%24 = call i64 @isxdigit(i8 noundef signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %71
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = call i64 @isdigit(i8 noundef signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %39
31: ; preds = %26
%32 = load i32, ptr %10, align 4
%33 = shl i32 %32, 4
%34 = load ptr, ptr %8, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = sub nsw i32 %36, 48
%38 = or i32 %33, %37
store i32 %38, ptr %10, align 4
br label %68
39: ; preds = %26
%40 = load ptr, ptr %8, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sge i32 %42, 97
br i1 %43, label %44, label %58
44: ; preds = %39
%45 = load ptr, ptr %8, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp sle i32 %47, 102
br i1 %48, label %49, label %58
49: ; preds = %44
%50 = load i32, ptr %10, align 4
%51 = shl i32 %50, 4
%52 = load ptr, ptr %8, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = sub nsw i32 %54, 97
%56 = add nsw i32 %55, 10
%57 = or i32 %51, %56
store i32 %57, ptr %10, align 4
br label %67
58: ; preds = %44, %39
%59 = load i32, ptr %10, align 4
%60 = shl i32 %59, 4
%61 = load ptr, ptr %8, align 8
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = sub nsw i32 %63, 65
%65 = add nsw i32 %64, 10
%66 = or i32 %60, %65
store i32 %66, ptr %10, align 4
br label %67
67: ; preds = %58, %49
br label %68
68: ; preds = %67, %31
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %8, align 8
br label %21, !llvm.loop !6
71: ; preds = %21
%72 = load i32, ptr %10, align 4
%73 = icmp ugt i32 %72, 65535
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load ptr, ptr %6, align 8
%76 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %75)
store i32 -1, ptr %4, align 4
br label %352
77: ; preds = %71
%78 = load i32, ptr %9, align 4
%79 = shl i32 %78, 16
%80 = load i32, ptr %10, align 4
%81 = or i32 %79, %80
store i32 %81, ptr %9, align 4
%82 = load ptr, ptr %8, align 8
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 58
br i1 %85, label %86, label %89
86: ; preds = %77
%87 = load ptr, ptr %6, align 8
%88 = call i32 @bitch(ptr noundef @.str, ptr noundef %87)
store i32 -1, ptr %4, align 4
br label %352
89: ; preds = %77
%90 = load ptr, ptr %8, align 8
%91 = getelementptr inbounds i8, ptr %90, i32 1
store ptr %91, ptr %8, align 8
%92 = load ptr, ptr %8, align 8
%93 = load i8, ptr %92, align 1
%94 = call i64 @isxdigit(i8 noundef signext %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %99, label %96
96: ; preds = %89
%97 = load ptr, ptr %6, align 8
%98 = call i32 @bitch(ptr noundef @.str, ptr noundef %97)
store i32 -1, ptr %4, align 4
br label %352
99: ; preds = %89
store i32 0, ptr %10, align 4
br label %100
100: ; preds = %147, %99
%101 = load ptr, ptr %8, align 8
%102 = load i8, ptr %101, align 1
%103 = call i64 @isxdigit(i8 noundef signext %102)
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %150
105: ; preds = %100
%106 = load ptr, ptr %8, align 8
%107 = load i8, ptr %106, align 1
%108 = call i64 @isdigit(i8 noundef signext %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %118
110: ; preds = %105
%111 = load i32, ptr %10, align 4
%112 = shl i32 %111, 4
%113 = load ptr, ptr %8, align 8
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = sub nsw i32 %115, 48
%117 = or i32 %112, %116
store i32 %117, ptr %10, align 4
br label %147
118: ; preds = %105
%119 = load ptr, ptr %8, align 8
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = icmp sge i32 %121, 97
br i1 %122, label %123, label %137
123: ; preds = %118
%124 = load ptr, ptr %8, align 8
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp sle i32 %126, 102
br i1 %127, label %128, label %137
128: ; preds = %123
%129 = load i32, ptr %10, align 4
%130 = shl i32 %129, 4
%131 = load ptr, ptr %8, align 8
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = sub nsw i32 %133, 97
%135 = add nsw i32 %134, 10
%136 = or i32 %130, %135
store i32 %136, ptr %10, align 4
br label %146
137: ; preds = %123, %118
%138 = load i32, ptr %10, align 4
%139 = shl i32 %138, 4
%140 = load ptr, ptr %8, align 8
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = sub nsw i32 %142, 65
%144 = add nsw i32 %143, 10
%145 = or i32 %139, %144
store i32 %145, ptr %10, align 4
br label %146
146: ; preds = %137, %128
br label %147
147: ; preds = %146, %110
%148 = load ptr, ptr %8, align 8
%149 = getelementptr inbounds i8, ptr %148, i32 1
store ptr %149, ptr %8, align 8
br label %100, !llvm.loop !8
150: ; preds = %100
%151 = load i32, ptr %10, align 4
%152 = icmp ugt i32 %151, 65535
br i1 %152, label %153, label %156
153: ; preds = %150
%154 = load ptr, ptr %6, align 8
%155 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %154)
store i32 -1, ptr %4, align 4
br label %352
156: ; preds = %150
%157 = load i32, ptr %9, align 4
%158 = shl i32 %157, 16
%159 = load i32, ptr %10, align 4
%160 = or i32 %158, %159
store i32 %160, ptr %9, align 4
%161 = load ptr, ptr %8, align 8
%162 = load i8, ptr %161, align 1
%163 = sext i8 %162 to i32
%164 = icmp ne i32 %163, 58
br i1 %164, label %165, label %168
165: ; preds = %156
%166 = load ptr, ptr %6, align 8
%167 = call i32 @bitch(ptr noundef @.str, ptr noundef %166)
store i32 -1, ptr %4, align 4
br label %352
168: ; preds = %156
%169 = load ptr, ptr %8, align 8
%170 = getelementptr inbounds i8, ptr %169, i32 1
store ptr %170, ptr %8, align 8
%171 = load ptr, ptr %8, align 8
%172 = load i8, ptr %171, align 1
%173 = call i64 @isxdigit(i8 noundef signext %172)
%174 = icmp ne i64 %173, 0
br i1 %174, label %178, label %175
175: ; preds = %168
%176 = load ptr, ptr %6, align 8
%177 = call i32 @bitch(ptr noundef @.str, ptr noundef %176)
store i32 -1, ptr %4, align 4
br label %352
178: ; preds = %168
store i32 0, ptr %10, align 4
br label %179
179: ; preds = %226, %178
%180 = load ptr, ptr %8, align 8
%181 = load i8, ptr %180, align 1
%182 = call i64 @isxdigit(i8 noundef signext %181)
%183 = icmp ne i64 %182, 0
br i1 %183, label %184, label %229
184: ; preds = %179
%185 = load ptr, ptr %8, align 8
%186 = load i8, ptr %185, align 1
%187 = call i64 @isdigit(i8 noundef signext %186)
%188 = icmp ne i64 %187, 0
br i1 %188, label %189, label %197
189: ; preds = %184
%190 = load i32, ptr %10, align 4
%191 = shl i32 %190, 4
%192 = load ptr, ptr %8, align 8
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = sub nsw i32 %194, 48
%196 = or i32 %191, %195
store i32 %196, ptr %10, align 4
br label %226
197: ; preds = %184
%198 = load ptr, ptr %8, align 8
%199 = load i8, ptr %198, align 1
%200 = sext i8 %199 to i32
%201 = icmp sge i32 %200, 97
br i1 %201, label %202, label %216
202: ; preds = %197
%203 = load ptr, ptr %8, align 8
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp sle i32 %205, 102
br i1 %206, label %207, label %216
207: ; preds = %202
%208 = load i32, ptr %10, align 4
%209 = shl i32 %208, 4
%210 = load ptr, ptr %8, align 8
%211 = load i8, ptr %210, align 1
%212 = sext i8 %211 to i32
%213 = sub nsw i32 %212, 97
%214 = add nsw i32 %213, 10
%215 = or i32 %209, %214
store i32 %215, ptr %10, align 4
br label %225
216: ; preds = %202, %197
%217 = load i32, ptr %10, align 4
%218 = shl i32 %217, 4
%219 = load ptr, ptr %8, align 8
%220 = load i8, ptr %219, align 1
%221 = sext i8 %220 to i32
%222 = sub nsw i32 %221, 65
%223 = add nsw i32 %222, 10
%224 = or i32 %218, %223
store i32 %224, ptr %10, align 4
br label %225
225: ; preds = %216, %207
br label %226
226: ; preds = %225, %189
%227 = load ptr, ptr %8, align 8
%228 = getelementptr inbounds i8, ptr %227, i32 1
store ptr %228, ptr %8, align 8
br label %179, !llvm.loop !9
229: ; preds = %179
%230 = load i32, ptr %10, align 4
%231 = icmp ugt i32 %230, 65535
br i1 %231, label %232, label %235
232: ; preds = %229
%233 = load ptr, ptr %6, align 8
%234 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %233)
store i32 -1, ptr %4, align 4
br label %352
235: ; preds = %229
%236 = load i32, ptr %9, align 4
%237 = shl i32 %236, 16
%238 = load i32, ptr %10, align 4
%239 = or i32 %237, %238
store i32 %239, ptr %9, align 4
%240 = load ptr, ptr %8, align 8
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = icmp ne i32 %242, 58
br i1 %243, label %244, label %247
244: ; preds = %235
%245 = load ptr, ptr %6, align 8
%246 = call i32 @bitch(ptr noundef @.str, ptr noundef %245)
store i32 -1, ptr %4, align 4
br label %352
247: ; preds = %235
%248 = load ptr, ptr %8, align 8
%249 = getelementptr inbounds i8, ptr %248, i32 1
store ptr %249, ptr %8, align 8
%250 = load ptr, ptr %8, align 8
%251 = load i8, ptr %250, align 1
%252 = call i64 @isxdigit(i8 noundef signext %251)
%253 = icmp ne i64 %252, 0
br i1 %253, label %257, label %254
254: ; preds = %247
%255 = load ptr, ptr %6, align 8
%256 = call i32 @bitch(ptr noundef @.str, ptr noundef %255)
store i32 -1, ptr %4, align 4
br label %352
257: ; preds = %247
store i32 0, ptr %10, align 4
br label %258
258: ; preds = %305, %257
%259 = load ptr, ptr %8, align 8
%260 = load i8, ptr %259, align 1
%261 = call i64 @isxdigit(i8 noundef signext %260)
%262 = icmp ne i64 %261, 0
br i1 %262, label %263, label %308
263: ; preds = %258
%264 = load ptr, ptr %8, align 8
%265 = load i8, ptr %264, align 1
%266 = call i64 @isdigit(i8 noundef signext %265)
%267 = icmp ne i64 %266, 0
br i1 %267, label %268, label %276
268: ; preds = %263
%269 = load i32, ptr %10, align 4
%270 = shl i32 %269, 4
%271 = load ptr, ptr %8, align 8
%272 = load i8, ptr %271, align 1
%273 = sext i8 %272 to i32
%274 = sub nsw i32 %273, 48
%275 = or i32 %270, %274
store i32 %275, ptr %10, align 4
br label %305
276: ; preds = %263
%277 = load ptr, ptr %8, align 8
%278 = load i8, ptr %277, align 1
%279 = sext i8 %278 to i32
%280 = icmp sge i32 %279, 97
br i1 %280, label %281, label %295
281: ; preds = %276
%282 = load ptr, ptr %8, align 8
%283 = load i8, ptr %282, align 1
%284 = sext i8 %283 to i32
%285 = icmp sle i32 %284, 102
br i1 %285, label %286, label %295
286: ; preds = %281
%287 = load i32, ptr %10, align 4
%288 = shl i32 %287, 4
%289 = load ptr, ptr %8, align 8
%290 = load i8, ptr %289, align 1
%291 = sext i8 %290 to i32
%292 = sub nsw i32 %291, 97
%293 = add nsw i32 %292, 10
%294 = or i32 %288, %293
store i32 %294, ptr %10, align 4
br label %304
295: ; preds = %281, %276
%296 = load i32, ptr %10, align 4
%297 = shl i32 %296, 4
%298 = load ptr, ptr %8, align 8
%299 = load i8, ptr %298, align 1
%300 = sext i8 %299 to i32
%301 = sub nsw i32 %300, 65
%302 = add nsw i32 %301, 10
%303 = or i32 %297, %302
store i32 %303, ptr %10, align 4
br label %304
304: ; preds = %295, %286
br label %305
305: ; preds = %304, %268
%306 = load ptr, ptr %8, align 8
%307 = getelementptr inbounds i8, ptr %306, i32 1
store ptr %307, ptr %8, align 8
br label %258, !llvm.loop !10
308: ; preds = %258
%309 = load i32, ptr %10, align 4
%310 = icmp ugt i32 %309, 65535
br i1 %310, label %311, label %314
311: ; preds = %308
%312 = load ptr, ptr %6, align 8
%313 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %312)
store i32 -1, ptr %4, align 4
br label %352
314: ; preds = %308
%315 = load i32, ptr %9, align 4
%316 = shl i32 %315, 16
%317 = load i32, ptr %10, align 4
%318 = or i32 %316, %317
store i32 %318, ptr %9, align 4
%319 = load i32, ptr %9, align 4
%320 = load ptr, ptr %7, align 8
store i32 %319, ptr %320, align 4
%321 = load ptr, ptr %8, align 8
%322 = load i8, ptr %321, align 1
%323 = sext i8 %322 to i32
%324 = icmp ne i32 %323, 0
br i1 %324, label %325, label %343
325: ; preds = %314
%326 = load ptr, ptr %8, align 8
%327 = load i8, ptr %326, align 1
%328 = call i32 @isspace(i8 noundef signext %327)
%329 = icmp ne i32 %328, 0
br i1 %329, label %343, label %330
330: ; preds = %325
%331 = load ptr, ptr %8, align 8
%332 = load i8, ptr %331, align 1
%333 = sext i8 %332 to i32
%334 = icmp ne i32 %333, 59
br i1 %334, label %335, label %343
335: ; preds = %330
%336 = load ptr, ptr %8, align 8
%337 = load i8, ptr %336, align 1
%338 = sext i8 %337 to i32
%339 = icmp ne i32 %338, 41
br i1 %339, label %340, label %343
340: ; preds = %335
%341 = load ptr, ptr %6, align 8
%342 = call i32 @bitch(ptr noundef @.str, ptr noundef %341)
store i32 -1, ptr %4, align 4
br label %352
343: ; preds = %335, %330, %325, %314
%344 = load ptr, ptr %8, align 8
%345 = call ptr @skip_white_space(ptr noundef %344)
%346 = load ptr, ptr %5, align 8
store ptr %345, ptr %346, align 8
%347 = load ptr, ptr %5, align 8
%348 = load ptr, ptr %347, align 8
%349 = icmp ne ptr %348, null
br i1 %349, label %351, label %350
350: ; preds = %343
store i32 -1, ptr %4, align 4
br label %352
351: ; preds = %343
store i32 1, ptr %4, align 4
br label %352
352: ; preds = %351, %350, %340, %311, %254, %244, %232, %175, %165, %153, %96, %86, %74, %17
%353 = load i32, ptr %4, align 4
ret i32 %353
}
declare i64 @isxdigit(i8 noundef signext) #1
declare i32 @bitch(ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @isspace(i8 noundef signext) #1
declare ptr @skip_white_space(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpaj46dhcv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s is not valid\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"%s is not valid, hex out of range\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extract_u64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = load ptr, ptr %11, align 8
store ptr %12, ptr %8, align 8
store i32 0, ptr %9, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i8, ptr %13, align 1
%15 = call i64 @isxdigit(i8 noundef signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %3
%18 = load ptr, ptr %6, align 8
%19 = call i32 @bitch(ptr noundef @.str, ptr noundef %18)
store i32 -1, ptr %4, align 4
br label %364
20: ; preds = %3
store i32 0, ptr %10, align 4
%21 = load ptr, ptr %8, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isxdigit(i8 noundef signext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %.lr.ph, label %74
.lr.ph: ; preds = %20
br label %25
25: ; preds = %.lr.ph, %67
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = call i64 @isdigit(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %38
30: ; preds = %25
%31 = load i32, ptr %10, align 4
%32 = shl i32 %31, 4
%33 = load ptr, ptr %8, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = sub nsw i32 %35, 48
%37 = or i32 %32, %36
store i32 %37, ptr %10, align 4
br label %67
38: ; preds = %25
%39 = load ptr, ptr %8, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp sge i32 %41, 97
br i1 %42, label %43, label %57
43: ; preds = %38
%44 = load ptr, ptr %8, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp sle i32 %46, 102
br i1 %47, label %48, label %57
48: ; preds = %43
%49 = load i32, ptr %10, align 4
%50 = shl i32 %49, 4
%51 = load ptr, ptr %8, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = sub nsw i32 %53, 97
%55 = add nsw i32 %54, 10
%56 = or i32 %50, %55
store i32 %56, ptr %10, align 4
br label %66
57: ; preds = %43, %38
%58 = load i32, ptr %10, align 4
%59 = shl i32 %58, 4
%60 = load ptr, ptr %8, align 8
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = sub nsw i32 %62, 65
%64 = add nsw i32 %63, 10
%65 = or i32 %59, %64
store i32 %65, ptr %10, align 4
br label %66
66: ; preds = %57, %48
br label %67
67: ; preds = %66, %30
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %8, align 8
%70 = load ptr, ptr %8, align 8
%71 = load i8, ptr %70, align 1
%72 = call i64 @isxdigit(i8 noundef signext %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %74
74: ; preds = %._crit_edge, %20
%75 = load i32, ptr %10, align 4
%76 = icmp ugt i32 %75, 65535
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load ptr, ptr %6, align 8
%79 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %78)
store i32 -1, ptr %4, align 4
br label %364
80: ; preds = %74
%81 = load i32, ptr %9, align 4
%82 = shl i32 %81, 16
%83 = load i32, ptr %10, align 4
%84 = or i32 %82, %83
store i32 %84, ptr %9, align 4
%85 = load ptr, ptr %8, align 8
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 58
br i1 %88, label %89, label %92
89: ; preds = %80
%90 = load ptr, ptr %6, align 8
%91 = call i32 @bitch(ptr noundef @.str, ptr noundef %90)
store i32 -1, ptr %4, align 4
br label %364
92: ; preds = %80
%93 = load ptr, ptr %8, align 8
%94 = getelementptr inbounds i8, ptr %93, i32 1
store ptr %94, ptr %8, align 8
%95 = load ptr, ptr %8, align 8
%96 = load i8, ptr %95, align 1
%97 = call i64 @isxdigit(i8 noundef signext %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %102, label %99
99: ; preds = %92
%100 = load ptr, ptr %6, align 8
%101 = call i32 @bitch(ptr noundef @.str, ptr noundef %100)
store i32 -1, ptr %4, align 4
br label %364
102: ; preds = %92
store i32 0, ptr %10, align 4
%103 = load ptr, ptr %8, align 8
%104 = load i8, ptr %103, align 1
%105 = call i64 @isxdigit(i8 noundef signext %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %.lr.ph2, label %156
.lr.ph2: ; preds = %102
br label %107
107: ; preds = %.lr.ph2, %149
%108 = load ptr, ptr %8, align 8
%109 = load i8, ptr %108, align 1
%110 = call i64 @isdigit(i8 noundef signext %109)
%111 = icmp ne i64 %110, 0
br i1 %111, label %112, label %120
112: ; preds = %107
%113 = load i32, ptr %10, align 4
%114 = shl i32 %113, 4
%115 = load ptr, ptr %8, align 8
%116 = load i8, ptr %115, align 1
%117 = sext i8 %116 to i32
%118 = sub nsw i32 %117, 48
%119 = or i32 %114, %118
store i32 %119, ptr %10, align 4
br label %149
120: ; preds = %107
%121 = load ptr, ptr %8, align 8
%122 = load i8, ptr %121, align 1
%123 = sext i8 %122 to i32
%124 = icmp sge i32 %123, 97
br i1 %124, label %125, label %139
125: ; preds = %120
%126 = load ptr, ptr %8, align 8
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp sle i32 %128, 102
br i1 %129, label %130, label %139
130: ; preds = %125
%131 = load i32, ptr %10, align 4
%132 = shl i32 %131, 4
%133 = load ptr, ptr %8, align 8
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = sub nsw i32 %135, 97
%137 = add nsw i32 %136, 10
%138 = or i32 %132, %137
store i32 %138, ptr %10, align 4
br label %148
139: ; preds = %125, %120
%140 = load i32, ptr %10, align 4
%141 = shl i32 %140, 4
%142 = load ptr, ptr %8, align 8
%143 = load i8, ptr %142, align 1
%144 = sext i8 %143 to i32
%145 = sub nsw i32 %144, 65
%146 = add nsw i32 %145, 10
%147 = or i32 %141, %146
store i32 %147, ptr %10, align 4
br label %148
148: ; preds = %139, %130
br label %149
149: ; preds = %148, %112
%150 = load ptr, ptr %8, align 8
%151 = getelementptr inbounds i8, ptr %150, i32 1
store ptr %151, ptr %8, align 8
%152 = load ptr, ptr %8, align 8
%153 = load i8, ptr %152, align 1
%154 = call i64 @isxdigit(i8 noundef signext %153)
%155 = icmp ne i64 %154, 0
br i1 %155, label %107, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %149
br label %156
156: ; preds = %._crit_edge3, %102
%157 = load i32, ptr %10, align 4
%158 = icmp ugt i32 %157, 65535
br i1 %158, label %159, label %162
159: ; preds = %156
%160 = load ptr, ptr %6, align 8
%161 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %160)
store i32 -1, ptr %4, align 4
br label %364
162: ; preds = %156
%163 = load i32, ptr %9, align 4
%164 = shl i32 %163, 16
%165 = load i32, ptr %10, align 4
%166 = or i32 %164, %165
store i32 %166, ptr %9, align 4
%167 = load ptr, ptr %8, align 8
%168 = load i8, ptr %167, align 1
%169 = sext i8 %168 to i32
%170 = icmp ne i32 %169, 58
br i1 %170, label %171, label %174
171: ; preds = %162
%172 = load ptr, ptr %6, align 8
%173 = call i32 @bitch(ptr noundef @.str, ptr noundef %172)
store i32 -1, ptr %4, align 4
br label %364
174: ; preds = %162
%175 = load ptr, ptr %8, align 8
%176 = getelementptr inbounds i8, ptr %175, i32 1
store ptr %176, ptr %8, align 8
%177 = load ptr, ptr %8, align 8
%178 = load i8, ptr %177, align 1
%179 = call i64 @isxdigit(i8 noundef signext %178)
%180 = icmp ne i64 %179, 0
br i1 %180, label %184, label %181
181: ; preds = %174
%182 = load ptr, ptr %6, align 8
%183 = call i32 @bitch(ptr noundef @.str, ptr noundef %182)
store i32 -1, ptr %4, align 4
br label %364
184: ; preds = %174
store i32 0, ptr %10, align 4
%185 = load ptr, ptr %8, align 8
%186 = load i8, ptr %185, align 1
%187 = call i64 @isxdigit(i8 noundef signext %186)
%188 = icmp ne i64 %187, 0
br i1 %188, label %.lr.ph5, label %238
.lr.ph5: ; preds = %184
br label %189
189: ; preds = %.lr.ph5, %231
%190 = load ptr, ptr %8, align 8
%191 = load i8, ptr %190, align 1
%192 = call i64 @isdigit(i8 noundef signext %191)
%193 = icmp ne i64 %192, 0
br i1 %193, label %194, label %202
194: ; preds = %189
%195 = load i32, ptr %10, align 4
%196 = shl i32 %195, 4
%197 = load ptr, ptr %8, align 8
%198 = load i8, ptr %197, align 1
%199 = sext i8 %198 to i32
%200 = sub nsw i32 %199, 48
%201 = or i32 %196, %200
store i32 %201, ptr %10, align 4
br label %231
202: ; preds = %189
%203 = load ptr, ptr %8, align 8
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp sge i32 %205, 97
br i1 %206, label %207, label %221
207: ; preds = %202
%208 = load ptr, ptr %8, align 8
%209 = load i8, ptr %208, align 1
%210 = sext i8 %209 to i32
%211 = icmp sle i32 %210, 102
br i1 %211, label %212, label %221
212: ; preds = %207
%213 = load i32, ptr %10, align 4
%214 = shl i32 %213, 4
%215 = load ptr, ptr %8, align 8
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = sub nsw i32 %217, 97
%219 = add nsw i32 %218, 10
%220 = or i32 %214, %219
store i32 %220, ptr %10, align 4
br label %230
221: ; preds = %207, %202
%222 = load i32, ptr %10, align 4
%223 = shl i32 %222, 4
%224 = load ptr, ptr %8, align 8
%225 = load i8, ptr %224, align 1
%226 = sext i8 %225 to i32
%227 = sub nsw i32 %226, 65
%228 = add nsw i32 %227, 10
%229 = or i32 %223, %228
store i32 %229, ptr %10, align 4
br label %230
230: ; preds = %221, %212
br label %231
231: ; preds = %230, %194
%232 = load ptr, ptr %8, align 8
%233 = getelementptr inbounds i8, ptr %232, i32 1
store ptr %233, ptr %8, align 8
%234 = load ptr, ptr %8, align 8
%235 = load i8, ptr %234, align 1
%236 = call i64 @isxdigit(i8 noundef signext %235)
%237 = icmp ne i64 %236, 0
br i1 %237, label %189, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %231
br label %238
238: ; preds = %._crit_edge6, %184
%239 = load i32, ptr %10, align 4
%240 = icmp ugt i32 %239, 65535
br i1 %240, label %241, label %244
241: ; preds = %238
%242 = load ptr, ptr %6, align 8
%243 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %242)
store i32 -1, ptr %4, align 4
br label %364
244: ; preds = %238
%245 = load i32, ptr %9, align 4
%246 = shl i32 %245, 16
%247 = load i32, ptr %10, align 4
%248 = or i32 %246, %247
store i32 %248, ptr %9, align 4
%249 = load ptr, ptr %8, align 8
%250 = load i8, ptr %249, align 1
%251 = sext i8 %250 to i32
%252 = icmp ne i32 %251, 58
br i1 %252, label %253, label %256
253: ; preds = %244
%254 = load ptr, ptr %6, align 8
%255 = call i32 @bitch(ptr noundef @.str, ptr noundef %254)
store i32 -1, ptr %4, align 4
br label %364
256: ; preds = %244
%257 = load ptr, ptr %8, align 8
%258 = getelementptr inbounds i8, ptr %257, i32 1
store ptr %258, ptr %8, align 8
%259 = load ptr, ptr %8, align 8
%260 = load i8, ptr %259, align 1
%261 = call i64 @isxdigit(i8 noundef signext %260)
%262 = icmp ne i64 %261, 0
br i1 %262, label %266, label %263
263: ; preds = %256
%264 = load ptr, ptr %6, align 8
%265 = call i32 @bitch(ptr noundef @.str, ptr noundef %264)
store i32 -1, ptr %4, align 4
br label %364
266: ; preds = %256
store i32 0, ptr %10, align 4
%267 = load ptr, ptr %8, align 8
%268 = load i8, ptr %267, align 1
%269 = call i64 @isxdigit(i8 noundef signext %268)
%270 = icmp ne i64 %269, 0
br i1 %270, label %.lr.ph8, label %320
.lr.ph8: ; preds = %266
br label %271
271: ; preds = %.lr.ph8, %313
%272 = load ptr, ptr %8, align 8
%273 = load i8, ptr %272, align 1
%274 = call i64 @isdigit(i8 noundef signext %273)
%275 = icmp ne i64 %274, 0
br i1 %275, label %276, label %284
276: ; preds = %271
%277 = load i32, ptr %10, align 4
%278 = shl i32 %277, 4
%279 = load ptr, ptr %8, align 8
%280 = load i8, ptr %279, align 1
%281 = sext i8 %280 to i32
%282 = sub nsw i32 %281, 48
%283 = or i32 %278, %282
store i32 %283, ptr %10, align 4
br label %313
284: ; preds = %271
%285 = load ptr, ptr %8, align 8
%286 = load i8, ptr %285, align 1
%287 = sext i8 %286 to i32
%288 = icmp sge i32 %287, 97
br i1 %288, label %289, label %303
289: ; preds = %284
%290 = load ptr, ptr %8, align 8
%291 = load i8, ptr %290, align 1
%292 = sext i8 %291 to i32
%293 = icmp sle i32 %292, 102
br i1 %293, label %294, label %303
294: ; preds = %289
%295 = load i32, ptr %10, align 4
%296 = shl i32 %295, 4
%297 = load ptr, ptr %8, align 8
%298 = load i8, ptr %297, align 1
%299 = sext i8 %298 to i32
%300 = sub nsw i32 %299, 97
%301 = add nsw i32 %300, 10
%302 = or i32 %296, %301
store i32 %302, ptr %10, align 4
br label %312
303: ; preds = %289, %284
%304 = load i32, ptr %10, align 4
%305 = shl i32 %304, 4
%306 = load ptr, ptr %8, align 8
%307 = load i8, ptr %306, align 1
%308 = sext i8 %307 to i32
%309 = sub nsw i32 %308, 65
%310 = add nsw i32 %309, 10
%311 = or i32 %305, %310
store i32 %311, ptr %10, align 4
br label %312
312: ; preds = %303, %294
br label %313
313: ; preds = %312, %276
%314 = load ptr, ptr %8, align 8
%315 = getelementptr inbounds i8, ptr %314, i32 1
store ptr %315, ptr %8, align 8
%316 = load ptr, ptr %8, align 8
%317 = load i8, ptr %316, align 1
%318 = call i64 @isxdigit(i8 noundef signext %317)
%319 = icmp ne i64 %318, 0
br i1 %319, label %271, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %313
br label %320
320: ; preds = %._crit_edge9, %266
%321 = load i32, ptr %10, align 4
%322 = icmp ugt i32 %321, 65535
br i1 %322, label %323, label %326
323: ; preds = %320
%324 = load ptr, ptr %6, align 8
%325 = call i32 @bitch(ptr noundef @.str.1, ptr noundef %324)
store i32 -1, ptr %4, align 4
br label %364
326: ; preds = %320
%327 = load i32, ptr %9, align 4
%328 = shl i32 %327, 16
%329 = load i32, ptr %10, align 4
%330 = or i32 %328, %329
store i32 %330, ptr %9, align 4
%331 = load i32, ptr %9, align 4
%332 = load ptr, ptr %7, align 8
store i32 %331, ptr %332, align 4
%333 = load ptr, ptr %8, align 8
%334 = load i8, ptr %333, align 1
%335 = sext i8 %334 to i32
%336 = icmp ne i32 %335, 0
br i1 %336, label %337, label %355
337: ; preds = %326
%338 = load ptr, ptr %8, align 8
%339 = load i8, ptr %338, align 1
%340 = call i32 @isspace(i8 noundef signext %339)
%341 = icmp ne i32 %340, 0
br i1 %341, label %355, label %342
342: ; preds = %337
%343 = load ptr, ptr %8, align 8
%344 = load i8, ptr %343, align 1
%345 = sext i8 %344 to i32
%346 = icmp ne i32 %345, 59
br i1 %346, label %347, label %355
347: ; preds = %342
%348 = load ptr, ptr %8, align 8
%349 = load i8, ptr %348, align 1
%350 = sext i8 %349 to i32
%351 = icmp ne i32 %350, 41
br i1 %351, label %352, label %355
352: ; preds = %347
%353 = load ptr, ptr %6, align 8
%354 = call i32 @bitch(ptr noundef @.str, ptr noundef %353)
store i32 -1, ptr %4, align 4
br label %364
355: ; preds = %347, %342, %337, %326
%356 = load ptr, ptr %8, align 8
%357 = call ptr @skip_white_space(ptr noundef %356)
%358 = load ptr, ptr %5, align 8
store ptr %357, ptr %358, align 8
%359 = load ptr, ptr %5, align 8
%360 = load ptr, ptr %359, align 8
%361 = icmp ne ptr %360, null
br i1 %361, label %363, label %362
362: ; preds = %355
store i32 -1, ptr %4, align 4
br label %364
363: ; preds = %355
store i32 1, ptr %4, align 4
br label %364
364: ; preds = %363, %362, %352, %323, %263, %253, %241, %181, %171, %159, %99, %89, %77, %17
%365 = load i32, ptr %4, align 4
ret i32 %365
}
declare i64 @isxdigit(i8 noundef signext) #1
declare i32 @bitch(ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @isspace(i8 noundef signext) #1
declare ptr @skip_white_space(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpb6a36lfr.c'
source_filename = "/tmp/tmpb6a36lfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @mutils_hex_char_to_bin(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %16
7: ; preds = %1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
%15 = trunc i32 %14 to i8
store i8 %15, ptr %2, align 1
br label %24
16: ; preds = %7, %1
%17 = load i8, ptr %3, align 1
%18 = call signext i8 @toupper(i8 noundef signext %17)
store i8 %18, ptr %3, align 1
%19 = load i8, ptr %3, align 1
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 65
%22 = add nsw i32 %21, 10
%23 = trunc i32 %22 to i8
store i8 %23, ptr %2, align 1
br label %24
24: ; preds = %16, %11
%25 = load i8, ptr %2, align 1
ret i8 %25
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb6a36lfr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @mutils_hex_char_to_bin(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %16
7: ; preds = %1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
%15 = trunc i32 %14 to i8
store i8 %15, ptr %2, align 1
br label %24
16: ; preds = %7, %1
%17 = load i8, ptr %3, align 1
%18 = call signext i8 @toupper(i8 noundef signext %17)
store i8 %18, ptr %3, align 1
%19 = load i8, ptr %3, align 1
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 65
%22 = add nsw i32 %21, 10
%23 = trunc i32 %22 to i8
store i8 %23, ptr %2, align 1
br label %24
24: ; preds = %16, %11
%25 = load i8, ptr %2, align 1
ret i8 %25
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6zfe67sk.c'
source_filename = "/tmp/tmp6zfe67sk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_random_number() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @initiate_randomness()
%3 = call i32 (...) @rand()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @initiate_randomness(...) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6zfe67sk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @generate_random_number() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @initiate_randomness()
%3 = call i32 (...) @rand()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
declare i32 @initiate_randomness(...) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptpy8fujh.c'
source_filename = "/tmp/tmptpy8fujh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XmlFindSubNode(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 ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %30
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call ptr @XmlGetContent(ptr noundef %12)
store ptr %13, ptr %6, align 8
store ptr null, ptr %7, align 8
br label %14
14: ; preds = %26, %11
%15 = call i32 @XmlDestroy(ptr noundef %7)
%16 = load ptr, ptr %6, align 8
%17 = call ptr @XmlParseStr(ptr noundef %7, ptr noundef %16)
store ptr %17, ptr %6, align 8
br label %18
18: ; preds = %14
%19 = load ptr, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %5, align 8
%24 = call i64 @XmlTagStrcmp(ptr noundef %22, ptr noundef %23)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %21, %18
%27 = phi i1 [ false, %18 ], [ %25, %21 ]
br i1 %27, label %14, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load ptr, ptr %7, align 8
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %28, %10
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare ptr @XmlGetContent(ptr noundef) #1
declare i32 @XmlDestroy(ptr noundef) #1
declare ptr @XmlParseStr(ptr noundef, ptr noundef) #1
declare i64 @XmlTagStrcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptpy8fujh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XmlFindSubNode(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 ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %30
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call ptr @XmlGetContent(ptr noundef %12)
store ptr %13, ptr %6, align 8
store ptr null, ptr %7, align 8
br label %14
14: ; preds = %26, %11
%15 = call i32 @XmlDestroy(ptr noundef %7)
%16 = load ptr, ptr %6, align 8
%17 = call ptr @XmlParseStr(ptr noundef %7, ptr noundef %16)
store ptr %17, ptr %6, align 8
br label %18
18: ; preds = %14
%19 = load ptr, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %5, align 8
%24 = call i64 @XmlTagStrcmp(ptr noundef %22, ptr noundef %23)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %21, %18
%27 = phi i1 [ false, %18 ], [ %25, %21 ]
br i1 %27, label %14, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load ptr, ptr %7, align 8
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %28, %10
%31 = load ptr, ptr %3, align 8
ret ptr %31
}
declare ptr @XmlGetContent(ptr noundef) #1
declare i32 @XmlDestroy(ptr noundef) #1
declare ptr @XmlParseStr(ptr noundef, ptr noundef) #1
declare i64 @XmlTagStrcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprx4066mr.c'
source_filename = "/tmp/tmprx4066mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"faz algo aqui\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rv() #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/tmprx4066mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"faz algo aqui\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rv() #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/tmpyjpwzjce.c'
source_filename = "/tmp/tmpyjpwzjce.c"
target datalayout = "e-m:e-p270: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/tmpyjpwzjce.c"
target datalayout = "e-m:e-p270: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/tmpq9fuczhz.c'
source_filename = "/tmp/tmpq9fuczhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_builtin_lceill(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @__builtin_lceill(x86_fp80 noundef %3)
%5 = load x86_fp80, ptr %2, align 16
%6 = call i64 @__builtin_lceill(x86_fp80 noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_builtin_lceill()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @__builtin_lceill(x86_fp80 noundef) #1
declare i32 @link_failure_builtin_lceill(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq9fuczhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_builtin_lceill(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @__builtin_lceill(x86_fp80 noundef %3)
%5 = load x86_fp80, ptr %2, align 16
%6 = call i64 @__builtin_lceill(x86_fp80 noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_builtin_lceill()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @__builtin_lceill(x86_fp80 noundef) #1
declare i32 @link_failure_builtin_lceill(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuag526ue.c'
source_filename = "/tmp/tmpuag526ue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"What do you want to change?\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c" [1] Internal SDCard cache size\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c" [2] External SDCard cache size\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" [0] Noting\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"\0AChoice: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readaheadmenu() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %22, %0
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %1)
%9 = load i32, ptr %1, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @readaheadint()
br label %13
13: ; preds = %11, %2
%14 = load i32, ptr %1, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @readaheadext()
br label %18
18: ; preds = %16, %13
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %18
br label %23
22: ; preds = %18
br label %2
23: ; preds = %21
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @readaheadint(...) #1
declare i32 @readaheadext(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuag526ue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"What do you want to change?\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c" [1] Internal SDCard cache size\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c" [2] External SDCard cache size\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" [0] Noting\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"\0AChoice: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readaheadmenu() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %18, %0
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %1)
%9 = load i32, ptr %1, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @readaheadint()
br label %13
13: ; preds = %11, %2
%14 = load i32, ptr %1, align 4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @readaheadext()
br label %18
18: ; preds = %16, %13
%19 = load i32, ptr %1, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %2
21: ; preds = %18
br label %22
22: ; preds = %21
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @readaheadint(...) #1
declare i32 @readaheadext(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphbj1fon2.c'
source_filename = "/tmp/tmphbj1fon2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"fn93\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fn93() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 20
%4 = add nsw i32 20, %3
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 20
%9 = add nsw i32 30, %8
%10 = call ptr @realloc(ptr noundef %6, i32 noundef %9)
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %1, align 8
ret ptr %13
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphbj1fon2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"fn93\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fn93() #0 {
%1 = alloca ptr, align 8
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 20
%4 = add nsw i32 20, %3
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %1, align 8
%6 = load ptr, ptr %1, align 8
%7 = call i32 (...) @rand()
%8 = srem i32 %7, 20
%9 = add nsw i32 30, %8
%10 = call ptr @realloc(ptr noundef %6, i32 noundef %9)
store ptr %10, ptr %1, align 8
%11 = load ptr, ptr %1, align 8
%12 = call i32 @strcpy(ptr noundef %11, ptr noundef @.str)
%13 = load ptr, ptr %1, align 8
ret ptr %13
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp26yyt8_3.c'
source_filename = "/tmp/tmp26yyt8_3.c"
target datalayout = "e-m:e-p270: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.ch1 = private unnamed_addr constant [16 x i8] c"0123456789ABCDEF", align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10000 x i32], align 16
%3 = alloca [16 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.ch1, i64 16, i1 false)
store i32 0, ptr %5, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
br label %9
9: ; preds = %12, %0
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load i32, ptr %4, align 4
%14 = srem i32 %13, 16
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10000 x i32], ptr %2, i64 0, i64 %16
store i32 %14, ptr %17, align 4
%18 = load i32, ptr %4, align 4
%19 = sdiv i32 %18, 16
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %39, %22
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %28, label %42
28: ; preds = %25
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10000 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37)
br label %39
39: ; preds = %28
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %6, align 4
br label %25, !llvm.loop !8
42: ; preds = %25
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp26yyt8_3.c"
target datalayout = "e-m:e-p270: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.ch1 = private unnamed_addr constant [16 x i8] c"0123456789ABCDEF", align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10000 x i32], align 16
%3 = alloca [16 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.ch1, i64 16, i1 false)
store i32 0, ptr %5, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %4, align 4
%13 = srem i32 %12, 16
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10000 x i32], ptr %2, i64 0, i64 %15
store i32 %13, ptr %16, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 16
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %23
23: ; preds = %._crit_edge, %0
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %.lr.ph2, label %44
.lr.ph2: ; preds = %23
br label %28
28: ; preds = %.lr.ph2, %39
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10000 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [16 x i8], ptr %3, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37)
br label %39
39: ; preds = %28
%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 = icmp sge i32 %42, 0
br i1 %43, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %44
44: ; preds = %._crit_edge3, %23
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpp1t_9kcy.c'
source_filename = "/tmp/tmpp1t_9kcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"%d little old ladies started the race\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"But only %d little old ladies finished it\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 ptr %2, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
store i32 101, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
store ptr %3, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
store i32 8, ptr %9, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp1t_9kcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"%d little old ladies started the race\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"But only %d little old ladies finished it\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 ptr %2, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
store i32 101, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
store ptr %3, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
store i32 8, ptr %9, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
%13 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn7opo4ew.c'
source_filename = "/tmp/tmpn7opo4ew.c"
target datalayout = "e-m:e-p270: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/tmpn7opo4ew.c"
target datalayout = "e-m:e-p270: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/tmpe7ncinca.c'
source_filename = "/tmp/tmpe7ncinca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ld0434(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store i32 0, ptr %11, align 4
store double 0x3F41415AFA56554C, ptr %12, align 8
%13 = load i32, ptr %11, align 4
%14 = load double, ptr %9, align 8
%15 = load double, ptr %10, align 8
%16 = load double, ptr %12, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %11, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %11, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %11, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = call i32 @gen_oh(i32 noundef 1, double noundef %14, double noundef %15, double noundef %16, ptr noundef %20, ptr noundef %24, ptr noundef %28, ptr noundef %32)
%34 = add nsw i32 %13, %33
store i32 %34, ptr %11, align 4
store double 0x3F64E0012E2B21FE, ptr %12, align 8
%35 = load i32, ptr %11, align 4
%36 = load double, ptr %9, align 8
%37 = load double, ptr %10, align 8
%38 = load double, ptr %12, align 8
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %11, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %47, i64 %49
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %11, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %51, i64 %53
%55 = call i32 @gen_oh(i32 noundef 2, double noundef %36, double noundef %37, double noundef %38, ptr noundef %42, ptr noundef %46, ptr noundef %50, ptr noundef %54)
%56 = add nsw i32 %35, %55
store i32 %56, ptr %11, align 4
store double 0x3F6494B624D8CADA, ptr %12, align 8
%57 = load i32, ptr %11, align 4
%58 = load double, ptr %9, align 8
%59 = load double, ptr %10, align 8
%60 = load double, ptr %12, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %11, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load ptr, ptr %7, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %69, i64 %71
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = call i32 @gen_oh(i32 noundef 3, double noundef %58, double noundef %59, double noundef %60, ptr noundef %64, ptr noundef %68, ptr noundef %72, ptr noundef %76)
%78 = add nsw i32 %57, %77
store i32 %78, ptr %11, align 4
store double 0x3FE61C22F157F7CD, ptr %9, align 8
store double 0x3F64BAA4324BEF83, ptr %12, align 8
%79 = load i32, ptr %11, align 4
%80 = load double, ptr %9, align 8
%81 = load double, ptr %10, align 8
%82 = load double, ptr %12, align 8
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %11, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %91, i64 %93
%95 = load ptr, ptr %8, align 8
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %95, i64 %97
%99 = call i32 @gen_oh(i32 noundef 4, double noundef %80, double noundef %81, double noundef %82, ptr noundef %86, ptr noundef %90, ptr noundef %94, ptr noundef %98)
%100 = add nsw i32 %79, %99
store i32 %100, ptr %11, align 4
store double 0x3FC6B7C86483F144, ptr %9, align 8
store double 0x3F60803FD0A2B9C8, ptr %12, align 8
%101 = load i32, ptr %11, align 4
%102 = load double, ptr %9, align 8
%103 = load double, ptr %10, align 8
%104 = load double, ptr %12, align 8
%105 = load ptr, ptr %5, align 8
%106 = load i32, ptr %11, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %105, i64 %107
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %11, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, ptr %109, i64 %111
%113 = load ptr, ptr %7, align 8
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, ptr %113, i64 %115
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr %11, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %117, i64 %119
%121 = call i32 @gen_oh(i32 noundef 4, double noundef %102, double noundef %103, double noundef %104, ptr noundef %108, ptr noundef %112, ptr noundef %116, ptr noundef %120)
%122 = add nsw i32 %101, %121
store i32 %122, ptr %11, align 4
store double 0x3FDF73A8B2C3FE21, ptr %9, align 8
store double 0x3F647E7F790515B5, ptr %12, align 8
%123 = load i32, ptr %11, align 4
%124 = load double, ptr %9, align 8
%125 = load double, ptr %10, align 8
%126 = load double, ptr %12, align 8
%127 = load ptr, ptr %5, align 8
%128 = load i32, ptr %11, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, ptr %127, i64 %129
%131 = load ptr, ptr %6, align 8
%132 = load i32, ptr %11, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
%135 = load ptr, ptr %7, align 8
%136 = load i32, ptr %11, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, ptr %135, i64 %137
%139 = load ptr, ptr %8, align 8
%140 = load i32, ptr %11, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, ptr %139, i64 %141
%143 = call i32 @gen_oh(i32 noundef 4, double noundef %124, double noundef %125, double noundef %126, ptr noundef %130, ptr noundef %134, ptr noundef %138, ptr noundef %142)
%144 = add nsw i32 %123, %143
store i32 %144, ptr %11, align 4
store double 0x3FE4A94CBAFECC76, ptr %9, align 8
store double 0x3F6496B40A45B02D, ptr %12, align 8
%145 = load i32, ptr %11, align 4
%146 = load double, ptr %9, align 8
%147 = load double, ptr %10, align 8
%148 = load double, ptr %12, align 8
%149 = load ptr, ptr %5, align 8
%150 = load i32, ptr %11, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, ptr %149, i64 %151
%153 = load ptr, ptr %6, align 8
%154 = load i32, ptr %11, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, ptr %153, i64 %155
%157 = load ptr, ptr %7, align 8
%158 = load i32, ptr %11, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %157, i64 %159
%161 = load ptr, ptr %8, align 8
%162 = load i32, ptr %11, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %161, i64 %163
%165 = call i32 @gen_oh(i32 noundef 4, double noundef %146, double noundef %147, double noundef %148, ptr noundef %152, ptr noundef %156, ptr noundef %160, ptr noundef %164)
%166 = add nsw i32 %145, %165
store i32 %166, ptr %11, align 4
store double 0x3FD24FEF981785F6, ptr %9, align 8
store double 0x3F62DD19D908E6C1, ptr %12, align 8
%167 = load i32, ptr %11, align 4
%168 = load double, ptr %9, align 8
%169 = load double, ptr %10, align 8
%170 = load double, ptr %12, align 8
%171 = load ptr, ptr %5, align 8
%172 = load i32, ptr %11, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
%175 = load ptr, ptr %6, align 8
%176 = load i32, ptr %11, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, ptr %175, i64 %177
%179 = load ptr, ptr %7, align 8
%180 = load i32, ptr %11, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, ptr %179, i64 %181
%183 = load ptr, ptr %8, align 8
%184 = load i32, ptr %11, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double, ptr %183, i64 %185
%187 = call i32 @gen_oh(i32 noundef 4, double noundef %168, double noundef %169, double noundef %170, ptr noundef %174, ptr noundef %178, ptr noundef %182, ptr noundef %186)
%188 = add nsw i32 %167, %187
store i32 %188, ptr %11, align 4
store double 0x3FB35FD1DC810520, ptr %9, align 8
store double 0x3F57F626B760F1F1, ptr %12, align 8
%189 = load i32, ptr %11, align 4
%190 = load double, ptr %9, align 8
%191 = load double, ptr %10, align 8
%192 = load double, ptr %12, align 8
%193 = load ptr, ptr %5, align 8
%194 = load i32, ptr %11, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, ptr %193, i64 %195
%197 = load ptr, ptr %6, align 8
%198 = load i32, ptr %11, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, ptr %197, i64 %199
%201 = load ptr, ptr %7, align 8
%202 = load i32, ptr %11, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
%205 = load ptr, ptr %8, align 8
%206 = load i32, ptr %11, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, ptr %205, i64 %207
%209 = call i32 @gen_oh(i32 noundef 4, double noundef %190, double noundef %191, double noundef %192, ptr noundef %196, ptr noundef %200, ptr noundef %204, ptr noundef %208)
%210 = add nsw i32 %189, %209
store i32 %210, ptr %11, align 4
store double 0x3FD9226C2229FF9E, ptr %9, align 8
store double 0x3F640851DE1290E4, ptr %12, align 8
%211 = load i32, ptr %11, align 4
%212 = load double, ptr %9, align 8
%213 = load double, ptr %10, align 8
%214 = load double, ptr %12, align 8
%215 = load ptr, ptr %5, align 8
%216 = load i32, ptr %11, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, ptr %215, i64 %217
%219 = load ptr, ptr %6, align 8
%220 = load i32, ptr %11, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
%223 = load ptr, ptr %7, align 8
%224 = load i32, ptr %11, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, ptr %223, i64 %225
%227 = load ptr, ptr %8, align 8
%228 = load i32, ptr %11, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %227, i64 %229
%231 = call i32 @gen_oh(i32 noundef 4, double noundef %212, double noundef %213, double noundef %214, ptr noundef %218, ptr noundef %222, ptr noundef %226, ptr noundef %230)
%232 = add nsw i32 %211, %231
store i32 %232, ptr %11, align 4
store double 0x3FEC37D080061BB7, ptr %9, align 8
store double 0x3F63CDBE7E2FCAB9, ptr %12, align 8
%233 = load i32, ptr %11, align 4
%234 = load double, ptr %9, align 8
%235 = load double, ptr %10, align 8
%236 = load double, ptr %12, align 8
%237 = load ptr, ptr %5, align 8
%238 = load i32, ptr %11, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, ptr %237, i64 %239
%241 = load ptr, ptr %6, align 8
%242 = load i32, ptr %11, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, ptr %241, i64 %243
%245 = load ptr, ptr %7, align 8
%246 = load i32, ptr %11, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, ptr %245, i64 %247
%249 = load ptr, ptr %8, align 8
%250 = load i32, ptr %11, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, ptr %249, i64 %251
%253 = call i32 @gen_oh(i32 noundef 5, double noundef %234, double noundef %235, double noundef %236, ptr noundef %240, ptr noundef %244, ptr noundef %248, ptr noundef %252)
%254 = add nsw i32 %233, %253
store i32 %254, ptr %11, align 4
store double 0x3FEF48D9939D84BC, ptr %9, align 8
store double 0x3F5F4F1C50B7ABA6, ptr %12, align 8
%255 = load i32, ptr %11, align 4
%256 = load double, ptr %9, align 8
%257 = load double, ptr %10, align 8
%258 = load double, ptr %12, align 8
%259 = load ptr, ptr %5, align 8
%260 = load i32, ptr %11, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, ptr %259, i64 %261
%263 = load ptr, ptr %6, align 8
%264 = load i32, ptr %11, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, ptr %263, i64 %265
%267 = load ptr, ptr %7, align 8
%268 = load i32, ptr %11, align 4
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds double, ptr %267, i64 %269
%271 = load ptr, ptr %8, align 8
%272 = load i32, ptr %11, align 4
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds double, ptr %271, i64 %273
%275 = call i32 @gen_oh(i32 noundef 5, double noundef %256, double noundef %257, double noundef %258, ptr noundef %262, ptr noundef %266, ptr noundef %270, ptr noundef %274)
%276 = add nsw i32 %255, %275
store i32 %276, ptr %11, align 4
store double 0x3FCA4D3F0CC13D8B, ptr %9, align 8
store double 0x3FEBCE67E8D53485, ptr %10, align 8
store double 0x3F63CCAB6FE8333A, ptr %12, align 8
%277 = load i32, ptr %11, align 4
%278 = load double, ptr %9, align 8
%279 = load double, ptr %10, align 8
%280 = load double, ptr %12, align 8
%281 = load ptr, ptr %5, align 8
%282 = load i32, ptr %11, align 4
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, ptr %281, i64 %283
%285 = load ptr, ptr %6, align 8
%286 = load i32, ptr %11, align 4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds double, ptr %285, i64 %287
%289 = load ptr, ptr %7, align 8
%290 = load i32, ptr %11, align 4
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds double, ptr %289, i64 %291
%293 = load ptr, ptr %8, align 8
%294 = load i32, ptr %11, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds double, ptr %293, i64 %295
%297 = call i32 @gen_oh(i32 noundef 6, double noundef %278, double noundef %279, double noundef %280, ptr noundef %284, ptr noundef %288, ptr noundef %292, ptr noundef %296)
%298 = add nsw i32 %277, %297
store i32 %298, ptr %11, align 4
store double 0x3FE2E58131093596, ptr %9, align 8
store double 0x3FE999024CB7E07F, ptr %10, align 8
store double 0x3F64948AE42A3D2B, ptr %12, align 8
%299 = load i32, ptr %11, align 4
%300 = load double, ptr %9, align 8
%301 = load double, ptr %10, align 8
%302 = load double, ptr %12, align 8
%303 = load ptr, ptr %5, align 8
%304 = load i32, ptr %11, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds double, ptr %303, i64 %305
%307 = load ptr, ptr %6, align 8
%308 = load i32, ptr %11, align 4
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds double, ptr %307, i64 %309
%311 = load ptr, ptr %7, align 8
%312 = load i32, ptr %11, align 4
%313 = sext i32 %312 to i64
%314 = getelementptr inbounds double, ptr %311, i64 %313
%315 = load ptr, ptr %8, align 8
%316 = load i32, ptr %11, align 4
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds double, ptr %315, i64 %317
%319 = call i32 @gen_oh(i32 noundef 6, double noundef %300, double noundef %301, double noundef %302, ptr noundef %306, ptr noundef %310, ptr noundef %314, ptr noundef %318)
%320 = add nsw i32 %299, %319
store i32 %320, ptr %11, align 4
store double 0x3FE1C2AF4FFBA795, ptr %9, align 8
store double 0x3FE8B22537E24264, ptr %10, align 8
store double 0x3F6473D7920CC416, ptr %12, align 8
%321 = load i32, ptr %11, align 4
%322 = load double, ptr %9, align 8
%323 = load double, ptr %10, align 8
%324 = load double, ptr %12, align 8
%325 = load ptr, ptr %5, align 8
%326 = load i32, ptr %11, align 4
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds double, ptr %325, i64 %327
%329 = load ptr, ptr %6, align 8
%330 = load i32, ptr %11, align 4
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, ptr %329, i64 %331
%333 = load ptr, ptr %7, align 8
%334 = load i32, ptr %11, align 4
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds double, ptr %333, i64 %335
%337 = load ptr, ptr %8, align 8
%338 = load i32, ptr %11, align 4
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds double, ptr %337, i64 %339
%341 = call i32 @gen_oh(i32 noundef 6, double noundef %322, double noundef %323, double noundef %324, ptr noundef %328, ptr noundef %332, ptr noundef %336, ptr noundef %340)
%342 = add nsw i32 %321, %341
store i32 %342, ptr %11, align 4
store double 0x3FEDFD62FA95D1D1, ptr %9, align 8
store double 0x3FD5676792614422, ptr %10, align 8
store double 0x3F625281A5EC03B6, ptr %12, align 8
%343 = load i32, ptr %11, align 4
%344 = load double, ptr %9, align 8
%345 = load double, ptr %10, align 8
%346 = load double, ptr %12, align 8
%347 = load ptr, ptr %5, align 8
%348 = load i32, ptr %11, align 4
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, ptr %347, i64 %349
%351 = load ptr, ptr %6, align 8
%352 = load i32, ptr %11, align 4
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds double, ptr %351, i64 %353
%355 = load ptr, ptr %7, align 8
%356 = load i32, ptr %11, align 4
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds double, ptr %355, i64 %357
%359 = load ptr, ptr %8, align 8
%360 = load i32, ptr %11, align 4
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds double, ptr %359, i64 %361
%363 = call i32 @gen_oh(i32 noundef 6, double noundef %344, double noundef %345, double noundef %346, ptr noundef %350, ptr noundef %354, ptr noundef %358, ptr noundef %362)
%364 = add nsw i32 %343, %363
store i32 %364, ptr %11, align 4
%365 = load i32, ptr %11, align 4
%366 = sub nsw i32 %365, 1
store i32 %366, ptr %11, align 4
ret void
}
declare i32 @gen_oh(i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe7ncinca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ld0434(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store double 0.000000e+00, ptr %10, align 8
store i32 0, ptr %11, align 4
store double 0x3F41415AFA56554C, ptr %12, align 8
%13 = load i32, ptr %11, align 4
%14 = load double, ptr %9, align 8
%15 = load double, ptr %10, align 8
%16 = load double, ptr %12, align 8
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %11, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %11, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %11, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %25, i64 %27
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %11, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %29, i64 %31
%33 = call i32 @gen_oh(i32 noundef 1, double noundef %14, double noundef %15, double noundef %16, ptr noundef %20, ptr noundef %24, ptr noundef %28, ptr noundef %32)
%34 = add nsw i32 %13, %33
store i32 %34, ptr %11, align 4
store double 0x3F64E0012E2B21FE, ptr %12, align 8
%35 = load i32, ptr %11, align 4
%36 = load double, ptr %9, align 8
%37 = load double, ptr %10, align 8
%38 = load double, ptr %12, align 8
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %11, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = load ptr, ptr %7, align 8
%48 = load i32, ptr %11, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %47, i64 %49
%51 = load ptr, ptr %8, align 8
%52 = load i32, ptr %11, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %51, i64 %53
%55 = call i32 @gen_oh(i32 noundef 2, double noundef %36, double noundef %37, double noundef %38, ptr noundef %42, ptr noundef %46, ptr noundef %50, ptr noundef %54)
%56 = add nsw i32 %35, %55
store i32 %56, ptr %11, align 4
store double 0x3F6494B624D8CADA, ptr %12, align 8
%57 = load i32, ptr %11, align 4
%58 = load double, ptr %9, align 8
%59 = load double, ptr %10, align 8
%60 = load double, ptr %12, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %11, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load ptr, ptr %7, align 8
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %69, i64 %71
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = call i32 @gen_oh(i32 noundef 3, double noundef %58, double noundef %59, double noundef %60, ptr noundef %64, ptr noundef %68, ptr noundef %72, ptr noundef %76)
%78 = add nsw i32 %57, %77
store i32 %78, ptr %11, align 4
store double 0x3FE61C22F157F7CD, ptr %9, align 8
store double 0x3F64BAA4324BEF83, ptr %12, align 8
%79 = load i32, ptr %11, align 4
%80 = load double, ptr %9, align 8
%81 = load double, ptr %10, align 8
%82 = load double, ptr %12, align 8
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %11, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %91, i64 %93
%95 = load ptr, ptr %8, align 8
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %95, i64 %97
%99 = call i32 @gen_oh(i32 noundef 4, double noundef %80, double noundef %81, double noundef %82, ptr noundef %86, ptr noundef %90, ptr noundef %94, ptr noundef %98)
%100 = add nsw i32 %79, %99
store i32 %100, ptr %11, align 4
store double 0x3FC6B7C86483F144, ptr %9, align 8
store double 0x3F60803FD0A2B9C8, ptr %12, align 8
%101 = load i32, ptr %11, align 4
%102 = load double, ptr %9, align 8
%103 = load double, ptr %10, align 8
%104 = load double, ptr %12, align 8
%105 = load ptr, ptr %5, align 8
%106 = load i32, ptr %11, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %105, i64 %107
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %11, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, ptr %109, i64 %111
%113 = load ptr, ptr %7, align 8
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, ptr %113, i64 %115
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr %11, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %117, i64 %119
%121 = call i32 @gen_oh(i32 noundef 4, double noundef %102, double noundef %103, double noundef %104, ptr noundef %108, ptr noundef %112, ptr noundef %116, ptr noundef %120)
%122 = add nsw i32 %101, %121
store i32 %122, ptr %11, align 4
store double 0x3FDF73A8B2C3FE21, ptr %9, align 8
store double 0x3F647E7F790515B5, ptr %12, align 8
%123 = load i32, ptr %11, align 4
%124 = load double, ptr %9, align 8
%125 = load double, ptr %10, align 8
%126 = load double, ptr %12, align 8
%127 = load ptr, ptr %5, align 8
%128 = load i32, ptr %11, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, ptr %127, i64 %129
%131 = load ptr, ptr %6, align 8
%132 = load i32, ptr %11, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
%135 = load ptr, ptr %7, align 8
%136 = load i32, ptr %11, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, ptr %135, i64 %137
%139 = load ptr, ptr %8, align 8
%140 = load i32, ptr %11, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, ptr %139, i64 %141
%143 = call i32 @gen_oh(i32 noundef 4, double noundef %124, double noundef %125, double noundef %126, ptr noundef %130, ptr noundef %134, ptr noundef %138, ptr noundef %142)
%144 = add nsw i32 %123, %143
store i32 %144, ptr %11, align 4
store double 0x3FE4A94CBAFECC76, ptr %9, align 8
store double 0x3F6496B40A45B02D, ptr %12, align 8
%145 = load i32, ptr %11, align 4
%146 = load double, ptr %9, align 8
%147 = load double, ptr %10, align 8
%148 = load double, ptr %12, align 8
%149 = load ptr, ptr %5, align 8
%150 = load i32, ptr %11, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, ptr %149, i64 %151
%153 = load ptr, ptr %6, align 8
%154 = load i32, ptr %11, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, ptr %153, i64 %155
%157 = load ptr, ptr %7, align 8
%158 = load i32, ptr %11, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %157, i64 %159
%161 = load ptr, ptr %8, align 8
%162 = load i32, ptr %11, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %161, i64 %163
%165 = call i32 @gen_oh(i32 noundef 4, double noundef %146, double noundef %147, double noundef %148, ptr noundef %152, ptr noundef %156, ptr noundef %160, ptr noundef %164)
%166 = add nsw i32 %145, %165
store i32 %166, ptr %11, align 4
store double 0x3FD24FEF981785F6, ptr %9, align 8
store double 0x3F62DD19D908E6C1, ptr %12, align 8
%167 = load i32, ptr %11, align 4
%168 = load double, ptr %9, align 8
%169 = load double, ptr %10, align 8
%170 = load double, ptr %12, align 8
%171 = load ptr, ptr %5, align 8
%172 = load i32, ptr %11, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
%175 = load ptr, ptr %6, align 8
%176 = load i32, ptr %11, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, ptr %175, i64 %177
%179 = load ptr, ptr %7, align 8
%180 = load i32, ptr %11, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, ptr %179, i64 %181
%183 = load ptr, ptr %8, align 8
%184 = load i32, ptr %11, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double, ptr %183, i64 %185
%187 = call i32 @gen_oh(i32 noundef 4, double noundef %168, double noundef %169, double noundef %170, ptr noundef %174, ptr noundef %178, ptr noundef %182, ptr noundef %186)
%188 = add nsw i32 %167, %187
store i32 %188, ptr %11, align 4
store double 0x3FB35FD1DC810520, ptr %9, align 8
store double 0x3F57F626B760F1F1, ptr %12, align 8
%189 = load i32, ptr %11, align 4
%190 = load double, ptr %9, align 8
%191 = load double, ptr %10, align 8
%192 = load double, ptr %12, align 8
%193 = load ptr, ptr %5, align 8
%194 = load i32, ptr %11, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, ptr %193, i64 %195
%197 = load ptr, ptr %6, align 8
%198 = load i32, ptr %11, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, ptr %197, i64 %199
%201 = load ptr, ptr %7, align 8
%202 = load i32, ptr %11, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
%205 = load ptr, ptr %8, align 8
%206 = load i32, ptr %11, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, ptr %205, i64 %207
%209 = call i32 @gen_oh(i32 noundef 4, double noundef %190, double noundef %191, double noundef %192, ptr noundef %196, ptr noundef %200, ptr noundef %204, ptr noundef %208)
%210 = add nsw i32 %189, %209
store i32 %210, ptr %11, align 4
store double 0x3FD9226C2229FF9E, ptr %9, align 8
store double 0x3F640851DE1290E4, ptr %12, align 8
%211 = load i32, ptr %11, align 4
%212 = load double, ptr %9, align 8
%213 = load double, ptr %10, align 8
%214 = load double, ptr %12, align 8
%215 = load ptr, ptr %5, align 8
%216 = load i32, ptr %11, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, ptr %215, i64 %217
%219 = load ptr, ptr %6, align 8
%220 = load i32, ptr %11, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
%223 = load ptr, ptr %7, align 8
%224 = load i32, ptr %11, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, ptr %223, i64 %225
%227 = load ptr, ptr %8, align 8
%228 = load i32, ptr %11, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %227, i64 %229
%231 = call i32 @gen_oh(i32 noundef 4, double noundef %212, double noundef %213, double noundef %214, ptr noundef %218, ptr noundef %222, ptr noundef %226, ptr noundef %230)
%232 = add nsw i32 %211, %231
store i32 %232, ptr %11, align 4
store double 0x3FEC37D080061BB7, ptr %9, align 8
store double 0x3F63CDBE7E2FCAB9, ptr %12, align 8
%233 = load i32, ptr %11, align 4
%234 = load double, ptr %9, align 8
%235 = load double, ptr %10, align 8
%236 = load double, ptr %12, align 8
%237 = load ptr, ptr %5, align 8
%238 = load i32, ptr %11, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, ptr %237, i64 %239
%241 = load ptr, ptr %6, align 8
%242 = load i32, ptr %11, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, ptr %241, i64 %243
%245 = load ptr, ptr %7, align 8
%246 = load i32, ptr %11, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, ptr %245, i64 %247
%249 = load ptr, ptr %8, align 8
%250 = load i32, ptr %11, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, ptr %249, i64 %251
%253 = call i32 @gen_oh(i32 noundef 5, double noundef %234, double noundef %235, double noundef %236, ptr noundef %240, ptr noundef %244, ptr noundef %248, ptr noundef %252)
%254 = add nsw i32 %233, %253
store i32 %254, ptr %11, align 4
store double 0x3FEF48D9939D84BC, ptr %9, align 8
store double 0x3F5F4F1C50B7ABA6, ptr %12, align 8
%255 = load i32, ptr %11, align 4
%256 = load double, ptr %9, align 8
%257 = load double, ptr %10, align 8
%258 = load double, ptr %12, align 8
%259 = load ptr, ptr %5, align 8
%260 = load i32, ptr %11, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, ptr %259, i64 %261
%263 = load ptr, ptr %6, align 8
%264 = load i32, ptr %11, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, ptr %263, i64 %265
%267 = load ptr, ptr %7, align 8
%268 = load i32, ptr %11, align 4
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds double, ptr %267, i64 %269
%271 = load ptr, ptr %8, align 8
%272 = load i32, ptr %11, align 4
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds double, ptr %271, i64 %273
%275 = call i32 @gen_oh(i32 noundef 5, double noundef %256, double noundef %257, double noundef %258, ptr noundef %262, ptr noundef %266, ptr noundef %270, ptr noundef %274)
%276 = add nsw i32 %255, %275
store i32 %276, ptr %11, align 4
store double 0x3FCA4D3F0CC13D8B, ptr %9, align 8
store double 0x3FEBCE67E8D53485, ptr %10, align 8
store double 0x3F63CCAB6FE8333A, ptr %12, align 8
%277 = load i32, ptr %11, align 4
%278 = load double, ptr %9, align 8
%279 = load double, ptr %10, align 8
%280 = load double, ptr %12, align 8
%281 = load ptr, ptr %5, align 8
%282 = load i32, ptr %11, align 4
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, ptr %281, i64 %283
%285 = load ptr, ptr %6, align 8
%286 = load i32, ptr %11, align 4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds double, ptr %285, i64 %287
%289 = load ptr, ptr %7, align 8
%290 = load i32, ptr %11, align 4
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds double, ptr %289, i64 %291
%293 = load ptr, ptr %8, align 8
%294 = load i32, ptr %11, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds double, ptr %293, i64 %295
%297 = call i32 @gen_oh(i32 noundef 6, double noundef %278, double noundef %279, double noundef %280, ptr noundef %284, ptr noundef %288, ptr noundef %292, ptr noundef %296)
%298 = add nsw i32 %277, %297
store i32 %298, ptr %11, align 4
store double 0x3FE2E58131093596, ptr %9, align 8
store double 0x3FE999024CB7E07F, ptr %10, align 8
store double 0x3F64948AE42A3D2B, ptr %12, align 8
%299 = load i32, ptr %11, align 4
%300 = load double, ptr %9, align 8
%301 = load double, ptr %10, align 8
%302 = load double, ptr %12, align 8
%303 = load ptr, ptr %5, align 8
%304 = load i32, ptr %11, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds double, ptr %303, i64 %305
%307 = load ptr, ptr %6, align 8
%308 = load i32, ptr %11, align 4
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds double, ptr %307, i64 %309
%311 = load ptr, ptr %7, align 8
%312 = load i32, ptr %11, align 4
%313 = sext i32 %312 to i64
%314 = getelementptr inbounds double, ptr %311, i64 %313
%315 = load ptr, ptr %8, align 8
%316 = load i32, ptr %11, align 4
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds double, ptr %315, i64 %317
%319 = call i32 @gen_oh(i32 noundef 6, double noundef %300, double noundef %301, double noundef %302, ptr noundef %306, ptr noundef %310, ptr noundef %314, ptr noundef %318)
%320 = add nsw i32 %299, %319
store i32 %320, ptr %11, align 4
store double 0x3FE1C2AF4FFBA795, ptr %9, align 8
store double 0x3FE8B22537E24264, ptr %10, align 8
store double 0x3F6473D7920CC416, ptr %12, align 8
%321 = load i32, ptr %11, align 4
%322 = load double, ptr %9, align 8
%323 = load double, ptr %10, align 8
%324 = load double, ptr %12, align 8
%325 = load ptr, ptr %5, align 8
%326 = load i32, ptr %11, align 4
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds double, ptr %325, i64 %327
%329 = load ptr, ptr %6, align 8
%330 = load i32, ptr %11, align 4
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, ptr %329, i64 %331
%333 = load ptr, ptr %7, align 8
%334 = load i32, ptr %11, align 4
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds double, ptr %333, i64 %335
%337 = load ptr, ptr %8, align 8
%338 = load i32, ptr %11, align 4
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds double, ptr %337, i64 %339
%341 = call i32 @gen_oh(i32 noundef 6, double noundef %322, double noundef %323, double noundef %324, ptr noundef %328, ptr noundef %332, ptr noundef %336, ptr noundef %340)
%342 = add nsw i32 %321, %341
store i32 %342, ptr %11, align 4
store double 0x3FEDFD62FA95D1D1, ptr %9, align 8
store double 0x3FD5676792614422, ptr %10, align 8
store double 0x3F625281A5EC03B6, ptr %12, align 8
%343 = load i32, ptr %11, align 4
%344 = load double, ptr %9, align 8
%345 = load double, ptr %10, align 8
%346 = load double, ptr %12, align 8
%347 = load ptr, ptr %5, align 8
%348 = load i32, ptr %11, align 4
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, ptr %347, i64 %349
%351 = load ptr, ptr %6, align 8
%352 = load i32, ptr %11, align 4
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds double, ptr %351, i64 %353
%355 = load ptr, ptr %7, align 8
%356 = load i32, ptr %11, align 4
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds double, ptr %355, i64 %357
%359 = load ptr, ptr %8, align 8
%360 = load i32, ptr %11, align 4
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds double, ptr %359, i64 %361
%363 = call i32 @gen_oh(i32 noundef 6, double noundef %344, double noundef %345, double noundef %346, ptr noundef %350, ptr noundef %354, ptr noundef %358, ptr noundef %362)
%364 = add nsw i32 %343, %363
store i32 %364, ptr %11, align 4
%365 = load i32, ptr %11, align 4
%366 = sub nsw i32 %365, 1
store i32 %366, ptr %11, align 4
ret void
}
declare i32 @gen_oh(i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptq6cj_38.c'
source_filename = "/tmp/tmptq6cj_38.c"
target datalayout = "e-m:e-p270: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/tmptq6cj_38.c"
target datalayout = "e-m:e-p270: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/tmpan9izrb3.c'
source_filename = "/tmp/tmpan9izrb3.c"
target datalayout = "e-m:e-p270: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/tmpan9izrb3.c"
target datalayout = "e-m:e-p270: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/tmplstr_h3c.c'
source_filename = "/tmp/tmplstr_h3c.c"
target datalayout = "e-m:e-p270: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 [56 x i8] c"thread local destructor pid %d tid %d ppid %d tid %ld \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cancel_it(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 @stderr, align 4
%5 = call i32 (...) @getpid()
%6 = call i32 (...) @gettid()
%7 = call i32 (...) @getppid()
%8 = call i32 (...) @pthread_self()
%9 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @gettid(...) #1
declare i32 @getppid(...) #1
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplstr_h3c.c"
target datalayout = "e-m:e-p270: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 [56 x i8] c"thread local destructor pid %d tid %d ppid %d tid %ld \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cancel_it(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 @stderr, align 4
%5 = call i32 (...) @getpid()
%6 = call i32 (...) @gettid()
%7 = call i32 (...) @getppid()
%8 = call i32 (...) @pthread_self()
%9 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @gettid(...) #1
declare i32 @getppid(...) #1
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp93a6ypuo.c'
source_filename = "/tmp/tmp93a6ypuo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @A(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @B(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = mul nsw i32 %11, %12
%14 = add nsw i32 %10, %13
ret i32 %14
}
declare i32 @B(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp93a6ypuo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @A(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @B(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = mul nsw i32 %11, %12
%14 = add nsw i32 %10, %13
ret i32 %14
}
declare i32 @B(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6l0q9pg5.c'
source_filename = "/tmp/tmp6l0q9pg5.c"
target datalayout = "e-m:e-p270: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/tmp6l0q9pg5.c"
target datalayout = "e-m:e-p270: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/tmp3mo54y2l.c'
source_filename = "/tmp/tmp3mo54y2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @customreset() #0 {
%1 = call i32 (...) @IWM_Reset()
%2 = call i32 (...) @SCC_Reset()
%3 = call i32 (...) @SCSI_Reset()
%4 = call i32 (...) @VIA1_Reset()
%5 = call i32 (...) @VIA2_Reset()
%6 = call i32 (...) @Sony_Reset()
%7 = call i32 (...) @Extn_Reset()
ret void
}
declare i32 @IWM_Reset(...) #1
declare i32 @SCC_Reset(...) #1
declare i32 @SCSI_Reset(...) #1
declare i32 @VIA1_Reset(...) #1
declare i32 @VIA2_Reset(...) #1
declare i32 @Sony_Reset(...) #1
declare i32 @Extn_Reset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3mo54y2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @customreset() #0 {
%1 = call i32 (...) @IWM_Reset()
%2 = call i32 (...) @SCC_Reset()
%3 = call i32 (...) @SCSI_Reset()
%4 = call i32 (...) @VIA1_Reset()
%5 = call i32 (...) @VIA2_Reset()
%6 = call i32 (...) @Sony_Reset()
%7 = call i32 (...) @Extn_Reset()
ret void
}
declare i32 @IWM_Reset(...) #1
declare i32 @SCC_Reset(...) #1
declare i32 @SCSI_Reset(...) #1
declare i32 @VIA1_Reset(...) #1
declare i32 @VIA2_Reset(...) #1
declare i32 @Sony_Reset(...) #1
declare i32 @Extn_Reset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa05krf4k.c'
source_filename = "/tmp/tmpa05krf4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"iwpriv %s addmac %s\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\1B[1;33;40m\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @acl_add_mac(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [256 x i8], align 16
%8 = alloca [32 x i8], align 16
%9 = alloca [8 x i8], align 1
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 8, i1 false)
%10 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @construct_vap(ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0)
%14 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%18 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%19 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, ptr noundef %18, ptr noundef %19)
br label %21
21: ; preds = %3
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @printf(ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str.2)
%26 = call i32 @printf(ptr noundef @.str.3)
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @system(ptr noundef %27)
br label %29
29: ; preds = %21
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @construct_vap(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa05krf4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"iwpriv %s addmac %s\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\1B[1;33;40m\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @acl_add_mac(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [256 x i8], align 16
%8 = alloca [32 x i8], align 16
%9 = alloca [8 x i8], align 1
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 8, i1 false)
%10 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %5, align 4
%13 = call i32 @construct_vap(ptr noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef 0)
%14 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%18 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
%19 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%20 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str, ptr noundef %18, ptr noundef %19)
br label %21
21: ; preds = %3
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @printf(ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str.2)
%26 = call i32 @printf(ptr noundef @.str.3)
%27 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%28 = call i32 @system(ptr noundef %27)
br label %29
29: ; preds = %21
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @construct_vap(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplqd3by4f.c'
source_filename = "/tmp/tmplqd3by4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MB_CUR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isu8start(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i32, ptr @MB_CUR_MAX, align 4
%4 = icmp sgt i32 %3, 1
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i8, ptr %2, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 192
%9 = icmp eq i32 %8, 192
br label %10
10: ; preds = %5, %1
%11 = phi i1 [ false, %1 ], [ %9, %5 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplqd3by4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MB_CUR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isu8start(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i32, ptr @MB_CUR_MAX, align 4
%4 = icmp sgt i32 %3, 1
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i8, ptr %2, align 1
%7 = zext i8 %6 to i32
%8 = and i32 %7, 192
%9 = icmp eq i32 %8, 192
br label %10
10: ; preds = %5, %1
%11 = phi i1 [ false, %1 ], [ %9, %5 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_p73gcsd.c'
source_filename = "/tmp/tmp_p73gcsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qr_ihypot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @abs(i32 noundef %13) #3
store i32 %14, ptr %3, align 4
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @abs(i32 noundef %15) #3
store i32 %16, ptr %4, align 4
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ugt i32 %17, %18
%20 = zext i1 %19 to i32
%21 = sub nsw i32 0, %20
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = xor i32 %22, %23
%25 = and i32 %21, %24
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %5, align 4
%28 = xor i32 %27, %26
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = xor i32 %30, %29
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %4, align 4
%34 = xor i32 %33, %32
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @qr_ilog(i32 noundef %35)
%37 = sub nsw i32 31, %36
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = sub nsw i32 %39, 0
%41 = load i32, ptr %8, align 4
%42 = icmp sgt i32 0, %41
%43 = zext i1 %42 to i32
%44 = sub nsw i32 0, %43
%45 = and i32 %40, %44
%46 = sub nsw i32 %38, %45
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %8, align 4
%49 = shl i32 %47, %48
%50 = zext i32 %49 to i64
%51 = mul i64 %50, 2608131498
%52 = lshr i64 %51, 32
%53 = trunc i64 %52 to i32
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %8, align 4
%56 = shl i32 %54, %55
%57 = sext i32 %56 to i64
%58 = mul nsw i64 %57, 2608131497
%59 = ashr i64 %58, 32
%60 = trunc i64 %59 to i32
store i32 %60, ptr %4, align 4
%61 = load i32, ptr %5, align 4
store i32 %61, ptr %9, align 4
%62 = load i32, ptr %4, align 4
%63 = icmp slt i32 %62, 0
%64 = zext i1 %63 to i32
%65 = sub nsw i32 0, %64
store i32 %65, ptr %7, align 4
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %66, %67
%69 = load i32, ptr %7, align 4
%70 = xor i32 %68, %69
%71 = load i32, ptr %5, align 4
%72 = add i32 %71, %70
store i32 %72, ptr %5, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %73, %74
%76 = load i32, ptr %7, align 4
%77 = xor i32 %75, %76
%78 = load i32, ptr %4, align 4
%79 = sub nsw i32 %78, %77
store i32 %79, ptr %4, align 4
%80 = load i32, ptr %5, align 4
%81 = add i32 %80, 1
%82 = lshr i32 %81, 1
store i32 %82, ptr %9, align 4
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, 1
%85 = ashr i32 %84, 1
store i32 %85, ptr %10, align 4
%86 = load i32, ptr %4, align 4
%87 = icmp slt i32 %86, 0
%88 = zext i1 %87 to i32
%89 = sub nsw i32 0, %88
store i32 %89, ptr %7, align 4
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %90, %91
%93 = load i32, ptr %7, align 4
%94 = xor i32 %92, %93
%95 = load i32, ptr %5, align 4
%96 = add i32 %95, %94
store i32 %96, ptr %5, align 4
%97 = load i32, ptr %9, align 4
%98 = load i32, ptr %7, align 4
%99 = add nsw i32 %97, %98
%100 = load i32, ptr %7, align 4
%101 = xor i32 %99, %100
%102 = load i32, ptr %4, align 4
%103 = sub nsw i32 %102, %101
store i32 %103, ptr %4, align 4
store i32 1, ptr %11, align 4
br label %104
104: ; preds = %140, %2
%105 = load i32, ptr %11, align 4
%106 = icmp slt i32 %105, 16
br i1 %106, label %107, label %143
107: ; preds = %104
%108 = load i32, ptr %5, align 4
%109 = add i32 %108, 1
%110 = lshr i32 %109, 2
store i32 %110, ptr %9, align 4
%111 = load i32, ptr %11, align 4
%112 = mul nsw i32 2, %111
%113 = shl i32 1, %112
%114 = ashr i32 %113, 1
store i32 %114, ptr %12, align 4
%115 = load i32, ptr %4, align 4
%116 = load i32, ptr %12, align 4
%117 = add nsw i32 %115, %116
%118 = load i32, ptr %11, align 4
%119 = mul nsw i32 2, %118
%120 = ashr i32 %117, %119
store i32 %120, ptr %10, align 4
%121 = load i32, ptr %4, align 4
%122 = icmp slt i32 %121, 0
%123 = zext i1 %122 to i32
%124 = sub nsw i32 0, %123
store i32 %124, ptr %7, align 4
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr %7, align 4
%127 = add nsw i32 %125, %126
%128 = load i32, ptr %7, align 4
%129 = xor i32 %127, %128
%130 = load i32, ptr %5, align 4
%131 = add i32 %130, %129
store i32 %131, ptr %5, align 4
%132 = load i32, ptr %4, align 4
%133 = load i32, ptr %9, align 4
%134 = load i32, ptr %7, align 4
%135 = add nsw i32 %133, %134
%136 = load i32, ptr %7, align 4
%137 = xor i32 %135, %136
%138 = sub nsw i32 %132, %137
%139 = shl i32 %138, 1
store i32 %139, ptr %4, align 4
br label %140
140: ; preds = %107
%141 = load i32, ptr %11, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %11, align 4
br label %104, !llvm.loop !6
143: ; preds = %104
%144 = load i32, ptr %5, align 4
%145 = load i32, ptr %8, align 4
%146 = shl i32 1, %145
%147 = lshr i32 %146, 1
%148 = add i32 %144, %147
%149 = load i32, ptr %8, align 4
%150 = lshr i32 %148, %149
ret i32 %150
}
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #1
declare i32 @qr_ilog(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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/tmp_p73gcsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qr_ihypot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 @abs(i32 noundef %13) #3
store i32 %14, ptr %3, align 4
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 @abs(i32 noundef %15) #3
store i32 %16, ptr %4, align 4
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ugt i32 %17, %18
%20 = zext i1 %19 to i32
%21 = sub nsw i32 0, %20
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = xor i32 %22, %23
%25 = and i32 %21, %24
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %5, align 4
%28 = xor i32 %27, %26
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = xor i32 %30, %29
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %4, align 4
%34 = xor i32 %33, %32
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @qr_ilog(i32 noundef %35)
%37 = sub nsw i32 31, %36
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = sub nsw i32 %39, 0
%41 = load i32, ptr %8, align 4
%42 = icmp sgt i32 0, %41
%43 = zext i1 %42 to i32
%44 = sub nsw i32 0, %43
%45 = and i32 %40, %44
%46 = sub nsw i32 %38, %45
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %8, align 4
%49 = shl i32 %47, %48
%50 = zext i32 %49 to i64
%51 = mul i64 %50, 2608131498
%52 = lshr i64 %51, 32
%53 = trunc i64 %52 to i32
store i32 %53, ptr %5, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %8, align 4
%56 = shl i32 %54, %55
%57 = sext i32 %56 to i64
%58 = mul nsw i64 %57, 2608131497
%59 = ashr i64 %58, 32
%60 = trunc i64 %59 to i32
store i32 %60, ptr %4, align 4
%61 = load i32, ptr %5, align 4
store i32 %61, ptr %9, align 4
%62 = load i32, ptr %4, align 4
%63 = icmp slt i32 %62, 0
%64 = zext i1 %63 to i32
%65 = sub nsw i32 0, %64
store i32 %65, ptr %7, align 4
%66 = load i32, ptr %4, align 4
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %66, %67
%69 = load i32, ptr %7, align 4
%70 = xor i32 %68, %69
%71 = load i32, ptr %5, align 4
%72 = add i32 %71, %70
store i32 %72, ptr %5, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %73, %74
%76 = load i32, ptr %7, align 4
%77 = xor i32 %75, %76
%78 = load i32, ptr %4, align 4
%79 = sub nsw i32 %78, %77
store i32 %79, ptr %4, align 4
%80 = load i32, ptr %5, align 4
%81 = add i32 %80, 1
%82 = lshr i32 %81, 1
store i32 %82, ptr %9, align 4
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, 1
%85 = ashr i32 %84, 1
store i32 %85, ptr %10, align 4
%86 = load i32, ptr %4, align 4
%87 = icmp slt i32 %86, 0
%88 = zext i1 %87 to i32
%89 = sub nsw i32 0, %88
store i32 %89, ptr %7, align 4
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %90, %91
%93 = load i32, ptr %7, align 4
%94 = xor i32 %92, %93
%95 = load i32, ptr %5, align 4
%96 = add i32 %95, %94
store i32 %96, ptr %5, align 4
%97 = load i32, ptr %9, align 4
%98 = load i32, ptr %7, align 4
%99 = add nsw i32 %97, %98
%100 = load i32, ptr %7, align 4
%101 = xor i32 %99, %100
%102 = load i32, ptr %4, align 4
%103 = sub nsw i32 %102, %101
store i32 %103, ptr %4, align 4
store i32 1, ptr %11, align 4
%104 = load i32, ptr %11, align 4
%105 = icmp slt i32 %104, 16
br i1 %105, label %.lr.ph, label %144
.lr.ph: ; preds = %2
br label %106
106: ; preds = %.lr.ph, %139
%107 = load i32, ptr %5, align 4
%108 = add i32 %107, 1
%109 = lshr i32 %108, 2
store i32 %109, ptr %9, align 4
%110 = load i32, ptr %11, align 4
%111 = mul nsw i32 2, %110
%112 = shl i32 1, %111
%113 = ashr i32 %112, 1
store i32 %113, ptr %12, align 4
%114 = load i32, ptr %4, align 4
%115 = load i32, ptr %12, align 4
%116 = add nsw i32 %114, %115
%117 = load i32, ptr %11, align 4
%118 = mul nsw i32 2, %117
%119 = ashr i32 %116, %118
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %4, align 4
%121 = icmp slt i32 %120, 0
%122 = zext i1 %121 to i32
%123 = sub nsw i32 0, %122
store i32 %123, ptr %7, align 4
%124 = load i32, ptr %10, align 4
%125 = load i32, ptr %7, align 4
%126 = add nsw i32 %124, %125
%127 = load i32, ptr %7, align 4
%128 = xor i32 %126, %127
%129 = load i32, ptr %5, align 4
%130 = add i32 %129, %128
store i32 %130, ptr %5, align 4
%131 = load i32, ptr %4, align 4
%132 = load i32, ptr %9, align 4
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %132, %133
%135 = load i32, ptr %7, align 4
%136 = xor i32 %134, %135
%137 = sub nsw i32 %131, %136
%138 = shl i32 %137, 1
store i32 %138, ptr %4, align 4
br label %139
139: ; preds = %106
%140 = load i32, ptr %11, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %11, align 4
%142 = load i32, ptr %11, align 4
%143 = icmp slt i32 %142, 16
br i1 %143, label %106, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %139
br label %144
144: ; preds = %._crit_edge, %2
%145 = load i32, ptr %5, align 4
%146 = load i32, ptr %8, align 4
%147 = shl i32 1, %146
%148 = lshr i32 %147, 1
%149 = add i32 %145, %148
%150 = load i32, ptr %8, align 4
%151 = lshr i32 %149, %150
ret i32 %151
}
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #1
declare i32 @qr_ilog(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 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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/tmp4qtp6dof.c'
source_filename = "/tmp/tmp4qtp6dof.c"
target datalayout = "e-m:e-p270: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/tmp4qtp6dof.c"
target datalayout = "e-m:e-p270: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/tmpi9d527rc.c'
source_filename = "/tmp/tmpi9d527rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Resolved IFUNC to PATCHED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_print_greetings_patched() #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/tmpi9d527rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Resolved IFUNC to PATCHED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_print_greetings_patched() #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/tmp_rw8e7sl.c'
source_filename = "/tmp/tmp_rw8e7sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"write_file lseek on %d: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [33 x i8] c"write_file got %s while writing!\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"write_file got %s while reading!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @write_file(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%14 = load i32, ptr @BUFSIZ, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %9, align 8
%17 = alloca i8, i64 %15, align 16
store i64 %15, ptr %10, align 8
store i64 0, ptr %13, align 8
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr @SEEK_SET, align 4
%20 = call i64 @lseek(i32 noundef %18, i32 noundef 0, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %7, align 4
%25 = load i64, ptr @errno, align 8
%26 = call i32 @strerror(i64 noundef %25)
%27 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %23, ptr noundef @.str, i32 noundef %24, i32 noundef %26)
br label %28
28: ; preds = %22, %4
br label %29
29: ; preds = %94, %28
br label %30
30: ; preds = %41, %29
%31 = load i32, ptr %7, align 4
%32 = trunc i64 %15 to i32
%33 = call i64 @read(i32 noundef %31, ptr noundef %17, i32 noundef %32)
store i64 %33, ptr %11, align 8
br label %34
34: ; preds = %30
%35 = load i64, ptr %11, align 8
%36 = icmp ult i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i64, ptr @errno, align 8
%39 = load i64, ptr @EINTR, align 8
%40 = icmp eq i64 %38, %39
br label %41
41: ; preds = %37, %34
%42 = phi i1 [ false, %34 ], [ %40, %37 ]
br i1 %42, label %30, label %43, !llvm.loop !6
43: ; preds = %41
%44 = load i64, ptr %11, align 8
%45 = icmp ugt i64 %44, 0
br i1 %45, label %46, label %84
46: ; preds = %43
%47 = load ptr, ptr %8, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %58
49: ; preds = %46
%50 = load i64, ptr %11, align 8
%51 = sub i64 %50, 1
%52 = getelementptr inbounds i8, ptr %17, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 10
%56 = zext i1 %55 to i32
%57 = load ptr, ptr %8, align 8
store i32 %56, ptr %57, align 4
br label %58
58: ; preds = %49, %46
br label %59
59: ; preds = %70, %58
%60 = load i32, ptr %6, align 4
%61 = load i64, ptr %11, align 8
%62 = call i64 @write(i32 noundef %60, ptr noundef %17, i64 noundef %61)
store i64 %62, ptr %12, align 8
br label %63
63: ; preds = %59
%64 = load i64, ptr %12, align 8
%65 = icmp ult i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %63
%67 = load i64, ptr @errno, align 8
%68 = load i64, ptr @EINTR, align 8
%69 = icmp eq i64 %67, %68
br label %70
70: ; preds = %66, %63
%71 = phi i1 [ false, %63 ], [ %69, %66 ]
br i1 %71, label %59, label %72, !llvm.loop !8
72: ; preds = %70
%73 = load i64, ptr %12, align 8
%74 = icmp ult i64 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load ptr, ptr %5, align 8
%77 = load i64, ptr @errno, align 8
%78 = call i32 @strerror(i64 noundef %77)
%79 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %76, ptr noundef @.str.1, i32 noundef %78)
br label %97
80: ; preds = %72
%81 = load i64, ptr %11, align 8
%82 = load i64, ptr %13, align 8
%83 = add i64 %82, %81
store i64 %83, ptr %13, align 8
br label %93
84: ; preds = %43
%85 = load i64, ptr %11, align 8
%86 = icmp ult i64 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = load ptr, ptr %5, align 8
%89 = load i64, ptr @errno, align 8
%90 = call i32 @strerror(i64 noundef %89)
%91 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %88, ptr noundef @.str.2, i32 noundef %90)
br label %97
92: ; preds = %84
br label %93
93: ; preds = %92, %80
br label %94
94: ; preds = %93
%95 = load i64, ptr %11, align 8
%96 = icmp ne i64 %95, 0
br i1 %96, label %29, label %97, !llvm.loop !9
97: ; preds = %94, %87, %75
%98 = load i64, ptr %13, align 8
%99 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %99)
ret i64 %98
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @test_abort(ptr noundef, ptr noundef, i32 noundef, ...) #2
declare i32 @strerror(i64 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_rw8e7sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"write_file lseek on %d: %s\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [33 x i8] c"write_file got %s while writing!\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"write_file got %s while reading!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @write_file(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%14 = load i32, ptr @BUFSIZ, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %9, align 8
%17 = alloca i8, i64 %15, align 16
store i64 %15, ptr %10, align 8
store i64 0, ptr %13, align 8
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr @SEEK_SET, align 4
%20 = call i64 @lseek(i32 noundef %18, i32 noundef 0, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %7, align 4
%25 = load i64, ptr @errno, align 8
%26 = call i32 @strerror(i64 noundef %25)
%27 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %23, ptr noundef @.str, i32 noundef %24, i32 noundef %26)
br label %28
28: ; preds = %22, %4
br label %29
29: ; preds = %94, %28
br label %30
30: ; preds = %41, %29
%31 = load i32, ptr %7, align 4
%32 = trunc i64 %15 to i32
%33 = call i64 @read(i32 noundef %31, ptr noundef %17, i32 noundef %32)
store i64 %33, ptr %11, align 8
br label %34
34: ; preds = %30
%35 = load i64, ptr %11, align 8
%36 = icmp ult i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i64, ptr @errno, align 8
%39 = load i64, ptr @EINTR, align 8
%40 = icmp eq i64 %38, %39
br label %41
41: ; preds = %37, %34
%42 = phi i1 [ false, %34 ], [ %40, %37 ]
br i1 %42, label %30, label %43, !llvm.loop !6
43: ; preds = %41
%44 = load i64, ptr %11, align 8
%45 = icmp ugt i64 %44, 0
br i1 %45, label %46, label %84
46: ; preds = %43
%47 = load ptr, ptr %8, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %58
49: ; preds = %46
%50 = load i64, ptr %11, align 8
%51 = sub i64 %50, 1
%52 = getelementptr inbounds i8, ptr %17, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 10
%56 = zext i1 %55 to i32
%57 = load ptr, ptr %8, align 8
store i32 %56, ptr %57, align 4
br label %58
58: ; preds = %49, %46
br label %59
59: ; preds = %70, %58
%60 = load i32, ptr %6, align 4
%61 = load i64, ptr %11, align 8
%62 = call i64 @write(i32 noundef %60, ptr noundef %17, i64 noundef %61)
store i64 %62, ptr %12, align 8
br label %63
63: ; preds = %59
%64 = load i64, ptr %12, align 8
%65 = icmp ult i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %63
%67 = load i64, ptr @errno, align 8
%68 = load i64, ptr @EINTR, align 8
%69 = icmp eq i64 %67, %68
br label %70
70: ; preds = %66, %63
%71 = phi i1 [ false, %63 ], [ %69, %66 ]
br i1 %71, label %59, label %72, !llvm.loop !8
72: ; preds = %70
%73 = load i64, ptr %12, align 8
%74 = icmp ult i64 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load ptr, ptr %5, align 8
%77 = load i64, ptr @errno, align 8
%78 = call i32 @strerror(i64 noundef %77)
%79 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %76, ptr noundef @.str.1, i32 noundef %78)
br label %97
80: ; preds = %72
%81 = load i64, ptr %11, align 8
%82 = load i64, ptr %13, align 8
%83 = add i64 %82, %81
store i64 %83, ptr %13, align 8
br label %93
84: ; preds = %43
%85 = load i64, ptr %11, align 8
%86 = icmp ult i64 %85, 0
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = load ptr, ptr %5, align 8
%89 = load i64, ptr @errno, align 8
%90 = call i32 @strerror(i64 noundef %89)
%91 = call i32 (ptr, ptr, i32, ...) @test_abort(ptr noundef %88, ptr noundef @.str.2, i32 noundef %90)
br label %97
92: ; preds = %84
br label %93
93: ; preds = %92, %80
br label %94
94: ; preds = %93
%95 = load i64, ptr %11, align 8
%96 = icmp ne i64 %95, 0
br i1 %96, label %29, label %.loopexit, !llvm.loop !9
.loopexit: ; preds = %94
br label %97
97: ; preds = %.loopexit, %87, %75
%98 = load i64, ptr %13, align 8
%99 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %99)
ret i64 %98
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @test_abort(ptr noundef, ptr noundef, i32 noundef, ...) #2
declare i32 @strerror(i64 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpz6bbok1o.c'
source_filename = "/tmp/tmpz6bbok1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for 0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x30() #0 {
%1 = call i32 @isalnum(i32 noundef 48) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 245, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalnum(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz6bbok1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for 0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x30() #0 {
%1 = call i32 @isalnum(i32 noundef 48) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 245, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalnum(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz1hrfngj.c'
source_filename = "/tmp/tmpz1hrfngj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitAngle(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr @INT_MIN, align 4
%9 = call i32 (...) @getAngle()
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr @INT_MIN, align 4
store i32 %12, ptr %3, align 4
br label %49
13: ; preds = %2
br label %14
14: ; preds = %13, %46
%15 = call i32 @usleep(i32 noundef 20000)
%16 = call i32 (...) @getAngle()
store i32 %16, ptr %7, align 4
%17 = load i32, ptr @INT_MIN, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = load i32, ptr @INT_MIN, align 4
store i32 %21, ptr %3, align 4
br label %49
22: ; preds = %14
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = call i64 (...) @stopWait()
%30 = icmp ne i64 %29, 0
br i1 %30, label %45, label %31
31: ; preds = %28, %22
%32 = load i32, ptr %4, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp sge i32 %35, %36
br i1 %37, label %45, label %38
38: ; preds = %34, %31
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp sle i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %41, %34, %28
br label %47
46: ; preds = %41, %38
br label %14
47: ; preds = %45
%48 = load i32, ptr %6, align 4
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %47, %20, %11
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @getAngle(...) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @stopWait(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz1hrfngj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitAngle(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr @INT_MIN, align 4
%9 = call i32 (...) @getAngle()
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load i32, ptr @INT_MIN, align 4
store i32 %12, ptr %3, align 4
br label %53
13: ; preds = %2
%14 = call i32 @usleep(i32 noundef 20000)
%15 = call i32 (...) @getAngle()
store i32 %15, ptr %7, align 4
%16 = load i32, ptr @INT_MIN, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %.lr.ph
.lr.ph: ; preds = %13
br label %21
._crit_edge: ; preds = %45
br label %19
19: ; preds = %._crit_edge, %13
%20 = load i32, ptr @INT_MIN, align 4
store i32 %20, ptr %3, align 4
br label %53
21: ; preds = %.lr.ph, %45
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, %22
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = call i64 (...) @stopWait()
%29 = icmp ne i64 %28, 0
br i1 %29, label %44, label %30
30: ; preds = %27, %21
%31 = load i32, ptr %4, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp sge i32 %34, %35
br i1 %36, label %44, label %37
37: ; preds = %33, %30
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp sle i32 %41, %42
br i1 %43, label %44, label %45
44: ; preds = %40, %33, %27
br label %51
45: ; preds = %40, %37
%46 = call i32 @usleep(i32 noundef 20000)
%47 = call i32 (...) @getAngle()
store i32 %47, ptr %7, align 4
%48 = load i32, ptr @INT_MIN, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %._crit_edge, label %21
51: ; preds = %44
%52 = load i32, ptr %6, align 4
store i32 %52, ptr %3, align 4
br label %53
53: ; preds = %51, %19, %11
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i32 @getAngle(...) #1
declare i32 @usleep(i32 noundef) #1
declare i64 @stopWait(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9wbjm6cr.c'
source_filename = "/tmp/tmp9wbjm6cr.c"
target datalayout = "e-m:e-p270: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/tmp9wbjm6cr.c"
target datalayout = "e-m:e-p270: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/tmpta9caeag.c'
source_filename = "/tmp/tmpta9caeag.c"
target datalayout = "e-m:e-p270: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/tmpta9caeag.c"
target datalayout = "e-m:e-p270: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/tmptp58u7_z.c'
source_filename = "/tmp/tmptp58u7_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @binary(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
br label %4
4: ; preds = %13, %1
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = ashr i32 %8, %9
%11 = and i32 %10, 1
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %7
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
br label %4, !llvm.loop !6
16: ; preds = %4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptp58u7_z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @binary(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sge i32 %4, 0
br i1 %5, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %12
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = ashr i32 %7, %8
%10 = and i32 %9, 1
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %6
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpllxf5p9z.c'
source_filename = "/tmp/tmpllxf5p9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENAMETOOLONG = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr @ENAMETOOLONG, align 4
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @pathlong(ptr noundef %9, ptr noundef %10)
br label %17
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @logadds(i32 noundef -1, ptr noundef @.str, ptr noundef %13, i32 noundef %15)
br label %17
17: ; preds = %12, %8
ret void
}
declare i32 @pathlong(ptr noundef, ptr noundef) #1
declare i32 @logadds(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpllxf5p9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENAMETOOLONG = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr @ENAMETOOLONG, align 4
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @pathlong(ptr noundef %9, ptr noundef %10)
br label %17
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @logadds(i32 noundef -1, ptr noundef @.str, ptr noundef %13, i32 noundef %15)
br label %17
17: ; preds = %12, %8
ret void
}
declare i32 @pathlong(ptr noundef, ptr noundef) #1
declare i32 @logadds(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(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/tmpdgw8u0mb.c'
source_filename = "/tmp/tmpdgw8u0mb.c"
target datalayout = "e-m:e-p270: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/tmpdgw8u0mb.c"
target datalayout = "e-m:e-p270: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/tmpue5e47pr.c'
source_filename = "/tmp/tmpue5e47pr.c"
target datalayout = "e-m:e-p270: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/tmpue5e47pr.c"
target datalayout = "e-m:e-p270: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/tmpybqg6tfg.c'
source_filename = "/tmp/tmpybqg6tfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"x > 0.0\00", align 1
@.str.1 = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Erez-Buchnik/Bouma2/refs/heads/master/dep/glpk/glplib03.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @_glp_lib_round2n(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = fcmp ogt double %5, 0.000000e+00
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = call i32 @glp_assert_(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 433)
br label %9
9: ; preds = %7, %1
%10 = phi i1 [ true, %1 ], [ true, %7 ]
%11 = zext i1 %10 to i32
%12 = load double, ptr %2, align 8
%13 = call double @frexp(double noundef %12, ptr noundef %3) #3
store double %13, ptr %4, align 8
%14 = load double, ptr %4, align 8
%15 = fcmp ole double %14, 7.500000e-01
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 1
br label %21
19: ; preds = %9
%20 = load i32, ptr %3, align 4
br label %21
21: ; preds = %19, %16
%22 = phi i32 [ %18, %16 ], [ %20, %19 ]
%23 = call double @ldexp(double noundef 1.000000e+00, i32 noundef %22) #3
ret double %23
}
declare i32 @glp_assert_(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #2
; Function Attrs: nounwind
declare double @ldexp(double 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 = { "frame-pointer"="all" "no-trapping-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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybqg6tfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"x > 0.0\00", align 1
@.str.1 = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Erez-Buchnik/Bouma2/refs/heads/master/dep/glpk/glplib03.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @_glp_lib_round2n(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = fcmp ogt double %5, 0.000000e+00
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = call i32 @glp_assert_(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 433)
br label %9
9: ; preds = %7, %1
%10 = phi i1 [ true, %1 ], [ true, %7 ]
%11 = zext i1 %10 to i32
%12 = load double, ptr %2, align 8
%13 = call double @frexp(double noundef %12, ptr noundef %3) #3
store double %13, ptr %4, align 8
%14 = load double, ptr %4, align 8
%15 = fcmp ole double %14, 7.500000e-01
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 1
br label %21
19: ; preds = %9
%20 = load i32, ptr %3, align 4
br label %21
21: ; preds = %19, %16
%22 = phi i32 [ %18, %16 ], [ %20, %19 ]
%23 = call double @ldexp(double noundef 1.000000e+00, i32 noundef %22) #3
ret double %23
}
declare i32 @glp_assert_(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #2
; Function Attrs: nounwind
declare double @ldexp(double 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 = { "frame-pointer"="all" "no-trapping-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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyk_t545h.c'
source_filename = "/tmp/tmpyk_t545h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xconfigure_y(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i32 %5, ptr %8, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyk_t545h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XEvent_xconfigure_y(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i32 0, i32 0
store i32 %5, ptr %8, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgq3aa366.c'
source_filename = "/tmp/tmpgq3aa366.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_buffered(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %11, align 8
%18 = load ptr, ptr %11, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %3
%21 = load ptr, ptr %11, align 8
store ptr %21, ptr %4, align 8
br label %58
22: ; preds = %3
br label %23
23: ; preds = %53, %22
%24 = load i32, ptr %6, align 4
%25 = load ptr, ptr %11, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i32, ptr %5, align 4
%30 = call i32 @read(i32 noundef %24, ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %9, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %23
br label %54
33: ; preds = %23
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %11, align 8
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %10, align 4
%42 = mul nsw i32 %39, %41
%43 = add nsw i32 %38, %42
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 1
%46 = trunc i64 %45 to i32
%47 = call i64 @realloc(ptr noundef %37, i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %11, align 8
%49 = load ptr, ptr %11, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %53
51: ; preds = %33
%52 = load ptr, ptr %11, align 8
store ptr %52, ptr %4, align 8
br label %58
53: ; preds = %33
br label %23
54: ; preds = %32
%55 = load i32, ptr %8, align 4
%56 = load ptr, ptr %7, align 8
store i32 %55, ptr %56, align 4
%57 = load ptr, ptr %11, align 8
store ptr %57, ptr %4, align 8
br label %58
58: ; preds = %54, %51, %20
%59 = load ptr, ptr %4, align 8
ret ptr %59
}
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgq3aa366.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_buffered(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %11, align 8
%18 = load ptr, ptr %11, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %3
%21 = load ptr, ptr %11, align 8
store ptr %21, ptr %4, align 8
br label %65
22: ; preds = %3
%23 = load i32, ptr %6, align 4
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i32, ptr %5, align 4
%29 = call i32 @read(i32 noundef %23, ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %9, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %40, label %.lr.ph
.lr.ph: ; preds = %22
br label %41
31: ; preds = %41
%32 = load i32, ptr %6, align 4
%33 = load ptr, ptr %11, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i32, ptr %5, align 4
%38 = call i32 @read(i32 noundef %32, ptr noundef %36, i32 noundef %37)
store i32 %38, ptr %9, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %._crit_edge, label %41
._crit_edge: ; preds = %31
br label %40
40: ; preds = %._crit_edge, %22
br label %61
41: ; preds = %.lr.ph, %31
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %8, align 4
%45 = load ptr, ptr %11, align 8
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %10, align 4
%50 = mul nsw i32 %47, %49
%51 = add nsw i32 %46, %50
%52 = sext i32 %51 to i64
%53 = mul i64 %52, 1
%54 = trunc i64 %53 to i32
%55 = call i64 @realloc(ptr noundef %45, i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr %11, align 8
%57 = load ptr, ptr %11, align 8
%58 = icmp eq ptr %57, null
br i1 %58, label %59, label %31
59: ; preds = %41
%60 = load ptr, ptr %11, align 8
store ptr %60, ptr %4, align 8
br label %65
61: ; preds = %40
%62 = load i32, ptr %8, align 4
%63 = load ptr, ptr %7, align 8
store i32 %62, ptr %63, align 4
%64 = load ptr, ptr %11, align 8
store ptr %64, ptr %4, align 8
br label %65
65: ; preds = %61, %59, %20
%66 = load ptr, ptr %4, align 8
ret ptr %66
}
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmhnmflyl.c'
source_filename = "/tmp/tmpmhnmflyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rfile_fn_dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @_my_strdup(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
%10 = xor i1 %9, true
br i1 %10, label %18, label %11
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call ptr @dirname(ptr noundef %12)
%14 = call ptr @_my_strdup(ptr noundef %13)
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
%17 = xor i1 %16, true
br i1 %17, label %18, label %19
18: ; preds = %11, %1
store ptr null, ptr %2, align 8
br label %23
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %19, %18
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare ptr @_my_strdup(ptr noundef) #1
declare ptr @dirname(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/tmpmhnmflyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rfile_fn_dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @_my_strdup(ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
%10 = xor i1 %9, true
br i1 %10, label %18, label %11
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call ptr @dirname(ptr noundef %12)
%14 = call ptr @_my_strdup(ptr noundef %13)
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
%17 = xor i1 %16, true
br i1 %17, label %18, label %19
18: ; preds = %11, %1
store ptr null, ptr %2, align 8
br label %23
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %19, %18
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare ptr @_my_strdup(ptr noundef) #1
declare ptr @dirname(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/tmp9tuyqshj.c'
source_filename = "/tmp/tmp9tuyqshj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"What is the size of the array?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter elements of the array one by one\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Sorted array: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %4, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %5, align 8
%12 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %22, %0
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %25
17: ; preds = %13
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %11, i64 %19
%21 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %13, !llvm.loop !6
25: ; preds = %13
%26 = load i32, ptr %2, align 4
%27 = sub nsw i32 %26, 1
%28 = call i32 @quickSort(ptr noundef %11, i32 noundef 0, i32 noundef %27)
%29 = call i32 @printf(ptr noundef @.str.4)
%30 = load i32, ptr %2, align 4
%31 = call i32 @print(ptr noundef %11, i32 noundef %30)
store i32 0, ptr %1, align 4
%32 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %32)
%33 = load i32, ptr %1, align 4
ret i32 %33
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @quickSort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @print(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9tuyqshj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"What is the size of the array?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter elements of the array one by one\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Sorted array: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %4, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %5, align 8
%12 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %21
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %11, i64 %18
%20 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %19)
br label %21
21: ; preds = %16
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %0
%28 = load i32, ptr %2, align 4
%29 = sub nsw i32 %28, 1
%30 = call i32 @quickSort(ptr noundef %11, i32 noundef 0, i32 noundef %29)
%31 = call i32 @printf(ptr noundef @.str.4)
%32 = load i32, ptr %2, align 4
%33 = call i32 @print(ptr noundef %11, i32 noundef %32)
store i32 0, ptr %1, align 4
%34 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %34)
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @quickSort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @print(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0p6jwrxr.c'
source_filename = "/tmp/tmp0p6jwrxr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table_interpolate_pchip(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double %5, ptr %12, align 8
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %9, align 8
%22 = load double, ptr %12, align 8
%23 = call i32 @table_index(ptr noundef %19, ptr noundef %20, ptr noundef %21, double noundef %22)
store i32 %23, ptr %13, align 4
%24 = load i32, ptr %13, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %14, align 4
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %14, 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 ptr, ptr %9, align 8
%32 = load i32, ptr %13, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = fsub double %30, %35
store double %36, ptr %15, align 8
%37 = load double, ptr %12, align 8
%38 = load ptr, ptr %9, align 8
%39 = load i32, ptr %13, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = fsub double %37, %42
%44 = load double, ptr %15, align 8
%45 = fdiv double %43, %44
store double %45, ptr %16, align 8
%46 = load ptr, ptr %11, align 8
%47 = load i32, ptr %13, 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 double, ptr %15, align 8
%52 = fmul double %50, %51
store double %52, ptr %17, align 8
%53 = load i32, ptr %14, align 4
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %63
55: ; preds = %6
%56 = load ptr, ptr %11, align 8
%57 = load i32, ptr %14, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = load double, ptr %59, align 8
%61 = load double, ptr %15, align 8
%62 = fmul double %60, %61
br label %65
63: ; preds = %6
%64 = load double, ptr %17, align 8
br label %65
65: ; preds = %63, %55
%66 = phi double [ %62, %55 ], [ %64, %63 ]
store double %66, ptr %18, align 8
%67 = load double, ptr %16, align 8
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %14, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = load double, ptr %17, align 8
%79 = load double, ptr %18, align 8
%80 = call double @math_pchip_interpolate(double noundef %67, double noundef %72, double noundef %77, double noundef %78, double noundef %79)
ret double %80
}
declare i32 @table_index(ptr noundef, ptr noundef, ptr noundef, double noundef) #1
declare double @math_pchip_interpolate(double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0p6jwrxr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @table_interpolate_pchip(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double %5, ptr %12, align 8
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %9, align 8
%22 = load double, ptr %12, align 8
%23 = call i32 @table_index(ptr noundef %19, ptr noundef %20, ptr noundef %21, double noundef %22)
store i32 %23, ptr %13, align 4
%24 = load i32, ptr %13, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %14, align 4
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %14, 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 ptr, ptr %9, align 8
%32 = load i32, ptr %13, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %31, i64 %33
%35 = load double, ptr %34, align 8
%36 = fsub double %30, %35
store double %36, ptr %15, align 8
%37 = load double, ptr %12, align 8
%38 = load ptr, ptr %9, align 8
%39 = load i32, ptr %13, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = fsub double %37, %42
%44 = load double, ptr %15, align 8
%45 = fdiv double %43, %44
store double %45, ptr %16, align 8
%46 = load ptr, ptr %11, align 8
%47 = load i32, ptr %13, 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 double, ptr %15, align 8
%52 = fmul double %50, %51
store double %52, ptr %17, align 8
%53 = load i32, ptr %14, align 4
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %63
55: ; preds = %6
%56 = load ptr, ptr %11, align 8
%57 = load i32, ptr %14, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = load double, ptr %59, align 8
%61 = load double, ptr %15, align 8
%62 = fmul double %60, %61
br label %65
63: ; preds = %6
%64 = load double, ptr %17, align 8
br label %65
65: ; preds = %63, %55
%66 = phi double [ %62, %55 ], [ %64, %63 ]
store double %66, ptr %18, align 8
%67 = load double, ptr %16, align 8
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %14, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = load double, ptr %17, align 8
%79 = load double, ptr %18, align 8
%80 = call double @math_pchip_interpolate(double noundef %67, double noundef %72, double noundef %77, double noundef %78, double noundef %79)
ret double %80
}
declare i32 @table_index(ptr noundef, ptr noundef, ptr noundef, double noundef) #1
declare double @math_pchip_interpolate(double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt3se71d5.c'
source_filename = "/tmp/tmpt3se71d5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [20 x i8] c"A key was pressed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Timed out.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i32 20, ptr %4, align 4
%5 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i32 500000, ptr %5, align 4
%6 = call i32 @FD_ZERO(ptr noundef %3)
%7 = call i32 @FD_SET(i32 noundef 0, ptr noundef %3)
%8 = call i32 @select(i64 noundef 1, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %2)
%9 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %3)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str)
br label %15
13: ; preds = %0
%14 = call i32 @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %11
ret i32 0
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt3se71d5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [20 x i8] c"A key was pressed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Timed out.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i32 20, ptr %4, align 4
%5 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i32 500000, ptr %5, align 4
%6 = call i32 @FD_ZERO(ptr noundef %3)
%7 = call i32 @FD_SET(i32 noundef 0, ptr noundef %3)
%8 = call i32 @select(i64 noundef 1, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %2)
%9 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %3)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(ptr noundef @.str)
br label %15
13: ; preds = %0
%14 = call i32 @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %11
ret i32 0
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8gm9x87t.c'
source_filename = "/tmp/tmp8gm9x87t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ASN1_STRING_dup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %23
8: ; preds = %1
%9 = call ptr (...) @ASN1_STRING_new()
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %8
store ptr null, ptr %2, align 8
br label %23
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @ASN1_STRING_copy(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = call i32 @ASN1_STRING_free(ptr noundef %19)
store ptr null, ptr %2, align 8
br label %23
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %21, %18, %12, %7
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare ptr @ASN1_STRING_new(...) #1
declare i32 @ASN1_STRING_copy(ptr noundef, ptr noundef) #1
declare i32 @ASN1_STRING_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/tmp8gm9x87t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ASN1_STRING_dup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store ptr null, ptr %2, align 8
br label %23
8: ; preds = %1
%9 = call ptr (...) @ASN1_STRING_new()
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %8
store ptr null, ptr %2, align 8
br label %23
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @ASN1_STRING_copy(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = call i32 @ASN1_STRING_free(ptr noundef %19)
store ptr null, ptr %2, align 8
br label %23
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %21, %18, %12, %7
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare ptr @ASN1_STRING_new(...) #1
declare i32 @ASN1_STRING_copy(ptr noundef, ptr noundef) #1
declare i32 @ASN1_STRING_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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.