llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpprkua5rn.c'
source_filename = "/tmp/tmpprkua5rn.c"
target datalayout = "e-m:e-p270: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/tmpprkua5rn.c"
target datalayout = "e-m:e-p270: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/tmp1a4088xz.c'
source_filename = "/tmp/tmp1a4088xz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_rwlock_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1a4088xz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_rwlock_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6irmei30.c'
source_filename = "/tmp/tmp6irmei30.c"
target datalayout = "e-m:e-p270: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/tmp6irmei30.c"
target datalayout = "e-m:e-p270: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/tmpq0pct98e.c'
source_filename = "/tmp/tmpq0pct98e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@retNull.x = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @retNull(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
br label %9
7: ; preds = %1
%8 = call ptr (...) @getNull()
br label %9
9: ; preds = %7, %6
%10 = phi ptr [ @retNull.x, %6 ], [ %8, %7 ]
ret ptr %10
}
declare ptr @getNull(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq0pct98e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@retNull.x = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @retNull(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
br label %9
7: ; preds = %1
%8 = call ptr (...) @getNull()
br label %9
9: ; preds = %7, %6
%10 = phi ptr [ @retNull.x, %6 ], [ %8, %7 ]
ret ptr %10
}
declare ptr @getNull(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptpsgdgl_.c'
source_filename = "/tmp/tmptpsgdgl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_nsblk_all() #0 {
%1 = call i32 @test_nsblk(i32 noundef 0)
%2 = call i32 @test_nsblk(i32 noundef 1)
ret void
}
declare i32 @test_nsblk(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/tmptpsgdgl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_nsblk_all() #0 {
%1 = call i32 @test_nsblk(i32 noundef 0)
%2 = call i32 @test_nsblk(i32 noundef 1)
ret void
}
declare i32 @test_nsblk(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/tmprds0z3de.c'
source_filename = "/tmp/tmprds0z3de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"readdir\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readdir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fputs(ptr noundef @.str, i32 noundef %3)
ret ptr null
}
declare i32 @fputs(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/tmprds0z3de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"readdir\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readdir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fputs(ptr noundef @.str, i32 noundef %3)
ret ptr null
}
declare i32 @fputs(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/tmp55ing5nm.c'
source_filename = "/tmp/tmp55ing5nm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [62 x i8] c"error: %d argument(s) specified\0A\0AUsage: vercmp <ver1> <ver2>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @usage()
store i32 2, ptr %3, align 4
br label %48
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp eq i64 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20, %14
%27 = call i32 (...) @usage()
store i32 0, ptr %3, align 4
br label %48
28: ; preds = %20, %11
%29 = load i32, ptr %4, align 4
%30 = icmp ne i32 %29, 3
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr %4, align 4
%34 = sub nsw i32 %33, 1
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, i32 noundef %34)
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %3, align 4
br label %48
37: ; preds = %28
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i32 @alpm_pkg_vercmp(ptr noundef %40, ptr noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = call i32 @printf(ptr noundef @.str.3, i32 noundef %45)
%47 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %47, ptr %3, align 4
br label %48
48: ; preds = %37, %31, %26, %9
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @alpm_pkg_vercmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp55ing5nm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [62 x i8] c"error: %d argument(s) specified\0A\0AUsage: vercmp <ver1> <ver2>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @usage()
store i32 2, ptr %3, align 4
br label %48
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp eq i64 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20, %14
%27 = call i32 (...) @usage()
store i32 0, ptr %3, align 4
br label %48
28: ; preds = %20, %11
%29 = load i32, ptr %4, align 4
%30 = icmp ne i32 %29, 3
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr %4, align 4
%34 = sub nsw i32 %33, 1
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, i32 noundef %34)
%36 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %36, ptr %3, align 4
br label %48
37: ; preds = %28
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i32 @alpm_pkg_vercmp(ptr noundef %40, ptr noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = call i32 @printf(ptr noundef @.str.3, i32 noundef %45)
%47 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %47, ptr %3, align 4
br label %48
48: ; preds = %37, %31, %26, %9
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @alpm_pkg_vercmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx91lb2mm.c'
source_filename = "/tmp/tmpx91lb2mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @cons_putc(i32 noundef 13)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @cons_putc(i32 noundef %8)
ret void
}
declare i32 @cons_putc(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/tmpx91lb2mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @cons_putc(i32 noundef 13)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @cons_putc(i32 noundef %8)
ret void
}
declare i32 @cons_putc(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_ockclhq.c'
source_filename = "/tmp/tmp_ockclhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ockclhq.c"
target datalayout = "e-m:e-p270: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/tmpacnnj2uu.c'
source_filename = "/tmp/tmpacnnj2uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @goodInput(ptr noundef %9, ptr noundef %10, ptr noundef %6, ptr noundef %7)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %23
13: ; preds = %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = sub nsw i32 %14, %15
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr %8, align 4
%21 = call ptr @convertIntToRomanNumeralString(i32 noundef %20)
store ptr %21, ptr %3, align 8
br label %25
22: ; preds = %13
br label %23
23: ; preds = %22, %2
%24 = call i32 (...) @showNonValidSubtractionResultMessage()
store ptr null, ptr %3, align 8
br label %25
25: ; preds = %23, %19
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare i64 @goodInput(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @convertIntToRomanNumeralString(i32 noundef) #1
declare i32 @showNonValidSubtractionResultMessage(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpacnnj2uu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @goodInput(ptr noundef %9, ptr noundef %10, ptr noundef %6, ptr noundef %7)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %23
13: ; preds = %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = sub nsw i32 %14, %15
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr %8, align 4
%21 = call ptr @convertIntToRomanNumeralString(i32 noundef %20)
store ptr %21, ptr %3, align 8
br label %25
22: ; preds = %13
br label %23
23: ; preds = %22, %2
%24 = call i32 (...) @showNonValidSubtractionResultMessage()
store ptr null, ptr %3, align 8
br label %25
25: ; preds = %23, %19
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare i64 @goodInput(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @convertIntToRomanNumeralString(i32 noundef) #1
declare i32 @showNonValidSubtractionResultMessage(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_xavgf70.c'
source_filename = "/tmp/tmp_xavgf70.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XFontProp_card32(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_xavgf70.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XFontProp_card32(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj2k864w5.c'
source_filename = "/tmp/tmpj2k864w5.c"
target datalayout = "e-m:e-p270: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.tmpfile.s = private unnamed_addr constant [20 x i8] c"/tmp/tmpfile_XXXXXX\00", align 16
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tmpfile() #0 {
%1 = alloca ptr, align 8
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.tmpfile.s, i64 20, i1 false)
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %35, %0
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 100
br i1 %8, label %9, label %38
9: ; preds = %6
%10 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds i8, ptr %10, i64 13
%12 = call i32 @__randname(ptr noundef %11)
%13 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%14 = load i32, ptr @O_RDWR, align 4
%15 = load i32, ptr @O_CREAT, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @O_EXCL, align 4
%18 = or i32 %16, %17
%19 = call i32 @sys_open(ptr noundef %13, i32 noundef %18, i32 noundef 384)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sge i32 %20, 0
br i1 %21, label %22, label %34
22: ; preds = %9
%23 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%24 = call i32 (i32, ...) @__syscall(i32 noundef 10, ptr noundef %23)
%25 = load i32, ptr %3, align 4
%26 = call ptr @__fdopen(i32 noundef %25, ptr noundef @.str)
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %4, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %32, label %29
29: ; preds = %22
%30 = load i32, ptr %3, align 4
%31 = call i32 (i32, ...) @__syscall(i32 noundef 6, i32 noundef %30)
br label %32
32: ; preds = %29, %22
%33 = load ptr, ptr %4, align 8
store ptr %33, ptr %1, align 8
br label %39
34: ; preds = %9
br label %35
35: ; preds = %34
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
br label %6, !llvm.loop !6
38: ; preds = %6
store ptr null, ptr %1, align 8
br label %39
39: ; preds = %38, %32
%40 = load ptr, ptr %1, align 8
ret ptr %40
}
; 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 @__randname(ptr noundef) #2
declare i32 @sys_open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @__syscall(i32 noundef, ...) #2
declare ptr @__fdopen(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpj2k864w5.c"
target datalayout = "e-m:e-p270: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.tmpfile.s = private unnamed_addr constant [20 x i8] c"/tmp/tmpfile_XXXXXX\00", align 16
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @tmpfile() #0 {
%1 = alloca ptr, align 8
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.tmpfile.s, i64 20, i1 false)
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %34
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds i8, ptr %9, i64 13
%11 = call i32 @__randname(ptr noundef %10)
%12 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @O_EXCL, align 4
%17 = or i32 %15, %16
%18 = call i32 @sys_open(ptr noundef %12, i32 noundef %17, i32 noundef 384)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %21, label %33
21: ; preds = %8
%22 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%23 = call i32 (i32, ...) @__syscall(i32 noundef 10, ptr noundef %22)
%24 = load i32, ptr %3, align 4
%25 = call ptr @__fdopen(i32 noundef %24, ptr noundef @.str)
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %4, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %31, label %28
28: ; preds = %21
%29 = load i32, ptr %3, align 4
%30 = call i32 (i32, ...) @__syscall(i32 noundef 6, i32 noundef %29)
br label %31
31: ; preds = %28, %21
%32 = load ptr, ptr %4, align 8
store ptr %32, ptr %1, align 8
br label %40
33: ; preds = %8
br label %34
34: ; preds = %33
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp slt i32 %37, 100
br i1 %38, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %0
store ptr null, ptr %1, align 8
br label %40
40: ; preds = %39, %31
%41 = load ptr, ptr %1, align 8
ret ptr %41
}
; 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 @__randname(ptr noundef) #2
declare i32 @sys_open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @__syscall(i32 noundef, ...) #2
declare ptr @__fdopen(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3m6fju91.c'
source_filename = "/tmp/tmp3m6fju91.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"Usage: bin2hex [options] file.bin file.hex\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Convert a binary to intel hex format\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"The options may be specified:\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"--addr=addr Starting addresses to use\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"--help Prints this information\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.1)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.3)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.4)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.5)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3m6fju91.c"
target datalayout = "e-m:e-p270: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 [44 x i8] c"Usage: bin2hex [options] file.bin file.hex\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Convert a binary to intel hex format\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"The options may be specified:\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"--addr=addr Starting addresses to use\0A\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"--help Prints this information\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.1)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.3)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.4)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.5)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf84fz5qw.c'
source_filename = "/tmp/tmpf84fz5qw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"usage: %s infile outfile\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"%d DATA \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = 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 [10 x i32], align 16
%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 ptr, align 8
%13 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 30000, ptr %10, align 4
store i32 0, ptr %11, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 @printf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %16, %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.2)
store ptr %29, ptr %13, align 8
br label %30
30: ; preds = %84, %21
%31 = load i32, ptr %11, align 4
%32 = icmp ne i32 %31, 0
%33 = xor i1 %32, true
br i1 %33, label %34, label %89
34: ; preds = %30
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %35
35: ; preds = %57, %34
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %36, 10
br i1 %37, label %38, label %60
38: ; preds = %35
%39 = load ptr, ptr %12, align 8
%40 = call i32 @fgetc(ptr noundef %39)
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr @EOF, align 4
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %50
44: ; preds = %38
store i32 1, ptr %11, align 4
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %46
store i32 -1, ptr %47, align 4
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %60
50: ; preds = %38
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %53
store i32 %51, ptr %54, align 4
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
br label %57
57: ; preds = %50
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
br label %35, !llvm.loop !6
60: ; preds = %44, %35
%61 = load ptr, ptr %13, align 8
%62 = load i32, ptr %10, align 4
%63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.3, i32 noundef %62)
store i32 0, ptr %7, align 4
br label %64
64: ; preds = %81, %60
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %9, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %84
68: ; preds = %64
%69 = load i32, ptr %7, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load ptr, ptr %13, align 8
%73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.4)
br label %74
74: ; preds = %71, %68
%75 = load ptr, ptr %13, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
%80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.5, i32 noundef %79)
br label %81
81: ; preds = %74
%82 = load i32, ptr %7, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %7, align 4
br label %64, !llvm.loop !8
84: ; preds = %64
%85 = load ptr, ptr %13, align 8
%86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.6, i32 noundef 155)
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %87, 10
store i32 %88, ptr %10, align 4
br label %30, !llvm.loop !9
89: ; preds = %30
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf84fz5qw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"usage: %s infile outfile\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"%d DATA \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = 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 [10 x i32], align 16
%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 ptr, align 8
%13 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 30000, ptr %10, align 4
store i32 0, ptr %11, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 @printf(ptr noundef @.str, ptr noundef %19)
br label %21
21: ; preds = %16, %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.2)
store ptr %29, ptr %13, align 8
%30 = load i32, ptr %11, align 4
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br i1 %32, label %.lr.ph3, label %94
.lr.ph3: ; preds = %21
br label %33
33: ; preds = %.lr.ph3, %86
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %33
br label %36
36: ; preds = %.lr.ph, %55
%37 = load ptr, ptr %12, align 8
%38 = call i32 @fgetc(ptr noundef %37)
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr @EOF, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %48
42: ; preds = %36
store i32 1, ptr %11, align 4
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %44
store i32 -1, ptr %45, align 4
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
br label %60
48: ; preds = %36
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %51
store i32 %49, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
br label %55
55: ; preds = %48
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
%58 = load i32, ptr %7, align 4
%59 = icmp slt i32 %58, 10
br i1 %59, label %36, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %55
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %33
br label %60
60: ; preds = %.loopexit, %42
%61 = load ptr, ptr %13, align 8
%62 = load i32, ptr %10, align 4
%63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.3, i32 noundef %62)
store i32 0, ptr %7, align 4
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph1, label %86
.lr.ph1: ; preds = %60
br label %67
67: ; preds = %.lr.ph1, %80
%68 = load i32, ptr %7, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load ptr, ptr %13, align 8
%72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.4)
br label %73
73: ; preds = %70, %67
%74 = load ptr, ptr %13, align 8
%75 = load i32, ptr %7, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %76
%78 = load i32, ptr %77, align 4
%79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.5, i32 noundef %78)
br label %80
80: ; preds = %73
%81 = load i32, ptr %7, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %7, align 4
%83 = load i32, ptr %7, align 4
%84 = load i32, ptr %9, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %67, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %80
br label %86
86: ; preds = %._crit_edge, %60
%87 = load ptr, ptr %13, align 8
%88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.6, i32 noundef 155)
%89 = load i32, ptr %10, align 4
%90 = add nsw i32 %89, 10
store i32 %90, ptr %10, align 4
%91 = load i32, ptr %11, align 4
%92 = icmp ne i32 %91, 0
%93 = xor i1 %92, true
br i1 %93, label %33, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %86
br label %94
94: ; preds = %._crit_edge4, %21
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpg9si58zd.c'
source_filename = "/tmp/tmpg9si58zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Digite um inteiro e entao ENTER\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"Digite um valor e depois um valor em ponto flutuante e ENTER\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %f\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Voce digitou: %d %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Controle de saidas formatadas\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%4d %04d %1d\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"%4.5f %04.05f %1.0f\0A\00", align 1
@.str.9 = private unnamed_addr constant [36 x i8] c"\0AImprimindo em hexadecimal e octal\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"%x %2x %04x\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"%o %2o %04o\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"FIM\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 float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %2, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %10, double noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store float 1.500000e+00, ptr %3, align 4
store i32 15, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load float, ptr %3, align 4
%20 = fpext float %19 to double
%21 = load float, ptr %3, align 4
%22 = fpext float %21 to double
%23 = load float, ptr %3, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %20, double noundef %22, double noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %31, i32 noundef %32, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
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/tmpg9si58zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Digite um inteiro e entao ENTER\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"Digite um valor e depois um valor em ponto flutuante e ENTER\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %f\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Voce digitou: %d %f\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Controle de saidas formatadas\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%4d %04d %1d\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"%4.5f %04.05f %1.0f\0A\00", align 1
@.str.9 = private unnamed_addr constant [36 x i8] c"\0AImprimindo em hexadecimal e octal\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"%x %2x %04x\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"%o %2o %04o\0A\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"FIM\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 float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %2, ptr noundef %3)
%10 = load i32, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %10, double noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store float 1.500000e+00, ptr %3, align 4
store i32 15, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %15, i32 noundef %16, i32 noundef %17)
%19 = load float, ptr %3, align 4
%20 = fpext float %19 to double
%21 = load float, ptr %3, align 4
%22 = fpext float %21 to double
%23 = load float, ptr %3, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %20, double noundef %22, double noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %31, i32 noundef %32, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
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/tmpwxwe1ktd.c'
source_filename = "/tmp/tmpwxwe1ktd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_FAILED = dso_local global ptr null, align 8
@MAP_SHARED = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = 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/tmpwxwe1ktd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_FAILED = dso_local global ptr null, align 8
@MAP_SHARED = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = 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/tmplvj5luun.c'
source_filename = "/tmp/tmplvj5luun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"AAA\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @coord2mc1(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x ptr], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%12 = load double, ptr %6, align 8
%13 = load double, ptr %7, align 8
%14 = load i32, ptr %8, align 4
%15 = call i32 @coord2mc_full(ptr noundef %11, double noundef %12, double noundef %13, i32 noundef %14, i32 noundef 1)
store i32 %15, ptr %10, align 4
%16 = load ptr, ptr %5, align 8
store i8 0, ptr %16, align 1
%17 = load i32, ptr %10, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %36
19: ; preds = %4
%20 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcpy(ptr noundef %25, ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = call i32 @strcat(ptr noundef %29, ptr noundef @.str.1)
br label %31
31: ; preds = %24, %19
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%34 = load ptr, ptr %33, align 16
%35 = call i32 @strcat(ptr noundef %32, ptr noundef %34)
br label %36
36: ; preds = %31, %4
%37 = load i32, ptr %10, align 4
ret i32 %37
}
declare i32 @coord2mc_full(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvj5luun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"AAA\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @coord2mc1(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x ptr], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%12 = load double, ptr %6, align 8
%13 = load double, ptr %7, align 8
%14 = load i32, ptr %8, align 4
%15 = call i32 @coord2mc_full(ptr noundef %11, double noundef %12, double noundef %13, i32 noundef %14, i32 noundef 1)
store i32 %15, ptr %10, align 4
%16 = load ptr, ptr %5, align 8
store i8 0, ptr %16, align 1
%17 = load i32, ptr %10, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %36
19: ; preds = %4
%20 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcpy(ptr noundef %25, ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = call i32 @strcat(ptr noundef %29, ptr noundef @.str.1)
br label %31
31: ; preds = %24, %19
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds [2 x ptr], ptr %9, i64 0, i64 0
%34 = load ptr, ptr %33, align 16
%35 = call i32 @strcat(ptr noundef %32, ptr noundef %34)
br label %36
36: ; preds = %31, %4
%37 = load i32, ptr %10, align 4
ret i32 %37
}
declare i32 @coord2mc_full(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsppnl3ll.c'
source_filename = "/tmp/tmpsppnl3ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_ARCH_PRCTL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_arch_prctl(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr @PTRACE_ARCH_PRCTL, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %6, align 8
%10 = ptrtoint ptr %9 to i64
%11 = load i32, ptr %5, align 4
%12 = call i32 @ptrace(i32 noundef %7, i32 noundef %8, i64 noundef %10, i32 noundef %11)
ret i32 %12
}
declare i32 @ptrace(i32 noundef, i32 noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsppnl3ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTRACE_ARCH_PRCTL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @os_arch_prctl(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr @PTRACE_ARCH_PRCTL, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %6, align 8
%10 = ptrtoint ptr %9 to i64
%11 = load i32, ptr %5, align 4
%12 = call i32 @ptrace(i32 noundef %7, i32 noundef %8, i64 noundef %10, i32 noundef %11)
ret i32 %12
}
declare i32 @ptrace(i32 noundef, i32 noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe76v45np.c'
source_filename = "/tmp/tmpe76v45np.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ufw_blacklist.e\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"ufw_blacklist.dat\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"ufw_whitelist.dat\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"sort -n\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%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 [1024 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr @.str.1, ptr %9, align 8
br label %17
16: ; preds = %2
store ptr @.str.2, ptr %9, align 8
br label %17
17: ; preds = %16, %15
%18 = call ptr @popen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call ptr @fopen_path(ptr noundef %19, ptr noundef @.str.5)
store ptr %20, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %35
22: ; preds = %17
br label %23
23: ; preds = %28, %22
%24 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%25 = load ptr, ptr %6, align 8
%26 = call i64 @get_line(ptr noundef %24, ptr noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%31 = call i32 @fprintf(ptr noundef %29, ptr noundef @.str.6, ptr noundef %30)
br label %23, !llvm.loop !6
32: ; preds = %23
%33 = load ptr, ptr %8, align 8
%34 = call i32 @pclose(ptr noundef %33)
br label %35
35: ; preds = %32, %17
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare ptr @fopen_path(ptr noundef, ptr noundef) #1
declare i64 @get_line(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe76v45np.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ufw_blacklist.e\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"ufw_blacklist.dat\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"ufw_whitelist.dat\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"sort -n\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%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 [1024 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %2
store ptr @.str.1, ptr %9, align 8
br label %17
16: ; preds = %2
store ptr @.str.2, ptr %9, align 8
br label %17
17: ; preds = %16, %15
%18 = call ptr @popen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call ptr @fopen_path(ptr noundef %19, ptr noundef @.str.5)
store ptr %20, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %37
22: ; preds = %17
%23 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%24 = load ptr, ptr %6, align 8
%25 = call i64 @get_line(ptr noundef %23, ptr noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %.lr.ph, label %34
.lr.ph: ; preds = %22
br label %27
27: ; preds = %.lr.ph, %27
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @fprintf(ptr noundef %28, ptr noundef @.str.6, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = call i64 @get_line(ptr noundef %23, ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %22
%35 = load ptr, ptr %8, align 8
%36 = call i32 @pclose(ptr noundef %35)
br label %37
37: ; preds = %34, %17
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare ptr @fopen_path(ptr noundef, ptr noundef) #1
declare i64 @get_line(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp312jod9i.c'
source_filename = "/tmp/tmp312jod9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_imatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = getelementptr inbounds ptr, ptr %11, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds i32, ptr %14, i64 %15
%17 = getelementptr inbounds i32, ptr %16, i64 -1
%18 = call i32 @free(ptr noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds ptr, ptr %19, i64 %20
%22 = getelementptr inbounds ptr, ptr %21, i64 -1
%23 = call i32 @free(ptr noundef %22)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp312jod9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_imatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = getelementptr inbounds ptr, ptr %11, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds i32, ptr %14, i64 %15
%17 = getelementptr inbounds i32, ptr %16, i64 -1
%18 = call i32 @free(ptr noundef %17)
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds ptr, ptr %19, i64 %20
%22 = getelementptr inbounds ptr, ptr %21, i64 -1
%23 = call i32 @free(ptr noundef %22)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmy353f2m.c'
source_filename = "/tmp/tmpmy353f2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"String test: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"This is a string\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Int test: %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Pointer test: %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testUARTstdio() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str.2, i32 noundef 5)
store i32 6, ptr %1, align 4
%4 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str.3, ptr noundef %1)
ret i32 1
}
declare i32 @UARTprintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmy353f2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"String test: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"This is a string\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Int test: %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Pointer test: %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testUARTstdio() #0 {
%1 = alloca i32, align 4
%2 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str.2, i32 noundef 5)
store i32 6, ptr %1, align 4
%4 = call i32 (ptr, ...) @UARTprintf(ptr noundef @.str.3, ptr noundef %1)
ret i32 1
}
declare i32 @UARTprintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzo7s59tz.c'
source_filename = "/tmp/tmpzo7s59tz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INTERSECTING LINES OUTPUT\0A\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"%d %d %d %d %d %d %d %d\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"LINE\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"NONE\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"POINT %.2lf %.2lf\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"END OF OUTPUT\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 double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %1, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%21 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %22
22: ; preds = %125, %0
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %128
26: ; preds = %22
%27 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %12, ptr noundef %14, ptr noundef %13, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19)
%28 = load i32, ptr %14, align 4
%29 = load i32, ptr %15, align 4
%30 = sub nsw i32 %28, %29
%31 = sitofp i32 %30 to double
store double %31, ptr %4, align 8
%32 = load i32, ptr %13, align 4
%33 = load i32, ptr %12, align 4
%34 = sub nsw i32 %32, %33
%35 = sitofp i32 %34 to double
store double %35, ptr %5, align 8
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr %15, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %14, align 4
%40 = load i32, ptr %13, align 4
%41 = mul nsw i32 %39, %40
%42 = sub nsw i32 %38, %41
%43 = sitofp i32 %42 to double
store double %43, ptr %6, align 8
%44 = load i32, ptr %17, align 4
%45 = load i32, ptr %19, align 4
%46 = sub nsw i32 %44, %45
%47 = sitofp i32 %46 to double
store double %47, ptr %7, align 8
%48 = load i32, ptr %18, align 4
%49 = load i32, ptr %16, align 4
%50 = sub nsw i32 %48, %49
%51 = sitofp i32 %50 to double
store double %51, ptr %8, align 8
%52 = load i32, ptr %16, align 4
%53 = load i32, ptr %19, align 4
%54 = mul nsw i32 %52, %53
%55 = load i32, ptr %17, align 4
%56 = load i32, ptr %18, align 4
%57 = mul nsw i32 %55, %56
%58 = sub nsw i32 %54, %57
%59 = sitofp i32 %58 to double
store double %59, ptr %9, align 8
%60 = load double, ptr %4, align 8
%61 = load double, ptr %8, align 8
%62 = fmul double %60, %61
%63 = load double, ptr %7, align 8
%64 = load double, ptr %5, align 8
%65 = fmul double %63, %64
%66 = fcmp oeq double %62, %65
br i1 %66, label %67, label %88
67: ; preds = %26
%68 = load i32, ptr %16, align 4
%69 = load i32, ptr %12, align 4
%70 = sub nsw i32 %68, %69
%71 = load i32, ptr %15, align 4
%72 = load i32, ptr %14, align 4
%73 = sub nsw i32 %71, %72
%74 = mul nsw i32 %70, %73
%75 = load i32, ptr %17, align 4
%76 = load i32, ptr %14, align 4
%77 = sub nsw i32 %75, %76
%78 = load i32, ptr %13, align 4
%79 = load i32, ptr %12, align 4
%80 = sub nsw i32 %78, %79
%81 = mul nsw i32 %77, %80
%82 = icmp eq i32 %74, %81
br i1 %82, label %83, label %85
83: ; preds = %67
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %87
85: ; preds = %67
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %87
87: ; preds = %85, %83
br label %124
88: ; preds = %26
%89 = load double, ptr %5, align 8
%90 = load double, ptr %9, align 8
%91 = load double, ptr %8, align 8
%92 = load double, ptr %6, align 8
%93 = fmul double %91, %92
%94 = fneg double %93
%95 = call double @llvm.fmuladd.f64(double %89, double %90, double %94)
%96 = load double, ptr %4, align 8
%97 = load double, ptr %8, align 8
%98 = load double, ptr %7, align 8
%99 = load double, ptr %5, align 8
%100 = fmul double %98, %99
%101 = fneg double %100
%102 = call double @llvm.fmuladd.f64(double %96, double %97, double %101)
%103 = fdiv double %95, %102
store double %103, ptr %10, align 8
%104 = load double, ptr %6, align 8
%105 = load double, ptr %7, align 8
%106 = load double, ptr %9, align 8
%107 = load double, ptr %4, align 8
%108 = fmul double %106, %107
%109 = fneg double %108
%110 = call double @llvm.fmuladd.f64(double %104, double %105, double %109)
%111 = load double, ptr %4, align 8
%112 = load double, ptr %8, align 8
%113 = load double, ptr %7, align 8
%114 = load double, ptr %5, align 8
%115 = fmul double %113, %114
%116 = fneg double %115
%117 = call double @llvm.fmuladd.f64(double %111, double %112, double %116)
%118 = fdiv double %110, %117
store double %118, ptr %11, align 8
%119 = load double, ptr %10, align 8
%120 = fadd double %119, 1.000000e-08
%121 = load double, ptr %11, align 8
%122 = fadd double %121, 1.000000e-08
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %120, double noundef %122)
br label %124
124: ; preds = %88, %87
br label %125
125: ; preds = %124
%126 = load i32, ptr %3, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %3, align 4
br label %22, !llvm.loop !6
128: ; preds = %22
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzo7s59tz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INTERSECTING LINES OUTPUT\0A\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"%d %d %d %d %d %d %d %d\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"LINE\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"NONE\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"POINT %.2lf %.2lf\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"END OF OUTPUT\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 double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %1, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%21 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %130
.lr.ph: ; preds = %0
br label %25
25: ; preds = %.lr.ph, %124
%26 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %12, ptr noundef %14, ptr noundef %13, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19)
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %15, align 4
%29 = sub nsw i32 %27, %28
%30 = sitofp i32 %29 to double
store double %30, ptr %4, align 8
%31 = load i32, ptr %13, align 4
%32 = load i32, ptr %12, align 4
%33 = sub nsw i32 %31, %32
%34 = sitofp i32 %33 to double
store double %34, ptr %5, align 8
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %15, align 4
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %14, align 4
%39 = load i32, ptr %13, align 4
%40 = mul nsw i32 %38, %39
%41 = sub nsw i32 %37, %40
%42 = sitofp i32 %41 to double
store double %42, ptr %6, align 8
%43 = load i32, ptr %17, align 4
%44 = load i32, ptr %19, align 4
%45 = sub nsw i32 %43, %44
%46 = sitofp i32 %45 to double
store double %46, ptr %7, align 8
%47 = load i32, ptr %18, align 4
%48 = load i32, ptr %16, align 4
%49 = sub nsw i32 %47, %48
%50 = sitofp i32 %49 to double
store double %50, ptr %8, align 8
%51 = load i32, ptr %16, align 4
%52 = load i32, ptr %19, align 4
%53 = mul nsw i32 %51, %52
%54 = load i32, ptr %17, align 4
%55 = load i32, ptr %18, align 4
%56 = mul nsw i32 %54, %55
%57 = sub nsw i32 %53, %56
%58 = sitofp i32 %57 to double
store double %58, ptr %9, align 8
%59 = load double, ptr %4, align 8
%60 = load double, ptr %8, align 8
%61 = fmul double %59, %60
%62 = load double, ptr %7, align 8
%63 = load double, ptr %5, align 8
%64 = fmul double %62, %63
%65 = fcmp oeq double %61, %64
br i1 %65, label %66, label %87
66: ; preds = %25
%67 = load i32, ptr %16, align 4
%68 = load i32, ptr %12, align 4
%69 = sub nsw i32 %67, %68
%70 = load i32, ptr %15, align 4
%71 = load i32, ptr %14, align 4
%72 = sub nsw i32 %70, %71
%73 = mul nsw i32 %69, %72
%74 = load i32, ptr %17, align 4
%75 = load i32, ptr %14, align 4
%76 = sub nsw i32 %74, %75
%77 = load i32, ptr %13, align 4
%78 = load i32, ptr %12, align 4
%79 = sub nsw i32 %77, %78
%80 = mul nsw i32 %76, %79
%81 = icmp eq i32 %73, %80
br i1 %81, label %82, label %84
82: ; preds = %66
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %86
84: ; preds = %66
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %86
86: ; preds = %84, %82
br label %123
87: ; preds = %25
%88 = load double, ptr %5, align 8
%89 = load double, ptr %9, align 8
%90 = load double, ptr %8, align 8
%91 = load double, ptr %6, align 8
%92 = fmul double %90, %91
%93 = fneg double %92
%94 = call double @llvm.fmuladd.f64(double %88, double %89, double %93)
%95 = load double, ptr %4, align 8
%96 = load double, ptr %8, align 8
%97 = load double, ptr %7, align 8
%98 = load double, ptr %5, align 8
%99 = fmul double %97, %98
%100 = fneg double %99
%101 = call double @llvm.fmuladd.f64(double %95, double %96, double %100)
%102 = fdiv double %94, %101
store double %102, ptr %10, align 8
%103 = load double, ptr %6, align 8
%104 = load double, ptr %7, align 8
%105 = load double, ptr %9, align 8
%106 = load double, ptr %4, align 8
%107 = fmul double %105, %106
%108 = fneg double %107
%109 = call double @llvm.fmuladd.f64(double %103, double %104, double %108)
%110 = load double, ptr %4, align 8
%111 = load double, ptr %8, align 8
%112 = load double, ptr %7, align 8
%113 = load double, ptr %5, align 8
%114 = fmul double %112, %113
%115 = fneg double %114
%116 = call double @llvm.fmuladd.f64(double %110, double %111, double %115)
%117 = fdiv double %109, %116
store double %117, ptr %11, align 8
%118 = load double, ptr %10, align 8
%119 = fadd double %118, 1.000000e-08
%120 = load double, ptr %11, align 8
%121 = fadd double %120, 1.000000e-08
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %119, double noundef %121)
br label %123
123: ; preds = %87, %86
br label %124
124: ; preds = %123
%125 = load i32, ptr %3, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %3, align 4
%127 = load i32, ptr %3, align 4
%128 = load i32, ptr %2, align 4
%129 = icmp slt i32 %127, %128
br i1 %129, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %124
br label %130
130: ; preds = %._crit_edge, %0
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj2d2osw6.c'
source_filename = "/tmp/tmpj2d2osw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zfs_telldir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @telldir(ptr noundef %3)
ret i64 %4
}
declare i64 @telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj2d2osw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zfs_telldir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @telldir(ptr noundef %3)
ret i64 %4
}
declare i64 @telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7_muyxze.c'
source_filename = "/tmp/tmp7_muyxze.c"
target datalayout = "e-m:e-p270: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/tmp7_muyxze.c"
target datalayout = "e-m:e-p270: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/tmpjlmivkru.c'
source_filename = "/tmp/tmpjlmivkru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %26, %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load ptr, ptr %9, align 8
%18 = load i32, ptr %7, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %7, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 %21, ptr %25, align 1
br label %26
26: ; preds = %16
%27 = load i32, ptr %7, align 4
%28 = add i32 %27, 1
store i32 %28, ptr %7, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpjlmivkru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %9, align 8
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %25
%16 = load ptr, ptr %9, align 8
%17 = load i32, ptr %7, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %7, align 4
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 %20, ptr %24, align 1
br label %25
25: ; preds = %15
%26 = load i32, ptr %7, align 4
%27 = add i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ult i32 %28, %29
br i1 %30, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %3
%32 = load ptr, ptr %4, align 8
ret ptr %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpsw46e_i3.c'
source_filename = "/tmp/tmpsw46e_i3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cocktailSortArray(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %7, align 4
br label %12
12: ; preds = %90, %2
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %93
16: ; preds = %12
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %8, align 4
br label %18
18: ; preds = %49, %16
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %52
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %30, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp sgt i32 %29, %35
br i1 %36, label %37, label %48
37: ; preds = %22
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %42, i64 %45
%47 = call i32 @swap(ptr noundef %41, ptr noundef %46)
br label %48
48: ; preds = %37, %22
br label %49
49: ; preds = %48
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %18, !llvm.loop !6
52: ; preds = %18
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %87, %52
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp sgt i32 %57, %58
br i1 %59, label %60, label %90
60: ; preds = %56
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %63, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp sgt i32 %68, %73
br i1 %74, label %75, label %86
75: ; preds = %60
%76 = load ptr, ptr %4, align 8
%77 = load i32, ptr %9, align 4
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %76, i64 %79
%81 = load ptr, ptr %4, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = call i32 @swap(ptr noundef %80, ptr noundef %84)
br label %86
86: ; preds = %75, %60
br label %87
87: ; preds = %86
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, -1
store i32 %89, ptr %9, align 4
br label %56, !llvm.loop !8
90: ; preds = %56
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %6, align 4
br label %12, !llvm.loop !9
93: ; preds = %12
%94 = load i32, ptr %5, align 4
ret i32 %94
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsw46e_i3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cocktailSortArray(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph5, label %99
.lr.ph5: ; preds = %2
br label %15
15: ; preds = %.lr.ph5, %93
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %53
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %47
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp sgt i32 %27, %33
br i1 %34, label %35, label %46
35: ; preds = %20
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %40, i64 %43
%45 = call i32 @swap(ptr noundef %39, ptr noundef %44)
br label %46
46: ; preds = %35, %20
br label %47
47: ; preds = %46
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %15
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %7, align 4
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp sgt i32 %57, %58
br i1 %59, label %.lr.ph2, label %93
.lr.ph2: ; preds = %53
br label %60
60: ; preds = %.lr.ph2, %87
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %63, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, ptr %69, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp sgt i32 %68, %73
br i1 %74, label %75, label %86
75: ; preds = %60
%76 = load ptr, ptr %4, align 8
%77 = load i32, ptr %9, align 4
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %76, i64 %79
%81 = load ptr, ptr %4, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = call i32 @swap(ptr noundef %80, ptr noundef %84)
br label %86
86: ; preds = %75, %60
br label %87
87: ; preds = %86
%88 = load i32, ptr %9, align 4
%89 = add nsw i32 %88, -1
store i32 %89, ptr %9, align 4
%90 = load i32, ptr %9, align 4
%91 = load i32, ptr %6, align 4
%92 = icmp sgt i32 %90, %91
br i1 %92, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %87
br label %93
93: ; preds = %._crit_edge3, %53
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %6, align 4
%96 = load i32, ptr %6, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp sle i32 %96, %97
br i1 %98, label %15, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %99
99: ; preds = %._crit_edge6, %2
%100 = load i32, ptr %5, align 4
ret i32 %100
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp053c6mgt.c'
source_filename = "/tmp/tmp053c6mgt.c"
target datalayout = "e-m:e-p270: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
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp053c6mgt.c"
target datalayout = "e-m:e-p270: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
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stdin = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpribgw6wx.c'
source_filename = "/tmp/tmpribgw6wx.c"
target datalayout = "e-m:e-p270: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/tmpribgw6wx.c"
target datalayout = "e-m:e-p270: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/tmps4ifhmvo.c'
source_filename = "/tmp/tmps4ifhmvo.c"
target datalayout = "e-m:e-p270: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/tmps4ifhmvo.c"
target datalayout = "e-m:e-p270: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/tmpcyvvi79y.c'
source_filename = "/tmp/tmpcyvvi79y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @systemResetToBootloader() #0 {
store i32 -559038737, ptr inttoptr (i64 536891376 to ptr), align 4
%1 = call i32 (...) @systemReset()
ret void
}
declare i32 @systemReset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcyvvi79y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @systemResetToBootloader() #0 {
store i32 -559038737, ptr inttoptr (i64 536891376 to ptr), align 4
%1 = call i32 (...) @systemReset()
ret void
}
declare i32 @systemReset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb3v96pt8.c'
source_filename = "/tmp/tmpb3v96pt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_isblank() #0 {
%1 = call i32 @isblank(i8 noundef signext 9)
%2 = call i32 @clang_analyzer_eval(i32 noundef %1)
%3 = call i32 @isblank(i8 noundef signext 32)
%4 = call i32 @clang_analyzer_eval(i32 noundef %3)
%5 = call i32 @isblank(i8 noundef signext 10)
%6 = call i32 @clang_analyzer_eval(i32 noundef %5)
ret void
}
declare i32 @clang_analyzer_eval(i32 noundef) #1
declare i32 @isblank(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/tmpb3v96pt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_isblank() #0 {
%1 = call i32 @isblank(i8 noundef signext 9)
%2 = call i32 @clang_analyzer_eval(i32 noundef %1)
%3 = call i32 @isblank(i8 noundef signext 32)
%4 = call i32 @clang_analyzer_eval(i32 noundef %3)
%5 = call i32 @isblank(i8 noundef signext 10)
%6 = call i32 @clang_analyzer_eval(i32 noundef %5)
ret void
}
declare i32 @clang_analyzer_eval(i32 noundef) #1
declare i32 @isblank(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/tmp66nouae3.c'
source_filename = "/tmp/tmp66nouae3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [12 x double] [double 1.000000e+00, double 2.000000e+00, double 0x7FF8000000000000, double 3.000000e+00, double 0x7FF8000000000000, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 0x7FF8000000000000, double 7.000000e+00, double 8.000000e+00, double 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [22 x i8] c"sample variance: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 96, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dnanvariance(i32 noundef %5, i32 noundef 1, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
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 double @stdlib_strided_dnanvariance(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double 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/tmp66nouae3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [12 x double] [double 1.000000e+00, double 2.000000e+00, double 0x7FF8000000000000, double 3.000000e+00, double 0x7FF8000000000000, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 0x7FF8000000000000, double 7.000000e+00, double 8.000000e+00, double 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [22 x i8] c"sample variance: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 96, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dnanvariance(i32 noundef %5, i32 noundef 1, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
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 double @stdlib_strided_dnanvariance(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double 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/tmpzu5mo241.c'
source_filename = "/tmp/tmpzu5mo241.c"
target datalayout = "e-m:e-p270: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/tmpzu5mo241.c"
target datalayout = "e-m:e-p270: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/tmpg5pruzu2.c'
source_filename = "/tmp/tmpg5pruzu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.2 = 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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call ptr @malloc(i32 noundef 100000)
store ptr %9, ptr %7, align 8
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %31, %0
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 1
br i1 %16, label %17, label %34
17: ; preds = %14
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %27, %17
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %19, 100000000
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, %22
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %21
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %18, !llvm.loop !6
30: ; preds = %18
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %14, !llvm.loop !8
34: ; preds = %14
%35 = load ptr, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %38, 100
br i1 %39, label %40, label %43
40: ; preds = %37, %34
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %40, %37
%44 = load i32, ptr %3, align 4
%45 = icmp eq i32 %44, 100
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %51
48: ; preds = %43
%49 = load i32, ptr %4, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49)
br label %51
51: ; preds = %48, %46
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, %52
store i32 %54, ptr %2, align 4
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg5pruzu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.2 = 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
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call ptr @malloc(i32 noundef 100000)
store ptr %9, ptr %7, align 8
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %4, align 4
store i32 0, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 1
br i1 %15, label %.lr.ph2, label %36
.lr.ph2: ; preds = %0
br label %16
16: ; preds = %.lr.ph2, %31
store i32 0, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %17, 100000000
br i1 %18, label %.lr.ph, label %30
.lr.ph: ; preds = %16
br label %19
19: ; preds = %.lr.ph, %25
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %19
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %28, 100000000
br i1 %29, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %16
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 1
br i1 %35, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %0
%37 = load ptr, ptr %7, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %40, 100
br i1 %41, label %42, label %45
42: ; preds = %39, %36
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %42, %39
%46 = load i32, ptr %3, align 4
%47 = icmp eq i32 %46, 100
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
50: ; preds = %45
%51 = load i32, ptr %4, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51)
br label %53
53: ; preds = %50, %48
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %2, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %2, align 4
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_4xsnk1k.c'
source_filename = "/tmp/tmp_4xsnk1k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @find_combination(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 i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %12, i32 noundef %13, ptr noundef %14)
br label %55
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 %17, %18
%20 = ashr i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %15
br label %55
25: ; preds = %15
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = load ptr, ptr %6, align 8
%30 = call i32 @print_result(ptr noundef %29, i32 noundef 100)
%31 = call i32 @printf(ptr noundef @.str)
br label %55
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 1
br i1 %34, label %35, label %36
35: ; preds = %32
br label %55
36: ; preds = %32
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 1, ptr %40, align 4
%41 = load i32, ptr %4, align 4
%42 = sub nsw i32 %41, 1
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %4, align 4
%45 = sub nsw i32 %43, %44
%46 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %42, i32 noundef %45, ptr noundef %46)
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
store i32 0, ptr %50, align 4
%51 = load i32, ptr %4, align 4
%52 = sub nsw i32 %51, 1
%53 = load i32, ptr %5, align 4
%54 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %52, i32 noundef %53, ptr noundef %54)
br label %55
55: ; preds = %36, %35, %28, %24, %11
ret void
}
declare i32 @print_result(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_4xsnk1k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @find_combination(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 i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %12, i32 noundef %13, ptr noundef %14)
br label %55
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 %17, %18
%20 = ashr i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %15
br label %55
25: ; preds = %15
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = load ptr, ptr %6, align 8
%30 = call i32 @print_result(ptr noundef %29, i32 noundef 100)
%31 = call i32 @printf(ptr noundef @.str)
br label %55
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 1
br i1 %34, label %35, label %36
35: ; preds = %32
br label %55
36: ; preds = %32
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 1, ptr %40, align 4
%41 = load i32, ptr %4, align 4
%42 = sub nsw i32 %41, 1
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %4, align 4
%45 = sub nsw i32 %43, %44
%46 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %42, i32 noundef %45, ptr noundef %46)
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %4, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
store i32 0, ptr %50, align 4
%51 = load i32, ptr %4, align 4
%52 = sub nsw i32 %51, 1
%53 = load i32, ptr %5, align 4
%54 = load ptr, ptr %6, align 8
call void @find_combination(i32 noundef %52, i32 noundef %53, ptr noundef %54)
br label %55
55: ; preds = %36, %35, %28, %24, %11
ret void
}
declare i32 @print_result(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfk2obb7a.c'
source_filename = "/tmp/tmpfk2obb7a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Dup error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Dup2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @dup2(i32 noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @unix_error(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
ret void
}
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @unix_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfk2obb7a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"Dup error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Dup2(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @dup2(i32 noundef %6, i32 noundef %7)
store i32 %8, ptr %5, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @unix_error(ptr noundef @.str)
br label %12
12: ; preds = %10, %2
ret void
}
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @unix_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0ry9gpby.c'
source_filename = "/tmp/tmp0ry9gpby.c"
target datalayout = "e-m:e-p270: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/tmp0ry9gpby.c"
target datalayout = "e-m:e-p270: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/tmp25dznpot.c'
source_filename = "/tmp/tmp25dznpot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"RGB-8 Bit\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"RGBA-8 Bit\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"RGB-16 Bit\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"RGBA-16 Bit\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"RGB-FLOAT\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"RGBA-FLOAT\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"YUV-8 Bit\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"YUVA-8 Bit\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"YUV-16 Bit\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"YUVA-16 Bit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmodel_from_text(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 9, ptr %2, align 4
br label %54
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i32 10, ptr %2, align 4
br label %54
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i32 11, ptr %2, align 4
br label %54
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i32 12, ptr %2, align 4
br label %54
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcasecmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23
store i32 29, ptr %2, align 4
br label %54
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i32 @strcasecmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %28
store i32 30, ptr %2, align 4
br label %54
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i32 @strcasecmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %33
store i32 13, ptr %2, align 4
br label %54
38: ; preds = %33
%39 = load ptr, ptr %3, align 8
%40 = call i32 @strcasecmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp ne i32 %40, 0
br i1 %41, label %43, label %42
42: ; preds = %38
store i32 14, ptr %2, align 4
br label %54
43: ; preds = %38
%44 = load ptr, ptr %3, align 8
%45 = call i32 @strcasecmp(ptr noundef %44, ptr noundef @.str.8)
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %43
store i32 15, ptr %2, align 4
br label %54
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = call i32 @strcasecmp(ptr noundef %49, ptr noundef @.str.9)
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %48
store i32 16, ptr %2, align 4
br label %54
53: ; preds = %48
store i32 9, ptr %2, align 4
br label %54
54: ; preds = %53, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @strcasecmp(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/tmp25dznpot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"RGB-8 Bit\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"RGBA-8 Bit\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"RGB-16 Bit\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"RGBA-16 Bit\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"RGB-FLOAT\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"RGBA-FLOAT\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"YUV-8 Bit\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"YUVA-8 Bit\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"YUV-16 Bit\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"YUVA-16 Bit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmodel_from_text(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 9, ptr %2, align 4
br label %54
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i32 10, ptr %2, align 4
br label %54
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i32 11, ptr %2, align 4
br label %54
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i32 12, ptr %2, align 4
br label %54
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcasecmp(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23
store i32 29, ptr %2, align 4
br label %54
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i32 @strcasecmp(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %28
store i32 30, ptr %2, align 4
br label %54
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i32 @strcasecmp(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %33
store i32 13, ptr %2, align 4
br label %54
38: ; preds = %33
%39 = load ptr, ptr %3, align 8
%40 = call i32 @strcasecmp(ptr noundef %39, ptr noundef @.str.7)
%41 = icmp ne i32 %40, 0
br i1 %41, label %43, label %42
42: ; preds = %38
store i32 14, ptr %2, align 4
br label %54
43: ; preds = %38
%44 = load ptr, ptr %3, align 8
%45 = call i32 @strcasecmp(ptr noundef %44, ptr noundef @.str.8)
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %43
store i32 15, ptr %2, align 4
br label %54
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = call i32 @strcasecmp(ptr noundef %49, ptr noundef @.str.9)
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %48
store i32 16, ptr %2, align 4
br label %54
53: ; preds = %48
store i32 9, ptr %2, align 4
br label %54
54: ; preds = %53, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @strcasecmp(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/tmppmr2d513.c'
source_filename = "/tmp/tmppmr2d513.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Thread %02i running on processor %i.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"There are %i threads in total.\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @omp_get_thread_num()
store i32 %8, ptr %6, align 4
%9 = call i32 (...) @sched_getcpu()
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (...) @omp_get_num_threads()
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %15, %2
%19 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %19
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @sched_getcpu(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @omp_get_num_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppmr2d513.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Thread %02i running on processor %i.\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"There are %i threads in total.\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @omp_get_thread_num()
store i32 %8, ptr %6, align 4
%9 = call i32 (...) @sched_getcpu()
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %10, i32 noundef %11)
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (...) @omp_get_num_threads()
%17 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %15, %2
%19 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %19
}
declare i32 @omp_get_thread_num(...) #1
declare i32 @sched_getcpu(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @omp_get_num_threads(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy3c28pnw.c'
source_filename = "/tmp/tmpy3c28pnw.c"
target datalayout = "e-m:e-p270: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/tmpy3c28pnw.c"
target datalayout = "e-m:e-p270: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/tmpc3clpcxa.c'
source_filename = "/tmp/tmpc3clpcxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"arnold.layne\00", align 1
@AT_FDCWD = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"arnold.layne.hard\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr null, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %8, ptr %1, align 4
br label %25
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @dirfd(ptr noundef %10)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 -1, %12
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %15, ptr %1, align 4
br label %25
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @AT_FDCWD, align 4
%19 = call i64 @linkat(i32 noundef %17, ptr noundef @.str.1, i32 noundef %18, ptr noundef @.str.2, i32 noundef 0)
%20 = icmp sgt i64 0, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %22, ptr %1, align 4
br label %25
23: ; preds = %16
%24 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %24, ptr %1, align 4
br label %25
25: ; preds = %23, %21, %14, %7
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare ptr @opendir(ptr noundef) #1
declare i32 @dirfd(ptr noundef) #1
declare i64 @linkat(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc3clpcxa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"arnold.layne\00", align 1
@AT_FDCWD = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"arnold.layne.hard\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr null, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %8, ptr %1, align 4
br label %25
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @dirfd(ptr noundef %10)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 -1, %12
br i1 %13, label %14, label %16
14: ; preds = %9
%15 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %15, ptr %1, align 4
br label %25
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @AT_FDCWD, align 4
%19 = call i64 @linkat(i32 noundef %17, ptr noundef @.str.1, i32 noundef %18, ptr noundef @.str.2, i32 noundef 0)
%20 = icmp sgt i64 0, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %22, ptr %1, align 4
br label %25
23: ; preds = %16
%24 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %24, ptr %1, align 4
br label %25
25: ; preds = %23, %21, %14, %7
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare ptr @opendir(ptr noundef) #1
declare i32 @dirfd(ptr noundef) #1
declare i64 @linkat(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwc4twsts.c'
source_filename = "/tmp/tmpwc4twsts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fsaintjacques/cmockery/refs/heads/master/examples/allocate_module.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @buffer_overflow() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @_test_malloc(i32 noundef 4, ptr noundef @.str, i32 noundef 33)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 4
store i8 33, ptr %5, align 1
%6 = load ptr, ptr %1, align 8
%7 = call i32 @_test_free(ptr noundef %6, ptr noundef @.str, i32 noundef 35)
ret void
}
declare i64 @_test_malloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @_test_free(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/tmpwc4twsts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fsaintjacques/cmockery/refs/heads/master/examples/allocate_module.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @buffer_overflow() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @_test_malloc(i32 noundef 4, ptr noundef @.str, i32 noundef 33)
%3 = inttoptr i64 %2 to ptr
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 4
store i8 33, ptr %5, align 1
%6 = load ptr, ptr %1, align 8
%7 = call i32 @_test_free(ptr noundef %6, ptr noundef @.str, i32 noundef 35)
ret void
}
declare i64 @_test_malloc(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @_test_free(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/tmp4syxm1r9.c'
source_filename = "/tmp/tmp4syxm1r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mus_file_read_buffer(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @mus_read_any_1(i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef null, ptr noundef %18)
ret i32 %19
}
declare i32 @mus_read_any_1(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4syxm1r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mus_file_read_buffer(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @mus_read_any_1(i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef null, ptr noundef %18)
ret i32 %19
}
declare i32 @mus_read_any_1(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv8gw8k1q.c'
source_filename = "/tmp/tmpv8gw8k1q.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setcanceltype(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr @EINVAL, align 4
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv8gw8k1q.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setcanceltype(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr @EINVAL, align 4
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6xyldsw8.c'
source_filename = "/tmp/tmp6xyldsw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Digite um valor \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"A ordem inversa do vetor eh \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %15, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 4
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %59, %18
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 4
br i1 %21, label %22, label %62
22: ; preds = %19
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %55, %22
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 5
br i1 %27, label %28, label %58
28: ; preds = %25
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp sgt i32 %32, %36
br i1 %37, label %38, label %54
38: ; preds = %28
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %48
store i32 %46, ptr %49, align 4
%50 = load i32, ptr %5, align 4
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %52
store i32 %50, ptr %53, align 4
br label %54
54: ; preds = %38, %28
br label %55
55: ; preds = %54
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
br label %25, !llvm.loop !8
58: ; preds = %25
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %19, !llvm.loop !9
62: ; preds = %19
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %64
64: ; preds = %73, %62
%65 = load i32, ptr %3, align 4
%66 = icmp slt i32 %65, 4
br i1 %66, label %67, label %76
67: ; preds = %64
%68 = load i32, ptr %3, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %71)
br label %73
73: ; preds = %67
%74 = load i32, ptr %3, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %3, align 4
br label %64, !llvm.loop !10
76: ; preds = %64
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"}
!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/tmp6xyldsw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Digite um valor \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"A ordem inversa do vetor eh \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 4
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %14
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 4
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
store i32 0, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 4
br i1 %21, label %.lr.ph5, label %65
.lr.ph5: ; preds = %19
br label %22
22: ; preds = %.lr.ph5, %60
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 5
br i1 %26, label %.lr.ph2, label %59
.lr.ph2: ; preds = %22
br label %27
27: ; preds = %.lr.ph2, %54
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp sgt i32 %31, %35
br i1 %36, label %37, label %53
37: ; preds = %27
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %47
store i32 %45, ptr %48, align 4
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %53
53: ; preds = %37, %27
br label %54
54: ; preds = %53
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %57, 5
br i1 %58, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %59
59: ; preds = %._crit_edge3, %22
br label %60
60: ; preds = %59
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp slt i32 %63, 4
br i1 %64, label %22, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %65
65: ; preds = %._crit_edge6, %19
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%67 = load i32, ptr %3, align 4
%68 = icmp slt i32 %67, 4
br i1 %68, label %.lr.ph8, label %80
.lr.ph8: ; preds = %65
br label %69
69: ; preds = %.lr.ph8, %75
%70 = load i32, ptr %3, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %73)
br label %75
75: ; preds = %69
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = load i32, ptr %3, align 4
%79 = icmp slt i32 %78, 4
br i1 %79, label %69, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %75
br label %80
80: ; preds = %._crit_edge9, %65
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpls3hahg2.c'
source_filename = "/tmp/tmpls3hahg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rt_light_attenuation(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load double, ptr %6, align 8
%11 = load double, ptr %7, align 8
%12 = load double, ptr %8, align 8
%13 = call i32 @light_set_attenuation(ptr noundef %9, double noundef %10, double noundef %11, double noundef %12)
ret void
}
declare i32 @light_set_attenuation(ptr 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/tmpls3hahg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rt_light_attenuation(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store ptr %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load double, ptr %6, align 8
%11 = load double, ptr %7, align 8
%12 = load double, ptr %8, align 8
%13 = call i32 @light_set_attenuation(ptr noundef %9, double noundef %10, double noundef %11, double noundef %12)
ret void
}
declare i32 @light_set_attenuation(ptr 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/tmpw9f00v0k.c'
source_filename = "/tmp/tmpw9f00v0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_TRIANGLES = dso_local global i32 0, align 4
@GL_LINE_LOOP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @draw_triangle(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, ptr noundef %6) #0 {
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca ptr, align 8
%15 = alloca float, align 4
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store float %4, ptr %12, align 4
store float %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
%17 = call i32 @glColor4fv(ptr noundef %16)
%18 = load i32, ptr @GL_TRIANGLES, align 4
%19 = call i32 @glBegin(i32 noundef %18)
%20 = load float, ptr %8, align 4
%21 = load float, ptr %9, align 4
%22 = call i32 @glVertex2f(float noundef %20, float noundef %21)
%23 = load float, ptr %10, align 4
%24 = load float, ptr %11, align 4
%25 = call i32 @glVertex2f(float noundef %23, float noundef %24)
%26 = load float, ptr %12, align 4
%27 = load float, ptr %13, align 4
%28 = call i32 @glVertex2f(float noundef %26, float noundef %27)
%29 = call i32 (...) @glEnd()
store float 0x3FC99999A0000000, ptr %15, align 4
%30 = load ptr, ptr %14, align 8
%31 = getelementptr inbounds float, ptr %30, i64 0
%32 = load float, ptr %31, align 4
%33 = fmul float 0x3FC99999A0000000, %32
%34 = load ptr, ptr %14, align 8
%35 = getelementptr inbounds float, ptr %34, i64 1
%36 = load float, ptr %35, align 4
%37 = fmul float 0x3FC99999A0000000, %36
%38 = load ptr, ptr %14, align 8
%39 = getelementptr inbounds float, ptr %38, i64 2
%40 = load float, ptr %39, align 4
%41 = fmul float 0x3FC99999A0000000, %40
%42 = call i32 @glColor4f(float noundef %33, float noundef %37, float noundef %41, double noundef 1.000000e+00)
%43 = call i32 @glLineWidth(double noundef 2.000000e+00)
%44 = load i32, ptr @GL_LINE_LOOP, align 4
%45 = call i32 @glBegin(i32 noundef %44)
%46 = load float, ptr %8, align 4
%47 = load float, ptr %9, align 4
%48 = call i32 @glVertex2f(float noundef %46, float noundef %47)
%49 = load float, ptr %10, align 4
%50 = load float, ptr %11, align 4
%51 = call i32 @glVertex2f(float noundef %49, float noundef %50)
%52 = load float, ptr %12, align 4
%53 = load float, ptr %13, align 4
%54 = call i32 @glVertex2f(float noundef %52, float noundef %53)
%55 = call i32 (...) @glEnd()
ret void
}
declare i32 @glColor4fv(ptr noundef) #1
declare i32 @glBegin(i32 noundef) #1
declare i32 @glVertex2f(float noundef, float noundef) #1
declare i32 @glEnd(...) #1
declare i32 @glColor4f(float noundef, float noundef, float noundef, double noundef) #1
declare i32 @glLineWidth(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/tmpw9f00v0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_TRIANGLES = dso_local global i32 0, align 4
@GL_LINE_LOOP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @draw_triangle(float noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, ptr noundef %6) #0 {
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca ptr, align 8
%15 = alloca float, align 4
store float %0, ptr %8, align 4
store float %1, ptr %9, align 4
store float %2, ptr %10, align 4
store float %3, ptr %11, align 4
store float %4, ptr %12, align 4
store float %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
%17 = call i32 @glColor4fv(ptr noundef %16)
%18 = load i32, ptr @GL_TRIANGLES, align 4
%19 = call i32 @glBegin(i32 noundef %18)
%20 = load float, ptr %8, align 4
%21 = load float, ptr %9, align 4
%22 = call i32 @glVertex2f(float noundef %20, float noundef %21)
%23 = load float, ptr %10, align 4
%24 = load float, ptr %11, align 4
%25 = call i32 @glVertex2f(float noundef %23, float noundef %24)
%26 = load float, ptr %12, align 4
%27 = load float, ptr %13, align 4
%28 = call i32 @glVertex2f(float noundef %26, float noundef %27)
%29 = call i32 (...) @glEnd()
store float 0x3FC99999A0000000, ptr %15, align 4
%30 = load ptr, ptr %14, align 8
%31 = getelementptr inbounds float, ptr %30, i64 0
%32 = load float, ptr %31, align 4
%33 = fmul float 0x3FC99999A0000000, %32
%34 = load ptr, ptr %14, align 8
%35 = getelementptr inbounds float, ptr %34, i64 1
%36 = load float, ptr %35, align 4
%37 = fmul float 0x3FC99999A0000000, %36
%38 = load ptr, ptr %14, align 8
%39 = getelementptr inbounds float, ptr %38, i64 2
%40 = load float, ptr %39, align 4
%41 = fmul float 0x3FC99999A0000000, %40
%42 = call i32 @glColor4f(float noundef %33, float noundef %37, float noundef %41, double noundef 1.000000e+00)
%43 = call i32 @glLineWidth(double noundef 2.000000e+00)
%44 = load i32, ptr @GL_LINE_LOOP, align 4
%45 = call i32 @glBegin(i32 noundef %44)
%46 = load float, ptr %8, align 4
%47 = load float, ptr %9, align 4
%48 = call i32 @glVertex2f(float noundef %46, float noundef %47)
%49 = load float, ptr %10, align 4
%50 = load float, ptr %11, align 4
%51 = call i32 @glVertex2f(float noundef %49, float noundef %50)
%52 = load float, ptr %12, align 4
%53 = load float, ptr %13, align 4
%54 = call i32 @glVertex2f(float noundef %52, float noundef %53)
%55 = call i32 (...) @glEnd()
ret void
}
declare i32 @glColor4fv(ptr noundef) #1
declare i32 @glBegin(i32 noundef) #1
declare i32 @glVertex2f(float noundef, float noundef) #1
declare i32 @glEnd(...) #1
declare i32 @glColor4f(float noundef, float noundef, float noundef, double noundef) #1
declare i32 @glLineWidth(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/tmpk57ng0te.c'
source_filename = "/tmp/tmpk57ng0te.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden ptr @sysfs_read(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = call ptr @malloc(i32 noundef 4096)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %1
store ptr null, ptr %2, align 8
br label %31
14: ; preds = %1
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef 4095)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = load i32, ptr %5, align 4
%21 = icmp sle i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load ptr, ptr %4, align 8
%24 = call i32 @free(ptr noundef %23)
store ptr null, ptr %2, align 8
br label %31
25: ; preds = %14
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %25, %22, %13
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @read(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk57ng0te.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden ptr @sysfs_read(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr @O_RDONLY, align 4
%9 = call i32 @open(ptr noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = call ptr @malloc(i32 noundef 4096)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %1
store ptr null, ptr %2, align 8
br label %31
14: ; preds = %1
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @read(i32 noundef %15, ptr noundef %16, i32 noundef 4095)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = load i32, ptr %5, align 4
%21 = icmp sle i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load ptr, ptr %4, align 8
%24 = call i32 @free(ptr noundef %23)
store ptr null, ptr %2, align 8
br label %31
25: ; preds = %14
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %25, %22, %13
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @read(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"}
|
; ModuleID = '/tmp/tmpzpl91vjw.c'
source_filename = "/tmp/tmpzpl91vjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"create file %s success\0A\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"remove\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"remove %s success\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %24
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str.2)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.3)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %35
21: ; preds = %13
%22 = load ptr, ptr %6, align 8
%23 = call i32 @printf(ptr noundef @.str.5, ptr noundef %22)
br label %24
24: ; preds = %21, %2
%25 = load ptr, ptr %6, align 8
%26 = call i32 @remove(ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = call i32 @perror(ptr noundef @.str.6)
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %3, align 4
br label %35
32: ; preds = %24
%33 = load ptr, ptr %6, align 8
%34 = call i32 @printf(ptr noundef @.str.7, ptr noundef %33)
store i32 0, ptr %3, align 4
br label %35
35: ; preds = %32, %29, %19
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzpl91vjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"create file %s success\0A\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"remove\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"remove %s success\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %24
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str.2)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.3)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %35
21: ; preds = %13
%22 = load ptr, ptr %6, align 8
%23 = call i32 @printf(ptr noundef @.str.5, ptr noundef %22)
br label %24
24: ; preds = %21, %2
%25 = load ptr, ptr %6, align 8
%26 = call i32 @remove(ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = call i32 @perror(ptr noundef @.str.6)
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %3, align 4
br label %35
32: ; preds = %24
%33 = load ptr, ptr %6, align 8
%34 = call i32 @printf(ptr noundef @.str.7, ptr noundef %33)
store i32 0, ptr %3, align 4
br label %35
35: ; preds = %32, %29, %19
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp62f8ubqe.c'
source_filename = "/tmp/tmp62f8ubqe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makeBuff(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = call i64 @calloc(i32 noundef %8, i32 noundef 8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %41
14: ; preds = %2
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %35, %14
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %38
19: ; preds = %15
%20 = load i32, ptr %5, align 4
%21 = call i64 @calloc(i32 noundef %20, i32 noundef 8)
%22 = inttoptr i64 %21 to ptr
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
store ptr %22, ptr %26, align 8
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %34
33: ; preds = %19
store ptr null, ptr %3, align 8
br label %41
34: ; preds = %19
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %15, !llvm.loop !6
38: ; preds = %15
br label %39
39: ; preds = %38
%40 = load ptr, ptr %7, align 8
store ptr %40, ptr %3, align 8
br label %41
41: ; preds = %39, %33, %13
%42 = load ptr, ptr %3, align 8
ret ptr %42
}
declare i64 @calloc(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/tmp62f8ubqe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makeBuff(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = call i64 @calloc(i32 noundef %8, i32 noundef 8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %43
14: ; preds = %2
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %40
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %34
%19 = load i32, ptr %5, align 4
%20 = call i64 @calloc(i32 noundef %19, i32 noundef 8)
%21 = inttoptr i64 %20 to ptr
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
store ptr %21, ptr %25, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %33
32: ; preds = %18
store ptr null, ptr %3, align 8
br label %43
33: ; preds = %18
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %14
br label %41
41: ; preds = %40
%42 = load ptr, ptr %7, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %41, %32, %13
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare i64 @calloc(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/tmp_qhg81qj.c'
source_filename = "/tmp/tmp_qhg81qj.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"stat = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getbinarydigit(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%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
store i64 %0, ptr %3, align 8
store i32 0, ptr %5, align 4
store i32 8, ptr %6, align 4
store i32 8, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %24, %1
%11 = load i64, ptr %3, align 8
%12 = load i32, ptr %7, align 4
%13 = zext i32 %12 to i64
%14 = shl i64 1, %13
%15 = icmp ugt i64 %11, %14
br i1 %15, label %16, label %25
16: ; preds = %10
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %17, %18
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = icmp ugt i64 %21, 64
br i1 %22, label %23, label %24
23: ; preds = %16
store i32 64, ptr %7, align 4
br label %25
24: ; preds = %16
br label %10, !llvm.loop !6
25: ; preds = %23, %10
%26 = load i64, ptr %3, align 8
%27 = load i32, ptr %7, align 4
%28 = zext i32 %27 to i64
%29 = shl i64 1, %28
%30 = icmp eq i64 %26, %29
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %2, align 4
br label %84
34: ; preds = %25
%35 = load i64, ptr %3, align 8
%36 = load i32, ptr %8, align 4
%37 = zext i32 %36 to i64
%38 = shl i64 1, %37
%39 = icmp eq i64 %35, %38
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %2, align 4
br label %84
43: ; preds = %34
br label %44
44: ; preds = %43, %65, %73
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
%47 = load i32, ptr %8, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %8, align 4
%50 = sub nsw i32 %48, %49
%51 = ashr i32 %50, 1
%52 = add nsw i32 %47, %51
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
%56 = icmp eq i32 %53, %55
br i1 %56, label %57, label %59
57: ; preds = %44
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %4, align 4
br label %77
59: ; preds = %44
%60 = load i64, ptr %3, align 8
%61 = load i32, ptr %9, align 4
%62 = zext i32 %61 to i64
%63 = shl i64 1, %62
%64 = icmp ult i64 %60, %63
br i1 %64, label %65, label %67
65: ; preds = %59
%66 = load i32, ptr %9, align 4
store i32 %66, ptr %7, align 4
br label %44
67: ; preds = %59
%68 = load i64, ptr %3, align 8
%69 = load i32, ptr %9, align 4
%70 = zext i32 %69 to i64
%71 = shl i64 1, %70
%72 = icmp ugt i64 %68, %71
br i1 %72, label %73, label %75
73: ; preds = %67
%74 = load i32, ptr %9, align 4
store i32 %74, ptr %8, align 4
br label %44
75: ; preds = %67
%76 = load i32, ptr %9, align 4
store i32 %76, ptr %4, align 4
br label %77
77: ; preds = %75, %57
%78 = load i32, ptr %4, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %4, align 4
%80 = load i32, ptr @stderr, align 4
%81 = load i32, ptr %5, align 4
%82 = call i32 @fprintf(i32 noundef %80, ptr noundef @.str, i32 noundef %81)
%83 = load i32, ptr %4, align 4
store i32 %83, ptr %2, align 4
br label %84
84: ; preds = %77, %40, %31
%85 = load i32, ptr %2, align 4
ret i32 %85
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qhg81qj.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"stat = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getbinarydigit(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%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
store i64 %0, ptr %3, align 8
store i32 0, ptr %5, align 4
store i32 8, ptr %6, align 4
store i32 8, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load i64, ptr %3, align 8
%11 = load i32, ptr %7, align 4
%12 = zext i32 %11 to i64
%13 = shl i64 1, %12
%14 = icmp ugt i64 %10, %13
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %21
15: ; preds = %21
%16 = load i64, ptr %3, align 8
%17 = load i32, ptr %7, align 4
%18 = zext i32 %17 to i64
%19 = shl i64 1, %18
%20 = icmp ugt i64 %16, %19
br i1 %20, label %21, label %..loopexit_crit_edge, !llvm.loop !6
21: ; preds = %.lr.ph, %15
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = icmp ugt i64 %26, 64
br i1 %27, label %28, label %15
28: ; preds = %21
store i32 64, ptr %7, align 4
br label %29
..loopexit_crit_edge: ; preds = %15
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %29
29: ; preds = %.loopexit, %28
%30 = load i64, ptr %3, align 8
%31 = load i32, ptr %7, align 4
%32 = zext i32 %31 to i64
%33 = shl i64 1, %32
%34 = icmp eq i64 %30, %33
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %2, align 4
br label %99
38: ; preds = %29
%39 = load i64, ptr %3, align 8
%40 = load i32, ptr %8, align 4
%41 = zext i32 %40 to i64
%42 = shl i64 1, %41
%43 = icmp eq i64 %39, %42
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %2, align 4
br label %99
47: ; preds = %38
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %8, align 4
%53 = sub nsw i32 %51, %52
%54 = ashr i32 %53, 1
%55 = add nsw i32 %50, %54
store i32 %55, ptr %9, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, 1
%59 = icmp eq i32 %56, %58
br i1 %59, label %60, label %.lr.ph1
.lr.ph1: ; preds = %47
br label %62
._crit_edge: ; preds = %.backedge
br label %60
60: ; preds = %._crit_edge, %47
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %4, align 4
br label %92
62: ; preds = %.lr.ph1, %.backedge
%63 = load i64, ptr %3, align 8
%64 = load i32, ptr %9, align 4
%65 = zext i32 %64 to i64
%66 = shl i64 1, %65
%67 = icmp ult i64 %63, %66
br i1 %67, label %68, label %82
68: ; preds = %62
%69 = load i32, ptr %9, align 4
store i32 %69, ptr %7, align 4
br label %.backedge
.backedge: ; preds = %68, %88
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %5, align 4
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %8, align 4
%75 = sub nsw i32 %73, %74
%76 = ashr i32 %75, 1
%77 = add nsw i32 %72, %76
store i32 %77, ptr %9, align 4
%78 = load i32, ptr %7, align 4
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
%81 = icmp eq i32 %78, %80
br i1 %81, label %._crit_edge, label %62
82: ; preds = %62
%83 = load i64, ptr %3, align 8
%84 = load i32, ptr %9, align 4
%85 = zext i32 %84 to i64
%86 = shl i64 1, %85
%87 = icmp ugt i64 %83, %86
br i1 %87, label %88, label %90
88: ; preds = %82
%89 = load i32, ptr %9, align 4
store i32 %89, ptr %8, align 4
br label %.backedge
90: ; preds = %82
%91 = load i32, ptr %9, align 4
store i32 %91, ptr %4, align 4
br label %92
92: ; preds = %90, %60
%93 = load i32, ptr %4, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %4, align 4
%95 = load i32, ptr @stderr, align 4
%96 = load i32, ptr %5, align 4
%97 = call i32 @fprintf(i32 noundef %95, ptr noundef @.str, i32 noundef %96)
%98 = load i32, ptr %4, align 4
store i32 %98, ptr %2, align 4
br label %99
99: ; preds = %92, %44, %35
%100 = load i32, ptr %2, align 4
ret i32 %100
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_e_2dhv2.c'
source_filename = "/tmp/tmp_e_2dhv2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Je suis %d et mon p\C3\A8re est le %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %6, align 4
br label %18
18: ; preds = %30, %2
%19 = load i32, ptr %6, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = call i32 (...) @fork()
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = call i32 (...) @getpid()
%27 = call i32 (...) @getppid()
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %26, i32 noundef %27)
ret i32 0
29: ; preds = %21
br label %30
30: ; preds = %29
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %6, align 4
br label %18, !llvm.loop !6
33: ; preds = %18
%34 = load i32, ptr %7, align 4
br label %35
35: ; preds = %40, %33
%36 = load i32, ptr %7, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = call i32 @wait(ptr noundef null)
br label %40
40: ; preds = %38
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %7, align 4
br label %35, !llvm.loop !8
43: ; preds = %35
%44 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @wait(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_e_2dhv2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Je suis %d et mon p\C3\A8re est le %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %.lr.ph, label %34
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %29
%21 = call i32 (...) @fork()
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = call i32 (...) @getpid()
%26 = call i32 (...) @getppid()
%27 = call i32 @printf(ptr noundef @.str, i32 noundef %25, i32 noundef %26)
ret i32 0
28: ; preds = %20
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %2
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %.lr.ph2, label %45
.lr.ph2: ; preds = %34
br label %38
38: ; preds = %.lr.ph2, %40
%39 = call i32 @wait(ptr noundef null)
br label %40
40: ; preds = %38
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %40
br label %45
45: ; preds = %._crit_edge3, %34
%46 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @getppid(...) #1
declare i32 @wait(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpqfnho39t.c'
source_filename = "/tmp/tmpqfnho39t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_CYAN = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
@COLOR_MAGENTA = dso_local global i32 0, align 4
@COLOR_RED = dso_local global i32 0, align 4
@COLOR_WHITE = dso_local global i32 0, align 4
@COLOR_YELLOW = 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/tmpqfnho39t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_BLACK = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@COLOR_CYAN = dso_local global i32 0, align 4
@COLOR_GREEN = dso_local global i32 0, align 4
@COLOR_MAGENTA = dso_local global i32 0, align 4
@COLOR_RED = dso_local global i32 0, align 4
@COLOR_WHITE = dso_local global i32 0, align 4
@COLOR_YELLOW = 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/tmpm1bn1rhh.c'
source_filename = "/tmp/tmpm1bn1rhh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Error while opening the file.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%3d - %c [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str.1)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
store i32 0, ptr %8, align 4
br label %21
21: ; preds = %28, %20
%22 = load ptr, ptr %6, align 8
%23 = call signext i8 @fgetc(ptr noundef %22)
store i8 %23, ptr %7, align 1
%24 = sext i8 %23 to i32
%25 = load i8, ptr @EOF, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %24, %26
br i1 %27, label %28, label %42
28: ; preds = %21
%29 = load i8, ptr %7, align 1
%30 = call i32 @getVal(i8 noundef signext %29)
%31 = mul nsw i32 %30, 16
%32 = load ptr, ptr %6, align 8
%33 = call signext i8 @fgetc(ptr noundef %32)
%34 = call i32 @getVal(i8 noundef signext %33)
%35 = add nsw i32 %31, %34
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %9, align 4
%39 = call i32 @printf(ptr noundef @.str.2, i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
br label %21, !llvm.loop !6
42: ; preds = %21
%43 = load ptr, ptr %6, align 8
%44 = call i32 @fclose(ptr noundef %43)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @getVal(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm1bn1rhh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Error while opening the file.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%3d - %c [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str.1)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
store i32 0, ptr %8, align 4
%21 = load ptr, ptr %6, align 8
%22 = call signext i8 @fgetc(ptr noundef %21)
store i8 %22, ptr %7, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr @EOF, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %23, %25
br i1 %26, label %.lr.ph, label %47
.lr.ph: ; preds = %20
br label %27
27: ; preds = %.lr.ph, %27
%28 = load i8, ptr %7, align 1
%29 = call i32 @getVal(i8 noundef signext %28)
%30 = mul nsw i32 %29, 16
%31 = load ptr, ptr %6, align 8
%32 = call signext i8 @fgetc(ptr noundef %31)
%33 = call i32 @getVal(i8 noundef signext %32)
%34 = add nsw i32 %30, %33
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = call i32 @printf(ptr noundef @.str.2, i32 noundef %35, i32 noundef %36, i32 noundef %37)
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = load ptr, ptr %6, align 8
%42 = call signext i8 @fgetc(ptr noundef %41)
store i8 %42, ptr %7, align 1
%43 = sext i8 %42 to i32
%44 = load i8, ptr @EOF, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %43, %45
br i1 %46, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %47
47: ; preds = %._crit_edge, %20
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @getVal(i8 noundef signext) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpngyodsc9.c'
source_filename = "/tmp/tmpngyodsc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @frag_fh_cleanup(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @free(ptr noundef %8)
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
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/tmpngyodsc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @frag_fh_cleanup(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @free(ptr noundef %8)
store i32 0, ptr %2, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
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/tmp3ty1jlxy.c'
source_filename = "/tmp/tmp3ty1jlxy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @legible(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [24 x i8], align 16
store i64 %0, ptr %2, align 8
%4 = getelementptr inbounds [24 x i8], ptr %3, i64 0, i64 0
%5 = load i64, ptr %2, align 8
%6 = call i32 @long_to_string(ptr noundef %4, i64 noundef %5)
%7 = getelementptr inbounds [24 x i8], ptr %3, i64 0, i64 0
%8 = call ptr @legible_1(ptr noundef %7)
ret ptr %8
}
declare i32 @long_to_string(ptr noundef, i64 noundef) #1
declare ptr @legible_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ty1jlxy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @legible(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [24 x i8], align 16
store i64 %0, ptr %2, align 8
%4 = getelementptr inbounds [24 x i8], ptr %3, i64 0, i64 0
%5 = load i64, ptr %2, align 8
%6 = call i32 @long_to_string(ptr noundef %4, i64 noundef %5)
%7 = getelementptr inbounds [24 x i8], ptr %3, i64 0, i64 0
%8 = call ptr @legible_1(ptr noundef %7)
ret ptr %8
}
declare i32 @long_to_string(ptr noundef, i64 noundef) #1
declare ptr @legible_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw_7jjein.c'
source_filename = "/tmp/tmpw_7jjein.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_AMBIENT_AND_DIFFUSE = dso_local global i32 0, align 4
@GL_FRONT_AND_BACK = dso_local global i32 0, align 4
@GL_LIGHTING = dso_local global i32 0, align 4
@GL_POLYGON_STIPPLE = 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/tmpw_7jjein.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_AMBIENT_AND_DIFFUSE = dso_local global i32 0, align 4
@GL_FRONT_AND_BACK = dso_local global i32 0, align 4
@GL_LIGHTING = dso_local global i32 0, align 4
@GL_POLYGON_STIPPLE = 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/tmpmstcvo9g.c'
source_filename = "/tmp/tmpmstcvo9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %9, %1
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i32 1
store ptr %6, ptr %2, align 8
%7 = load i8, ptr %5, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
br label %4, !llvm.loop !6
12: ; preds = %4
%13 = load i32, ptr %3, align 4
ret i32 %13
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpmstcvo9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i32 1
store ptr %5, ptr %2, align 8
%6 = load i8, ptr %4, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %3, align 4
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load i8, ptr %11, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %15
15: ; preds = %._crit_edge, %1
%16 = load i32, ptr %3, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9ob7yq3n.c'
source_filename = "/tmp/tmp9ob7yq3n.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"sctp_send: library not initialized.\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"sctp_send: association not found.\0A\00", align 1
@.str.2 = private unnamed_addr constant [71 x i8] c"sctp_send: association in shutdown state - don't send any more data !\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"sctp_send: internal error !\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"sctp_send: Parameter Problem (invalid path or stream id).\0A\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"sctp_send: unkown result (%i) returned.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SCTP_send(i32 noundef %0, i16 noundef zeroext %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i16 noundef signext %5, ptr noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i16, align 2
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i16 %1, ptr %12, align 2
store ptr %2, ptr %13, align 8
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i16 %5, ptr %16, align 2
store ptr %6, ptr %17, align 8
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
%22 = load i32, ptr %11, align 4
%23 = load i16, ptr %12, align 2
%24 = load ptr, ptr %13, align 8
%25 = load i32, ptr %14, align 4
%26 = load i32, ptr %15, align 4
%27 = load i16, ptr %16, align 2
%28 = load ptr, ptr %17, align 8
%29 = load i32, ptr %18, align 4
%30 = load i32, ptr %19, align 4
%31 = load i32, ptr %20, align 4
%32 = call i32 @sctp_send_private(i32 noundef %22, i16 noundef zeroext %23, ptr noundef %24, i32 noundef %25, i32 noundef %26, i16 noundef signext %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
store i32 %32, ptr %21, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %80
34: ; preds = %10
%35 = load i32, ptr %21, align 4
%36 = icmp eq i32 %35, -11
br i1 %36, label %37, label %38
37: ; preds = %34
br label %77
38: ; preds = %34
%39 = load i32, ptr %21, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr @stderr, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str)
br label %76
44: ; preds = %38
%45 = load i32, ptr %21, align 4
%46 = icmp eq i32 %45, -3
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr @stderr, align 4
%49 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %48, ptr noundef @.str.1)
br label %75
50: ; preds = %44
%51 = load i32, ptr %21, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2)
br label %74
56: ; preds = %50
%57 = load i32, ptr %21, align 4
%58 = icmp eq i32 %57, -5
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, ptr @stderr, align 4
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %60, ptr noundef @.str.3)
br label %73
62: ; preds = %56
%63 = load i32, ptr %21, align 4
%64 = icmp eq i32 %63, -4
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.4)
br label %72
68: ; preds = %62
%69 = load i32, ptr @stderr, align 4
%70 = load i32, ptr %21, align 4
%71 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.5, i32 noundef %70)
br label %72
72: ; preds = %68, %65
br label %73
73: ; preds = %72, %59
br label %74
74: ; preds = %73, %53
br label %75
75: ; preds = %74, %47
br label %76
76: ; preds = %75, %41
br label %77
77: ; preds = %76, %37
%78 = load i32, ptr @stderr, align 4
%79 = call i32 @fflush(i32 noundef %78)
br label %80
80: ; preds = %77, %10
%81 = load i32, ptr %21, align 4
ret i32 %81
}
declare i32 @sctp_send_private(i32 noundef, i16 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(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/tmp9ob7yq3n.c"
target datalayout = "e-m:e-p270: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 [37 x i8] c"sctp_send: library not initialized.\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"sctp_send: association not found.\0A\00", align 1
@.str.2 = private unnamed_addr constant [71 x i8] c"sctp_send: association in shutdown state - don't send any more data !\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"sctp_send: internal error !\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"sctp_send: Parameter Problem (invalid path or stream id).\0A\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"sctp_send: unkown result (%i) returned.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SCTP_send(i32 noundef %0, i16 noundef zeroext %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i16 noundef signext %5, ptr noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i16, align 2
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i16 %1, ptr %12, align 2
store ptr %2, ptr %13, align 8
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i16 %5, ptr %16, align 2
store ptr %6, ptr %17, align 8
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
%22 = load i32, ptr %11, align 4
%23 = load i16, ptr %12, align 2
%24 = load ptr, ptr %13, align 8
%25 = load i32, ptr %14, align 4
%26 = load i32, ptr %15, align 4
%27 = load i16, ptr %16, align 2
%28 = load ptr, ptr %17, align 8
%29 = load i32, ptr %18, align 4
%30 = load i32, ptr %19, align 4
%31 = load i32, ptr %20, align 4
%32 = call i32 @sctp_send_private(i32 noundef %22, i16 noundef zeroext %23, ptr noundef %24, i32 noundef %25, i32 noundef %26, i16 noundef signext %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
store i32 %32, ptr %21, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %80
34: ; preds = %10
%35 = load i32, ptr %21, align 4
%36 = icmp eq i32 %35, -11
br i1 %36, label %37, label %38
37: ; preds = %34
br label %77
38: ; preds = %34
%39 = load i32, ptr %21, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr @stderr, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str)
br label %76
44: ; preds = %38
%45 = load i32, ptr %21, align 4
%46 = icmp eq i32 %45, -3
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr @stderr, align 4
%49 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %48, ptr noundef @.str.1)
br label %75
50: ; preds = %44
%51 = load i32, ptr %21, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2)
br label %74
56: ; preds = %50
%57 = load i32, ptr %21, align 4
%58 = icmp eq i32 %57, -5
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, ptr @stderr, align 4
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %60, ptr noundef @.str.3)
br label %73
62: ; preds = %56
%63 = load i32, ptr %21, align 4
%64 = icmp eq i32 %63, -4
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.4)
br label %72
68: ; preds = %62
%69 = load i32, ptr @stderr, align 4
%70 = load i32, ptr %21, align 4
%71 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.5, i32 noundef %70)
br label %72
72: ; preds = %68, %65
br label %73
73: ; preds = %72, %59
br label %74
74: ; preds = %73, %53
br label %75
75: ; preds = %74, %47
br label %76
76: ; preds = %75, %41
br label %77
77: ; preds = %76, %37
%78 = load i32, ptr @stderr, align 4
%79 = call i32 @fflush(i32 noundef %78)
br label %80
80: ; preds = %77, %10
%81 = load i32, ptr %21, align 4
ret i32 %81
}
declare i32 @sctp_send_private(i32 noundef, i16 noundef zeroext, ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fflush(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/tmpy8ugxvd4.c'
source_filename = "/tmp/tmpy8ugxvd4.c"
target datalayout = "e-m:e-p270: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.sigevent = type { i32, i32 }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@.str = private unnamed_addr constant [38 x i8] c"sigemptyset() did not return success\0A\00", align 1
@SIGCONT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"sigaddset() did not return success\0A\00", align 1
@SIG_SETMASK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"sigprocmask() did not return success\0A\00", align 1
@SIGEV_SIGNAL = dso_local global i32 0, align 4
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [39 x i8] c"timer_create() did not return success\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"timer_settime() did not return success\0A\00", align 1
@SIG_UNBLOCK = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"FAIL: %d overruns sent; expected %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 %struct.sigevent, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.itimerspec, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i64 @sigemptyset(ptr noundef %2)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %1, align 4
br label %64
11: ; preds = %0
%12 = load i32, ptr @SIGCONT, align 4
%13 = call i64 @sigaddset(ptr noundef %2, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %1, align 4
br label %64
17: ; preds = %11
%18 = load i32, ptr @SIG_SETMASK, align 4
%19 = call i64 @sigprocmask(i32 noundef %18, ptr noundef %2, ptr noundef null)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %1, align 4
br label %64
23: ; preds = %17
%24 = load i32, ptr @SIGEV_SIGNAL, align 4
%25 = getelementptr inbounds %struct.sigevent, ptr %3, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = load i32, ptr @SIGCONT, align 4
%27 = getelementptr inbounds %struct.sigevent, ptr %3, i32 0, i32 0
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @CLOCK_REALTIME, align 4
%29 = call i64 @timer_create(i32 noundef %28, ptr noundef %3, ptr noundef %4)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = call i32 @perror(ptr noundef @.str.3)
store i32 2, ptr %1, align 4
br label %64
33: ; preds = %23
%34 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_3__, ptr %34, i32 0, i32 0
store i32 4, ptr %35, align 8
%36 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_3__, ptr %36, i32 0, i32 1
store i64 0, ptr %37, align 8
%38 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_4__, ptr %38, i32 0, i32 0
store i32 3, ptr %39, align 8
%40 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %40, i32 0, i32 1
store i64 0, ptr %41, align 8
%42 = load i32, ptr %4, align 4
%43 = call i64 @timer_settime(i32 noundef %42, i32 noundef 0, ptr noundef %5, ptr noundef null)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %33
%46 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %1, align 4
br label %64
47: ; preds = %33
%48 = call i32 @sleep(i32 noundef 12)
%49 = load i32, ptr @SIG_UNBLOCK, align 4
%50 = call i64 @sigprocmask(i32 noundef %49, ptr noundef %2, ptr noundef null)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %1, align 4
br label %64
54: ; preds = %47
%55 = load i32, ptr %4, align 4
%56 = call i32 @timer_getoverrun(i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp eq i32 2, %57
br i1 %58, label %59, label %61
59: ; preds = %54
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %64
61: ; preds = %54
%62 = load i32, ptr %6, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %62, i32 noundef 2)
store i32 1, ptr %1, align 4
br label %64
64: ; preds = %61, %59, %52, %45, %31, %21, %15, %9
%65 = load i32, ptr %1, align 4
ret i32 %65
}
declare i64 @sigemptyset(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @sigaddset(ptr noundef, i32 noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_create(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_settime(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @timer_getoverrun(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8ugxvd4.c"
target datalayout = "e-m:e-p270: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.sigevent = type { i32, i32 }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@.str = private unnamed_addr constant [38 x i8] c"sigemptyset() did not return success\0A\00", align 1
@SIGCONT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"sigaddset() did not return success\0A\00", align 1
@SIG_SETMASK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"sigprocmask() did not return success\0A\00", align 1
@SIGEV_SIGNAL = dso_local global i32 0, align 4
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [39 x i8] c"timer_create() did not return success\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"timer_settime() did not return success\0A\00", align 1
@SIG_UNBLOCK = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"FAIL: %d overruns sent; expected %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 %struct.sigevent, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.itimerspec, align 8
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i64 @sigemptyset(ptr noundef %2)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %1, align 4
br label %64
11: ; preds = %0
%12 = load i32, ptr @SIGCONT, align 4
%13 = call i64 @sigaddset(ptr noundef %2, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %1, align 4
br label %64
17: ; preds = %11
%18 = load i32, ptr @SIG_SETMASK, align 4
%19 = call i64 @sigprocmask(i32 noundef %18, ptr noundef %2, ptr noundef null)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %1, align 4
br label %64
23: ; preds = %17
%24 = load i32, ptr @SIGEV_SIGNAL, align 4
%25 = getelementptr inbounds %struct.sigevent, ptr %3, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = load i32, ptr @SIGCONT, align 4
%27 = getelementptr inbounds %struct.sigevent, ptr %3, i32 0, i32 0
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @CLOCK_REALTIME, align 4
%29 = call i64 @timer_create(i32 noundef %28, ptr noundef %3, ptr noundef %4)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %23
%32 = call i32 @perror(ptr noundef @.str.3)
store i32 2, ptr %1, align 4
br label %64
33: ; preds = %23
%34 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_3__, ptr %34, i32 0, i32 0
store i32 4, ptr %35, align 8
%36 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_3__, ptr %36, i32 0, i32 1
store i64 0, ptr %37, align 8
%38 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 0
%39 = getelementptr inbounds %struct.TYPE_4__, ptr %38, i32 0, i32 0
store i32 3, ptr %39, align 8
%40 = getelementptr inbounds %struct.itimerspec, ptr %5, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %40, i32 0, i32 1
store i64 0, ptr %41, align 8
%42 = load i32, ptr %4, align 4
%43 = call i64 @timer_settime(i32 noundef %42, i32 noundef 0, ptr noundef %5, ptr noundef null)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %33
%46 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %1, align 4
br label %64
47: ; preds = %33
%48 = call i32 @sleep(i32 noundef 12)
%49 = load i32, ptr @SIG_UNBLOCK, align 4
%50 = call i64 @sigprocmask(i32 noundef %49, ptr noundef %2, ptr noundef null)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %1, align 4
br label %64
54: ; preds = %47
%55 = load i32, ptr %4, align 4
%56 = call i32 @timer_getoverrun(i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp eq i32 2, %57
br i1 %58, label %59, label %61
59: ; preds = %54
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %64
61: ; preds = %54
%62 = load i32, ptr %6, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %62, i32 noundef 2)
store i32 1, ptr %1, align 4
br label %64
64: ; preds = %61, %59, %52, %45, %31, %21, %15, %9
%65 = load i32, ptr %1, align 4
ret i32 %65
}
declare i64 @sigemptyset(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @sigaddset(ptr noundef, i32 noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_create(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_settime(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @timer_getoverrun(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps30d8gt6.c'
source_filename = "/tmp/tmps30d8gt6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps30d8gt6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\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 ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdez2807b.c'
source_filename = "/tmp/tmpdez2807b.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"usage: ls [directory name]\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call ptr @opendir(ptr noundef %17)
store ptr %18, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 0) #3
unreachable
23: ; preds = %14
br label %24
24: ; preds = %28, %23
%25 = load ptr, ptr %6, align 8
%26 = call ptr @readdir(ptr noundef %25)
store ptr %26, ptr %7, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.dirent, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
%32 = call i32 @printf(ptr noundef @.str.2, ptr noundef %31)
br label %24, !llvm.loop !6
33: ; preds = %24
%34 = load ptr, ptr %6, align 8
%35 = call i32 @closedir(ptr noundef %34)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdez2807b.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"usage: ls [directory name]\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call ptr @opendir(ptr noundef %17)
store ptr %18, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %14
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 0) #3
unreachable
23: ; preds = %14
%24 = load ptr, ptr %6, align 8
%25 = call ptr @readdir(ptr noundef %24)
store ptr %25, ptr %7, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %.lr.ph, label %35
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %27
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.dirent, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = call i32 @printf(ptr noundef @.str.2, ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call ptr @readdir(ptr noundef %32)
store ptr %33, ptr %7, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %35
35: ; preds = %._crit_edge, %23
%36 = load ptr, ptr %6, align 8
%37 = call i32 @closedir(ptr noundef %36)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwn9x40yc.c'
source_filename = "/tmp/tmpwn9x40yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"TID = %u.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PrintID() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = call i64 (...) @pthread_self()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = trunc i64 %4 to i32
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
declare i64 @pthread_self(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwn9x40yc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"TID = %u.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @PrintID() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = call i64 (...) @pthread_self()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = trunc i64 %4 to i32
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 @pthread_exit(ptr noundef null)
%8 = load ptr, ptr %1, align 8
ret ptr %8
}
declare i64 @pthread_self(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj5r9510m.c'
source_filename = "/tmp/tmpj5r9510m.c"
target datalayout = "e-m:e-p270: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/tmpj5r9510m.c"
target datalayout = "e-m:e-p270: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/tmp8y1xumqa.c'
source_filename = "/tmp/tmp8y1xumqa.c"
target datalayout = "e-m:e-p270: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_nl = type { i64, i32 }
@AF_NETLINK = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"failed to get socket: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDBUF = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"failed to set send buffer: %s\0A\00", align 1
@SO_RCVBUF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [34 x i8] c"failed to set recieve buffer: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"failed to bind socket: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nl_socket_init() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %2, align 4
%6 = load i32, ptr @AF_NETLINK, align 4
%7 = load i32, ptr @SOCK_RAW, align 4
%8 = load i32, ptr @NETLINK_ROUTE, align 4
%9 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
store i32 0, ptr %1, align 4
br label %58
16: ; preds = %0
store i32 32768, ptr %3, align 4
store i32 32768, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr @SOL_SOCKET, align 4
%19 = load i32, ptr @SO_SNDBUF, align 4
%20 = call i64 @setsockopt(i32 noundef %17, i32 noundef %18, i32 noundef %19, ptr noundef %3, i32 noundef 4)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %16
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr @errno, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %25)
store i32 0, ptr %1, align 4
br label %58
27: ; preds = %16
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr @SOL_SOCKET, align 4
%30 = load i32, ptr @SO_RCVBUF, align 4
%31 = call i64 @setsockopt(i32 noundef %28, i32 noundef %29, i32 noundef %30, ptr noundef %4, i32 noundef 4)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %27
%34 = load i32, ptr @stderr, align 4
%35 = load i32, ptr @errno, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str.2, ptr noundef %36)
store i32 0, ptr %1, align 4
br label %58
38: ; preds = %27
%39 = call ptr @malloc(i32 noundef 16)
store ptr %39, ptr %5, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i32 @memset(ptr noundef %40, i32 noundef 0, i32 noundef 16)
%42 = load i32, ptr @AF_NETLINK, align 4
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr_nl, ptr %43, i32 0, i32 1
store i32 %42, ptr %44, align 8
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds %struct.sockaddr_nl, ptr %45, i32 0, i32 0
store i64 0, ptr %46, align 8
%47 = load i32, ptr %2, align 4
%48 = load ptr, ptr %5, align 8
%49 = call i64 @bind(i32 noundef %47, ptr noundef %48, i32 noundef 4)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %38
%52 = load i32, ptr @stderr, align 4
%53 = load i32, ptr @errno, align 4
%54 = call ptr @strerror(i32 noundef %53)
%55 = call i32 @fprintf(i32 noundef %52, ptr noundef @.str.3, ptr noundef %54)
store i32 0, ptr %1, align 4
br label %58
56: ; preds = %38
%57 = load i32, ptr %2, align 4
store i32 %57, ptr %1, align 4
br label %58
58: ; preds = %56, %51, %33, %22, %11
%59 = load i32, ptr %1, align 4
ret i32 %59
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8y1xumqa.c"
target datalayout = "e-m:e-p270: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_nl = type { i64, i32 }
@AF_NETLINK = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"failed to get socket: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDBUF = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"failed to set send buffer: %s\0A\00", align 1
@SO_RCVBUF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [34 x i8] c"failed to set recieve buffer: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"failed to bind socket: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_nl_socket_init() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %2, align 4
%6 = load i32, ptr @AF_NETLINK, align 4
%7 = load i32, ptr @SOCK_RAW, align 4
%8 = load i32, ptr @NETLINK_ROUTE, align 4
%9 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr @errno, align 4
%14 = call ptr @strerror(i32 noundef %13)
%15 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %14)
store i32 0, ptr %1, align 4
br label %58
16: ; preds = %0
store i32 32768, ptr %3, align 4
store i32 32768, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr @SOL_SOCKET, align 4
%19 = load i32, ptr @SO_SNDBUF, align 4
%20 = call i64 @setsockopt(i32 noundef %17, i32 noundef %18, i32 noundef %19, ptr noundef %3, i32 noundef 4)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %16
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr @errno, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.1, ptr noundef %25)
store i32 0, ptr %1, align 4
br label %58
27: ; preds = %16
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr @SOL_SOCKET, align 4
%30 = load i32, ptr @SO_RCVBUF, align 4
%31 = call i64 @setsockopt(i32 noundef %28, i32 noundef %29, i32 noundef %30, ptr noundef %4, i32 noundef 4)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %27
%34 = load i32, ptr @stderr, align 4
%35 = load i32, ptr @errno, align 4
%36 = call ptr @strerror(i32 noundef %35)
%37 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str.2, ptr noundef %36)
store i32 0, ptr %1, align 4
br label %58
38: ; preds = %27
%39 = call ptr @malloc(i32 noundef 16)
store ptr %39, ptr %5, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i32 @memset(ptr noundef %40, i32 noundef 0, i32 noundef 16)
%42 = load i32, ptr @AF_NETLINK, align 4
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr_nl, ptr %43, i32 0, i32 1
store i32 %42, ptr %44, align 8
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds %struct.sockaddr_nl, ptr %45, i32 0, i32 0
store i64 0, ptr %46, align 8
%47 = load i32, ptr %2, align 4
%48 = load ptr, ptr %5, align 8
%49 = call i64 @bind(i32 noundef %47, ptr noundef %48, i32 noundef 4)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %38
%52 = load i32, ptr @stderr, align 4
%53 = load i32, ptr @errno, align 4
%54 = call ptr @strerror(i32 noundef %53)
%55 = call i32 @fprintf(i32 noundef %52, ptr noundef @.str.3, ptr noundef %54)
store i32 0, ptr %1, align 4
br label %58
56: ; preds = %38
%57 = load i32, ptr %2, align 4
store i32 %57, ptr %1, align 4
br label %58
58: ; preds = %56, %51, %33, %22, %11
%59 = load i32, ptr %1, align 4
ret i32 %59
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr2tnelwm.c'
source_filename = "/tmp/tmpr2tnelwm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strtol(ptr noundef %3, ptr noundef null, i32 noundef 10)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @strtol(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/tmpr2tnelwm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strtol(ptr noundef %3, ptr noundef null, i32 noundef 10)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @strtol(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/tmpen892_mk.c'
source_filename = "/tmp/tmpen892_mk.c"
target datalayout = "e-m:e-p270: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/tmpen892_mk.c"
target datalayout = "e-m:e-p270: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/tmpkt9y57tb.c'
source_filename = "/tmp/tmpkt9y57tb.c"
target datalayout = "e-m:e-p270: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/tmpkt9y57tb.c"
target datalayout = "e-m:e-p270: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/tmpx6cm5ykv.c'
source_filename = "/tmp/tmpx6cm5ykv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"/sys/block/\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"/size\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_sd_block_count(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [128 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [64 x i8], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
%9 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%10 = load ptr, ptr %7, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 5
%15 = call i32 @strcat(ptr noundef %12, ptr noundef %14)
%16 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @strcat(ptr noundef %16, ptr noundef @.str.1)
%18 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.2)
store ptr %19, ptr %3, align 8
%20 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fread(ptr noundef %20, i32 noundef 1, i32 noundef 128, ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @atoi(ptr noundef %25)
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
ret i32 %27
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx6cm5ykv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"/sys/block/\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"/size\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_sd_block_count(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [128 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [64 x i8], align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
%9 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%10 = load ptr, ptr %7, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 5
%15 = call i32 @strcat(ptr noundef %12, ptr noundef %14)
%16 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @strcat(ptr noundef %16, ptr noundef @.str.1)
%18 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.2)
store ptr %19, ptr %3, align 8
%20 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fread(ptr noundef %20, i32 noundef 1, i32 noundef 128, ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%26 = call i32 @atoi(ptr noundef %25)
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
ret i32 %27
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp694gls8_.c'
source_filename = "/tmp/tmp694gls8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter an integer > \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"That's all, have a nice day!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %8
8: ; preds = %11, %0
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 10
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 10
store i32 %17, ptr %2, align 4
br label %8, !llvm.loop !6
18: ; preds = %8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp694gls8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Enter an integer > \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"That's all, have a nice day!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %2, align 4
%12 = srem i32 %11, 10
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13)
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %19
19: ; preds = %._crit_edge, %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy_i76ukp.c'
source_filename = "/tmp/tmpy_i76ukp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"create\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"remove\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"protect\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Usage: %s create | remove | protect\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %33
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @strcasecmp(ptr noundef @.str, ptr noundef %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = call i32 (...) @create_it()
br label %16
16: ; preds = %14, %8
%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 @strcasecmp(ptr noundef @.str.1, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %16
%23 = call i32 (...) @remove_it()
br label %24
24: ; preds = %22, %16
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcasecmp(ptr noundef @.str.2, ptr noundef %27)
%29 = icmp ne i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %24
%31 = call i32 (...) @protect_it()
br label %32
32: ; preds = %30, %24
br label %33
33: ; preds = %32, %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 0
%36 = load ptr, ptr %35, align 8
%37 = call i32 @printf(ptr noundef @.str.3, ptr noundef %36)
%38 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @create_it(...) #1
declare i32 @remove_it(...) #1
declare i32 @protect_it(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy_i76ukp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"create\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"remove\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"protect\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"Usage: %s create | remove | protect\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %33
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i32 @strcasecmp(ptr noundef @.str, ptr noundef %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = call i32 (...) @create_it()
br label %16
16: ; preds = %14, %8
%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 @strcasecmp(ptr noundef @.str.1, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %16
%23 = call i32 (...) @remove_it()
br label %24
24: ; preds = %22, %16
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcasecmp(ptr noundef @.str.2, ptr noundef %27)
%29 = icmp ne i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %24
%31 = call i32 (...) @protect_it()
br label %32
32: ; preds = %30, %24
br label %33
33: ; preds = %32, %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 0
%36 = load ptr, ptr %35, align 8
%37 = call i32 @printf(ptr noundef @.str.3, ptr noundef %36)
%38 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @create_it(...) #1
declare i32 @remove_it(...) #1
declare i32 @protect_it(...) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmvfolsu6.c'
source_filename = "/tmp/tmpmvfolsu6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 4 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%d %d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d is the smallest\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
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %3, align 4
store i32 %13, ptr %6, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %2, align 4
store i32 %15, ptr %6, align 4
br label %16
16: ; preds = %14, %12
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sge i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i32, ptr %4, align 4
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %20, %16
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sge i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %26, %22
%29 = load i32, ptr %6, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr 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/tmpmvfolsu6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Please enter 4 numbers separated by spaces > \00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%d %d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d is the smallest\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
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %3, align 4
store i32 %13, ptr %6, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %2, align 4
store i32 %15, ptr %6, align 4
br label %16
16: ; preds = %14, %12
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sge i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i32, ptr %4, align 4
store i32 %21, ptr %6, align 4
br label %22
22: ; preds = %20, %16
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sge i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = load i32, ptr %5, align 4
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %26, %22
%29 = load i32, ptr %6, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr 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/tmpvnvutpbs.c'
source_filename = "/tmp/tmpvnvutpbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trm_str(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 @glk_put_string(ptr noundef %3)
ret void
}
declare i32 @glk_put_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvnvutpbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trm_str(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 @glk_put_string(ptr noundef %3)
ret void
}
declare i32 @glk_put_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp93cbbrhq.c'
source_filename = "/tmp/tmp93cbbrhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"<null> command pointer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sg_get_command_name(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 i32, align 4
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
%10 = load ptr, ptr %8, align 8
%11 = icmp eq ptr null, %10
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12, %4
br label %63
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 1, %17
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
store i8 0, ptr %21, align 1
br label %63
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %5, align 8
%25 = icmp eq ptr null, %24
br i1 %25, label %26, label %30
26: ; preds = %23
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %7, align 4
%29 = call i32 @my_snprintf(ptr noundef %27, i32 noundef %28, ptr noundef @.str, ptr noundef @.str.1)
br label %63
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 127, %34
br i1 %35, label %36, label %47
36: ; preds = %30
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 8
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = shl i32 %40, 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 9
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = or i32 %41, %45
br label %53
47: ; preds = %30
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 1
%50 = load i8, ptr %49, align 1
%51 = zext i8 %50 to i32
%52 = and i32 %51, 31
br label %53
53: ; preds = %47, %36
%54 = phi i32 [ %46, %36 ], [ %52, %47 ]
store i32 %54, ptr %9, align 4
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = load ptr, ptr %8, align 8
%62 = call i32 @sg_get_opcode_sa_name(i8 noundef zeroext %57, i32 noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef %61)
br label %63
63: ; preds = %53, %26, %19, %15
ret void
}
declare i32 @my_snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sg_get_opcode_sa_name(i8 noundef zeroext, i32 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/tmp93cbbrhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"<null> command pointer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sg_get_command_name(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 i32, align 4
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
%10 = load ptr, ptr %8, align 8
%11 = icmp eq ptr null, %10
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12, %4
br label %63
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 1, %17
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
store i8 0, ptr %21, align 1
br label %63
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %5, align 8
%25 = icmp eq ptr null, %24
br i1 %25, label %26, label %30
26: ; preds = %23
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %7, align 4
%29 = call i32 @my_snprintf(ptr noundef %27, i32 noundef %28, ptr noundef @.str, ptr noundef @.str.1)
br label %63
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 127, %34
br i1 %35, label %36, label %47
36: ; preds = %30
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 8
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = shl i32 %40, 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 9
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = or i32 %41, %45
br label %53
47: ; preds = %30
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 1
%50 = load i8, ptr %49, align 1
%51 = zext i8 %50 to i32
%52 = and i32 %51, 31
br label %53
53: ; preds = %47, %36
%54 = phi i32 [ %46, %36 ], [ %52, %47 ]
store i32 %54, ptr %9, align 4
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
%57 = load i8, ptr %56, align 1
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = load ptr, ptr %8, align 8
%62 = call i32 @sg_get_opcode_sa_name(i8 noundef zeroext %57, i32 noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef %61)
br label %63
63: ; preds = %53, %26, %19, %15
ret void
}
declare i32 @my_snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sg_get_opcode_sa_name(i8 noundef zeroext, i32 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/tmpln83orzv.c'
source_filename = "/tmp/tmpln83orzv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sum pi != 1..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dnamaker(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4 x double], align 16
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%13 = call i32 @xtoy(ptr noundef %11, ptr noundef %12, i32 noundef 4)
store i32 1, ptr %7, align 4
br label %14
14: ; preds = %28, %3
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %31
17: ; preds = %14
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %20
%22 = load double, ptr %21, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %24
%26 = load double, ptr %25, align 8
%27 = fadd double %26, %22
store double %27, ptr %25, align 8
br label %28
28: ; preds = %17
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %14, !llvm.loop !6
31: ; preds = %14
%32 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 3
%33 = load double, ptr %32, align 8
%34 = fsub double %33, 1.000000e+00
%35 = call i32 @fabs(double noundef %34)
%36 = sitofp i32 %35 to double
%37 = fcmp ogt double %36, 1.000000e-05
br i1 %37, label %38, label %40
38: ; preds = %31
%39 = call i32 @error2(ptr noundef @.str)
br label %40
40: ; preds = %38, %31
store i32 0, ptr %7, align 4
br label %41
41: ; preds = %69, %40
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %72
45: ; preds = %41
store i32 0, ptr %8, align 4
%46 = call double (...) @rndu()
store double %46, ptr %10, align 8
br label %47
47: ; preds = %59, %45
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %48, 4
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = load double, ptr %10, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %53
%55 = load double, ptr %54, align 8
%56 = fcmp olt double %51, %55
br i1 %56, label %57, label %58
57: ; preds = %50
br label %62
58: ; preds = %50
br label %59
59: ; preds = %58
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
br label %47, !llvm.loop !8
62: ; preds = %57, %47
%63 = load i32, ptr %8, align 4
%64 = trunc i32 %63 to i8
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %7, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
store i8 %64, ptr %68, align 1
br label %69
69: ; preds = %62
%70 = load i32, ptr %7, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %7, align 4
br label %41, !llvm.loop !9
72: ; preds = %41
ret i32 0
}
declare i32 @xtoy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
declare i32 @error2(ptr noundef) #1
declare double @rndu(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpln83orzv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sum pi != 1..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dnamaker(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [4 x double], align 16
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%13 = call i32 @xtoy(ptr noundef %11, ptr noundef %12, i32 noundef 4)
store i32 1, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 4
br i1 %15, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %27
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %19
%21 = load double, ptr %20, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %23
%25 = load double, ptr %24, align 8
%26 = fadd double %25, %21
store double %26, ptr %24, align 8
br label %27
27: ; preds = %16
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %3
%33 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 3
%34 = load double, ptr %33, align 8
%35 = fsub double %34, 1.000000e+00
%36 = call i32 @fabs(double noundef %35)
%37 = sitofp i32 %36 to double
%38 = fcmp ogt double %37, 1.000000e-05
br i1 %38, label %39, label %41
39: ; preds = %32
%40 = call i32 @error2(ptr noundef @.str)
br label %41
41: ; preds = %39, %32
store i32 0, ptr %7, align 4
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph4, label %76
.lr.ph4: ; preds = %41
br label %45
45: ; preds = %.lr.ph4, %70
store i32 0, ptr %8, align 4
%46 = call double (...) @rndu()
store double %46, ptr %10, align 8
%47 = load i32, ptr %8, align 4
%48 = icmp slt i32 %47, 4
br i1 %48, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %45
br label %49
49: ; preds = %.lr.ph2, %58
%50 = load double, ptr %10, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 %52
%54 = load double, ptr %53, align 8
%55 = fcmp olt double %50, %54
br i1 %55, label %56, label %57
56: ; preds = %49
br label %63
57: ; preds = %49
br label %58
58: ; preds = %57
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp slt i32 %61, 4
br i1 %62, label %49, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %58
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %45
br label %63
63: ; preds = %.loopexit, %56
%64 = load i32, ptr %8, align 4
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %7, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
store i8 %65, ptr %69, align 1
br label %70
70: ; preds = %63
%71 = load i32, ptr %7, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %5, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %45, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %70
br label %76
76: ; preds = %._crit_edge5, %41
ret i32 0
}
declare i32 @xtoy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fabs(double noundef) #1
declare i32 @error2(ptr noundef) #1
declare double @rndu(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwhlbi4od.c'
source_filename = "/tmp/tmpwhlbi4od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_m_from_int64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @_m_from_int64(i64 noundef %3)
ret i32 %4
}
declare i32 @_m_from_int64(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/tmpwhlbi4od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_m_from_int64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @_m_from_int64(i64 noundef %3)
ret i32 %4
}
declare i32 @_m_from_int64(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/tmp9p5d52n5.c'
source_filename = "/tmp/tmp9p5d52n5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @recv_message(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = ptrtoint ptr %6 to i32
store i32 %7, ptr %5, align 4
br label %8
8: ; preds = %1, %19
%9 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 1024)
%11 = load i32, ptr %5, align 4
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @read(i32 noundef %11, ptr noundef %12, i32 noundef 1024)
store i32 %13, ptr %4, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %8
%16 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%17 = load i32, ptr %4, align 4
%18 = call i32 @write(i32 noundef 1, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %15, %8
br label %8
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9p5d52n5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @recv_message(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = ptrtoint ptr %6 to i32
store i32 %7, ptr %5, align 4
br label %8
8: ; preds = %19, %1
%9 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 1024)
%11 = load i32, ptr %5, align 4
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @read(i32 noundef %11, ptr noundef %12, i32 noundef 1024)
store i32 %13, ptr %4, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %8
%16 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%17 = load i32, ptr %4, align 4
%18 = call i32 @write(i32 noundef 1, ptr noundef %16, i32 noundef %17)
br label %19
19: ; preds = %15, %8
br label %8
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb67g_5il.c'
source_filename = "/tmp/tmpb67g_5il.c"
target datalayout = "e-m:e-p270: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/tmpb67g_5il.c"
target datalayout = "e-m:e-p270: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/tmpv9hqhjjo.c'
source_filename = "/tmp/tmpv9hqhjjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decodificarF(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %51, %3
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %54
16: ; preds = %9
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = call signext i8 @toupper(i8 noundef signext %21)
store i8 %22, ptr %8, align 1
%23 = sext i8 %22 to i32
%24 = icmp sge i32 %23, 65
br i1 %24, label %25, label %40
25: ; preds = %16
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp sle i32 %27, 90
br i1 %28, label %29, label %40
29: ; preds = %25
%30 = load i8, ptr %8, align 1
%31 = load ptr, ptr %5, align 8
%32 = call signext i8 @retPosVector(i8 noundef signext %30, ptr noundef %31)
%33 = sext i8 %32 to i32
%34 = add nsw i32 %33, 65
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 %35, ptr %39, align 1
br label %50
40: ; preds = %25, %16
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 %45, ptr %49, align 1
br label %50
50: ; preds = %40, %29
br label %51
51: ; preds = %50
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
br label %9, !llvm.loop !6
54: ; preds = %9
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %7, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
store i8 0, ptr %58, align 1
ret i32 1
}
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @retPosVector(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpv9hqhjjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decodificarF(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %.lr.ph, label %59
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %50
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call signext i8 @toupper(i8 noundef signext %20)
store i8 %21, ptr %8, align 1
%22 = sext i8 %21 to i32
%23 = icmp sge i32 %22, 65
br i1 %23, label %24, label %39
24: ; preds = %15
%25 = load i8, ptr %8, align 1
%26 = sext i8 %25 to i32
%27 = icmp sle i32 %26, 90
br i1 %27, label %28, label %39
28: ; preds = %24
%29 = load i8, ptr %8, align 1
%30 = load ptr, ptr %5, align 8
%31 = call signext i8 @retPosVector(i8 noundef signext %29, ptr noundef %30)
%32 = sext i8 %31 to i32
%33 = add nsw i32 %32, 65
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 %34, ptr %38, align 1
br label %49
39: ; preds = %24, %15
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
store i8 %44, ptr %48, align 1
br label %49
49: ; preds = %39, %28
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = icmp ne i8 %57, 0
br i1 %58, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %59
59: ; preds = %._crit_edge, %3
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr %7, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
store i8 0, ptr %63, align 1
ret i32 1
}
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @retPosVector(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp0fhcvubb.c'
source_filename = "/tmp/tmp0fhcvubb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @a_Url_decode_hex_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %80
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strchr(ptr noundef %12, i8 noundef signext 37)
%14 = icmp ne i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call ptr @dStrdup(ptr noundef %16)
store ptr %17, ptr %2, align 8
br label %80
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
%22 = mul i32 1, %21
%23 = call i64 @dMalloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %4, align 8
store ptr %24, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %25
25: ; preds = %64, %18
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %32, label %67
32: ; preds = %25
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 37
br i1 %39, label %40, label %52
40: ; preds = %32
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = call i32 @Url_decode_hex_octet(ptr noundef %45)
store i32 %46, ptr %7, align 4
%47 = icmp sge i32 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %40
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 2
store i32 %50, ptr %6, align 4
%51 = load i32, ptr %7, align 4
br label %59
52: ; preds = %40, %32
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
br label %59
59: ; preds = %52, %48
%60 = phi i32 [ %51, %48 ], [ %58, %52 ]
%61 = trunc i32 %60 to i8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %5, align 8
store i8 %61, ptr %62, align 1
br label %64
64: ; preds = %59
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %25, !llvm.loop !6
67: ; preds = %25
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %5, align 8
store i8 0, ptr %68, align 1
%70 = load ptr, ptr %4, align 8
%71 = load ptr, ptr %5, align 8
%72 = load ptr, ptr %4, align 8
%73 = ptrtoint ptr %71 to i64
%74 = ptrtoint ptr %72 to i64
%75 = sub i64 %73, %74
%76 = mul i64 1, %75
%77 = trunc i64 %76 to i32
%78 = call ptr @dRealloc(ptr noundef %70, i32 noundef %77)
store ptr %78, ptr %4, align 8
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %2, align 8
br label %80
80: ; preds = %67, %15, %10
%81 = load ptr, ptr %2, align 8
ret ptr %81
}
declare i32 @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @dStrdup(ptr noundef) #1
declare i64 @dMalloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @Url_decode_hex_octet(ptr noundef) #1
declare ptr @dRealloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0fhcvubb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @a_Url_decode_hex_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %85
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strchr(ptr noundef %12, i8 noundef signext 37)
%14 = icmp ne i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call ptr @dStrdup(ptr noundef %16)
store ptr %17, ptr %2, align 8
br label %85
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
%22 = mul i32 1, %21
%23 = call i64 @dMalloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %4, align 8
store ptr %24, ptr %5, align 8
store i32 0, ptr %6, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = icmp ne i8 %29, 0
br i1 %30, label %.lr.ph, label %72
.lr.ph: ; preds = %18
br label %31
31: ; preds = %.lr.ph, %63
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 37
br i1 %38, label %39, label %51
39: ; preds = %31
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = getelementptr inbounds i8, ptr %43, i64 1
%45 = call i32 @Url_decode_hex_octet(ptr noundef %44)
store i32 %45, ptr %7, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %39
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 2
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %7, align 4
br label %58
51: ; preds = %39, %31
%52 = load ptr, ptr %3, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
br label %58
58: ; preds = %51, %47
%59 = phi i32 [ %50, %47 ], [ %57, %51 ]
%60 = trunc i32 %59 to i8
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %5, align 8
store i8 %60, ptr %61, align 1
br label %63
63: ; preds = %58
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
%66 = load ptr, ptr %3, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load i8, ptr %69, align 1
%71 = icmp ne i8 %70, 0
br i1 %71, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %72
72: ; preds = %._crit_edge, %18
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %5, align 8
store i8 0, ptr %73, align 1
%75 = load ptr, ptr %4, align 8
%76 = load ptr, ptr %5, align 8
%77 = load ptr, ptr %4, align 8
%78 = ptrtoint ptr %76 to i64
%79 = ptrtoint ptr %77 to i64
%80 = sub i64 %78, %79
%81 = mul i64 1, %80
%82 = trunc i64 %81 to i32
%83 = call ptr @dRealloc(ptr noundef %75, i32 noundef %82)
store ptr %83, ptr %4, align 8
%84 = load ptr, ptr %4, align 8
store ptr %84, ptr %2, align 8
br label %85
85: ; preds = %72, %15, %10
%86 = load ptr, ptr %2, align 8
ret ptr %86
}
declare i32 @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @dStrdup(ptr noundef) #1
declare i64 @dMalloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @Url_decode_hex_octet(ptr noundef) #1
declare ptr @dRealloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphzphul_l.c'
source_filename = "/tmp/tmphzphul_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decipher_block(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -957401312, ptr %3, align 4
store i32 -1640531527, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %51, %1
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 32
br i1 %8, label %9, label %54
9: ; preds = %6
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 0
%12 = load i32, ptr %11, align 4
%13 = shl i32 %12, 4
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 0
%16 = load i32, ptr %15, align 4
%17 = ashr i32 %16, 5
%18 = xor i32 %13, %17
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %18, %21
%23 = load i32, ptr %3, align 4
%24 = xor i32 %22, %23
%25 = load ptr, ptr %2, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 1
%27 = load i32, ptr %26, align 4
%28 = sub nsw i32 %27, %24
store i32 %28, ptr %26, align 4
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %3, align 4
%31 = sub nsw i32 %30, %29
store i32 %31, ptr %3, align 4
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds i32, ptr %32, i64 1
%34 = load i32, ptr %33, align 4
%35 = shl i32 %34, 4
%36 = load ptr, ptr %2, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 1
%38 = load i32, ptr %37, align 4
%39 = ashr i32 %38, 5
%40 = xor i32 %35, %39
%41 = load ptr, ptr %2, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 1
%43 = load i32, ptr %42, align 4
%44 = add nsw i32 %40, %43
%45 = load i32, ptr %3, align 4
%46 = xor i32 %44, %45
%47 = load ptr, ptr %2, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 0
%49 = load i32, ptr %48, align 4
%50 = sub nsw i32 %49, %46
store i32 %50, ptr %48, align 4
br label %51
51: ; preds = %9
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
br label %6, !llvm.loop !6
54: ; 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/tmphzphul_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @decipher_block(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -957401312, ptr %3, align 4
store i32 -1640531527, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 32
br i1 %7, label %.lr.ph, label %55
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %50
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 0
%11 = load i32, ptr %10, align 4
%12 = shl i32 %11, 4
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 0
%15 = load i32, ptr %14, align 4
%16 = ashr i32 %15, 5
%17 = xor i32 %12, %16
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
%20 = load i32, ptr %19, align 4
%21 = add nsw i32 %17, %20
%22 = load i32, ptr %3, align 4
%23 = xor i32 %21, %22
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
%26 = load i32, ptr %25, align 4
%27 = sub nsw i32 %26, %23
store i32 %27, ptr %25, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = sub nsw i32 %29, %28
store i32 %30, ptr %3, align 4
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds i32, ptr %31, i64 1
%33 = load i32, ptr %32, align 4
%34 = shl i32 %33, 4
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 1
%37 = load i32, ptr %36, align 4
%38 = ashr i32 %37, 5
%39 = xor i32 %34, %38
%40 = load ptr, ptr %2, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 1
%42 = load i32, ptr %41, align 4
%43 = add nsw i32 %39, %42
%44 = load i32, ptr %3, align 4
%45 = xor i32 %43, %44
%46 = load ptr, ptr %2, align 8
%47 = getelementptr inbounds i32, ptr %46, i64 0
%48 = load i32, ptr %47, align 4
%49 = sub nsw i32 %48, %45
store i32 %49, ptr %47, align 4
br label %50
50: ; preds = %8
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
%53 = load i32, ptr %5, align 4
%54 = icmp slt i32 %53, 32
br i1 %54, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %1
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/tmplnpn31kd.c'
source_filename = "/tmp/tmplnpn31kd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @rel2abs_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i64 128, ptr %7, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = load ptr, ptr %3, align 8
%18 = call ptr @strdup(ptr noundef %17)
store ptr %18, ptr %2, align 8
br label %81
19: ; preds = %1
br label %20
20: ; preds = %43, %19
%21 = load i64, ptr %7, align 8
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %2, align 8
br label %81
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = load i64, ptr %7, align 8
%29 = call ptr @getcwd(ptr noundef %27, i64 noundef %28)
store ptr %29, ptr %5, align 8
%30 = load ptr, ptr %5, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %42
32: ; preds = %26
%33 = load ptr, ptr %4, align 8
%34 = call i32 @free(ptr noundef %33)
%35 = load i64, ptr @errno, align 8
%36 = load i64, ptr @ERANGE, align 8
%37 = icmp ne i64 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %32
store ptr null, ptr %2, align 8
br label %81
39: ; preds = %32
%40 = load i64, ptr %7, align 8
%41 = mul i64 %40, 2
store i64 %41, ptr %7, align 8
br label %43
42: ; preds = %26
br label %44
43: ; preds = %39
br label %20
44: ; preds = %42
%45 = load ptr, ptr %5, align 8
%46 = call i64 @strlen(ptr noundef %45)
store i64 %46, ptr %8, align 8
%47 = load ptr, ptr %3, align 8
%48 = call i64 @strlen(ptr noundef %47)
store i64 %48, ptr %9, align 8
%49 = load i64, ptr %8, align 8
%50 = add i64 %49, 1
%51 = load i64, ptr %9, align 8
%52 = add i64 %50, %51
%53 = add i64 %52, 1
store i64 %53, ptr %10, align 8
%54 = load i64, ptr %10, align 8
%55 = call ptr @malloc(i64 noundef %54)
store ptr %55, ptr %6, align 8
%56 = load ptr, ptr %6, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %58, label %77
58: ; preds = %44
%59 = load ptr, ptr %6, align 8
%60 = load ptr, ptr %5, align 8
%61 = load i64, ptr %8, align 8
%62 = call i32 @memcpy(ptr noundef %59, ptr noundef %60, i64 noundef %61)
%63 = load ptr, ptr %6, align 8
%64 = load i64, ptr %8, align 8
%65 = getelementptr inbounds i8, ptr %63, i64 %64
store i8 47, ptr %65, align 1
%66 = load ptr, ptr %6, align 8
%67 = load i64, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %66, i64 %67
%69 = getelementptr inbounds i8, ptr %68, i64 1
%70 = load ptr, ptr %3, align 8
%71 = load i64, ptr %9, align 8
%72 = call i32 @memcpy(ptr noundef %69, ptr noundef %70, i64 noundef %71)
%73 = load ptr, ptr %6, align 8
%74 = load i64, ptr %10, align 8
%75 = sub i64 %74, 1
%76 = getelementptr inbounds i8, ptr %73, i64 %75
store i8 0, ptr %76, align 1
br label %77
77: ; preds = %58, %44
%78 = load ptr, ptr %4, align 8
%79 = call i32 @free(ptr noundef %78)
%80 = load ptr, ptr %6, align 8
store ptr %80, ptr %2, align 8
br label %81
81: ; preds = %77, %38, %25, %16
%82 = load ptr, ptr %2, align 8
ret ptr %82
}
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @getcwd(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplnpn31kd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @rel2abs_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i64 128, ptr %7, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = load ptr, ptr %3, align 8
%18 = call ptr @strdup(ptr noundef %17)
store ptr %18, ptr %2, align 8
br label %84
19: ; preds = %1
%20 = load i64, ptr %7, align 8
%21 = call ptr @malloc(i64 noundef %20)
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %.lr.ph
.lr.ph: ; preds = %19
br label %25
._crit_edge: ; preds = %42
br label %24
24: ; preds = %._crit_edge, %19
store ptr null, ptr %2, align 8
br label %84
25: ; preds = %.lr.ph, %42
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %7, align 8
%28 = call ptr @getcwd(ptr noundef %26, i64 noundef %27)
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %5, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %41
31: ; preds = %25
%32 = load ptr, ptr %4, align 8
%33 = call i32 @free(ptr noundef %32)
%34 = load i64, ptr @errno, align 8
%35 = load i64, ptr @ERANGE, align 8
%36 = icmp ne i64 %34, %35
br i1 %36, label %37, label %38
37: ; preds = %31
store ptr null, ptr %2, align 8
br label %84
38: ; preds = %31
%39 = load i64, ptr %7, align 8
%40 = mul i64 %39, 2
store i64 %40, ptr %7, align 8
br label %42
41: ; preds = %25
br label %47
42: ; preds = %38
%43 = load i64, ptr %7, align 8
%44 = call ptr @malloc(i64 noundef %43)
store ptr %44, ptr %4, align 8
%45 = load ptr, ptr %4, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %._crit_edge, label %25
47: ; preds = %41
%48 = load ptr, ptr %5, align 8
%49 = call i64 @strlen(ptr noundef %48)
store i64 %49, ptr %8, align 8
%50 = load ptr, ptr %3, align 8
%51 = call i64 @strlen(ptr noundef %50)
store i64 %51, ptr %9, align 8
%52 = load i64, ptr %8, align 8
%53 = add i64 %52, 1
%54 = load i64, ptr %9, align 8
%55 = add i64 %53, %54
%56 = add i64 %55, 1
store i64 %56, ptr %10, align 8
%57 = load i64, ptr %10, align 8
%58 = call ptr @malloc(i64 noundef %57)
store ptr %58, ptr %6, align 8
%59 = load ptr, ptr %6, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %80
61: ; preds = %47
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %5, align 8
%64 = load i64, ptr %8, align 8
%65 = call i32 @memcpy(ptr noundef %62, ptr noundef %63, i64 noundef %64)
%66 = load ptr, ptr %6, align 8
%67 = load i64, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %66, i64 %67
store i8 47, ptr %68, align 1
%69 = load ptr, ptr %6, align 8
%70 = load i64, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = load ptr, ptr %3, align 8
%74 = load i64, ptr %9, align 8
%75 = call i32 @memcpy(ptr noundef %72, ptr noundef %73, i64 noundef %74)
%76 = load ptr, ptr %6, align 8
%77 = load i64, ptr %10, align 8
%78 = sub i64 %77, 1
%79 = getelementptr inbounds i8, ptr %76, i64 %78
store i8 0, ptr %79, align 1
br label %80
80: ; preds = %61, %47
%81 = load ptr, ptr %4, align 8
%82 = call i32 @free(ptr noundef %81)
%83 = load ptr, ptr %6, align 8
store ptr %83, ptr %2, align 8
br label %84
84: ; preds = %80, %37, %24, %16
%85 = load ptr, ptr %2, align 8
ret ptr %85
}
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @getcwd(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpte5g6cwg.c'
source_filename = "/tmp/tmpte5g6cwg.c"
target datalayout = "e-m:e-p270: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/tmpte5g6cwg.c"
target datalayout = "e-m:e-p270: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/tmpz76bx_42.c'
source_filename = "/tmp/tmpz76bx_42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @indc_init() #0 {
%1 = call i32 (...) @register_indc_function_list()
ret void
}
declare i32 @register_indc_function_list(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz76bx_42.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @indc_init() #0 {
%1 = call i32 (...) @register_indc_function_list()
ret void
}
declare i32 @register_indc_function_list(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy5964t1m.c'
source_filename = "/tmp/tmpy5964t1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"STFL Parser Error: Can't read file '%s'!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stfl_parser_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %21, label %16
16: ; preds = %1
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %2, align 8
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18)
%20 = call i32 (...) @abort() #3
unreachable
21: ; preds = %1
store i32 0, ptr %4, align 4
store ptr null, ptr %5, align 8
br label %22
22: ; preds = %21, %48
%23 = load i32, ptr %4, align 4
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 4096
store i32 %26, ptr %4, align 4
%27 = call ptr @realloc(ptr noundef %24, i32 noundef %26)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load ptr, ptr %3, align 8
%33 = call i64 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4096, ptr noundef %32)
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = add nsw i64 %35, %33
%37 = trunc i64 %36 to i32
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %48
41: ; preds = %22
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %3, align 8
%47 = call i32 @fclose(ptr noundef %46)
br label %49
48: ; preds = %22
br label %22
49: ; preds = %41
%50 = load ptr, ptr %5, align 8
store ptr %50, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = call i64 @strlen(ptr noundef %51)
%53 = add nsw i64 %52, 1
%54 = call i32 @mbsrtowcs(ptr noundef null, ptr noundef %7, i64 noundef %53, ptr noundef null)
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
store i64 %56, ptr %8, align 8
%57 = load i64, ptr %8, align 8
%58 = mul i64 1, %57
%59 = trunc i64 %58 to i32
%60 = call ptr @malloc(i32 noundef %59)
store ptr %60, ptr %9, align 8
%61 = load ptr, ptr %9, align 8
%62 = load ptr, ptr %5, align 8
%63 = load i64, ptr %8, align 8
%64 = call i64 @mbstowcs(ptr noundef %61, ptr noundef %62, i64 noundef %63)
store i64 %64, ptr %10, align 8
%65 = load i64, ptr %10, align 8
%66 = icmp ne i64 %65, -1
%67 = zext i1 %66 to i32
%68 = call i32 @assert(i32 noundef %67)
%69 = load ptr, ptr %9, align 8
%70 = call ptr @stfl_parser(ptr noundef %69)
store ptr %70, ptr %11, align 8
%71 = load ptr, ptr %5, align 8
%72 = call i32 @free(ptr noundef %71)
%73 = load ptr, ptr %9, align 8
%74 = call i32 @free(ptr noundef %73)
%75 = load ptr, ptr %11, align 8
ret ptr %75
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @mbsrtowcs(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i64 @mbstowcs(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @stfl_parser(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" }
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/tmpy5964t1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"STFL Parser Error: Can't read file '%s'!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stfl_parser_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %21, label %16
16: ; preds = %1
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %2, align 8
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18)
%20 = call i32 (...) @abort() #3
unreachable
21: ; preds = %1
store i32 0, ptr %4, align 4
store ptr null, ptr %5, align 8
br label %22
22: ; preds = %22, %21
%23 = load i32, ptr %4, align 4
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 4096
store i32 %26, ptr %4, align 4
%27 = call ptr @realloc(ptr noundef %24, i32 noundef %26)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load ptr, ptr %3, align 8
%33 = call i64 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4096, ptr noundef %32)
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = add nsw i64 %35, %33
%37 = trunc i64 %36 to i32
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %22
41: ; preds = %22
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %3, align 8
%47 = call i32 @fclose(ptr noundef %46)
br label %48
48: ; preds = %41
%49 = load ptr, ptr %5, align 8
store ptr %49, ptr %7, align 8
%50 = load ptr, ptr %7, align 8
%51 = call i64 @strlen(ptr noundef %50)
%52 = add nsw i64 %51, 1
%53 = call i32 @mbsrtowcs(ptr noundef null, ptr noundef %7, i64 noundef %52, ptr noundef null)
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
store i64 %55, ptr %8, align 8
%56 = load i64, ptr %8, align 8
%57 = mul i64 1, %56
%58 = trunc i64 %57 to i32
%59 = call ptr @malloc(i32 noundef %58)
store ptr %59, ptr %9, align 8
%60 = load ptr, ptr %9, align 8
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %8, align 8
%63 = call i64 @mbstowcs(ptr noundef %60, ptr noundef %61, i64 noundef %62)
store i64 %63, ptr %10, align 8
%64 = load i64, ptr %10, align 8
%65 = icmp ne i64 %64, -1
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 noundef %66)
%68 = load ptr, ptr %9, align 8
%69 = call ptr @stfl_parser(ptr noundef %68)
store ptr %69, ptr %11, align 8
%70 = load ptr, ptr %5, align 8
%71 = call i32 @free(ptr noundef %70)
%72 = load ptr, ptr %9, align 8
%73 = call i32 @free(ptr noundef %72)
%74 = load ptr, ptr %11, align 8
ret ptr %74
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @mbsrtowcs(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i64 @mbstowcs(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @stfl_parser(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" }
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/tmp9mdnd_yx.c'
source_filename = "/tmp/tmp9mdnd_yx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_usable_size(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i64 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9mdnd_yx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_usable_size(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i64 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf2j0fyhw.c'
source_filename = "/tmp/tmpf2j0fyhw.c"
target datalayout = "e-m:e-p270: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/tmpf2j0fyhw.c"
target datalayout = "e-m:e-p270: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/tmpf9h9605f.c'
source_filename = "/tmp/tmpf9h9605f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_BARRIER_SERIAL_THREAD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_PTHREAD_BARRIER_SERIAL_THREAD() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @PTHREAD_BARRIER_SERIAL_THREAD, align 4
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, 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/tmpf9h9605f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_BARRIER_SERIAL_THREAD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_PTHREAD_BARRIER_SERIAL_THREAD() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @PTHREAD_BARRIER_SERIAL_THREAD, align 4
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, 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/tmpf0dsogrg.c'
source_filename = "/tmp/tmpf0dsogrg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @unsafe()
%4 = call i32 @alarm(i32 noundef 1)
ret void
}
declare i32 @unsafe(...) #1
declare i32 @alarm(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/tmpf0dsogrg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @unsafe()
%4 = call i32 @alarm(i32 noundef 1)
ret void
}
declare i32 @unsafe(...) #1
declare i32 @alarm(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/tmp1ttyqkqe.c'
source_filename = "/tmp/tmp1ttyqkqe.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Too many iterations in gaulag\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gaulag(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store double %3, ptr %8, align 8
store double 0.000000e+00, ptr %18, align 8
%20 = load double, ptr %8, align 8
%21 = load i32, ptr %7, align 4
%22 = sitofp i32 %21 to double
%23 = fadd double %20, %22
%24 = call i64 @gammln(double noundef %23)
%25 = load i32, ptr %7, align 4
%26 = sitofp i32 %25 to double
%27 = call i64 @gammln(double noundef %26)
%28 = sub nsw i64 %24, %27
%29 = call double @exp(i64 noundef %28)
%30 = fneg double %29
store double %30, ptr %19, align 8
store i32 1, ptr %9, align 4
br label %31
31: ; preds = %188, %4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %191
35: ; preds = %31
%36 = load i32, ptr %9, align 4
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %50
38: ; preds = %35
%39 = load double, ptr %8, align 8
%40 = fadd double 1.000000e+00, %39
%41 = load double, ptr %8, align 8
%42 = call double @llvm.fmuladd.f64(double 9.200000e-01, double %41, double 3.000000e+00)
%43 = fmul double %40, %42
%44 = load i32, ptr %7, align 4
%45 = sitofp i32 %44 to double
%46 = call double @llvm.fmuladd.f64(double 2.400000e+00, double %45, double 1.000000e+00)
%47 = load double, ptr %8, align 8
%48 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %47, double %46)
%49 = fdiv double %43, %48
store double %49, ptr %18, align 8
br label %96
50: ; preds = %35
%51 = load i32, ptr %9, align 4
%52 = icmp eq i32 %51, 2
br i1 %52, label %53, label %64
53: ; preds = %50
%54 = load double, ptr %8, align 8
%55 = call double @llvm.fmuladd.f64(double 6.250000e+00, double %54, double 1.500000e+01)
%56 = load double, ptr %8, align 8
%57 = call double @llvm.fmuladd.f64(double 9.000000e-01, double %56, double 1.000000e+00)
%58 = load i32, ptr %7, align 4
%59 = sitofp i32 %58 to double
%60 = call double @llvm.fmuladd.f64(double 2.500000e+00, double %59, double %57)
%61 = fdiv double %55, %60
%62 = load double, ptr %18, align 8
%63 = fadd double %62, %61
store double %63, ptr %18, align 8
br label %95
64: ; preds = %50
%65 = load i32, ptr %9, align 4
%66 = sub nsw i32 %65, 2
%67 = sitofp i32 %66 to double
store double %67, ptr %12, align 8
%68 = load double, ptr %12, align 8
%69 = call double @llvm.fmuladd.f64(double 2.550000e+00, double %68, double 1.000000e+00)
%70 = load double, ptr %12, align 8
%71 = fmul double 1.900000e+00, %70
%72 = fdiv double %69, %71
%73 = load double, ptr %12, align 8
%74 = fmul double 1.260000e+00, %73
%75 = load double, ptr %8, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %12, align 8
%78 = call double @llvm.fmuladd.f64(double 3.500000e+00, double %77, double 1.000000e+00)
%79 = fdiv double %76, %78
%80 = fadd double %72, %79
%81 = load double, ptr %18, align 8
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %9, align 4
%84 = sub nsw i32 %83, 3
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %82, i64 %85
%87 = load double, ptr %86, align 8
%88 = fsub double %81, %87
%89 = fmul double %80, %88
%90 = load double, ptr %8, align 8
%91 = call double @llvm.fmuladd.f64(double 3.000000e-01, double %90, double 1.000000e+00)
%92 = fdiv double %89, %91
%93 = load double, ptr %18, align 8
%94 = fadd double %93, %92
store double %94, ptr %18, align 8
br label %95
95: ; preds = %64, %53
br label %96
96: ; preds = %95, %38
store i32 1, ptr %10, align 4
br label %97
97: ; preds = %159, %96
%98 = load i32, ptr %10, align 4
%99 = icmp sle i32 %98, 10
br i1 %99, label %100, label %162
100: ; preds = %97
store double 1.000000e+00, ptr %13, align 8
store double 0.000000e+00, ptr %14, align 8
store i32 1, ptr %11, align 4
br label %101
101: ; preds = %129, %100
%102 = load i32, ptr %11, align 4
%103 = load i32, ptr %7, align 4
%104 = icmp sle i32 %102, %103
br i1 %104, label %105, label %132
105: ; preds = %101
%106 = load double, ptr %14, align 8
store double %106, ptr %15, align 8
%107 = load double, ptr %13, align 8
store double %107, ptr %14, align 8
%108 = load i32, ptr %11, align 4
%109 = mul nsw i32 2, %108
%110 = sub nsw i32 %109, 1
%111 = sitofp i32 %110 to double
%112 = load double, ptr %8, align 8
%113 = fadd double %111, %112
%114 = load double, ptr %18, align 8
%115 = fsub double %113, %114
%116 = load double, ptr %14, align 8
%117 = load i32, ptr %11, align 4
%118 = sub nsw i32 %117, 1
%119 = sitofp i32 %118 to double
%120 = load double, ptr %8, align 8
%121 = fadd double %119, %120
%122 = load double, ptr %15, align 8
%123 = fmul double %121, %122
%124 = fneg double %123
%125 = call double @llvm.fmuladd.f64(double %115, double %116, double %124)
%126 = load i32, ptr %11, align 4
%127 = sitofp i32 %126 to double
%128 = fdiv double %125, %127
store double %128, ptr %13, align 8
br label %129
129: ; preds = %105
%130 = load i32, ptr %11, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %11, align 4
br label %101, !llvm.loop !6
132: ; preds = %101
%133 = load i32, ptr %7, align 4
%134 = sitofp i32 %133 to double
%135 = load double, ptr %13, align 8
%136 = load i32, ptr %7, align 4
%137 = sitofp i32 %136 to double
%138 = load double, ptr %8, align 8
%139 = fadd double %137, %138
%140 = load double, ptr %14, align 8
%141 = fmul double %139, %140
%142 = fneg double %141
%143 = call double @llvm.fmuladd.f64(double %134, double %135, double %142)
%144 = load double, ptr %18, align 8
%145 = fdiv double %143, %144
store double %145, ptr %16, align 8
%146 = load double, ptr %18, align 8
store double %146, ptr %17, align 8
%147 = load double, ptr %17, align 8
%148 = load double, ptr %13, align 8
%149 = load double, ptr %16, align 8
%150 = fdiv double %148, %149
%151 = fsub double %147, %150
store double %151, ptr %18, align 8
%152 = load double, ptr %18, align 8
%153 = load double, ptr %17, align 8
%154 = fsub double %152, %153
%155 = call double @llvm.fabs.f64(double %154)
%156 = fcmp ole double %155, 3.000000e-14
br i1 %156, label %157, label %158
157: ; preds = %132
br label %162
158: ; preds = %132
br label %159
159: ; preds = %158
%160 = load i32, ptr %10, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %10, align 4
br label %97, !llvm.loop !8
162: ; preds = %157, %97
%163 = load i32, ptr %10, align 4
%164 = icmp sgt i32 %163, 10
br i1 %164, label %165, label %168
165: ; preds = %162
%166 = load i32, ptr @stderr, align 4
%167 = call i32 @fprintf(i32 noundef %166, ptr noundef @.str)
br label %168
168: ; preds = %165, %162
%169 = load double, ptr %18, align 8
%170 = load ptr, ptr %5, align 8
%171 = load i32, ptr %9, align 4
%172 = sub nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %170, i64 %173
store double %169, ptr %174, align 8
%175 = load double, ptr %19, align 8
%176 = load double, ptr %16, align 8
%177 = load i32, ptr %7, align 4
%178 = sitofp i32 %177 to double
%179 = fmul double %176, %178
%180 = load double, ptr %14, align 8
%181 = fmul double %179, %180
%182 = fdiv double %175, %181
%183 = load ptr, ptr %6, align 8
%184 = load i32, ptr %9, align 4
%185 = sub nsw i32 %184, 1
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %183, i64 %186
store double %182, ptr %187, align 8
br label %188
188: ; preds = %168
%189 = load i32, ptr %9, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %9, align 4
br label %31, !llvm.loop !9
191: ; preds = %31
ret void
}
declare double @exp(i64 noundef) #1
declare i64 @gammln(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ttyqkqe.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"Too many iterations in gaulag\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gaulag(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store double %3, ptr %8, align 8
store double 0.000000e+00, ptr %18, align 8
%20 = load double, ptr %8, align 8
%21 = load i32, ptr %7, align 4
%22 = sitofp i32 %21 to double
%23 = fadd double %20, %22
%24 = call i64 @gammln(double noundef %23)
%25 = load i32, ptr %7, align 4
%26 = sitofp i32 %25 to double
%27 = call i64 @gammln(double noundef %26)
%28 = sub nsw i64 %24, %27
%29 = call double @exp(i64 noundef %28)
%30 = fneg double %29
store double %30, ptr %19, align 8
store i32 1, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %.lr.ph4, label %196
.lr.ph4: ; preds = %4
br label %34
34: ; preds = %.lr.ph4, %190
%35 = load i32, ptr %9, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load double, ptr %8, align 8
%39 = fadd double 1.000000e+00, %38
%40 = load double, ptr %8, align 8
%41 = call double @llvm.fmuladd.f64(double 9.200000e-01, double %40, double 3.000000e+00)
%42 = fmul double %39, %41
%43 = load i32, ptr %7, align 4
%44 = sitofp i32 %43 to double
%45 = call double @llvm.fmuladd.f64(double 2.400000e+00, double %44, double 1.000000e+00)
%46 = load double, ptr %8, align 8
%47 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %46, double %45)
%48 = fdiv double %42, %47
store double %48, ptr %18, align 8
br label %95
49: ; preds = %34
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %50, 2
br i1 %51, label %52, label %63
52: ; preds = %49
%53 = load double, ptr %8, align 8
%54 = call double @llvm.fmuladd.f64(double 6.250000e+00, double %53, double 1.500000e+01)
%55 = load double, ptr %8, align 8
%56 = call double @llvm.fmuladd.f64(double 9.000000e-01, double %55, double 1.000000e+00)
%57 = load i32, ptr %7, align 4
%58 = sitofp i32 %57 to double
%59 = call double @llvm.fmuladd.f64(double 2.500000e+00, double %58, double %56)
%60 = fdiv double %54, %59
%61 = load double, ptr %18, align 8
%62 = fadd double %61, %60
store double %62, ptr %18, align 8
br label %94
63: ; preds = %49
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %64, 2
%66 = sitofp i32 %65 to double
store double %66, ptr %12, align 8
%67 = load double, ptr %12, align 8
%68 = call double @llvm.fmuladd.f64(double 2.550000e+00, double %67, double 1.000000e+00)
%69 = load double, ptr %12, align 8
%70 = fmul double 1.900000e+00, %69
%71 = fdiv double %68, %70
%72 = load double, ptr %12, align 8
%73 = fmul double 1.260000e+00, %72
%74 = load double, ptr %8, align 8
%75 = fmul double %73, %74
%76 = load double, ptr %12, align 8
%77 = call double @llvm.fmuladd.f64(double 3.500000e+00, double %76, double 1.000000e+00)
%78 = fdiv double %75, %77
%79 = fadd double %71, %78
%80 = load double, ptr %18, align 8
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %9, align 4
%83 = sub nsw i32 %82, 3
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %81, i64 %84
%86 = load double, ptr %85, align 8
%87 = fsub double %80, %86
%88 = fmul double %79, %87
%89 = load double, ptr %8, align 8
%90 = call double @llvm.fmuladd.f64(double 3.000000e-01, double %89, double 1.000000e+00)
%91 = fdiv double %88, %90
%92 = load double, ptr %18, align 8
%93 = fadd double %92, %91
store double %93, ptr %18, align 8
br label %94
94: ; preds = %63, %52
br label %95
95: ; preds = %94, %37
store i32 1, ptr %10, align 4
%96 = load i32, ptr %10, align 4
%97 = icmp sle i32 %96, 10
br i1 %97, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %95
br label %98
98: ; preds = %.lr.ph2, %159
store double 1.000000e+00, ptr %13, align 8
store double 0.000000e+00, ptr %14, align 8
store i32 1, ptr %11, align 4
%99 = load i32, ptr %11, align 4
%100 = load i32, ptr %7, align 4
%101 = icmp sle i32 %99, %100
br i1 %101, label %.lr.ph, label %132
.lr.ph: ; preds = %98
br label %102
102: ; preds = %.lr.ph, %126
%103 = load double, ptr %14, align 8
store double %103, ptr %15, align 8
%104 = load double, ptr %13, align 8
store double %104, ptr %14, align 8
%105 = load i32, ptr %11, align 4
%106 = mul nsw i32 2, %105
%107 = sub nsw i32 %106, 1
%108 = sitofp i32 %107 to double
%109 = load double, ptr %8, align 8
%110 = fadd double %108, %109
%111 = load double, ptr %18, align 8
%112 = fsub double %110, %111
%113 = load double, ptr %14, align 8
%114 = load i32, ptr %11, align 4
%115 = sub nsw i32 %114, 1
%116 = sitofp i32 %115 to double
%117 = load double, ptr %8, align 8
%118 = fadd double %116, %117
%119 = load double, ptr %15, align 8
%120 = fmul double %118, %119
%121 = fneg double %120
%122 = call double @llvm.fmuladd.f64(double %112, double %113, double %121)
%123 = load i32, ptr %11, align 4
%124 = sitofp i32 %123 to double
%125 = fdiv double %122, %124
store double %125, ptr %13, align 8
br label %126
126: ; preds = %102
%127 = load i32, ptr %11, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %11, align 4
%129 = load i32, ptr %11, align 4
%130 = load i32, ptr %7, align 4
%131 = icmp sle i32 %129, %130
br i1 %131, label %102, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %126
br label %132
132: ; preds = %._crit_edge, %98
%133 = load i32, ptr %7, align 4
%134 = sitofp i32 %133 to double
%135 = load double, ptr %13, align 8
%136 = load i32, ptr %7, align 4
%137 = sitofp i32 %136 to double
%138 = load double, ptr %8, align 8
%139 = fadd double %137, %138
%140 = load double, ptr %14, align 8
%141 = fmul double %139, %140
%142 = fneg double %141
%143 = call double @llvm.fmuladd.f64(double %134, double %135, double %142)
%144 = load double, ptr %18, align 8
%145 = fdiv double %143, %144
store double %145, ptr %16, align 8
%146 = load double, ptr %18, align 8
store double %146, ptr %17, align 8
%147 = load double, ptr %17, align 8
%148 = load double, ptr %13, align 8
%149 = load double, ptr %16, align 8
%150 = fdiv double %148, %149
%151 = fsub double %147, %150
store double %151, ptr %18, align 8
%152 = load double, ptr %18, align 8
%153 = load double, ptr %17, align 8
%154 = fsub double %152, %153
%155 = call double @llvm.fabs.f64(double %154)
%156 = fcmp ole double %155, 3.000000e-14
br i1 %156, label %157, label %158
157: ; preds = %132
br label %164
158: ; preds = %132
br label %159
159: ; preds = %158
%160 = load i32, ptr %10, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %10, align 4
%162 = load i32, ptr %10, align 4
%163 = icmp sle i32 %162, 10
br i1 %163, label %98, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %159
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %95
br label %164
164: ; preds = %.loopexit, %157
%165 = load i32, ptr %10, align 4
%166 = icmp sgt i32 %165, 10
br i1 %166, label %167, label %170
167: ; preds = %164
%168 = load i32, ptr @stderr, align 4
%169 = call i32 @fprintf(i32 noundef %168, ptr noundef @.str)
br label %170
170: ; preds = %167, %164
%171 = load double, ptr %18, align 8
%172 = load ptr, ptr %5, align 8
%173 = load i32, ptr %9, align 4
%174 = sub nsw i32 %173, 1
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, ptr %172, i64 %175
store double %171, ptr %176, align 8
%177 = load double, ptr %19, align 8
%178 = load double, ptr %16, align 8
%179 = load i32, ptr %7, align 4
%180 = sitofp i32 %179 to double
%181 = fmul double %178, %180
%182 = load double, ptr %14, align 8
%183 = fmul double %181, %182
%184 = fdiv double %177, %183
%185 = load ptr, ptr %6, align 8
%186 = load i32, ptr %9, align 4
%187 = sub nsw i32 %186, 1
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, ptr %185, i64 %188
store double %184, ptr %189, align 8
br label %190
190: ; preds = %170
%191 = load i32, ptr %9, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %9, align 4
%193 = load i32, ptr %9, align 4
%194 = load i32, ptr %7, align 4
%195 = icmp sle i32 %193, %194
br i1 %195, label %34, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %190
br label %196
196: ; preds = %._crit_edge5, %4
ret void
}
declare double @exp(i64 noundef) #1
declare i64 @gammln(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp88hmdlei.c'
source_filename = "/tmp/tmp88hmdlei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPC_CREAT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"shmget 0x8888\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"get data: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"input:\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c" %[^\0A]\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call i64 (...) @fork()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %42
8: ; preds = %0
%9 = load i32, ptr @IPC_CREAT, align 4
%10 = or i32 384, %9
%11 = call i32 @shmget(i32 noundef 34952, i32 noundef 1000, i32 noundef %10)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %8
%15 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %83
16: ; preds = %8
%17 = load i32, ptr %2, align 4
%18 = call ptr @shmat(i32 noundef %17, ptr noundef null, i32 noundef 0)
store ptr %18, ptr %3, align 8
br label %19
19: ; preds = %16, %37
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, -12
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @sleep(i32 noundef 1)
br label %37
26: ; preds = %19
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %28)
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 1
%32 = call i32 @strncmp(ptr noundef %31, ptr noundef @.str.2, i32 noundef 4)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %26
br label %38
35: ; preds = %26
%36 = load ptr, ptr %3, align 8
store i8 79, ptr %36, align 1
br label %37
37: ; preds = %35, %24
br label %19
38: ; preds = %34
%39 = load ptr, ptr %3, align 8
store i8 79, ptr %39, align 1
%40 = load ptr, ptr %3, align 8
%41 = call i32 @shmdt(ptr noundef %40)
br label %83
42: ; preds = %0
%43 = load i32, ptr @IPC_CREAT, align 4
%44 = or i32 384, %43
%45 = call i32 @shmget(i32 noundef 34952, i32 noundef 1000, i32 noundef %44)
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = call ptr @shmat(i32 noundef %46, ptr noundef null, i32 noundef 0)
store ptr %47, ptr %5, align 8
%48 = load ptr, ptr %5, align 8
store i8 79, ptr %48, align 1
br label %49
49: ; preds = %68, %42
%50 = load ptr, ptr %5, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 79
br i1 %53, label %54, label %66
54: ; preds = %49
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 1
%58 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %57)
%59 = load ptr, ptr %5, align 8
store i8 -12, ptr %59, align 1
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = call i32 @strncmp(ptr noundef %61, ptr noundef @.str.2, i32 noundef 4)
%63 = icmp ne i32 %62, 0
br i1 %63, label %65, label %64
64: ; preds = %54
br label %69
65: ; preds = %54
br label %68
66: ; preds = %49
%67 = call i32 @sleep(i32 noundef 1)
br label %68
68: ; preds = %66, %65
br label %49
69: ; preds = %64
br label %70
70: ; preds = %75, %69
%71 = load ptr, ptr %5, align 8
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 79
br i1 %74, label %75, label %77
75: ; preds = %70
%76 = call i32 @sleep(i32 noundef 1)
br label %70, !llvm.loop !6
77: ; preds = %70
%78 = load ptr, ptr %5, align 8
%79 = call i32 @shmdt(ptr noundef %78)
%80 = load i32, ptr %4, align 4
%81 = load i32, ptr @IPC_RMID, align 4
%82 = call i32 @shmctl(i32 noundef %80, i32 noundef %81, ptr noundef null)
br label %83
83: ; preds = %14, %77, %38
%84 = load i32, ptr %1, align 4
ret i32 %84
}
declare i64 @fork(...) #1
declare i32 @shmget(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @shmat(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @shmdt(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp88hmdlei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPC_CREAT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"shmget 0x8888\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"get data: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"quit\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"input:\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c" %[^\0A]\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call i64 (...) @fork()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %42
8: ; preds = %0
%9 = load i32, ptr @IPC_CREAT, align 4
%10 = or i32 384, %9
%11 = call i32 @shmget(i32 noundef 34952, i32 noundef 1000, i32 noundef %10)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %8
%15 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %86
16: ; preds = %8
%17 = load i32, ptr %2, align 4
%18 = call ptr @shmat(i32 noundef %17, ptr noundef null, i32 noundef 0)
store ptr %18, ptr %3, align 8
br label %19
19: ; preds = %37, %16
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, -12
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @sleep(i32 noundef 1)
br label %37
26: ; preds = %19
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %28)
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 1
%32 = call i32 @strncmp(ptr noundef %31, ptr noundef @.str.2, i32 noundef 4)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %26
br label %38
35: ; preds = %26
%36 = load ptr, ptr %3, align 8
store i8 79, ptr %36, align 1
br label %37
37: ; preds = %35, %24
br label %19
38: ; preds = %34
%39 = load ptr, ptr %3, align 8
store i8 79, ptr %39, align 1
%40 = load ptr, ptr %3, align 8
%41 = call i32 @shmdt(ptr noundef %40)
br label %86
42: ; preds = %0
%43 = load i32, ptr @IPC_CREAT, align 4
%44 = or i32 384, %43
%45 = call i32 @shmget(i32 noundef 34952, i32 noundef 1000, i32 noundef %44)
store i32 %45, ptr %4, align 4
%46 = load i32, ptr %4, align 4
%47 = call ptr @shmat(i32 noundef %46, ptr noundef null, i32 noundef 0)
store ptr %47, ptr %5, align 8
%48 = load ptr, ptr %5, align 8
store i8 79, ptr %48, align 1
br label %49
49: ; preds = %68, %42
%50 = load ptr, ptr %5, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 79
br i1 %53, label %54, label %66
54: ; preds = %49
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 1
%58 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %57)
%59 = load ptr, ptr %5, align 8
store i8 -12, ptr %59, align 1
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = call i32 @strncmp(ptr noundef %61, ptr noundef @.str.2, i32 noundef 4)
%63 = icmp ne i32 %62, 0
br i1 %63, label %65, label %64
64: ; preds = %54
br label %69
65: ; preds = %54
br label %68
66: ; preds = %49
%67 = call i32 @sleep(i32 noundef 1)
br label %68
68: ; preds = %66, %65
br label %49
69: ; preds = %64
%70 = load ptr, ptr %5, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 79
br i1 %73, label %.lr.ph, label %80
.lr.ph: ; preds = %69
br label %74
74: ; preds = %.lr.ph, %74
%75 = call i32 @sleep(i32 noundef 1)
%76 = load ptr, ptr %5, align 8
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp ne i32 %78, 79
br i1 %79, label %74, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %80
80: ; preds = %._crit_edge, %69
%81 = load ptr, ptr %5, align 8
%82 = call i32 @shmdt(ptr noundef %81)
%83 = load i32, ptr %4, align 4
%84 = load i32, ptr @IPC_RMID, align 4
%85 = call i32 @shmctl(i32 noundef %83, i32 noundef %84, ptr noundef null)
br label %86
86: ; preds = %80, %38, %14
%87 = load i32, ptr %1, align 4
ret i32 %87
}
declare i64 @fork(...) #1
declare i32 @shmget(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @shmat(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @shmdt(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @shmctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjdxjdcod.c'
source_filename = "/tmp/tmpjdxjdcod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\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 void @sync_query() #0 {
%1 = alloca i64, align 8
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i64, ptr %1, align 8
%4 = call i32 @rate(i64 noundef %3, i32 noundef 0)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rate(i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjdxjdcod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\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 void @sync_query() #0 {
%1 = alloca i64, align 8
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i64, ptr %1, align 8
%4 = call i32 @rate(i64 noundef %3, i32 noundef 0)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rate(i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmog89ujm.c'
source_filename = "/tmp/tmpmog89ujm.c"
target datalayout = "e-m:e-p270: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/tmpmog89ujm.c"
target datalayout = "e-m:e-p270: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/tmptpi4g_z9.c'
source_filename = "/tmp/tmptpi4g_z9.c"
target datalayout = "e-m:e-p270: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/tmptpi4g_z9.c"
target datalayout = "e-m:e-p270: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/tmph8nhq3bd.c'
source_filename = "/tmp/tmph8nhq3bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pcapack_xpose(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @xpose_inplace_square(i32 noundef %11, ptr noundef %12)
br label %19
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @xpose_inplace_nonsquare(i32 noundef %15, i32 noundef %16, ptr noundef %17)
br label %19
19: ; preds = %14, %10
ret void
}
declare i32 @xpose_inplace_square(i32 noundef, ptr noundef) #1
declare i32 @xpose_inplace_nonsquare(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/tmph8nhq3bd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pcapack_xpose(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i32 @xpose_inplace_square(i32 noundef %11, ptr noundef %12)
br label %19
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @xpose_inplace_nonsquare(i32 noundef %15, i32 noundef %16, ptr noundef %17)
br label %19
19: ; preds = %14, %10
ret void
}
declare i32 @xpose_inplace_square(i32 noundef, ptr noundef) #1
declare i32 @xpose_inplace_nonsquare(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/tmpx1ikaayw.c'
source_filename = "/tmp/tmpx1ikaayw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bit_out_in(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
br label %8
8: ; preds = %41, %3
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %44
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 (...) @SET_TDI()
br label %19
17: ; preds = %11
%18 = call i32 (...) @CLEAR_TDI()
br label %19
19: ; preds = %17, %15
%20 = load i32, ptr %4, align 4
%21 = ashr i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = call i64 (...) @SET_TDO()
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = or i32 %28, 1
%30 = trunc i32 %29 to i8
store i8 %30, ptr %26, align 1
br label %31
31: ; preds = %24, %19
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = shl i32 %35, 1
%37 = trunc i32 %36 to i8
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 0
store i8 %37, ptr %39, align 1
%40 = call i32 (...) @JTAG_SPEED()
br label %41
41: ; preds = %31
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %5, align 4
br label %8, !llvm.loop !6
44: ; preds = %8
ret void
}
declare i32 @SET_TDI(...) #1
declare i32 @CLEAR_TDI(...) #1
declare i64 @SET_TDO(...) #1
declare i32 @JTAG_SPEED(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpx1ikaayw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bit_out_in(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %.lr.ph, label %45
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %40
%11 = load i32, ptr %4, align 4
%12 = and i32 %11, 1
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 (...) @SET_TDI()
br label %18
16: ; preds = %10
%17 = call i32 (...) @CLEAR_TDI()
br label %18
18: ; preds = %16, %14
%19 = load i32, ptr %4, align 4
%20 = ashr i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = call i64 (...) @SET_TDO()
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %18
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = or i32 %27, 1
%29 = trunc i32 %28 to i8
store i8 %29, ptr %25, align 1
br label %30
30: ; preds = %23, %18
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = shl i32 %34, 1
%36 = trunc i32 %35 to i8
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
store i8 %36, ptr %38, align 1
%39 = call i32 (...) @JTAG_SPEED()
br label %40
40: ; preds = %30
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %45
45: ; preds = %._crit_edge, %3
ret void
}
declare i32 @SET_TDI(...) #1
declare i32 @CLEAR_TDI(...) #1
declare i64 @SET_TDO(...) #1
declare i32 @JTAG_SPEED(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpe4r3aa92.c'
source_filename = "/tmp/tmpe4r3aa92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.dup\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_CLOEXEC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"open file.dup\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"fd = %d\0A\00", align 1
@F_GETFD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"fcntl error for fd %d\00", align 1
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"fd %d: close_on_exec\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"dup2 error for fd %d\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"fd2 = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"fd2 %d: close_on_exec\0A\00", align 1
@F_DUPFD_CLOEXEC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [26 x i8] c"fcntl dup error for fd %d\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"fd3 = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"fd3 %d: close_on_exec\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"hello world!\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"open & write to fd %d\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [24 x i8] c"seek to begin on fd %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"read '%s' on fd %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [128 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @O_RDWR, align 4
%13 = load i32, ptr @O_CREAT, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @O_CLOEXEC, align 4
%16 = or i32 %14, %15
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16, i32 noundef 420)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %2
store i32 0, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr @F_GETFD, align 4
%27 = call i32 @fcntl(i32 noundef %25, i32 noundef %26, i32 noundef 0)
store i32 %27, ptr %7, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %30)
br label %32
32: ; preds = %29, %22
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr @FD_CLOEXEC, align 4
%35 = and i32 %33, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38)
br label %40
40: ; preds = %37, %32
store i32 0, ptr %8, align 4
%41 = load i32, ptr %6, align 4
%42 = call i32 @dup2(i32 noundef %41, i32 noundef 100)
store i32 %42, ptr %8, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5, i32 noundef %45)
br label %47
47: ; preds = %44, %40
%48 = load i32, ptr %8, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %48)
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr @F_GETFD, align 4
%52 = call i32 @fcntl(i32 noundef %50, i32 noundef %51, i32 noundef 0)
store i32 %52, ptr %7, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %47
%55 = load i32, ptr %8, align 4
%56 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %55)
br label %57
57: ; preds = %54, %47
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr @FD_CLOEXEC, align 4
%60 = and i32 %58, %59
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load i32, ptr %8, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %63)
br label %65
65: ; preds = %62, %57
store i32 0, ptr %9, align 4
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr @F_DUPFD_CLOEXEC, align 4
%68 = call i32 @fcntl(i32 noundef %66, i32 noundef %67, i32 noundef 100)
store i32 %68, ptr %9, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = load i32, ptr %9, align 4
%72 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8, i32 noundef %71)
br label %73
73: ; preds = %70, %65
%74 = load i32, ptr %9, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %74)
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr @F_GETFD, align 4
%78 = call i32 @fcntl(i32 noundef %76, i32 noundef %77, i32 noundef 0)
store i32 %78, ptr %7, align 4
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %73
%81 = load i32, ptr %9, align 4
%82 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %81)
br label %83
83: ; preds = %80, %73
%84 = load i32, ptr %7, align 4
%85 = load i32, ptr @FD_CLOEXEC, align 4
%86 = and i32 %84, %85
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %83
%89 = load i32, ptr %9, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %89)
br label %91
91: ; preds = %88, %83
store ptr @.str.11, ptr %10, align 8
%92 = load i32, ptr %6, align 4
%93 = load ptr, ptr %10, align 8
%94 = load ptr, ptr %10, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = call i32 @write(i32 noundef %92, ptr noundef %93, i32 noundef %95)
%97 = load i32, ptr %6, align 4
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %97)
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr @SEEK_SET, align 4
%101 = call i32 @lseek(i32 noundef %99, i32 noundef 0, i32 noundef %100)
%102 = load i32, ptr %8, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %102)
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 128, i1 false)
%104 = load i32, ptr %9, align 4
%105 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%106 = call i32 @read(i32 noundef %104, ptr noundef %105, i32 noundef 127)
%107 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%108 = load i32, ptr %9, align 4
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %107, i32 noundef %108)
%110 = load i32, ptr %6, align 4
%111 = call i32 @close(i32 noundef %110)
%112 = load i32, ptr %8, align 4
%113 = call i32 @close(i32 noundef %112)
%114 = load i32, ptr %9, align 4
%115 = call i32 @close(i32 noundef %114)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4r3aa92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"file.dup\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_CLOEXEC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"open file.dup\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"fd = %d\0A\00", align 1
@F_GETFD = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"fcntl error for fd %d\00", align 1
@FD_CLOEXEC = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"fd %d: close_on_exec\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"dup2 error for fd %d\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"fd2 = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"fd2 %d: close_on_exec\0A\00", align 1
@F_DUPFD_CLOEXEC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [26 x i8] c"fcntl dup error for fd %d\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"fd3 = %d\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"fd3 %d: close_on_exec\0A\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"hello world!\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"open & write to fd %d\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [24 x i8] c"seek to begin on fd %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"read '%s' on fd %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [128 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @O_RDWR, align 4
%13 = load i32, ptr @O_CREAT, align 4
%14 = or i32 %12, %13
%15 = load i32, ptr @O_CLOEXEC, align 4
%16 = or i32 %14, %15
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16, i32 noundef 420)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %2
store i32 0, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr @F_GETFD, align 4
%27 = call i32 @fcntl(i32 noundef %25, i32 noundef %26, i32 noundef 0)
store i32 %27, ptr %7, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %30)
br label %32
32: ; preds = %29, %22
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr @FD_CLOEXEC, align 4
%35 = and i32 %33, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38)
br label %40
40: ; preds = %37, %32
store i32 0, ptr %8, align 4
%41 = load i32, ptr %6, align 4
%42 = call i32 @dup2(i32 noundef %41, i32 noundef 100)
store i32 %42, ptr %8, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.5, i32 noundef %45)
br label %47
47: ; preds = %44, %40
%48 = load i32, ptr %8, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %48)
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr @F_GETFD, align 4
%52 = call i32 @fcntl(i32 noundef %50, i32 noundef %51, i32 noundef 0)
store i32 %52, ptr %7, align 4
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %47
%55 = load i32, ptr %8, align 4
%56 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %55)
br label %57
57: ; preds = %54, %47
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr @FD_CLOEXEC, align 4
%60 = and i32 %58, %59
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load i32, ptr %8, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %63)
br label %65
65: ; preds = %62, %57
store i32 0, ptr %9, align 4
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr @F_DUPFD_CLOEXEC, align 4
%68 = call i32 @fcntl(i32 noundef %66, i32 noundef %67, i32 noundef 100)
store i32 %68, ptr %9, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = load i32, ptr %9, align 4
%72 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.8, i32 noundef %71)
br label %73
73: ; preds = %70, %65
%74 = load i32, ptr %9, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %74)
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr @F_GETFD, align 4
%78 = call i32 @fcntl(i32 noundef %76, i32 noundef %77, i32 noundef 0)
store i32 %78, ptr %7, align 4
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %73
%81 = load i32, ptr %9, align 4
%82 = call i32 (ptr, ...) @err_sys(ptr noundef @.str.3, i32 noundef %81)
br label %83
83: ; preds = %80, %73
%84 = load i32, ptr %7, align 4
%85 = load i32, ptr @FD_CLOEXEC, align 4
%86 = and i32 %84, %85
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %83
%89 = load i32, ptr %9, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %89)
br label %91
91: ; preds = %88, %83
store ptr @.str.11, ptr %10, align 8
%92 = load i32, ptr %6, align 4
%93 = load ptr, ptr %10, align 8
%94 = load ptr, ptr %10, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = call i32 @write(i32 noundef %92, ptr noundef %93, i32 noundef %95)
%97 = load i32, ptr %6, align 4
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %97)
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr @SEEK_SET, align 4
%101 = call i32 @lseek(i32 noundef %99, i32 noundef 0, i32 noundef %100)
%102 = load i32, ptr %8, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %102)
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 128, i1 false)
%104 = load i32, ptr %9, align 4
%105 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%106 = call i32 @read(i32 noundef %104, ptr noundef %105, i32 noundef 127)
%107 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%108 = load i32, ptr %9, align 4
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %107, i32 noundef %108)
%110 = load i32, ptr %6, align 4
%111 = call i32 @close(i32 noundef %110)
%112 = load i32, ptr %8, align 4
%113 = call i32 @close(i32 noundef %112)
%114 = load i32, ptr %9, align 4
%115 = call i32 @close(i32 noundef %114)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkfd0ecwe.c'
source_filename = "/tmp/tmpkfd0ecwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"%d %c %c %d %d\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%d%.2d%.2d%.2d%.2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 1, ptr %7, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %8, ptr noundef %9, ptr noundef %3, ptr noundef %4)
%11 = load i8, ptr %8, align 1
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %12, 64
store i32 %13, ptr %5, align 4
%14 = load i8, ptr %9, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 64
store i32 %16, ptr %6, align 4
br label %17
17: ; preds = %21, %0
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %7, align 4
%27 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26)
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %17, !llvm.loop !6
30: ; preds = %17
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkfd0ecwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"%d %c %c %d %d\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%d%.2d%.2d%.2d%.2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 1, ptr %7, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %8, ptr noundef %9, ptr noundef %3, ptr noundef %4)
%11 = load i8, ptr %8, align 1
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %12, 64
store i32 %13, ptr %5, align 4
%14 = load i8, ptr %9, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 64
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %7, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %32
32: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp90n89yyu.c'
source_filename = "/tmp/tmp90n89yyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xb7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xb7() #0 {
%1 = call i64 @iscntrl(i32 noundef 183)
%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 920, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp90n89yyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xb7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xb7() #0 {
%1 = call i64 @iscntrl(i32 noundef 183)
%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 920, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmplzgpf7il.c'
source_filename = "/tmp/tmplzgpf7il.c"
target datalayout = "e-m:e-p270: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/tmplzgpf7il.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.