llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp5h6zxb_1.c'
source_filename = "/tmp/tmp5h6zxb_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@__const.main.newargv = private unnamed_addr constant [4 x ptr] [ptr null, ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [13 x i8] c"USER=unknown\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"PATH=/tmp\00", align 1
@__const.main.newenv = private unnamed_addr constant [3 x ptr] [ptr @.str.2, ptr @.str.3, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [26 x i8] c"Usage: %s <file-to-exec>\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"execv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [4 x ptr], align 16
%9 = alloca [3 x ptr], align 16
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.newargv, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.newenv, i64 24, i1 false)
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.4, ptr noundef %16)
store i32 -1, ptr %4, align 4
br label %30
18: ; preds = %3
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
store ptr %21, ptr %22, align 16
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%27 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
%28 = call i32 @execve(ptr noundef %25, ptr noundef %26, ptr noundef %27)
%29 = call i32 @perror(ptr noundef @.str.5)
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %18, %12
%31 = load i32, ptr %4, align 4
ret i32 %31
}
; 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 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5h6zxb_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@__const.main.newargv = private unnamed_addr constant [4 x ptr] [ptr null, ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [13 x i8] c"USER=unknown\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"PATH=/tmp\00", align 1
@__const.main.newenv = private unnamed_addr constant [3 x ptr] [ptr @.str.2, ptr @.str.3, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [26 x i8] c"Usage: %s <file-to-exec>\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"execv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [4 x ptr], align 16
%9 = alloca [3 x ptr], align 16
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.newargv, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.newenv, i64 24, i1 false)
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %3
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.4, ptr noundef %16)
store i32 -1, ptr %4, align 4
br label %30
18: ; preds = %3
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
store ptr %21, ptr %22, align 16
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 0
%27 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
%28 = call i32 @execve(ptr noundef %25, ptr noundef %26, ptr noundef %27)
%29 = call i32 @perror(ptr noundef @.str.5)
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %18, %12
%31 = load i32, ptr %4, align 4
ret i32 %31
}
; 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 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpshneae9s.c'
source_filename = "/tmp/tmpshneae9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [56 x i8] c"wrong # args, try %s <mac-address> [<mac-address> ...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Cannot parse MAC '%s'\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Cannot resolve manufacturer from MAC '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%s => %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [6 x i8], align 1
%8 = alloca i32, align 4
%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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #4
unreachable
19: ; preds = %2
store i32 1, ptr %6, align 4
br label %20
20: ; preds = %63, %19
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %66
24: ; preds = %20
call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 6, i1 false)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%31 = call i32 @parseMAC(ptr noundef %29, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %42
34: ; preds = %24
%35 = load i32, ptr @stderr, align 4
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.1, ptr noundef %40)
br label %63
42: ; preds = %24
%43 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%44 = call ptr @macsearch(ptr noundef %43, i32 noundef 6)
store ptr %44, ptr %9, align 8
%45 = load ptr, ptr %9, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %55
47: ; preds = %42
%48 = load i32, ptr @stderr, align 4
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = call i32 @fprintf(i32 noundef %48, ptr noundef @.str.2, ptr noundef %53)
br label %63
55: ; preds = %42
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load ptr, ptr %9, align 8
%62 = call i32 @printf(ptr noundef @.str.3, ptr noundef %60, ptr noundef %61)
br label %63
63: ; preds = %55, %47, %34
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %20, !llvm.loop !6
66: ; preds = %20
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @parseMAC(ptr noundef, ptr noundef) #1
declare ptr @macsearch(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpshneae9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [56 x i8] c"wrong # args, try %s <mac-address> [<mac-address> ...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Cannot parse MAC '%s'\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Cannot resolve manufacturer from MAC '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%s => %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [6 x i8], align 1
%8 = alloca i32, align 4
%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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #4
unreachable
19: ; preds = %2
store i32 1, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %68
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %62
call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 6, i1 false)
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%30 = call i32 @parseMAC(ptr noundef %28, ptr noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %23
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = call i32 @fprintf(i32 noundef %34, ptr noundef @.str.1, ptr noundef %39)
br label %62
41: ; preds = %23
%42 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%43 = call ptr @macsearch(ptr noundef %42, i32 noundef 6)
store ptr %43, ptr %9, align 8
%44 = load ptr, ptr %9, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %54
46: ; preds = %41
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.2, ptr noundef %52)
br label %62
54: ; preds = %41
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load ptr, ptr %9, align 8
%61 = call i32 @printf(ptr noundef @.str.3, ptr noundef %59, ptr noundef %60)
br label %62
62: ; preds = %54, %46, %33
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %19
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @parseMAC(ptr noundef, ptr noundef) #1
declare ptr @macsearch(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_qt11vuy.c'
source_filename = "/tmp/tmp_qt11vuy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @InvMixColumns(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = call i32 @InvMixColumn(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 4
%8 = call i32 @InvMixColumn(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 8
%11 = call i32 @InvMixColumn(ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 12
%14 = call i32 @InvMixColumn(ptr noundef %13)
ret void
}
declare i32 @InvMixColumn(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_qt11vuy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @InvMixColumns(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = call i32 @InvMixColumn(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 4
%8 = call i32 @InvMixColumn(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 8
%11 = call i32 @InvMixColumn(ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 12
%14 = call i32 @InvMixColumn(ptr noundef %13)
ret void
}
declare i32 @InvMixColumn(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77nhh_cn.c'
source_filename = "/tmp/tmp77nhh_cn.c"
target datalayout = "e-m:e-p270: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/tmp77nhh_cn.c"
target datalayout = "e-m:e-p270: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/tmp7z2rcu8d.c'
source_filename = "/tmp/tmp7z2rcu8d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FUTEX_LOCK_PI = dso_local global i32 0, align 4
@SYS_futex = 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/tmp7z2rcu8d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FUTEX_LOCK_PI = dso_local global i32 0, align 4
@SYS_futex = 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/tmpnz_yu_87.c'
source_filename = "/tmp/tmpnz_yu_87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @swap_minimal_size() #0 {
%1 = call i32 (...) @swap_fs_free()
%2 = icmp slt i32 %1, 8388608
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 0, i32 8388608
ret i32 %4
}
declare i32 @swap_fs_free(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnz_yu_87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @swap_minimal_size() #0 {
%1 = call i32 (...) @swap_fs_free()
%2 = icmp slt i32 %1, 8388608
%3 = zext i1 %2 to i64
%4 = select i1 %2, i32 0, i32 8388608
ret i32 %4
}
declare i32 @swap_fs_free(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8gisdr1y.c'
source_filename = "/tmp/tmp8gisdr1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xl1\00", align 1
@IPPROTO_TCP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"get_redirect_rule() failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"\0A%s:%d '%s' packets=%llu bytes=%llu\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 [32 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca i16, align 2
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%11 = call i32 (...) @list_rules()
%12 = load i32, ptr @IPPROTO_TCP, align 4
%13 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%14 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%15 = call i64 @get_redirect_rule(ptr noundef @.str, i32 noundef 4662, i32 noundef %12, ptr noundef %13, i32 noundef 32, ptr noundef %8, ptr noundef %14, i32 noundef 64, ptr noundef %9, ptr noundef %10)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
19: ; preds = %2
%20 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%21 = load i16, ptr %8, align 2
%22 = zext i16 %21 to i32
%23 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %10, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %20, i32 noundef %22, ptr noundef %23, i32 noundef %24, i32 noundef %25)
br label %27
27: ; preds = %19, %17
ret i32 0
}
declare i32 @list_rules(...) #1
declare i64 @get_redirect_rule(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8gisdr1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xl1\00", align 1
@IPPROTO_TCP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"get_redirect_rule() failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"\0A%s:%d '%s' packets=%llu bytes=%llu\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 [32 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca i16, align 2
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%11 = call i32 (...) @list_rules()
%12 = load i32, ptr @IPPROTO_TCP, align 4
%13 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%14 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%15 = call i64 @get_redirect_rule(ptr noundef @.str, i32 noundef 4662, i32 noundef %12, ptr noundef %13, i32 noundef 32, ptr noundef %8, ptr noundef %14, i32 noundef 64, ptr noundef %9, ptr noundef %10)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
19: ; preds = %2
%20 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%21 = load i16, ptr %8, align 2
%22 = zext i16 %21 to i32
%23 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %10, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %20, i32 noundef %22, ptr noundef %23, i32 noundef %24, i32 noundef %25)
br label %27
27: ; preds = %19, %17
ret i32 0
}
declare i32 @list_rules(...) #1
declare i64 @get_redirect_rule(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmpl_qpxlwi.c'
source_filename = "/tmp/tmpl_qpxlwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @wcslen(ptr noundef %6)
store i64 %7, ptr %4, align 8
%8 = load i64, ptr %4, align 8
%9 = add i64 %8, 1
%10 = mul i64 %9, 4
%11 = call ptr @malloc(i64 noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %21
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 1
%20 = call ptr @wmemcpy(ptr noundef %16, ptr noundef %17, i64 noundef %19)
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %15, %14
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare i64 @wcslen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @wmemcpy(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/tmpl_qpxlwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @wcslen(ptr noundef %6)
store i64 %7, ptr %4, align 8
%8 = load i64, ptr %4, align 8
%9 = add i64 %8, 1
%10 = mul i64 %9, 4
%11 = call ptr @malloc(i64 noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %21
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 1
%20 = call ptr @wmemcpy(ptr noundef %16, ptr noundef %17, i64 noundef %19)
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %15, %14
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare i64 @wcslen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @wmemcpy(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/tmpmpgb0ipr.c'
source_filename = "/tmp/tmpmpgb0ipr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"copying file\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"-- source: \00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"-- destination: \00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"-- file already exists\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"-- moving on...\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EACCES = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [37 x i8] c"-- no permission to open source file\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"-- no such source file\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.9 = private unnamed_addr constant [49 x i8] c"-- no permission to open/create destination file\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c"-- couldn't open/create destination file\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"-- file copied\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store i8 0, ptr %9, align 16
%10 = call i32 @print_log(ptr noundef @.str)
%11 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @strcat(ptr noundef %11, ptr noundef @.str.1)
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcat(ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%17 = call i32 @print_log(ptr noundef %16)
%18 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store i8 0, ptr %18, align 16
%19 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%20 = call i32 @strcat(ptr noundef %19, ptr noundef @.str.2)
%21 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%22 = load ptr, ptr %4, align 8
%23 = call i32 @strcat(ptr noundef %21, ptr noundef %22)
%24 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%25 = call i32 @print_log(ptr noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr @F_OK, align 4
%28 = call i32 @access(ptr noundef %26, i32 noundef %27)
%29 = icmp ne i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %2
%31 = call i32 @print_log(ptr noundef @.str.3)
%32 = call i32 @print_log(ptr noundef @.str.4)
br label %84
33: ; preds = %2
%34 = load ptr, ptr %3, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str.5)
store ptr %35, ptr %6, align 8
%36 = load i64, ptr @EACCES, align 8
%37 = load i64, ptr @errno, align 8
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = call i32 @print_log(ptr noundef @.str.6)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %33
%43 = load ptr, ptr %6, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @print_log(ptr noundef @.str.7)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %42
br label %49
49: ; preds = %48
%50 = load ptr, ptr %4, align 8
%51 = call ptr @fopen(ptr noundef %50, ptr noundef @.str.8)
store ptr %51, ptr %7, align 8
%52 = load i64, ptr @EACCES, align 8
%53 = load i64, ptr @errno, align 8
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %49
%56 = call i32 @print_log(ptr noundef @.str.9)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %49
%59 = load ptr, ptr %7, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = call i32 @print_log(ptr noundef @.str.10)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %58
br label %65
65: ; preds = %72, %64
%66 = load ptr, ptr %6, align 8
%67 = call signext i8 @fgetc(ptr noundef %66)
store i8 %67, ptr %8, align 1
%68 = sext i8 %67 to i32
%69 = load i8, ptr @EOF, align 1
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %68, %70
br i1 %71, label %72, label %76
72: ; preds = %65
%73 = load i8, ptr %8, align 1
%74 = load ptr, ptr %7, align 8
%75 = call i32 @fputc(i8 noundef signext %73, ptr noundef %74)
br label %65, !llvm.loop !6
76: ; preds = %65
%77 = call i32 @print_log(ptr noundef @.str.11)
br label %78
78: ; preds = %76
br label %79
79: ; preds = %78
%80 = load ptr, ptr %6, align 8
%81 = call i32 @fclose(ptr noundef %80)
%82 = load ptr, ptr %7, align 8
%83 = call i32 @fclose(ptr noundef %82)
br label %84
84: ; preds = %79, %30
ret void
}
declare i32 @print_log(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpmpgb0ipr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"copying file\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"-- source: \00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"-- destination: \00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"-- file already exists\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"-- moving on...\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EACCES = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [37 x i8] c"-- no permission to open source file\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"-- no such source file\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.9 = private unnamed_addr constant [49 x i8] c"-- no permission to open/create destination file\00", align 1
@.str.10 = private unnamed_addr constant [41 x i8] c"-- couldn't open/create destination file\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"-- file copied\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [100 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store i8 0, ptr %9, align 16
%10 = call i32 @print_log(ptr noundef @.str)
%11 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @strcat(ptr noundef %11, ptr noundef @.str.1)
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strcat(ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%17 = call i32 @print_log(ptr noundef %16)
%18 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store i8 0, ptr %18, align 16
%19 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%20 = call i32 @strcat(ptr noundef %19, ptr noundef @.str.2)
%21 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%22 = load ptr, ptr %4, align 8
%23 = call i32 @strcat(ptr noundef %21, ptr noundef %22)
%24 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%25 = call i32 @print_log(ptr noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr @F_OK, align 4
%28 = call i32 @access(ptr noundef %26, i32 noundef %27)
%29 = icmp ne i32 %28, -1
br i1 %29, label %30, label %33
30: ; preds = %2
%31 = call i32 @print_log(ptr noundef @.str.3)
%32 = call i32 @print_log(ptr noundef @.str.4)
br label %89
33: ; preds = %2
%34 = load ptr, ptr %3, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str.5)
store ptr %35, ptr %6, align 8
%36 = load i64, ptr @EACCES, align 8
%37 = load i64, ptr @errno, align 8
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = call i32 @print_log(ptr noundef @.str.6)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %33
%43 = load ptr, ptr %6, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @print_log(ptr noundef @.str.7)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %42
br label %49
49: ; preds = %48
%50 = load ptr, ptr %4, align 8
%51 = call ptr @fopen(ptr noundef %50, ptr noundef @.str.8)
store ptr %51, ptr %7, align 8
%52 = load i64, ptr @EACCES, align 8
%53 = load i64, ptr @errno, align 8
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %49
%56 = call i32 @print_log(ptr noundef @.str.9)
%57 = call i32 @exit(i32 noundef 1) #3
unreachable
58: ; preds = %49
%59 = load ptr, ptr %7, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = call i32 @print_log(ptr noundef @.str.10)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %58
%65 = load ptr, ptr %6, align 8
%66 = call signext i8 @fgetc(ptr noundef %65)
store i8 %66, ptr %8, align 1
%67 = sext i8 %66 to i32
%68 = load i8, ptr @EOF, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %67, %69
br i1 %70, label %.lr.ph, label %81
.lr.ph: ; preds = %64
br label %71
71: ; preds = %.lr.ph, %71
%72 = load i8, ptr %8, align 1
%73 = load ptr, ptr %7, align 8
%74 = call i32 @fputc(i8 noundef signext %72, ptr noundef %73)
%75 = load ptr, ptr %6, align 8
%76 = call signext i8 @fgetc(ptr noundef %75)
store i8 %76, ptr %8, align 1
%77 = sext i8 %76 to i32
%78 = load i8, ptr @EOF, align 1
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %77, %79
br i1 %80, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %71
br label %81
81: ; preds = %._crit_edge, %64
%82 = call i32 @print_log(ptr noundef @.str.11)
br label %83
83: ; preds = %81
br label %84
84: ; preds = %83
%85 = load ptr, ptr %6, align 8
%86 = call i32 @fclose(ptr noundef %85)
%87 = load ptr, ptr %7, align 8
%88 = call i32 @fclose(ptr noundef %87)
br label %89
89: ; preds = %84, %30
ret void
}
declare i32 @print_log(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpvkm005x8.c'
source_filename = "/tmp/tmpvkm005x8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"thr1 sleeping \0A\00", align 1
@SIGUSR1 = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"thr1 exiting err=%d, n=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr1(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
%6 = call i32 (ptr, ...) @pr(ptr noundef @.str)
%7 = load i32, ptr @SIGUSR1, align 4
%8 = call i32 @blocksig(i32 noundef %7)
%9 = call i32 @sigemptyset(ptr noundef %3)
%10 = load i32, ptr @SIGUSR1, align 4
%11 = call i32 @sigaddset(ptr noundef %3, i32 noundef %10)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%12 = call i32 @sigwait(ptr noundef %3, ptr noundef %5)
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 (ptr, ...) @pr(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
ret ptr null
}
declare i32 @pr(ptr noundef, ...) #1
declare i32 @blocksig(i32 noundef) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigwait(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/tmpvkm005x8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"thr1 sleeping \0A\00", align 1
@SIGUSR1 = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"thr1 exiting err=%d, n=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr1(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
%6 = call i32 (ptr, ...) @pr(ptr noundef @.str)
%7 = load i32, ptr @SIGUSR1, align 4
%8 = call i32 @blocksig(i32 noundef %7)
%9 = call i32 @sigemptyset(ptr noundef %3)
%10 = load i32, ptr @SIGUSR1, align 4
%11 = call i32 @sigaddset(ptr noundef %3, i32 noundef %10)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%12 = call i32 @sigwait(ptr noundef %3, ptr noundef %5)
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 (ptr, ...) @pr(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
ret ptr null
}
declare i32 @pr(ptr noundef, ...) #1
declare i32 @blocksig(i32 noundef) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigwait(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/tmpe4ci2762.c'
source_filename = "/tmp/tmpe4ci2762.c"
target datalayout = "e-m:e-p270: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/tmpe4ci2762.c"
target datalayout = "e-m:e-p270: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/tmpuqhfbcw8.c'
source_filename = "/tmp/tmpuqhfbcw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_timeval(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = add nsw i64 %10, %7
store i64 %11, ptr %9, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 0
%17 = load i32, ptr %16, align 8
%18 = add nsw i32 %17, %14
store i32 %18, ptr %16, align 8
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds %struct.timeval, ptr %19, i32 0, i32 0
%21 = load i32, ptr %20, align 8
%22 = icmp sgt i32 %21, 1000000
br i1 %22, label %23, label %32
23: ; preds = %2
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.timeval, ptr %24, i32 0, i32 1
%26 = load i64, ptr %25, align 8
%27 = add nsw i64 %26, 1
store i64 %27, ptr %25, align 8
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.timeval, ptr %28, i32 0, i32 0
%30 = load i32, ptr %29, align 8
%31 = sub nsw i32 %30, 1000000
store i32 %31, ptr %29, align 8
br label %32
32: ; preds = %23, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqhfbcw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_timeval(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %5, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %8, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = add nsw i64 %10, %7
store i64 %11, ptr %9, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 8
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 0
%17 = load i32, ptr %16, align 8
%18 = add nsw i32 %17, %14
store i32 %18, ptr %16, align 8
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds %struct.timeval, ptr %19, i32 0, i32 0
%21 = load i32, ptr %20, align 8
%22 = icmp sgt i32 %21, 1000000
br i1 %22, label %23, label %32
23: ; preds = %2
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.timeval, ptr %24, i32 0, i32 1
%26 = load i64, ptr %25, align 8
%27 = add nsw i64 %26, 1
store i64 %27, ptr %25, align 8
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.timeval, ptr %28, i32 0, i32 0
%30 = load i32, ptr %29, align 8
%31 = sub nsw i32 %30, 1000000
store i32 %31, ptr %29, align 8
br label %32
32: ; preds = %23, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw9ilq45s.c'
source_filename = "/tmp/tmpw9ilq45s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"result:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @foo(i32 noundef 3, i32 noundef 4)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @foo(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw9ilq45s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"result:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @foo(i32 noundef 3, i32 noundef 4)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @foo(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnro3r9ku.c'
source_filename = "/tmp/tmpnro3r9ku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMRTEXTOUT_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 6
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %8, %2
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = call i32 @U_WMRCORE_N16_swap(ptr noundef %13, i32 noundef 1, i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %12
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 6
%21 = load i32, ptr %20, align 4
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %18, %12
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = call i32 @U_swap2(ptr noundef %27, i32 noundef 2)
ret void
}
declare i32 @U_WMRCORE_N16_swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @U_swap2(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/tmpnro3r9ku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMRTEXTOUT_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 6
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %8, %2
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = call i32 @U_WMRCORE_N16_swap(ptr noundef %13, i32 noundef 1, i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %12
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 6
%21 = load i32, ptr %20, align 4
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %18, %12
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = call i32 @U_swap2(ptr noundef %27, i32 noundef 2)
ret void
}
declare i32 @U_WMRCORE_N16_swap(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @U_swap2(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/tmpcpl4kdgk.c'
source_filename = "/tmp/tmpcpl4kdgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @b1()
%3 = call i32 (...) @b2()
br label %4
4: ; preds = %0, %4
br label %4
}
declare i32 @b1(...) #1
declare i32 @b2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcpl4kdgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @b1()
%3 = call i32 (...) @b2()
br label %4
4: ; preds = %4, %0
br label %4
}
declare i32 @b1(...) #1
declare i32 @b2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn1fztadn.c'
source_filename = "/tmp/tmpn1fztadn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENXIO = 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/tmpn1fztadn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENXIO = 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/tmpdlc1tx1s.c'
source_filename = "/tmp/tmpdlc1tx1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @M_SubRandom() #0 {
%1 = call i32 (...) @fastrand()
%2 = and i32 %1, 510
%3 = sub nsw i32 %2, 255
ret i32 %3
}
declare i32 @fastrand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdlc1tx1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @M_SubRandom() #0 {
%1 = call i32 (...) @fastrand()
%2 = and i32 %1, 510
%3 = sub nsw i32 %2, 255
ret i32 %3
}
declare i32 @fastrand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq9yee5im.c'
source_filename = "/tmp/tmpq9yee5im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sub = %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"sub2) writting '%c'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sub(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
%15 = load i64, ptr %9, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %5
%18 = load ptr, ptr %7, align 8
store i8 0, ptr %18, align 1
store i32 0, ptr %6, align 4
br label %80
19: ; preds = %5
%20 = load i64, ptr %11, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %9, align 8
%26 = call i32 @strncpy(ptr noundef %23, ptr noundef %24, i64 noundef %25)
%27 = load i64, ptr %9, align 8
%28 = trunc i64 %27 to i32
store i32 %28, ptr %6, align 4
br label %80
29: ; preds = %19
br label %30
30: ; preds = %29
store i32 0, ptr %12, align 4
store i32 0, ptr %14, align 4
br label %31
31: ; preds = %75, %30
%32 = load i32, ptr %14, align 4
%33 = sext i32 %32 to i64
%34 = load i64, ptr %11, align 8
%35 = icmp ult i64 %33, %34
br i1 %35, label %36, label %78
36: ; preds = %31
%37 = load ptr, ptr %10, align 8
%38 = load i8, ptr %37, align 1
%39 = call i32 @printf(ptr noundef @.str, i8 noundef signext %38)
br label %40
40: ; preds = %53, %36
%41 = load i64, ptr %9, align 8
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %51
43: ; preds = %40
%44 = load ptr, ptr %8, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load ptr, ptr %10, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp slt i32 %46, %49
br label %51
51: ; preds = %43, %40
%52 = phi i1 [ false, %40 ], [ %50, %43 ]
br i1 %52, label %53, label %68
53: ; preds = %51
%54 = load ptr, ptr %8, align 8
%55 = load i8, ptr %54, align 1
%56 = load ptr, ptr %7, align 8
store i8 %55, ptr %56, align 1
%57 = load ptr, ptr %7, align 8
%58 = load i8, ptr %57, align 1
%59 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %58)
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 1
store ptr %61, ptr %7, align 8
%62 = load i32, ptr %12, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %12, align 4
%64 = load ptr, ptr %8, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %8, align 8
%66 = load i64, ptr %9, align 8
%67 = add i64 %66, -1
store i64 %67, ptr %9, align 8
br label %40, !llvm.loop !6
68: ; preds = %51
%69 = load ptr, ptr %10, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %10, align 8
%71 = load ptr, ptr %8, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %8, align 8
%73 = load i64, ptr %9, align 8
%74 = add i64 %73, -1
store i64 %74, ptr %9, align 8
br label %75
75: ; preds = %68
%76 = load i32, ptr %14, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %14, align 4
br label %31, !llvm.loop !8
78: ; preds = %31
%79 = load i32, ptr %12, align 4
store i32 %79, ptr %6, align 4
br label %80
80: ; preds = %78, %22, %17
%81 = load i32, ptr %6, align 4
ret i32 %81
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq9yee5im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sub = %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"sub2) writting '%c'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sub(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
%15 = load i64, ptr %9, align 8
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %5
%18 = load ptr, ptr %7, align 8
store i8 0, ptr %18, align 1
store i32 0, ptr %6, align 4
br label %83
19: ; preds = %5
%20 = load i64, ptr %11, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %9, align 8
%26 = call i32 @strncpy(ptr noundef %23, ptr noundef %24, i64 noundef %25)
%27 = load i64, ptr %9, align 8
%28 = trunc i64 %27 to i32
store i32 %28, ptr %6, align 4
br label %83
29: ; preds = %19
br label %30
30: ; preds = %29
store i32 0, ptr %12, align 4
store i32 0, ptr %14, align 4
%31 = load i32, ptr %14, align 4
%32 = sext i32 %31 to i64
%33 = load i64, ptr %11, align 8
%34 = icmp ult i64 %32, %33
br i1 %34, label %.lr.ph, label %81
.lr.ph: ; preds = %30
br label %35
35: ; preds = %.lr.ph, %74
%36 = load ptr, ptr %10, align 8
%37 = load i8, ptr %36, align 1
%38 = call i32 @printf(ptr noundef @.str, i8 noundef signext %37)
br label %39
39: ; preds = %52, %35
%40 = load i64, ptr %9, align 8
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %50
42: ; preds = %39
%43 = load ptr, ptr %8, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = load ptr, ptr %10, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp slt i32 %45, %48
br label %50
50: ; preds = %42, %39
%51 = phi i1 [ false, %39 ], [ %49, %42 ]
br i1 %51, label %52, label %67
52: ; preds = %50
%53 = load ptr, ptr %8, align 8
%54 = load i8, ptr %53, align 1
%55 = load ptr, ptr %7, align 8
store i8 %54, ptr %55, align 1
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %57)
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %7, align 8
%61 = load i32, ptr %12, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %12, align 4
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 1
store ptr %64, ptr %8, align 8
%65 = load i64, ptr %9, align 8
%66 = add i64 %65, -1
store i64 %66, ptr %9, align 8
br label %39, !llvm.loop !6
67: ; preds = %50
%68 = load ptr, ptr %10, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %10, align 8
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %8, align 8
%72 = load i64, ptr %9, align 8
%73 = add i64 %72, -1
store i64 %73, ptr %9, align 8
br label %74
74: ; preds = %67
%75 = load i32, ptr %14, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %14, align 4
%77 = load i32, ptr %14, align 4
%78 = sext i32 %77 to i64
%79 = load i64, ptr %11, align 8
%80 = icmp ult i64 %78, %79
br i1 %80, label %35, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %74
br label %81
81: ; preds = %._crit_edge, %30
%82 = load i32, ptr %12, align 4
store i32 %82, ptr %6, align 4
br label %83
83: ; preds = %81, %22, %17
%84 = load i32, ptr %6, align 4
ret i32 %84
}
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp95167boy.c'
source_filename = "/tmp/tmp95167boy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetTok(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i8 0, ptr %8, align 1
store i32 0, ptr %10, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %11, align 8
%13 = call ptr @realloc(ptr noundef %12, i32 noundef 258)
%14 = load ptr, ptr %7, align 8
store ptr %13, ptr %14, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %22
17: ; preds = %3
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %17, %3
store ptr null, ptr %4, align 8
br label %115
23: ; preds = %17
%24 = load ptr, ptr %5, align 8
store ptr %24, ptr %9, align 8
br label %25
25: ; preds = %94, %23
%26 = load ptr, ptr %9, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %97
30: ; preds = %25
%31 = load ptr, ptr %9, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %30
br label %97
36: ; preds = %30
%37 = load i8, ptr %8, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %49
40: ; preds = %36
%41 = load ptr, ptr %9, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = load i8, ptr %8, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %43, %45
br i1 %46, label %47, label %48
47: ; preds = %40
store i8 0, ptr %8, align 1
br label %48
48: ; preds = %47, %40
br label %89
49: ; preds = %36
%50 = load ptr, ptr %9, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 34
br i1 %53, label %59, label %54
54: ; preds = %49
%55 = load ptr, ptr %9, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 39
br i1 %58, label %59, label %62
59: ; preds = %54, %49
%60 = load ptr, ptr %9, align 8
%61 = load i8, ptr %60, align 1
store i8 %61, ptr %8, align 1
br label %88
62: ; preds = %54
%63 = load ptr, ptr %6, align 8
%64 = load ptr, ptr %9, align 8
%65 = load i8, ptr %64, align 1
%66 = call i64 @strchr(ptr noundef %63, i8 noundef signext %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %62
br label %97
69: ; preds = %62
%70 = load ptr, ptr %9, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 92
br i1 %73, label %74, label %77
74: ; preds = %69
%75 = load ptr, ptr %9, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %9, align 8
br label %77
77: ; preds = %74, %69
%78 = load ptr, ptr %9, align 8
%79 = load i8, ptr %78, align 1
%80 = load ptr, ptr %7, align 8
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %10, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, ptr %81, i64 %83
store i8 %79, ptr %84, align 1
%85 = load i32, ptr %10, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %10, align 4
br label %87
87: ; preds = %77
br label %88
88: ; preds = %87, %59
br label %89
89: ; preds = %88, %48
%90 = load i32, ptr %10, align 4
%91 = icmp sgt i32 %90, 256
br i1 %91, label %92, label %93
92: ; preds = %89
br label %97
93: ; preds = %89
br label %94
94: ; preds = %93
%95 = load ptr, ptr %9, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 1
store ptr %96, ptr %9, align 8
br label %25, !llvm.loop !6
97: ; preds = %92, %68, %35, %25
%98 = load ptr, ptr %7, align 8
%99 = load ptr, ptr %98, align 8
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %99, i64 %101
store i8 0, ptr %102, align 1
%103 = load ptr, ptr %7, align 8
%104 = load ptr, ptr %103, align 8
%105 = call i32 @StripQuotes(ptr noundef %104)
%106 = load ptr, ptr %9, align 8
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %97
%111 = load ptr, ptr %9, align 8
%112 = getelementptr inbounds i8, ptr %111, i32 1
store ptr %112, ptr %9, align 8
br label %113
113: ; preds = %110, %97
%114 = load ptr, ptr %9, align 8
store ptr %114, ptr %4, align 8
br label %115
115: ; preds = %113, %22
%116 = load ptr, ptr %4, align 8
ret ptr %116
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @StripQuotes(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp95167boy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetTok(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i8 0, ptr %8, align 1
store i32 0, ptr %10, align 4
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %11, align 8
%13 = call ptr @realloc(ptr noundef %12, i32 noundef 258)
%14 = load ptr, ptr %7, align 8
store ptr %13, ptr %14, align 8
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %22
17: ; preds = %3
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %17, %3
store ptr null, ptr %4, align 8
br label %118
23: ; preds = %17
%24 = load ptr, ptr %5, align 8
store ptr %24, ptr %9, align 8
%25 = load ptr, ptr %9, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %23
br label %29
29: ; preds = %.lr.ph, %93
%30 = load ptr, ptr %9, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %29
br label %100
35: ; preds = %29
%36 = load i8, ptr %8, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = load ptr, ptr %9, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %8, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %42, %44
br i1 %45, label %46, label %47
46: ; preds = %39
store i8 0, ptr %8, align 1
br label %47
47: ; preds = %46, %39
br label %88
48: ; preds = %35
%49 = load ptr, ptr %9, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 34
br i1 %52, label %58, label %53
53: ; preds = %48
%54 = load ptr, ptr %9, align 8
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 39
br i1 %57, label %58, label %61
58: ; preds = %53, %48
%59 = load ptr, ptr %9, align 8
%60 = load i8, ptr %59, align 1
store i8 %60, ptr %8, align 1
br label %87
61: ; preds = %53
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i8, ptr %63, align 1
%65 = call i64 @strchr(ptr noundef %62, i8 noundef signext %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %61
br label %100
68: ; preds = %61
%69 = load ptr, ptr %9, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 92
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = load ptr, ptr %9, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %9, align 8
br label %76
76: ; preds = %73, %68
%77 = load ptr, ptr %9, align 8
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %7, align 8
%80 = load ptr, ptr %79, align 8
%81 = load i32, ptr %10, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
store i8 %78, ptr %83, align 1
%84 = load i32, ptr %10, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %10, align 4
br label %86
86: ; preds = %76
br label %87
87: ; preds = %86, %58
br label %88
88: ; preds = %87, %47
%89 = load i32, ptr %10, align 4
%90 = icmp sgt i32 %89, 256
br i1 %90, label %91, label %92
91: ; preds = %88
br label %100
92: ; preds = %88
br label %93
93: ; preds = %92
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %9, align 8
%96 = load ptr, ptr %9, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 0
br i1 %99, label %29, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %93
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %23
br label %100
100: ; preds = %.loopexit, %91, %67, %34
%101 = load ptr, ptr %7, align 8
%102 = load ptr, ptr %101, align 8
%103 = load i32, ptr %10, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
store i8 0, ptr %105, align 1
%106 = load ptr, ptr %7, align 8
%107 = load ptr, ptr %106, align 8
%108 = call i32 @StripQuotes(ptr noundef %107)
%109 = load ptr, ptr %9, align 8
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %100
%114 = load ptr, ptr %9, align 8
%115 = getelementptr inbounds i8, ptr %114, i32 1
store ptr %115, ptr %9, align 8
br label %116
116: ; preds = %113, %100
%117 = load ptr, ptr %9, align 8
store ptr %117, ptr %4, align 8
br label %118
118: ; preds = %116, %22
%119 = load ptr, ptr %4, align 8
ret ptr %119
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @StripQuotes(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpv5dn38tt.c'
source_filename = "/tmp/tmpv5dn38tt.c"
target datalayout = "e-m:e-p270: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/tmpv5dn38tt.c"
target datalayout = "e-m:e-p270: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/tmpnizqzvbi.c'
source_filename = "/tmp/tmpnizqzvbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_float_two(ptr noalias noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %35, %4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %38
14: ; preds = %10
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = icmp ne i32 %19, 1
br i1 %20, label %21, label %28
21: ; preds = %14
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds float, ptr %22, i64 %24
%26 = load float, ptr %25, align 4
%27 = fmul float %26, 2.000000e+00
br label %29
28: ; preds = %14
br label %29
29: ; preds = %28, %21
%30 = phi float [ %27, %21 ], [ 0.000000e+00, %28 ]
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds float, ptr %31, i64 %33
store float %30, ptr %34, align 4
br label %35
35: ; preds = %29
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
br label %10, !llvm.loop !6
38: ; preds = %10
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/tmpnizqzvbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_float_two(ptr noalias noundef %0, ptr noalias noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %40
.lr.ph: ; preds = %4
br label %13
13: ; preds = %.lr.ph, %34
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp ne i32 %18, 1
br i1 %19, label %20, label %27
20: ; preds = %13
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, ptr %21, i64 %23
%25 = load float, ptr %24, align 4
%26 = fmul float %25, 2.000000e+00
br label %28
27: ; preds = %13
br label %28
28: ; preds = %27, %20
%29 = phi float [ %26, %20 ], [ 0.000000e+00, %27 ]
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds float, ptr %30, i64 %32
store float %29, ptr %33, align 4
br label %34
34: ; preds = %28
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsxirbupg.c'
source_filename = "/tmp/tmpsxirbupg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Could not open file \22%s\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initmpeg2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.1, ptr noundef %15)
store i32 0, ptr %4, align 4
br label %22
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @_initmpeg2(ptr noundef %18, ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %17, %13
%23 = load i32, ptr %4, align 4
ret i32 %23
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @_initmpeg2(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/tmpsxirbupg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Could not open file \22%s\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initmpeg2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.1, ptr noundef %15)
store i32 0, ptr %4, align 4
br label %22
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @_initmpeg2(ptr noundef %18, ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %17, %13
%23 = load i32, ptr %4, align 4
ret i32 %23
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @_initmpeg2(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/tmpsskupr31.c'
source_filename = "/tmp/tmpsskupr31.c"
target datalayout = "e-m:e-p270: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/tmpsskupr31.c"
target datalayout = "e-m:e-p270: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/tmpskmrv88x.c'
source_filename = "/tmp/tmpskmrv88x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @subsShow(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %27, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 126
br i1 %7, label %8, label %30
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %22, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 9
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [9 x i32], ptr %13, i64 %15
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [9 x i32], ptr %16, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %22
22: ; preds = %12
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %9, !llvm.loop !6
25: ; preds = %9
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %5, !llvm.loop !8
30: ; preds = %5
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpskmrv88x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @subsShow(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 126
br i1 %6, label %.lr.ph2, label %32
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %27
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 9
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %20
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [9 x i32], ptr %11, i64 %13
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [9 x i32], ptr %14, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 9
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %7
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %30, 126
br i1 %31, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %32
32: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpy79e5tne.c'
source_filename = "/tmp/tmpy79e5tne.c"
target datalayout = "e-m:e-p270: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.convDecToBase.NUMS = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convDecToBase(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [17 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %35
12: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.convDecToBase.NUMS, i64 17, i1 false)
%13 = call ptr @calloc(i32 noundef 64, i32 noundef 1)
store ptr %13, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %30, %12
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = srem i32 %15, %16
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [17 x i8], ptr %6, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 %20, ptr %24, align 1
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = sdiv i32 %26, %25
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
br label %30
30: ; preds = %14
%31 = load i32, ptr %4, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %14, label %33, !llvm.loop !6
33: ; preds = %30
%34 = load ptr, ptr %7, align 8
store ptr %34, ptr %3, align 8
br label %35
35: ; preds = %33, %11
%36 = load ptr, ptr %3, align 8
ret ptr %36
}
; 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 ptr @calloc(i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy79e5tne.c"
target datalayout = "e-m:e-p270: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.convDecToBase.NUMS = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convDecToBase(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [17 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %35
12: ; preds = %2
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.convDecToBase.NUMS, i64 17, i1 false)
%13 = call ptr @calloc(i32 noundef 64, i32 noundef 1)
store ptr %13, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %30, %12
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = srem i32 %15, %16
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [17 x i8], ptr %6, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 %20, ptr %24, align 1
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = sdiv i32 %26, %25
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
br label %30
30: ; preds = %14
%31 = load i32, ptr %4, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %14, label %33, !llvm.loop !6
33: ; preds = %30
%34 = load ptr, ptr %7, align 8
store ptr %34, ptr %3, align 8
br label %35
35: ; preds = %33, %11
%36 = load ptr, ptr %3, align 8
ret ptr %36
}
; 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 ptr @calloc(i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpskngddv1.c'
source_filename = "/tmp/tmpskngddv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtabmatch(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %5
5: ; preds = %22, %2
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %20
9: ; preds = %5
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = call i32 @strlen(ptr noundef %16)
%18 = call i64 @strncmp(ptr noundef %12, ptr noundef %13, i32 noundef %17)
%19 = icmp ne i64 %18, 0
br label %20
20: ; preds = %9, %5
%21 = phi i1 [ false, %5 ], [ %19, %9 ]
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds ptr, ptr %23, i32 1
store ptr %24, ptr %3, align 8
br label %5, !llvm.loop !6
25: ; preds = %20
%26 = load ptr, ptr %3, align 8
%27 = load ptr, ptr %26, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %30, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %35, label %36
35: ; preds = %29, %25
br label %39
36: ; preds = %29
%37 = load ptr, ptr %3, align 8
%38 = load ptr, ptr %37, align 8
br label %39
39: ; preds = %36, %35
%40 = phi ptr [ null, %35 ], [ %38, %36 ]
ret ptr %40
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpskngddv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtabmatch(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %5
5: ; preds = %22, %2
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %20
9: ; preds = %5
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = call i32 @strlen(ptr noundef %16)
%18 = call i64 @strncmp(ptr noundef %12, ptr noundef %13, i32 noundef %17)
%19 = icmp ne i64 %18, 0
br label %20
20: ; preds = %9, %5
%21 = phi i1 [ false, %5 ], [ %19, %9 ]
br i1 %21, label %22, label %25
22: ; preds = %20
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds ptr, ptr %23, i32 1
store ptr %24, ptr %3, align 8
br label %5, !llvm.loop !6
25: ; preds = %20
%26 = load ptr, ptr %3, align 8
%27 = load ptr, ptr %26, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %30, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %35, label %36
35: ; preds = %29, %25
br label %39
36: ; preds = %29
%37 = load ptr, ptr %3, align 8
%38 = load ptr, ptr %37, align 8
br label %39
39: ; preds = %36, %35
%40 = phi ptr [ null, %35 ], [ %38, %36 ]
ret ptr %40
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpu3mtaxmc.c'
source_filename = "/tmp/tmpu3mtaxmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XXH32_init(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @xxh32_init(i32 noundef %3)
ret ptr %4
}
declare ptr @xxh32_init(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/tmpu3mtaxmc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XXH32_init(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @xxh32_init(i32 noundef %3)
ret ptr %4
}
declare ptr @xxh32_init(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/tmpo88znppr.c'
source_filename = "/tmp/tmpo88znppr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_figure(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %3, align 4
br label %9
9: ; preds = %6, %1
%10 = load i32, ptr %2, align 4
%11 = call i32 @ft_abs(i32 noundef %10)
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %15, %9
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 10
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %12, !llvm.loop !6
20: ; preds = %12
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @ft_abs(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/tmpo88znppr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_figure(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %3, align 4
br label %9
9: ; preds = %6, %1
%10 = load i32, ptr %2, align 4
%11 = call i32 @ft_abs(i32 noundef %10)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %21
.lr.ph: ; preds = %9
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %21
21: ; preds = %._crit_edge, %9
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @ft_abs(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/tmpi1mbj_80.c'
source_filename = "/tmp/tmpi1mbj_80.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @INThandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIG_IGN, align 4
%5 = call i32 @signal(i32 noundef %3, i32 noundef %4)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @signal(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi1mbj_80.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_IGN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @INThandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIG_IGN, align 4
%5 = call i32 @signal(i32 noundef %3, i32 noundef %4)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @signal(i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcbnqaqh5.c'
source_filename = "/tmp/tmpcbnqaqh5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0x9e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x9e() #0 {
%1 = call i64 @isupper(i32 noundef 158)
%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 795, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmpcbnqaqh5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0x9e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x9e() #0 {
%1 = call i64 @isupper(i32 noundef 158)
%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 795, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmprym7cbdk.c'
source_filename = "/tmp/tmprym7cbdk.c"
target datalayout = "e-m:e-p270: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/tmprym7cbdk.c"
target datalayout = "e-m:e-p270: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/tmpjbp0ttat.c'
source_filename = "/tmp/tmpjbp0ttat.c"
target datalayout = "e-m:e-p270: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/tmpjbp0ttat.c"
target datalayout = "e-m:e-p270: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/tmpm6wkzf5z.c'
source_filename = "/tmp/tmpm6wkzf5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_strdel(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
store ptr null, ptr %6, align 8
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/tmpm6wkzf5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_strdel(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
store ptr null, ptr %6, align 8
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/tmpj9un0eqk.c'
source_filename = "/tmp/tmpj9un0eqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"qn24b XeonPhiOffload\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"version 1.0.0 2013-08-03\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Usage: %s n\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"board size range: %d-%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_problem_size(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sgt i32 2, %20
br i1 %21, label %25, label %22
22: ; preds = %15
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 29, %23
br i1 %24, label %25, label %28
25: ; preds = %22, %15
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 2, i32 noundef 29)
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %22
%29 = load i32, ptr %5, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpj9un0eqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"qn24b XeonPhiOffload\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"version 1.0.0 2013-08-03\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Usage: %s n\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"board size range: %d-%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_problem_size(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sgt i32 2, %20
br i1 %21, label %25, label %22
22: ; preds = %15
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 29, %23
br i1 %24, label %25, label %28
25: ; preds = %22, %15
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 2, i32 noundef 29)
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %22
%29 = load i32, ptr %5, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpm5vpvyel.c'
source_filename = "/tmp/tmpm5vpvyel.c"
target datalayout = "e-m:e-p270: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/tmpm5vpvyel.c"
target datalayout = "e-m:e-p270: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/tmpr045pc43.c'
source_filename = "/tmp/tmpr045pc43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Yes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printyes() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr045pc43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Yes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printyes() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxu3lrqku.c'
source_filename = "/tmp/tmpxu3lrqku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod_init() #0 {
%1 = call i32 (...) @mod_clock_init()
%2 = call i32 (...) @mod_stopwatch_init()
%3 = call i32 (...) @mod_temperature_init()
%4 = call i32 (...) @mod_battery_init()
%5 = call i32 (...) @mod_reset_init()
ret void
}
declare i32 @mod_clock_init(...) #1
declare i32 @mod_stopwatch_init(...) #1
declare i32 @mod_temperature_init(...) #1
declare i32 @mod_battery_init(...) #1
declare i32 @mod_reset_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxu3lrqku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mod_init() #0 {
%1 = call i32 (...) @mod_clock_init()
%2 = call i32 (...) @mod_stopwatch_init()
%3 = call i32 (...) @mod_temperature_init()
%4 = call i32 (...) @mod_battery_init()
%5 = call i32 (...) @mod_reset_init()
ret void
}
declare i32 @mod_clock_init(...) #1
declare i32 @mod_stopwatch_init(...) #1
declare i32 @mod_temperature_init(...) #1
declare i32 @mod_battery_init(...) #1
declare i32 @mod_reset_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpij743r5p.c'
source_filename = "/tmp/tmpij743r5p.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Usage: %s <source> <start> <end> <width>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"No memory?!?\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"fseek\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%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
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 5
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 2) #3
unreachable
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.1)
store ptr %27, ptr %6, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.2)
%31 = call i32 @exit(i32 noundef 2) #3
unreachable
32: ; preds = %23
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
%40 = call i32 @atoi(ptr noundef %39)
store i32 %40, ptr %9, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 4
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = sub nsw i32 %45, %46
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %10, align 4
%49 = call ptr @malloc(i32 noundef %48)
store ptr %49, ptr %13, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %55
51: ; preds = %32
%52 = load i32, ptr @stderr, align 4
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.3)
%54 = call i32 @exit(i32 noundef 2) #3
unreachable
55: ; preds = %32
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr @SEEK_SET, align 4
%59 = call i64 @fseek(ptr noundef %56, i32 noundef %57, i32 noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = call i32 @perror(ptr noundef @.str.4)
%63 = call i32 @exit(i32 noundef 2) #3
unreachable
64: ; preds = %55
br label %65
65: ; preds = %134, %64
%66 = load i32, ptr %11, align 4
%67 = icmp sgt i32 %66, 0
br i1 %67, label %68, label %76
68: ; preds = %65
%69 = load ptr, ptr %13, align 8
%70 = load i32, ptr %11, align 4
%71 = load i32, ptr %10, align 4
%72 = call i32 @min(i32 noundef %70, i32 noundef %71)
%73 = load ptr, ptr %6, align 8
%74 = call i32 @fread(ptr noundef %69, i32 noundef 1, i32 noundef %72, ptr noundef %73)
store i32 %74, ptr %12, align 4
%75 = icmp ne i32 %74, 0
br label %76
76: ; preds = %68, %65
%77 = phi i1 [ false, %65 ], [ %75, %68 ]
br i1 %77, label %78, label %139
78: ; preds = %76
store i32 0, ptr %7, align 4
br label %79
79: ; preds = %91, %78
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %12, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %94
83: ; preds = %79
%84 = load ptr, ptr %13, align 8
%85 = load i32, ptr %7, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = zext i8 %88 to i32
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %89)
br label %91
91: ; preds = %83
%92 = load i32, ptr %7, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %7, align 4
br label %79, !llvm.loop !6
94: ; preds = %79
store i32 0, ptr %7, align 4
br label %95
95: ; preds = %103, %94
%96 = load i32, ptr %7, align 4
%97 = load i32, ptr %10, align 4
%98 = load i32, ptr %12, align 4
%99 = sub nsw i32 %97, %98
%100 = icmp slt i32 %96, %99
br i1 %100, label %101, label %106
101: ; preds = %95
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %103
103: ; preds = %101
%104 = load i32, ptr %7, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %7, align 4
br label %95, !llvm.loop !8
106: ; preds = %95
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %7, align 4
br label %108
108: ; preds = %131, %106
%109 = load i32, ptr %7, align 4
%110 = load i32, ptr %12, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %134
112: ; preds = %108
%113 = load ptr, ptr %13, align 8
%114 = load i32, ptr %7, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %113, i64 %115
%117 = load i8, ptr %116, align 1
%118 = call i64 @isgraph(i8 noundef zeroext %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %127
120: ; preds = %112
%121 = load ptr, ptr %13, align 8
%122 = load i32, ptr %7, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
%126 = zext i8 %125 to i32
br label %128
127: ; preds = %112
br label %128
128: ; preds = %127, %120
%129 = phi i32 [ %126, %120 ], [ 46, %127 ]
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %129)
br label %131
131: ; preds = %128
%132 = load i32, ptr %7, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %7, align 4
br label %108, !llvm.loop !9
134: ; preds = %108
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%136 = load i32, ptr %12, align 4
%137 = load i32, ptr %11, align 4
%138 = sub nsw i32 %137, %136
store i32 %138, ptr %11, align 4
br label %65, !llvm.loop !10
139: ; preds = %76
%140 = load ptr, ptr %13, align 8
%141 = call i32 @free(ptr noundef %140)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @min(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isgraph(i8 noundef zeroext) #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"}
!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/tmpij743r5p.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Usage: %s <source> <start> <end> <width>\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"No memory?!?\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"fseek\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%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
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 5
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str, ptr noundef %20)
%22 = call i32 @exit(i32 noundef 2) #3
unreachable
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.1)
store ptr %27, ptr %6, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.2)
%31 = call i32 @exit(i32 noundef 2) #3
unreachable
32: ; preds = %23
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
%40 = call i32 @atoi(ptr noundef %39)
store i32 %40, ptr %9, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 4
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = sub nsw i32 %45, %46
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %10, align 4
%49 = call ptr @malloc(i32 noundef %48)
store ptr %49, ptr %13, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %55
51: ; preds = %32
%52 = load i32, ptr @stderr, align 4
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.3)
%54 = call i32 @exit(i32 noundef 2) #3
unreachable
55: ; preds = %32
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr @SEEK_SET, align 4
%59 = call i64 @fseek(ptr noundef %56, i32 noundef %57, i32 noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = call i32 @perror(ptr noundef @.str.4)
%63 = call i32 @exit(i32 noundef 2) #3
unreachable
64: ; preds = %55
br label %65
65: ; preds = %142, %64
%66 = load i32, ptr %11, align 4
%67 = icmp sgt i32 %66, 0
br i1 %67, label %68, label %76
68: ; preds = %65
%69 = load ptr, ptr %13, align 8
%70 = load i32, ptr %11, align 4
%71 = load i32, ptr %10, align 4
%72 = call i32 @min(i32 noundef %70, i32 noundef %71)
%73 = load ptr, ptr %6, align 8
%74 = call i32 @fread(ptr noundef %69, i32 noundef 1, i32 noundef %72, ptr noundef %73)
store i32 %74, ptr %12, align 4
%75 = icmp ne i32 %74, 0
br label %76
76: ; preds = %68, %65
%77 = phi i1 [ false, %65 ], [ %75, %68 ]
br i1 %77, label %78, label %147
78: ; preds = %76
store i32 0, ptr %7, align 4
%79 = load i32, ptr %7, align 4
%80 = load i32, ptr %12, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %.lr.ph, label %96
.lr.ph: ; preds = %78
br label %82
82: ; preds = %.lr.ph, %90
%83 = load ptr, ptr %13, align 8
%84 = load i32, ptr %7, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %88)
br label %90
90: ; preds = %82
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %7, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %12, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %82, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %90
br label %96
96: ; preds = %._crit_edge, %78
store i32 0, ptr %7, align 4
%97 = load i32, ptr %7, align 4
%98 = load i32, ptr %10, align 4
%99 = load i32, ptr %12, align 4
%100 = sub nsw i32 %98, %99
%101 = icmp slt i32 %97, %100
br i1 %101, label %.lr.ph2, label %112
.lr.ph2: ; preds = %96
br label %102
102: ; preds = %.lr.ph2, %104
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %104
104: ; preds = %102
%105 = load i32, ptr %7, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %7, align 4
%107 = load i32, ptr %7, align 4
%108 = load i32, ptr %10, align 4
%109 = load i32, ptr %12, align 4
%110 = sub nsw i32 %108, %109
%111 = icmp slt i32 %107, %110
br i1 %111, label %102, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %104
br label %112
112: ; preds = %._crit_edge3, %96
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %7, align 4
%114 = load i32, ptr %7, align 4
%115 = load i32, ptr %12, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %.lr.ph5, label %142
.lr.ph5: ; preds = %112
br label %117
117: ; preds = %.lr.ph5, %136
%118 = load ptr, ptr %13, align 8
%119 = load i32, ptr %7, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8, ptr %118, i64 %120
%122 = load i8, ptr %121, align 1
%123 = call i64 @isgraph(i8 noundef zeroext %122)
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %117
%126 = load ptr, ptr %13, align 8
%127 = load i32, ptr %7, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %126, i64 %128
%130 = load i8, ptr %129, align 1
%131 = zext i8 %130 to i32
br label %133
132: ; preds = %117
br label %133
133: ; preds = %132, %125
%134 = phi i32 [ %131, %125 ], [ 46, %132 ]
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %134)
br label %136
136: ; preds = %133
%137 = load i32, ptr %7, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %7, align 4
%139 = load i32, ptr %7, align 4
%140 = load i32, ptr %12, align 4
%141 = icmp slt i32 %139, %140
br i1 %141, label %117, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %136
br label %142
142: ; preds = %._crit_edge6, %112
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%144 = load i32, ptr %12, align 4
%145 = load i32, ptr %11, align 4
%146 = sub nsw i32 %145, %144
store i32 %146, ptr %11, align 4
br label %65, !llvm.loop !10
147: ; preds = %76
%148 = load ptr, ptr %13, align 8
%149 = call i32 @free(ptr noundef %148)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @min(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isgraph(i8 noundef zeroext) #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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpkngy6_9h.c'
source_filename = "/tmp/tmpkngy6_9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @huerotatemat(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [4 x [4 x float]], align 16
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%18 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%19 = call i32 @identmat(ptr noundef %18)
%20 = call float @sqrt(double noundef 2.000000e+00)
store float %20, ptr %6, align 4
%21 = load float, ptr %6, align 4
%22 = fpext float %21 to double
%23 = fdiv double 1.000000e+00, %22
%24 = fptrunc double %23 to float
store float %24, ptr %10, align 4
%25 = load float, ptr %6, align 4
%26 = fpext float %25 to double
%27 = fdiv double 1.000000e+00, %26
%28 = fptrunc double %27 to float
store float %28, ptr %11, align 4
%29 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%30 = load float, ptr %10, align 4
%31 = load float, ptr %11, align 4
%32 = call i32 @xrotatemat(ptr noundef %29, float noundef %30, float noundef %31)
%33 = call float @sqrt(double noundef 3.000000e+00)
store float %33, ptr %6, align 4
%34 = load float, ptr %6, align 4
%35 = fpext float %34 to double
%36 = fdiv double -1.000000e+00, %35
%37 = fptrunc double %36 to float
store float %37, ptr %12, align 4
%38 = call float @sqrt(double noundef 2.000000e+00)
%39 = load float, ptr %6, align 4
%40 = fdiv float %38, %39
store float %40, ptr %13, align 4
%41 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%42 = load float, ptr %12, align 4
%43 = load float, ptr %13, align 4
%44 = call i32 @yrotatemat(ptr noundef %41, float noundef %42, float noundef %43)
%45 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%46 = call i32 @xformpnt(ptr noundef %45, double noundef 2.126000e-01, double noundef 7.152000e-01, double noundef 7.220000e-02, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%47 = load float, ptr %7, align 4
%48 = load float, ptr %9, align 4
%49 = fdiv float %47, %48
store float %49, ptr %16, align 4
%50 = load float, ptr %8, align 4
%51 = load float, ptr %9, align 4
%52 = fdiv float %50, %51
store float %52, ptr %17, align 4
%53 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%54 = load float, ptr %16, align 4
%55 = load float, ptr %17, align 4
%56 = call i32 @zshearmat(ptr noundef %53, float noundef %54, float noundef %55)
%57 = load float, ptr %4, align 4
%58 = load float, ptr @M_PI, align 4
%59 = fmul float %57, %58
%60 = fpext float %59 to double
%61 = fdiv double %60, 1.800000e+02
%62 = fptrunc double %61 to float
%63 = call float @sin(float noundef %62)
store float %63, ptr %14, align 4
%64 = load float, ptr %4, align 4
%65 = load float, ptr @M_PI, align 4
%66 = fmul float %64, %65
%67 = fpext float %66 to double
%68 = fdiv double %67, 1.800000e+02
%69 = fptrunc double %68 to float
%70 = call float @cos(float noundef %69)
store float %70, ptr %15, align 4
%71 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%72 = load float, ptr %14, align 4
%73 = load float, ptr %15, align 4
%74 = call i32 @zrotatemat(ptr noundef %71, float noundef %72, float noundef %73)
%75 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%76 = load float, ptr %16, align 4
%77 = fneg float %76
%78 = load float, ptr %17, align 4
%79 = fneg float %78
%80 = call i32 @zshearmat(ptr noundef %75, float noundef %77, float noundef %79)
%81 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%82 = load float, ptr %12, align 4
%83 = fneg float %82
%84 = load float, ptr %13, align 4
%85 = call i32 @yrotatemat(ptr noundef %81, float noundef %83, float noundef %84)
%86 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%87 = load float, ptr %10, align 4
%88 = fneg float %87
%89 = load float, ptr %11, align 4
%90 = call i32 @xrotatemat(ptr noundef %86, float noundef %88, float noundef %89)
%91 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%92 = load ptr, ptr %3, align 8
%93 = load ptr, ptr %3, align 8
%94 = call i32 @matrixmult(ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @identmat(ptr noundef) #1
declare float @sqrt(double noundef) #1
declare i32 @xrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @yrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @xformpnt(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @zshearmat(ptr noundef, float noundef, float noundef) #1
declare float @sin(float noundef) #1
declare float @cos(float noundef) #1
declare i32 @zrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @matrixmult(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/tmpkngy6_9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @huerotatemat(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [4 x [4 x float]], align 16
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%18 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%19 = call i32 @identmat(ptr noundef %18)
%20 = call float @sqrt(double noundef 2.000000e+00)
store float %20, ptr %6, align 4
%21 = load float, ptr %6, align 4
%22 = fpext float %21 to double
%23 = fdiv double 1.000000e+00, %22
%24 = fptrunc double %23 to float
store float %24, ptr %10, align 4
%25 = load float, ptr %6, align 4
%26 = fpext float %25 to double
%27 = fdiv double 1.000000e+00, %26
%28 = fptrunc double %27 to float
store float %28, ptr %11, align 4
%29 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%30 = load float, ptr %10, align 4
%31 = load float, ptr %11, align 4
%32 = call i32 @xrotatemat(ptr noundef %29, float noundef %30, float noundef %31)
%33 = call float @sqrt(double noundef 3.000000e+00)
store float %33, ptr %6, align 4
%34 = load float, ptr %6, align 4
%35 = fpext float %34 to double
%36 = fdiv double -1.000000e+00, %35
%37 = fptrunc double %36 to float
store float %37, ptr %12, align 4
%38 = call float @sqrt(double noundef 2.000000e+00)
%39 = load float, ptr %6, align 4
%40 = fdiv float %38, %39
store float %40, ptr %13, align 4
%41 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%42 = load float, ptr %12, align 4
%43 = load float, ptr %13, align 4
%44 = call i32 @yrotatemat(ptr noundef %41, float noundef %42, float noundef %43)
%45 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%46 = call i32 @xformpnt(ptr noundef %45, double noundef 2.126000e-01, double noundef 7.152000e-01, double noundef 7.220000e-02, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%47 = load float, ptr %7, align 4
%48 = load float, ptr %9, align 4
%49 = fdiv float %47, %48
store float %49, ptr %16, align 4
%50 = load float, ptr %8, align 4
%51 = load float, ptr %9, align 4
%52 = fdiv float %50, %51
store float %52, ptr %17, align 4
%53 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%54 = load float, ptr %16, align 4
%55 = load float, ptr %17, align 4
%56 = call i32 @zshearmat(ptr noundef %53, float noundef %54, float noundef %55)
%57 = load float, ptr %4, align 4
%58 = load float, ptr @M_PI, align 4
%59 = fmul float %57, %58
%60 = fpext float %59 to double
%61 = fdiv double %60, 1.800000e+02
%62 = fptrunc double %61 to float
%63 = call float @sin(float noundef %62)
store float %63, ptr %14, align 4
%64 = load float, ptr %4, align 4
%65 = load float, ptr @M_PI, align 4
%66 = fmul float %64, %65
%67 = fpext float %66 to double
%68 = fdiv double %67, 1.800000e+02
%69 = fptrunc double %68 to float
%70 = call float @cos(float noundef %69)
store float %70, ptr %15, align 4
%71 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%72 = load float, ptr %14, align 4
%73 = load float, ptr %15, align 4
%74 = call i32 @zrotatemat(ptr noundef %71, float noundef %72, float noundef %73)
%75 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%76 = load float, ptr %16, align 4
%77 = fneg float %76
%78 = load float, ptr %17, align 4
%79 = fneg float %78
%80 = call i32 @zshearmat(ptr noundef %75, float noundef %77, float noundef %79)
%81 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%82 = load float, ptr %12, align 4
%83 = fneg float %82
%84 = load float, ptr %13, align 4
%85 = call i32 @yrotatemat(ptr noundef %81, float noundef %83, float noundef %84)
%86 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%87 = load float, ptr %10, align 4
%88 = fneg float %87
%89 = load float, ptr %11, align 4
%90 = call i32 @xrotatemat(ptr noundef %86, float noundef %88, float noundef %89)
%91 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
%92 = load ptr, ptr %3, align 8
%93 = load ptr, ptr %3, align 8
%94 = call i32 @matrixmult(ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @identmat(ptr noundef) #1
declare float @sqrt(double noundef) #1
declare i32 @xrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @yrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @xformpnt(ptr noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @zshearmat(ptr noundef, float noundef, float noundef) #1
declare float @sin(float noundef) #1
declare float @cos(float noundef) #1
declare i32 @zrotatemat(ptr noundef, float noundef, float noundef) #1
declare i32 @matrixmult(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/tmpbgbhw5jd.c'
source_filename = "/tmp/tmpbgbhw5jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000001 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %6, align 4
%7 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %20, %0
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = sub nsw i32 %13, 1
%15 = srem i32 %14, 3
%16 = icmp slt i32 %12, %15
br i1 %16, label %17, label %23
17: ; preds = %11
%18 = load i32, ptr %6, align 4
%19 = mul nsw i32 %18, 2
store i32 %19, ptr %6, align 4
br label %20
20: ; preds = %17
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %11, !llvm.loop !6
23: ; preds = %11
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %24
24: ; preds = %47, %23
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %50
28: ; preds = %24
%29 = load i32, ptr %6, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, ptr %5, align 4
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
store i32 0, ptr %5, align 4
store i32 4, ptr %6, align 4
br label %34
34: ; preds = %31, %28
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = load i32, ptr %6, align 4
%42 = mul nsw i32 %40, %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, %42
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %6, align 4
%46 = sdiv i32 %45, 2
store i32 %46, ptr %6, align 4
br label %47
47: ; preds = %34
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4
br label %24, !llvm.loop !8
50: ; preds = %24
%51 = load i32, ptr %5, align 4
%52 = call i32 @printf(ptr noundef @.str.1, i32 noundef %51)
%53 = load i32, ptr %1, align 4
ret i32 %53
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbgbhw5jd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000001 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %6, align 4
%7 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%9 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = sub nsw i32 %12, 1
%14 = srem i32 %13, 3
%15 = icmp slt i32 %11, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %19
%17 = load i32, ptr %6, align 4
%18 = mul nsw i32 %17, 2
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %3, align 4
%24 = sub nsw i32 %23, 1
%25 = srem i32 %24, 3
%26 = icmp slt i32 %22, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %27
27: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph2, label %56
.lr.ph2: ; preds = %27
br label %31
31: ; preds = %.lr.ph2, %50
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32, ptr %5, align 4
%36 = call i32 @printf(ptr noundef @.str.1, i32 noundef %35)
store i32 0, ptr %5, align 4
store i32 4, ptr %6, align 4
br label %37
37: ; preds = %34, %31
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1000001 x i8], ptr %2, i64 0, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = load i32, ptr %6, align 4
%45 = mul nsw i32 %43, %44
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %6, align 4
%49 = sdiv i32 %48, 2
store i32 %49, ptr %6, align 4
br label %50
50: ; preds = %37
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %3, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %27
%57 = load i32, ptr %5, align 4
%58 = call i32 @printf(ptr noundef @.str.1, i32 noundef %57)
%59 = load i32, ptr %1, align 4
ret i32 %59
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe4su9pb1.c'
source_filename = "/tmp/tmpe4su9pb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [30 x i32] [i32 67, i32 32, i32 45, i32 43, i32 21, i32 -11, i32 12, i32 3, i32 4, i32 5, i32 6, i32 76, i32 -32, i32 56, i32 -32, i32 -1, i32 4, i32 5, i32 6, i32 99, i32 43, i32 22, i32 -3, i32 22, i32 16, i32 34, i32 55, i32 31, i32 87, i32 324], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 120, i1 false)
%4 = call i32 (...) @check_vect()
%5 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%6 = call i32 @condition_reduction(ptr noundef %5, i32 noundef 16)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, -3
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @check_vect(...) #2
declare i32 @condition_reduction(ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4su9pb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [30 x i32] [i32 67, i32 32, i32 45, i32 43, i32 21, i32 -11, i32 12, i32 3, i32 4, i32 5, i32 6, i32 76, i32 -32, i32 56, i32 -32, i32 -1, i32 4, i32 5, i32 6, i32 99, i32 43, i32 22, i32 -3, i32 22, i32 16, i32 34, i32 55, i32 31, i32 87, i32 324], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 120, i1 false)
%4 = call i32 (...) @check_vect()
%5 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%6 = call i32 @condition_reduction(ptr noundef %5, i32 noundef 16)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, -3
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @check_vect(...) #2
declare i32 @condition_reduction(ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp30xx1760.c'
source_filename = "/tmp/tmp30xx1760.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mq_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @abs(i32 noundef %3) #3
%5 = call ptr @strerror(i32 noundef %4)
ret ptr %5
}
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp30xx1760.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mq_strerror(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @abs(i32 noundef %3) #3
%5 = call ptr @strerror(i32 noundef %4)
ret ptr %5
}
declare ptr @strerror(i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaurk5257.c'
source_filename = "/tmp/tmpaurk5257.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_tag_cd(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %10, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 1, ptr %4, align 4
br label %31
15: ; preds = %3
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %7, align 4
%19 = call i64 @custom_strncasecmp(ptr noundef %16, ptr noundef %17, i32 noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %30
21: ; preds = %15
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
switch i32 %27, label %29 [
i32 32, label %28
i32 62, label %28
i32 47, label %28
i32 10, label %28
]
28: ; preds = %21, %21, %21, %21
store i32 0, ptr %4, align 4
br label %31
29: ; preds = %21
store i32 1, ptr %4, align 4
br label %31
30: ; preds = %15
store i32 1, ptr %4, align 4
br label %31
31: ; preds = %30, %29, %28, %14
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @custom_strncasecmp(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/tmpaurk5257.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_tag_cd(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %10, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 1, ptr %4, align 4
br label %31
15: ; preds = %3
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %7, align 4
%19 = call i64 @custom_strncasecmp(ptr noundef %16, ptr noundef %17, i32 noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %30
21: ; preds = %15
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
switch i32 %27, label %29 [
i32 32, label %28
i32 62, label %28
i32 47, label %28
i32 10, label %28
]
28: ; preds = %21, %21, %21, %21
store i32 0, ptr %4, align 4
br label %31
29: ; preds = %21
store i32 1, ptr %4, align 4
br label %31
30: ; preds = %15
store i32 1, ptr %4, align 4
br label %31
31: ; preds = %30, %29, %28, %14
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @custom_strncasecmp(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/tmpnfjgidwj.c'
source_filename = "/tmp/tmpnfjgidwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nthFib(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [50 x i64], align 16
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 400, i1 false)
%5 = getelementptr inbounds <{ i64, i64, [48 x i64] }>, ptr %3, i32 0, i32 1
store i64 1, ptr %5, align 8
store i32 2, ptr %4, align 4
br label %6
6: ; preds = %25, %1
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %28
10: ; preds = %6
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %13
%15 = load i64, ptr %14, align 8
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %18
%20 = load i64, ptr %19, align 8
%21 = add i64 %15, %20
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %23
store i64 %21, ptr %24, align 8
br label %25
25: ; preds = %10
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %6, !llvm.loop !6
28: ; preds = %6
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %46, %28
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %49
33: ; preds = %29
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %35
%37 = load i64, ptr %36, align 8
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
%40 = load i32, ptr %2, align 4
%41 = icmp eq i32 %39, %40
%42 = zext i1 %41 to i64
%43 = select i1 %41, i32 10, i32 32
%44 = trunc i32 %43 to i8
%45 = call i32 @printf(ptr noundef @.str, i64 noundef %37, i8 noundef signext %44)
br label %46
46: ; preds = %33
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
br label %29, !llvm.loop !8
49: ; preds = %29
%50 = load i32, ptr %2, align 4
%51 = sub nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = trunc i64 %54 to i32
ret i32 %55
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i64 noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnfjgidwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lu%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @nthFib(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [50 x i64], align 16
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 400, i1 false)
%5 = getelementptr inbounds <{ i64, i64, [48 x i64] }>, ptr %3, i32 0, i32 1
store i64 1, ptr %5, align 8
store i32 2, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %24
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %12
%14 = load i64, ptr %13, align 8
%15 = load i32, ptr %4, align 4
%16 = sub nsw i32 %15, 2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %17
%19 = load i64, ptr %18, align 8
%20 = add i64 %14, %19
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %22
store i64 %20, ptr %23, align 8
br label %24
24: ; preds = %9
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %1
store i32 0, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %53
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %47
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %36
%38 = load i64, ptr %37, align 8
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
%41 = load i32, ptr %2, align 4
%42 = icmp eq i32 %40, %41
%43 = zext i1 %42 to i64
%44 = select i1 %42, i32 10, i32 32
%45 = trunc i32 %44 to i8
%46 = call i32 @printf(ptr noundef @.str, i64 noundef %38, i8 noundef signext %45)
br label %47
47: ; preds = %34
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %2, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %53
53: ; preds = %._crit_edge3, %30
%54 = load i32, ptr %2, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [50 x i64], ptr %3, i64 0, i64 %56
%58 = load i64, ptr %57, align 8
%59 = trunc i64 %58 to i32
ret i32 %59
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, i64 noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9_74cl0h.c'
source_filename = "/tmp/tmp9_74cl0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @procfs__configured() #0 {
%1 = call ptr (...) @procfs__mountpoint()
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
declare ptr @procfs__mountpoint(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9_74cl0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @procfs__configured() #0 {
%1 = call ptr (...) @procfs__mountpoint()
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
declare ptr @procfs__mountpoint(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11i638ip.c'
source_filename = "/tmp/tmp11i638ip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @illegal_free() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @malloc(i32 noundef 20)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
%7 = load ptr, ptr %1, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare ptr @malloc(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/tmp11i638ip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @illegal_free() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @malloc(i32 noundef 20)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
%7 = load ptr, ptr %1, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare ptr @malloc(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/tmp1g7t9gdl.c'
source_filename = "/tmp/tmp1g7t9gdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"FROM\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Can't find FROM in the SQL statement.\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"No field names in sql string.\0A\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [35 x i8] c"SQLite couldn't parse SQL string.\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"Memory allocation failed in asprintf.\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Found ' AS '\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"Malloc error.\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"Field %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_sql_field_names(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca i8, align 1
%29 = alloca i8, align 1
%30 = alloca i8, align 1
%31 = alloca i8, align 1
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca i64, align 8
%36 = alloca i32, align 4
%37 = alloca i32, align 4
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
store i32 1, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i8 97, ptr %28, align 1
store i8 98, ptr %29, align 1
store i8 99, ptr %30, align 1
store i8 100, ptr %31, align 1
store ptr null, ptr %32, align 8
store ptr null, ptr %33, align 8
%38 = load ptr, ptr %12, align 8
store ptr %38, ptr %26, align 8
%39 = load ptr, ptr %12, align 8
%40 = call ptr @strstr(ptr noundef %39, ptr noundef @.str)
store ptr %40, ptr %27, align 8
%41 = load ptr, ptr %27, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %45
43: ; preds = %9
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %304
45: ; preds = %9
br label %46
46: ; preds = %76, %45
%47 = load ptr, ptr %26, align 8
%48 = load ptr, ptr %27, align 8
%49 = icmp ult ptr %47, %48
br i1 %49, label %50, label %79
50: ; preds = %46
%51 = load i8, ptr %29, align 1
store i8 %51, ptr %30, align 1
%52 = load i8, ptr %28, align 1
store i8 %52, ptr %29, align 1
%53 = load ptr, ptr %26, align 8
%54 = load i8, ptr %53, align 1
store i8 %54, ptr %28, align 1
%55 = load i8, ptr %30, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 32
br i1 %57, label %58, label %68
58: ; preds = %50
%59 = load i8, ptr %29, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 42
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load i8, ptr %28, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 32
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %22, align 4
br label %68
68: ; preds = %66, %62, %58, %50
%69 = load ptr, ptr %26, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 44
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = load i32, ptr %20, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %20, align 4
br label %76
76: ; preds = %73, %68
%77 = load ptr, ptr %26, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %26, align 8
br label %46, !llvm.loop !6
79: ; preds = %46
%80 = load i32, ptr %22, align 4
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %88
82: ; preds = %79
%83 = load ptr, ptr %11, align 8
%84 = load ptr, ptr %12, align 8
%85 = call i32 @get_column_count(ptr noundef %83, ptr noundef %84)
store i32 %85, ptr %23, align 4
%86 = load i32, ptr %23, align 4
%87 = sub nsw i32 %86, 1
store i32 %87, ptr %20, align 4
br label %88
88: ; preds = %82, %79
%89 = load i32, ptr %20, align 4
%90 = add nsw i32 %89, 1
%91 = zext i32 %90 to i64
%92 = call ptr @llvm.stacksave()
store ptr %92, ptr %34, align 8
%93 = alloca ptr, i64 %91, align 16
store i64 %91, ptr %35, align 8
store i32 0, ptr %19, align 4
br label %94
94: ; preds = %103, %88
%95 = load i32, ptr %19, align 4
%96 = load i32, ptr %20, align 4
%97 = add nsw i32 %96, 1
%98 = icmp slt i32 %95, %97
br i1 %98, label %99, label %106
99: ; preds = %94
%100 = load i32, ptr %19, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds ptr, ptr %93, i64 %101
store ptr null, ptr %102, align 8
br label %103
103: ; preds = %99
%104 = load i32, ptr %19, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %19, align 4
br label %94, !llvm.loop !8
106: ; preds = %94
%107 = load i32, ptr %22, align 4
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %147
109: ; preds = %106
%110 = load ptr, ptr %11, align 8
%111 = call i32 @sqlite3_open(ptr noundef %110, ptr noundef %32)
%112 = load ptr, ptr %32, align 8
%113 = load ptr, ptr %12, align 8
%114 = call i32 @sqlite3_prepare_v2(ptr noundef %112, ptr noundef %113, i32 noundef -1, ptr noundef %33, i32 noundef 0)
store i32 %114, ptr %25, align 4
%115 = load i32, ptr %25, align 4
%116 = load i32, ptr @SQLITE_OK, align 4
%117 = icmp ne i32 %115, %116
br i1 %117, label %118, label %120
118: ; preds = %109
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %142
120: ; preds = %109
store i32 0, ptr %19, align 4
br label %121
121: ; preds = %138, %120
%122 = load i32, ptr %19, align 4
%123 = load i32, ptr %23, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %141
125: ; preds = %121
%126 = load i32, ptr %19, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds ptr, ptr %93, i64 %127
%129 = load ptr, ptr %33, align 8
%130 = load i32, ptr %19, align 4
%131 = call i32 @sqlite3_column_name(ptr noundef %129, i32 noundef %130)
%132 = call i32 @asprintf(ptr noundef %128, ptr noundef @.str.4, i32 noundef %131)
store i32 %132, ptr %24, align 4
%133 = load i32, ptr %24, align 4
%134 = icmp eq i32 %133, -1
br i1 %134, label %135, label %137
135: ; preds = %125
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %137
137: ; preds = %135, %125
br label %138
138: ; preds = %137
%139 = load i32, ptr %19, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %19, align 4
br label %121, !llvm.loop !9
141: ; preds = %121
br label %142
142: ; preds = %141, %118
%143 = load ptr, ptr %33, align 8
%144 = call i32 @sqlite3_finalize(ptr noundef %143)
%145 = load ptr, ptr %32, align 8
%146 = call i32 @sqlite3_close(ptr noundef %145)
br label %147
147: ; preds = %142, %106
store i32 0, ptr %19, align 4
%148 = load i32, ptr %22, align 4
%149 = icmp eq i32 %148, 1
br i1 %149, label %150, label %251
150: ; preds = %147
store i32 7, ptr %36, align 4
store i32 7, ptr %37, align 4
%151 = load ptr, ptr %12, align 8
%152 = getelementptr inbounds i8, ptr %151, i64 7
store ptr %152, ptr %26, align 8
br label %153
153: ; preds = %245, %150
%154 = load ptr, ptr %26, align 8
%155 = load ptr, ptr %27, align 8
%156 = icmp ult ptr %154, %155
br i1 %156, label %157, label %250
157: ; preds = %153
%158 = load i8, ptr %30, align 1
store i8 %158, ptr %31, align 1
%159 = load i8, ptr %29, align 1
store i8 %159, ptr %30, align 1
%160 = load i8, ptr %28, align 1
store i8 %160, ptr %29, align 1
%161 = load ptr, ptr %26, align 8
%162 = load i8, ptr %161, align 1
store i8 %162, ptr %28, align 1
%163 = load i8, ptr %31, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 32
br i1 %165, label %166, label %182
166: ; preds = %157
%167 = load i8, ptr %30, align 1
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %168, 65
br i1 %169, label %170, label %182
170: ; preds = %166
%171 = load i8, ptr %29, align 1
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 83
br i1 %173, label %174, label %182
174: ; preds = %170
%175 = load i8, ptr %28, align 1
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 32
br i1 %177, label %178, label %182
178: ; preds = %174
%179 = load i32, ptr %36, align 4
%180 = add nsw i32 %179, 1
store i32 %180, ptr %37, align 4
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %182
182: ; preds = %178, %174, %170, %166, %157
%183 = load ptr, ptr %26, align 8
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 44
br i1 %186, label %192, label %187
187: ; preds = %182
%188 = load ptr, ptr %26, align 8
%189 = load ptr, ptr %27, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 -1
%191 = icmp eq ptr %188, %190
br i1 %191, label %192, label %245
192: ; preds = %187, %182
%193 = load i32, ptr %36, align 4
%194 = load i32, ptr %37, align 4
%195 = sub nsw i32 %193, %194
%196 = add nsw i32 %195, 1
%197 = sext i32 %196 to i64
%198 = mul i64 %197, 1
%199 = trunc i64 %198 to i32
%200 = call i64 @malloc(i32 noundef %199)
%201 = inttoptr i64 %200 to ptr
%202 = load i32, ptr %19, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds ptr, ptr %93, i64 %203
store ptr %201, ptr %204, align 8
%205 = load i32, ptr %19, align 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds ptr, ptr %93, i64 %206
%208 = load ptr, ptr %207, align 8
%209 = icmp ne ptr %208, null
br i1 %209, label %210, label %220
210: ; preds = %192
%211 = load i32, ptr %19, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds ptr, ptr %93, i64 %212
%214 = load ptr, ptr %213, align 8
%215 = load i32, ptr %36, align 4
%216 = load i32, ptr %37, align 4
%217 = sub nsw i32 %215, %216
%218 = add nsw i32 %217, 1
%219 = call i32 @memset(ptr noundef %214, i8 noundef signext 0, i32 noundef %218)
br label %220
220: ; preds = %210, %192
%221 = load i32, ptr %19, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds ptr, ptr %93, i64 %222
%224 = load ptr, ptr %223, align 8
%225 = icmp eq ptr %224, null
br i1 %225, label %226, label %228
226: ; preds = %220
%227 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %228
228: ; preds = %226, %220
%229 = load i32, ptr %19, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds ptr, ptr %93, i64 %230
%232 = load ptr, ptr %231, align 8
%233 = load ptr, ptr %12, align 8
%234 = load i32, ptr %37, align 4
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds i8, ptr %233, i64 %235
%237 = load i32, ptr %36, align 4
%238 = load i32, ptr %37, align 4
%239 = sub nsw i32 %237, %238
%240 = call i32 @strncpy(ptr noundef %232, ptr noundef %236, i32 noundef %239)
%241 = load i32, ptr %19, align 4
%242 = add nsw i32 %241, 1
store i32 %242, ptr %19, align 4
%243 = load i32, ptr %36, align 4
%244 = add nsw i32 %243, 2
store i32 %244, ptr %37, align 4
br label %245
245: ; preds = %228, %187
%246 = load i32, ptr %36, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %36, align 4
%248 = load ptr, ptr %26, align 8
%249 = getelementptr inbounds i8, ptr %248, i32 1
store ptr %249, ptr %26, align 8
br label %153, !llvm.loop !10
250: ; preds = %153
br label %251
251: ; preds = %250, %147
store i32 0, ptr %19, align 4
br label %252
252: ; preds = %263, %251
%253 = load i32, ptr %19, align 4
%254 = load i32, ptr %20, align 4
%255 = add nsw i32 %254, 1
%256 = icmp slt i32 %253, %255
br i1 %256, label %257, label %266
257: ; preds = %252
%258 = load i32, ptr %19, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds ptr, ptr %93, i64 %259
%261 = load ptr, ptr %260, align 8
%262 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %261)
br label %263
263: ; preds = %257
%264 = load i32, ptr %19, align 4
%265 = add nsw i32 %264, 1
store i32 %265, ptr %19, align 4
br label %252, !llvm.loop !11
266: ; preds = %252
%267 = load i32, ptr %20, align 4
%268 = add nsw i32 %267, 1
store i32 %268, ptr %21, align 4
%269 = load ptr, ptr %10, align 8
%270 = load ptr, ptr %11, align 8
%271 = load ptr, ptr %12, align 8
%272 = load i32, ptr %21, align 4
%273 = load i32, ptr %13, align 4
%274 = load i32, ptr %14, align 4
%275 = load ptr, ptr %15, align 8
%276 = load ptr, ptr %16, align 8
%277 = load i32, ptr %17, align 4
%278 = load ptr, ptr %18, align 8
%279 = load i32, ptr %22, align 4
%280 = call i32 @make_html_table(ptr noundef %269, ptr noundef %270, ptr noundef %271, ptr noundef %93, i32 noundef %272, i32 noundef %273, i32 noundef %274, ptr noundef %275, ptr noundef %276, i32 noundef %277, ptr noundef %278, i32 noundef %279)
store i32 0, ptr %19, align 4
br label %281
281: ; preds = %299, %266
%282 = load i32, ptr %19, align 4
%283 = load i32, ptr %20, align 4
%284 = add nsw i32 %283, 1
%285 = icmp slt i32 %282, %284
br i1 %285, label %286, label %302
286: ; preds = %281
%287 = load i32, ptr %19, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds ptr, ptr %93, i64 %288
%290 = load ptr, ptr %289, align 8
%291 = icmp ne ptr %290, null
br i1 %291, label %292, label %298
292: ; preds = %286
%293 = load i32, ptr %19, align 4
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds ptr, ptr %93, i64 %294
%296 = load ptr, ptr %295, align 8
%297 = call i32 @free(ptr noundef %296)
br label %298
298: ; preds = %292, %286
br label %299
299: ; preds = %298
%300 = load i32, ptr %19, align 4
%301 = add nsw i32 %300, 1
store i32 %301, ptr %19, align 4
br label %281, !llvm.loop !12
302: ; preds = %281
%303 = load ptr, ptr %34, align 8
call void @llvm.stackrestore(ptr %303)
br label %304
304: ; preds = %302, %43
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @get_column_count(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_column_name(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @make_html_table(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1g7t9gdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"FROM\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Can't find FROM in the SQL statement.\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"No field names in sql string.\0A\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [35 x i8] c"SQLite couldn't parse SQL string.\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c"Memory allocation failed in asprintf.\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Found ' AS '\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"Malloc error.\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"Field %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_sql_field_names(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca i8, align 1
%29 = alloca i8, align 1
%30 = alloca i8, align 1
%31 = alloca i8, align 1
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca i64, align 8
%36 = alloca i32, align 4
%37 = alloca i32, align 4
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
store i32 0, ptr %19, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
store i32 1, ptr %22, align 4
store i32 0, ptr %23, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i8 97, ptr %28, align 1
store i8 98, ptr %29, align 1
store i8 99, ptr %30, align 1
store i8 100, ptr %31, align 1
store ptr null, ptr %32, align 8
store ptr null, ptr %33, align 8
%38 = load ptr, ptr %12, align 8
store ptr %38, ptr %26, align 8
%39 = load ptr, ptr %12, align 8
%40 = call ptr @strstr(ptr noundef %39, ptr noundef @.str)
store ptr %40, ptr %27, align 8
%41 = load ptr, ptr %27, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %45
43: ; preds = %9
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %319
45: ; preds = %9
%46 = load ptr, ptr %26, align 8
%47 = load ptr, ptr %27, align 8
%48 = icmp ult ptr %46, %47
br i1 %48, label %.lr.ph, label %81
.lr.ph: ; preds = %45
br label %49
49: ; preds = %.lr.ph, %75
%50 = load i8, ptr %29, align 1
store i8 %50, ptr %30, align 1
%51 = load i8, ptr %28, align 1
store i8 %51, ptr %29, align 1
%52 = load ptr, ptr %26, align 8
%53 = load i8, ptr %52, align 1
store i8 %53, ptr %28, align 1
%54 = load i8, ptr %30, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 32
br i1 %56, label %57, label %67
57: ; preds = %49
%58 = load i8, ptr %29, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 42
br i1 %60, label %61, label %67
61: ; preds = %57
%62 = load i8, ptr %28, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 32
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %22, align 4
br label %67
67: ; preds = %65, %61, %57, %49
%68 = load ptr, ptr %26, align 8
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 44
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i32, ptr %20, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %20, align 4
br label %75
75: ; preds = %72, %67
%76 = load ptr, ptr %26, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %26, align 8
%78 = load ptr, ptr %26, align 8
%79 = load ptr, ptr %27, align 8
%80 = icmp ult ptr %78, %79
br i1 %80, label %49, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %45
%82 = load i32, ptr %22, align 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %81
%85 = load ptr, ptr %11, align 8
%86 = load ptr, ptr %12, align 8
%87 = call i32 @get_column_count(ptr noundef %85, ptr noundef %86)
store i32 %87, ptr %23, align 4
%88 = load i32, ptr %23, align 4
%89 = sub nsw i32 %88, 1
store i32 %89, ptr %20, align 4
br label %90
90: ; preds = %84, %81
%91 = load i32, ptr %20, align 4
%92 = add nsw i32 %91, 1
%93 = zext i32 %92 to i64
%94 = call ptr @llvm.stacksave()
store ptr %94, ptr %34, align 8
%95 = alloca ptr, i64 %93, align 16
store i64 %93, ptr %35, align 8
store i32 0, ptr %19, align 4
%96 = load i32, ptr %19, align 4
%97 = load i32, ptr %20, align 4
%98 = add nsw i32 %97, 1
%99 = icmp slt i32 %96, %98
br i1 %99, label %.lr.ph2, label %111
.lr.ph2: ; preds = %90
br label %100
100: ; preds = %.lr.ph2, %104
%101 = load i32, ptr %19, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds ptr, ptr %95, i64 %102
store ptr null, ptr %103, align 8
br label %104
104: ; preds = %100
%105 = load i32, ptr %19, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %19, align 4
%107 = load i32, ptr %19, align 4
%108 = load i32, ptr %20, align 4
%109 = add nsw i32 %108, 1
%110 = icmp slt i32 %107, %109
br i1 %110, label %100, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %104
br label %111
111: ; preds = %._crit_edge3, %90
%112 = load i32, ptr %22, align 4
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %154
114: ; preds = %111
%115 = load ptr, ptr %11, align 8
%116 = call i32 @sqlite3_open(ptr noundef %115, ptr noundef %32)
%117 = load ptr, ptr %32, align 8
%118 = load ptr, ptr %12, align 8
%119 = call i32 @sqlite3_prepare_v2(ptr noundef %117, ptr noundef %118, i32 noundef -1, ptr noundef %33, i32 noundef 0)
store i32 %119, ptr %25, align 4
%120 = load i32, ptr %25, align 4
%121 = load i32, ptr @SQLITE_OK, align 4
%122 = icmp ne i32 %120, %121
br i1 %122, label %123, label %125
123: ; preds = %114
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %149
125: ; preds = %114
store i32 0, ptr %19, align 4
%126 = load i32, ptr %19, align 4
%127 = load i32, ptr %23, align 4
%128 = icmp slt i32 %126, %127
br i1 %128, label %.lr.ph5, label %148
.lr.ph5: ; preds = %125
br label %129
129: ; preds = %.lr.ph5, %142
%130 = load i32, ptr %19, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds ptr, ptr %95, i64 %131
%133 = load ptr, ptr %33, align 8
%134 = load i32, ptr %19, align 4
%135 = call i32 @sqlite3_column_name(ptr noundef %133, i32 noundef %134)
%136 = call i32 @asprintf(ptr noundef %132, ptr noundef @.str.4, i32 noundef %135)
store i32 %136, ptr %24, align 4
%137 = load i32, ptr %24, align 4
%138 = icmp eq i32 %137, -1
br i1 %138, label %139, label %141
139: ; preds = %129
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %141
141: ; preds = %139, %129
br label %142
142: ; preds = %141
%143 = load i32, ptr %19, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %19, align 4
%145 = load i32, ptr %19, align 4
%146 = load i32, ptr %23, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %129, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %142
br label %148
148: ; preds = %._crit_edge6, %125
br label %149
149: ; preds = %148, %123
%150 = load ptr, ptr %33, align 8
%151 = call i32 @sqlite3_finalize(ptr noundef %150)
%152 = load ptr, ptr %32, align 8
%153 = call i32 @sqlite3_close(ptr noundef %152)
br label %154
154: ; preds = %149, %111
store i32 0, ptr %19, align 4
%155 = load i32, ptr %22, align 4
%156 = icmp eq i32 %155, 1
br i1 %156, label %157, label %260
157: ; preds = %154
store i32 7, ptr %36, align 4
store i32 7, ptr %37, align 4
%158 = load ptr, ptr %12, align 8
%159 = getelementptr inbounds i8, ptr %158, i64 7
store ptr %159, ptr %26, align 8
%160 = load ptr, ptr %26, align 8
%161 = load ptr, ptr %27, align 8
%162 = icmp ult ptr %160, %161
br i1 %162, label %.lr.ph8, label %259
.lr.ph8: ; preds = %157
br label %163
163: ; preds = %.lr.ph8, %251
%164 = load i8, ptr %30, align 1
store i8 %164, ptr %31, align 1
%165 = load i8, ptr %29, align 1
store i8 %165, ptr %30, align 1
%166 = load i8, ptr %28, align 1
store i8 %166, ptr %29, align 1
%167 = load ptr, ptr %26, align 8
%168 = load i8, ptr %167, align 1
store i8 %168, ptr %28, align 1
%169 = load i8, ptr %31, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 32
br i1 %171, label %172, label %188
172: ; preds = %163
%173 = load i8, ptr %30, align 1
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %174, 65
br i1 %175, label %176, label %188
176: ; preds = %172
%177 = load i8, ptr %29, align 1
%178 = sext i8 %177 to i32
%179 = icmp eq i32 %178, 83
br i1 %179, label %180, label %188
180: ; preds = %176
%181 = load i8, ptr %28, align 1
%182 = sext i8 %181 to i32
%183 = icmp eq i32 %182, 32
br i1 %183, label %184, label %188
184: ; preds = %180
%185 = load i32, ptr %36, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %37, align 4
%187 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %188
188: ; preds = %184, %180, %176, %172, %163
%189 = load ptr, ptr %26, align 8
%190 = load i8, ptr %189, align 1
%191 = sext i8 %190 to i32
%192 = icmp eq i32 %191, 44
br i1 %192, label %198, label %193
193: ; preds = %188
%194 = load ptr, ptr %26, align 8
%195 = load ptr, ptr %27, align 8
%196 = getelementptr inbounds i8, ptr %195, i64 -1
%197 = icmp eq ptr %194, %196
br i1 %197, label %198, label %251
198: ; preds = %193, %188
%199 = load i32, ptr %36, align 4
%200 = load i32, ptr %37, align 4
%201 = sub nsw i32 %199, %200
%202 = add nsw i32 %201, 1
%203 = sext i32 %202 to i64
%204 = mul i64 %203, 1
%205 = trunc i64 %204 to i32
%206 = call i64 @malloc(i32 noundef %205)
%207 = inttoptr i64 %206 to ptr
%208 = load i32, ptr %19, align 4
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds ptr, ptr %95, i64 %209
store ptr %207, ptr %210, align 8
%211 = load i32, ptr %19, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds ptr, ptr %95, i64 %212
%214 = load ptr, ptr %213, align 8
%215 = icmp ne ptr %214, null
br i1 %215, label %216, label %226
216: ; preds = %198
%217 = load i32, ptr %19, align 4
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds ptr, ptr %95, i64 %218
%220 = load ptr, ptr %219, align 8
%221 = load i32, ptr %36, align 4
%222 = load i32, ptr %37, align 4
%223 = sub nsw i32 %221, %222
%224 = add nsw i32 %223, 1
%225 = call i32 @memset(ptr noundef %220, i8 noundef signext 0, i32 noundef %224)
br label %226
226: ; preds = %216, %198
%227 = load i32, ptr %19, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds ptr, ptr %95, i64 %228
%230 = load ptr, ptr %229, align 8
%231 = icmp eq ptr %230, null
br i1 %231, label %232, label %234
232: ; preds = %226
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %234
234: ; preds = %232, %226
%235 = load i32, ptr %19, align 4
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds ptr, ptr %95, i64 %236
%238 = load ptr, ptr %237, align 8
%239 = load ptr, ptr %12, align 8
%240 = load i32, ptr %37, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds i8, ptr %239, i64 %241
%243 = load i32, ptr %36, align 4
%244 = load i32, ptr %37, align 4
%245 = sub nsw i32 %243, %244
%246 = call i32 @strncpy(ptr noundef %238, ptr noundef %242, i32 noundef %245)
%247 = load i32, ptr %19, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %19, align 4
%249 = load i32, ptr %36, align 4
%250 = add nsw i32 %249, 2
store i32 %250, ptr %37, align 4
br label %251
251: ; preds = %234, %193
%252 = load i32, ptr %36, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr %36, align 4
%254 = load ptr, ptr %26, align 8
%255 = getelementptr inbounds i8, ptr %254, i32 1
store ptr %255, ptr %26, align 8
%256 = load ptr, ptr %26, align 8
%257 = load ptr, ptr %27, align 8
%258 = icmp ult ptr %256, %257
br i1 %258, label %163, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %251
br label %259
259: ; preds = %._crit_edge9, %157
br label %260
260: ; preds = %259, %154
store i32 0, ptr %19, align 4
%261 = load i32, ptr %19, align 4
%262 = load i32, ptr %20, align 4
%263 = add nsw i32 %262, 1
%264 = icmp slt i32 %261, %263
br i1 %264, label %.lr.ph11, label %278
.lr.ph11: ; preds = %260
br label %265
265: ; preds = %.lr.ph11, %271
%266 = load i32, ptr %19, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds ptr, ptr %95, i64 %267
%269 = load ptr, ptr %268, align 8
%270 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %269)
br label %271
271: ; preds = %265
%272 = load i32, ptr %19, align 4
%273 = add nsw i32 %272, 1
store i32 %273, ptr %19, align 4
%274 = load i32, ptr %19, align 4
%275 = load i32, ptr %20, align 4
%276 = add nsw i32 %275, 1
%277 = icmp slt i32 %274, %276
br i1 %277, label %265, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %271
br label %278
278: ; preds = %._crit_edge12, %260
%279 = load i32, ptr %20, align 4
%280 = add nsw i32 %279, 1
store i32 %280, ptr %21, align 4
%281 = load ptr, ptr %10, align 8
%282 = load ptr, ptr %11, align 8
%283 = load ptr, ptr %12, align 8
%284 = load i32, ptr %21, align 4
%285 = load i32, ptr %13, align 4
%286 = load i32, ptr %14, align 4
%287 = load ptr, ptr %15, align 8
%288 = load ptr, ptr %16, align 8
%289 = load i32, ptr %17, align 4
%290 = load ptr, ptr %18, align 8
%291 = load i32, ptr %22, align 4
%292 = call i32 @make_html_table(ptr noundef %281, ptr noundef %282, ptr noundef %283, ptr noundef %95, i32 noundef %284, i32 noundef %285, i32 noundef %286, ptr noundef %287, ptr noundef %288, i32 noundef %289, ptr noundef %290, i32 noundef %291)
store i32 0, ptr %19, align 4
%293 = load i32, ptr %19, align 4
%294 = load i32, ptr %20, align 4
%295 = add nsw i32 %294, 1
%296 = icmp slt i32 %293, %295
br i1 %296, label %.lr.ph14, label %317
.lr.ph14: ; preds = %278
br label %297
297: ; preds = %.lr.ph14, %310
%298 = load i32, ptr %19, align 4
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds ptr, ptr %95, i64 %299
%301 = load ptr, ptr %300, align 8
%302 = icmp ne ptr %301, null
br i1 %302, label %303, label %309
303: ; preds = %297
%304 = load i32, ptr %19, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds ptr, ptr %95, i64 %305
%307 = load ptr, ptr %306, align 8
%308 = call i32 @free(ptr noundef %307)
br label %309
309: ; preds = %303, %297
br label %310
310: ; preds = %309
%311 = load i32, ptr %19, align 4
%312 = add nsw i32 %311, 1
store i32 %312, ptr %19, align 4
%313 = load i32, ptr %19, align 4
%314 = load i32, ptr %20, align 4
%315 = add nsw i32 %314, 1
%316 = icmp slt i32 %313, %315
br i1 %316, label %297, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %310
br label %317
317: ; preds = %._crit_edge15, %278
%318 = load ptr, ptr %34, align 8
call void @llvm.stackrestore(ptr %318)
br label %319
319: ; preds = %317, %43
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @get_column_count(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_column_name(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @make_html_table(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp1bb6hsuz.c'
source_filename = "/tmp/tmp1bb6hsuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32, i32, i32 }
%struct.utimbuf = type { i32, i32 }
%struct.iovec = type { ptr, i32 }
%struct.dirent = type { i32 }
@.str = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file1\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file2\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file3\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"/tmp/linux-test.tmp\00", align 1
@.str.4 = private unnamed_addr constant [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/01org/KVMGT-qemu/refs/heads/162/qemu-1.7.0/tests/tcg/linux-test.c\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"getcwd\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"file1\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"writev\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"file2\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"memcmp\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"readv\00", align 1
@R_OK = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [10 x i8] c"stat size\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"stat mode\00", align 1
@.str.16 = private unnamed_addr constant [11 x i8] c"stat mode2\00", align 1
@.str.17 = private unnamed_addr constant [10 x i8] c"stat time\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [6 x i8] c"file3\00", align 1
@.str.19 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.21 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.22 = private unnamed_addr constant [8 x i8] c"readdir\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_file() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [300 x i32], align 16
%6 = alloca [300 x i32], align 16
%7 = alloca [300 x i32], align 16
%8 = alloca [1024 x i8], align 16
%9 = alloca %struct.stat, align 4
%10 = alloca %struct.utimbuf, align 4
%11 = alloca [2 x %struct.iovec], align 16
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = call i32 @unlink(ptr noundef @.str)
%15 = call i32 @unlink(ptr noundef @.str.1)
%16 = call i32 @unlink(ptr noundef @.str.2)
%17 = call i32 @rmdir(ptr noundef @.str.3)
%18 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%19 = call ptr @getcwd(ptr noundef %18, i32 noundef 1024)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 @error1(ptr noundef @.str.4, i32 noundef 95, ptr noundef @.str.5)
br label %23
23: ; preds = %21, %0
%24 = call i32 @mkdir(ptr noundef @.str.3, i32 noundef 493)
%25 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 97, i32 noundef %24)
%26 = call i32 @chdir(ptr noundef @.str.3)
%27 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 99, i32 noundef %26)
%28 = load i32, ptr @O_WRONLY, align 4
%29 = load i32, ptr @O_TRUNC, align 4
%30 = or i32 %28, %29
%31 = load i32, ptr @O_CREAT, align 4
%32 = or i32 %30, %31
%33 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.6, i32 noundef %32, i32 noundef 420)
%34 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 103, i32 noundef %33)
store i32 %34, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %35
35: ; preds = %43, %23
%36 = load i32, ptr %2, align 4
%37 = icmp slt i32 %36, 300
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 %41
store i32 %39, ptr %42, align 4
br label %43
43: ; preds = %38
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %2, align 4
br label %35, !llvm.loop !6
46: ; preds = %35
%47 = load i32, ptr %1, align 4
%48 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%49 = call i32 @write(i32 noundef %47, ptr noundef %48, i32 noundef 150)
%50 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 106, i32 noundef %49)
store i32 %50, ptr %3, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp ne i32 %51, 150
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = call i32 @error1(ptr noundef @.str.4, i32 noundef 108, ptr noundef @.str.7)
br label %55
55: ; preds = %53, %46
%56 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%57 = getelementptr inbounds i32, ptr %56, i64 150
%58 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%59 = getelementptr inbounds %struct.iovec, ptr %58, i32 0, i32 0
store ptr %57, ptr %59, align 16
%60 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%61 = getelementptr inbounds %struct.iovec, ptr %60, i32 0, i32 1
store i32 16, ptr %61, align 8
%62 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%63 = getelementptr inbounds i32, ptr %62, i64 150
%64 = getelementptr inbounds i32, ptr %63, i64 16
%65 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%66 = getelementptr inbounds %struct.iovec, ptr %65, i32 0, i32 0
store ptr %64, ptr %66, align 16
%67 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%68 = getelementptr inbounds %struct.iovec, ptr %67, i32 0, i32 1
store i32 134, ptr %68, align 8
%69 = load i32, ptr %1, align 4
%70 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%71 = call i32 @writev(i32 noundef %69, ptr noundef %70, i32 noundef 2)
%72 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 113, i32 noundef %71)
store i32 %72, ptr %3, align 4
%73 = load i32, ptr %3, align 4
%74 = icmp ne i32 %73, 150
br i1 %74, label %75, label %77
75: ; preds = %55
%76 = call i32 @error1(ptr noundef @.str.4, i32 noundef 115, ptr noundef @.str.8)
br label %77
77: ; preds = %75, %55
%78 = load i32, ptr %1, align 4
%79 = call i32 @close(i32 noundef %78)
%80 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 116, i32 noundef %79)
%81 = call i32 @rename(ptr noundef @.str.6, ptr noundef @.str.9)
%82 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 118, i32 noundef %81)
%83 = load i32, ptr @O_RDONLY, align 4
%84 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.9, i32 noundef %83)
%85 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 120, i32 noundef %84)
store i32 %85, ptr %1, align 4
%86 = load i32, ptr %1, align 4
%87 = getelementptr inbounds [300 x i32], ptr %6, i64 0, i64 0
%88 = call i32 @read(i32 noundef %86, ptr noundef %87, i32 noundef 300)
%89 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 122, i32 noundef %88)
store i32 %89, ptr %3, align 4
%90 = load i32, ptr %3, align 4
%91 = icmp ne i32 %90, 300
br i1 %91, label %92, label %94
92: ; preds = %77
%93 = call i32 @error1(ptr noundef @.str.4, i32 noundef 124, ptr noundef @.str.10)
br label %94
94: ; preds = %92, %77
%95 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%96 = getelementptr inbounds [300 x i32], ptr %6, i64 0, i64 0
%97 = call i64 @memcmp(ptr noundef %95, ptr noundef %96, i32 noundef 300)
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %94
%100 = call i32 @error1(ptr noundef @.str.4, i32 noundef 126, ptr noundef @.str.11)
br label %101
101: ; preds = %99, %94
%102 = load i32, ptr %1, align 4
%103 = load i32, ptr @SEEK_SET, align 4
%104 = call i32 @lseek(i32 noundef %102, i32 noundef 16, i32 noundef %103)
%105 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 129, i32 noundef %104)
store i32 %105, ptr %4, align 4
%106 = load i32, ptr %4, align 4
%107 = icmp ne i32 %106, 16
br i1 %107, label %108, label %110
108: ; preds = %101
%109 = call i32 @error1(ptr noundef @.str.4, i32 noundef 131, ptr noundef @.str.12)
br label %110
110: ; preds = %108, %101
%111 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%112 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%113 = getelementptr inbounds %struct.iovec, ptr %112, i32 0, i32 0
store ptr %111, ptr %113, align 16
%114 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%115 = getelementptr inbounds %struct.iovec, ptr %114, i32 0, i32 1
store i32 32, ptr %115, align 8
%116 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%117 = getelementptr inbounds i32, ptr %116, i64 32
%118 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%119 = getelementptr inbounds %struct.iovec, ptr %118, i32 0, i32 0
store ptr %117, ptr %119, align 16
%120 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%121 = getelementptr inbounds %struct.iovec, ptr %120, i32 0, i32 1
store i32 252, ptr %121, align 8
%122 = load i32, ptr %1, align 4
%123 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%124 = call i32 @readv(i32 noundef %122, ptr noundef %123, i32 noundef 2)
%125 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 136, i32 noundef %124)
store i32 %125, ptr %3, align 4
%126 = load i32, ptr %3, align 4
%127 = icmp ne i32 %126, 284
br i1 %127, label %128, label %130
128: ; preds = %110
%129 = call i32 @error1(ptr noundef @.str.4, i32 noundef 138, ptr noundef @.str.13)
br label %130
130: ; preds = %128, %110
%131 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%132 = getelementptr inbounds i32, ptr %131, i64 16
%133 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%134 = call i64 @memcmp(ptr noundef %132, ptr noundef %133, i32 noundef 284)
%135 = icmp ne i64 %134, 0
br i1 %135, label %136, label %138
136: ; preds = %130
%137 = call i32 @error1(ptr noundef @.str.4, i32 noundef 140, ptr noundef @.str.11)
br label %138
138: ; preds = %136, %130
%139 = load i32, ptr %1, align 4
%140 = call i32 @close(i32 noundef %139)
%141 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 142, i32 noundef %140)
%142 = load i32, ptr @R_OK, align 4
%143 = call i32 @access(ptr noundef @.str.9, i32 noundef %142)
%144 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 145, i32 noundef %143)
%145 = call i32 @chmod(ptr noundef @.str.9, i32 noundef 384)
%146 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 149, i32 noundef %145)
%147 = getelementptr inbounds %struct.utimbuf, ptr %10, i32 0, i32 0
store i32 1001, ptr %147, align 4
%148 = getelementptr inbounds %struct.utimbuf, ptr %10, i32 0, i32 1
store i32 1000, ptr %148, align 4
%149 = call i32 @truncate(ptr noundef @.str.9, i32 noundef 100)
%150 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 152, i32 noundef %149)
%151 = call i32 @utime(ptr noundef @.str.9, ptr noundef %10)
%152 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 153, i32 noundef %151)
%153 = call i32 @stat(ptr noundef @.str.9, ptr noundef %9)
%154 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 154, i32 noundef %153)
%155 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%156 = load i32, ptr %155, align 4
%157 = icmp ne i32 %156, 100
br i1 %157, label %158, label %160
158: ; preds = %138
%159 = call i32 @error1(ptr noundef @.str.4, i32 noundef 156, ptr noundef @.str.14)
br label %160
160: ; preds = %158, %138
%161 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%162 = load i32, ptr %161, align 4
%163 = call i32 @S_ISREG(i32 noundef %162)
%164 = icmp ne i32 %163, 0
br i1 %164, label %167, label %165
165: ; preds = %160
%166 = call i32 @error1(ptr noundef @.str.4, i32 noundef 158, ptr noundef @.str.15)
br label %167
167: ; preds = %165, %160
%168 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%169 = load i32, ptr %168, align 4
%170 = and i32 %169, 511
%171 = icmp ne i32 %170, 384
br i1 %171, label %172, label %174
172: ; preds = %167
%173 = call i32 @error1(ptr noundef @.str.4, i32 noundef 160, ptr noundef @.str.16)
br label %174
174: ; preds = %172, %167
%175 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 2
%176 = load i32, ptr %175, align 4
%177 = icmp ne i32 %176, 1001
br i1 %177, label %182, label %178
178: ; preds = %174
%179 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 3
%180 = load i32, ptr %179, align 4
%181 = icmp ne i32 %180, 1000
br i1 %181, label %182, label %184
182: ; preds = %178, %174
%183 = call i32 @error1(ptr noundef @.str.4, i32 noundef 163, ptr noundef @.str.17)
br label %184
184: ; preds = %182, %178
%185 = call i32 @stat(ptr noundef @.str.3, ptr noundef %9)
%186 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 165, i32 noundef %185)
%187 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%188 = load i32, ptr %187, align 4
%189 = call i32 @S_ISDIR(i32 noundef %188)
%190 = icmp ne i32 %189, 0
br i1 %190, label %193, label %191
191: ; preds = %184
%192 = call i32 @error1(ptr noundef @.str.4, i32 noundef 167, ptr noundef @.str.15)
br label %193
193: ; preds = %191, %184
%194 = load i32, ptr @O_RDWR, align 4
%195 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.9, i32 noundef %194)
%196 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 170, i32 noundef %195)
store i32 %196, ptr %1, align 4
%197 = load i32, ptr %1, align 4
%198 = call i32 @ftruncate(i32 noundef %197, i32 noundef 50)
%199 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 171, i32 noundef %198)
%200 = load i32, ptr %1, align 4
%201 = call i32 @fstat(i32 noundef %200, ptr noundef %9)
%202 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 172, i32 noundef %201)
%203 = load i32, ptr %1, align 4
%204 = call i32 @close(i32 noundef %203)
%205 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 173, i32 noundef %204)
%206 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%207 = load i32, ptr %206, align 4
%208 = icmp ne i32 %207, 50
br i1 %208, label %209, label %211
209: ; preds = %193
%210 = call i32 @error1(ptr noundef @.str.4, i32 noundef 176, ptr noundef @.str.14)
br label %211
211: ; preds = %209, %193
%212 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%213 = load i32, ptr %212, align 4
%214 = call i32 @S_ISREG(i32 noundef %213)
%215 = icmp ne i32 %214, 0
br i1 %215, label %218, label %216
216: ; preds = %211
%217 = call i32 @error1(ptr noundef @.str.4, i32 noundef 178, ptr noundef @.str.15)
br label %218
218: ; preds = %216, %211
%219 = call i32 @symlink(ptr noundef @.str.9, ptr noundef @.str.18)
%220 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 181, i32 noundef %219)
%221 = call i32 @lstat(ptr noundef @.str.18, ptr noundef %9)
%222 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 182, i32 noundef %221)
%223 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%224 = load i32, ptr %223, align 4
%225 = call i32 @S_ISLNK(i32 noundef %224)
%226 = icmp ne i32 %225, 0
br i1 %226, label %229, label %227
227: ; preds = %218
%228 = call i32 @error1(ptr noundef @.str.4, i32 noundef 184, ptr noundef @.str.15)
br label %229
229: ; preds = %227, %218
%230 = call ptr @opendir(ptr noundef @.str.3)
store ptr %230, ptr %12, align 8
%231 = load ptr, ptr %12, align 8
%232 = icmp ne ptr %231, null
br i1 %232, label %235, label %233
233: ; preds = %229
%234 = call i32 @error1(ptr noundef @.str.4, i32 noundef 189, ptr noundef @.str.19)
br label %235
235: ; preds = %233, %229
store i32 0, ptr %3, align 4
br label %236
236: ; preds = %268, %235
%237 = load ptr, ptr %12, align 8
%238 = call ptr @readdir(ptr noundef %237)
store ptr %238, ptr %13, align 8
%239 = load ptr, ptr %13, align 8
%240 = icmp ne ptr %239, null
br i1 %240, label %242, label %241
241: ; preds = %236
br label %271
242: ; preds = %236
%243 = load ptr, ptr %13, align 8
%244 = getelementptr inbounds %struct.dirent, ptr %243, i32 0, i32 0
%245 = load i32, ptr %244, align 4
%246 = call i64 @strcmp(i32 noundef %245, ptr noundef @.str.20)
%247 = icmp ne i64 %246, 0
br i1 %247, label %248, label %268
248: ; preds = %242
%249 = load ptr, ptr %13, align 8
%250 = getelementptr inbounds %struct.dirent, ptr %249, i32 0, i32 0
%251 = load i32, ptr %250, align 4
%252 = call i64 @strcmp(i32 noundef %251, ptr noundef @.str.21)
%253 = icmp ne i64 %252, 0
br i1 %253, label %254, label %268
254: ; preds = %248
%255 = load ptr, ptr %13, align 8
%256 = getelementptr inbounds %struct.dirent, ptr %255, i32 0, i32 0
%257 = load i32, ptr %256, align 4
%258 = call i64 @strcmp(i32 noundef %257, ptr noundef @.str.9)
%259 = icmp ne i64 %258, 0
br i1 %259, label %260, label %268
260: ; preds = %254
%261 = load ptr, ptr %13, align 8
%262 = getelementptr inbounds %struct.dirent, ptr %261, i32 0, i32 0
%263 = load i32, ptr %262, align 4
%264 = call i64 @strcmp(i32 noundef %263, ptr noundef @.str.18)
%265 = icmp ne i64 %264, 0
br i1 %265, label %266, label %268
266: ; preds = %260
%267 = call i32 @error1(ptr noundef @.str.4, i32 noundef 199, ptr noundef @.str.22)
br label %268
268: ; preds = %266, %260, %254, %248, %242
%269 = load i32, ptr %3, align 4
%270 = add nsw i32 %269, 1
store i32 %270, ptr %3, align 4
br label %236
271: ; preds = %241
%272 = load ptr, ptr %12, align 8
%273 = call i32 @closedir(ptr noundef %272)
%274 = load i32, ptr %3, align 4
%275 = icmp ne i32 %274, 4
br i1 %275, label %276, label %278
276: ; preds = %271
%277 = call i32 @error1(ptr noundef @.str.4, i32 noundef 204, ptr noundef @.str.22)
br label %278
278: ; preds = %276, %271
%279 = call i32 @unlink(ptr noundef @.str.18)
%280 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 206, i32 noundef %279)
%281 = call i32 @unlink(ptr noundef @.str.9)
%282 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 207, i32 noundef %281)
%283 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%284 = call i32 @chdir(ptr noundef %283)
%285 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 208, i32 noundef %284)
%286 = call i32 @rmdir(ptr noundef @.str.3)
%287 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 209, i32 noundef %286)
ret void
}
declare i32 @unlink(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
declare ptr @getcwd(ptr noundef, i32 noundef) #1
declare i32 @error1(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @writev(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @readv(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare i32 @chmod(ptr noundef, i32 noundef) #1
declare i32 @truncate(ptr noundef, i32 noundef) #1
declare i32 @utime(ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISREG(i32 noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @symlink(ptr noundef, ptr noundef) #1
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i32 @S_ISLNK(i32 noundef) #1
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(i32 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1bb6hsuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32, i32, i32 }
%struct.utimbuf = type { i32, i32 }
%struct.iovec = type { ptr, i32 }
%struct.dirent = type { i32 }
@.str = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file1\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file2\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"/tmp/linux-test.tmp/file3\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"/tmp/linux-test.tmp\00", align 1
@.str.4 = private unnamed_addr constant [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/01org/KVMGT-qemu/refs/heads/162/qemu-1.7.0/tests/tcg/linux-test.c\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"getcwd\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"file1\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"writev\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"file2\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"memcmp\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [6 x i8] c"lseek\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"readv\00", align 1
@R_OK = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [10 x i8] c"stat size\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"stat mode\00", align 1
@.str.16 = private unnamed_addr constant [11 x i8] c"stat mode2\00", align 1
@.str.17 = private unnamed_addr constant [10 x i8] c"stat time\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [6 x i8] c"file3\00", align 1
@.str.19 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@.str.20 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.21 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.22 = private unnamed_addr constant [8 x i8] c"readdir\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_file() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [300 x i32], align 16
%6 = alloca [300 x i32], align 16
%7 = alloca [300 x i32], align 16
%8 = alloca [1024 x i8], align 16
%9 = alloca %struct.stat, align 4
%10 = alloca %struct.utimbuf, align 4
%11 = alloca [2 x %struct.iovec], align 16
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = call i32 @unlink(ptr noundef @.str)
%15 = call i32 @unlink(ptr noundef @.str.1)
%16 = call i32 @unlink(ptr noundef @.str.2)
%17 = call i32 @rmdir(ptr noundef @.str.3)
%18 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%19 = call ptr @getcwd(ptr noundef %18, i32 noundef 1024)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %0
%22 = call i32 @error1(ptr noundef @.str.4, i32 noundef 95, ptr noundef @.str.5)
br label %23
23: ; preds = %21, %0
%24 = call i32 @mkdir(ptr noundef @.str.3, i32 noundef 493)
%25 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 97, i32 noundef %24)
%26 = call i32 @chdir(ptr noundef @.str.3)
%27 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 99, i32 noundef %26)
%28 = load i32, ptr @O_WRONLY, align 4
%29 = load i32, ptr @O_TRUNC, align 4
%30 = or i32 %28, %29
%31 = load i32, ptr @O_CREAT, align 4
%32 = or i32 %30, %31
%33 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.6, i32 noundef %32, i32 noundef 420)
%34 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 103, i32 noundef %33)
store i32 %34, ptr %1, align 4
store i32 0, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %35, 300
br i1 %36, label %.lr.ph, label %47
.lr.ph: ; preds = %23
br label %37
37: ; preds = %.lr.ph, %42
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 %40
store i32 %38, ptr %41, align 4
br label %42
42: ; preds = %37
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %2, align 4
%45 = load i32, ptr %2, align 4
%46 = icmp slt i32 %45, 300
br i1 %46, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %47
47: ; preds = %._crit_edge, %23
%48 = load i32, ptr %1, align 4
%49 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%50 = call i32 @write(i32 noundef %48, ptr noundef %49, i32 noundef 150)
%51 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 106, i32 noundef %50)
store i32 %51, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = icmp ne i32 %52, 150
br i1 %53, label %54, label %56
54: ; preds = %47
%55 = call i32 @error1(ptr noundef @.str.4, i32 noundef 108, ptr noundef @.str.7)
br label %56
56: ; preds = %54, %47
%57 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%58 = getelementptr inbounds i32, ptr %57, i64 150
%59 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%60 = getelementptr inbounds %struct.iovec, ptr %59, i32 0, i32 0
store ptr %58, ptr %60, align 16
%61 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%62 = getelementptr inbounds %struct.iovec, ptr %61, i32 0, i32 1
store i32 16, ptr %62, align 8
%63 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%64 = getelementptr inbounds i32, ptr %63, i64 150
%65 = getelementptr inbounds i32, ptr %64, i64 16
%66 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%67 = getelementptr inbounds %struct.iovec, ptr %66, i32 0, i32 0
store ptr %65, ptr %67, align 16
%68 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%69 = getelementptr inbounds %struct.iovec, ptr %68, i32 0, i32 1
store i32 134, ptr %69, align 8
%70 = load i32, ptr %1, align 4
%71 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%72 = call i32 @writev(i32 noundef %70, ptr noundef %71, i32 noundef 2)
%73 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 113, i32 noundef %72)
store i32 %73, ptr %3, align 4
%74 = load i32, ptr %3, align 4
%75 = icmp ne i32 %74, 150
br i1 %75, label %76, label %78
76: ; preds = %56
%77 = call i32 @error1(ptr noundef @.str.4, i32 noundef 115, ptr noundef @.str.8)
br label %78
78: ; preds = %76, %56
%79 = load i32, ptr %1, align 4
%80 = call i32 @close(i32 noundef %79)
%81 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 116, i32 noundef %80)
%82 = call i32 @rename(ptr noundef @.str.6, ptr noundef @.str.9)
%83 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 118, i32 noundef %82)
%84 = load i32, ptr @O_RDONLY, align 4
%85 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.9, i32 noundef %84)
%86 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 120, i32 noundef %85)
store i32 %86, ptr %1, align 4
%87 = load i32, ptr %1, align 4
%88 = getelementptr inbounds [300 x i32], ptr %6, i64 0, i64 0
%89 = call i32 @read(i32 noundef %87, ptr noundef %88, i32 noundef 300)
%90 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 122, i32 noundef %89)
store i32 %90, ptr %3, align 4
%91 = load i32, ptr %3, align 4
%92 = icmp ne i32 %91, 300
br i1 %92, label %93, label %95
93: ; preds = %78
%94 = call i32 @error1(ptr noundef @.str.4, i32 noundef 124, ptr noundef @.str.10)
br label %95
95: ; preds = %93, %78
%96 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%97 = getelementptr inbounds [300 x i32], ptr %6, i64 0, i64 0
%98 = call i64 @memcmp(ptr noundef %96, ptr noundef %97, i32 noundef 300)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %95
%101 = call i32 @error1(ptr noundef @.str.4, i32 noundef 126, ptr noundef @.str.11)
br label %102
102: ; preds = %100, %95
%103 = load i32, ptr %1, align 4
%104 = load i32, ptr @SEEK_SET, align 4
%105 = call i32 @lseek(i32 noundef %103, i32 noundef 16, i32 noundef %104)
%106 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 129, i32 noundef %105)
store i32 %106, ptr %4, align 4
%107 = load i32, ptr %4, align 4
%108 = icmp ne i32 %107, 16
br i1 %108, label %109, label %111
109: ; preds = %102
%110 = call i32 @error1(ptr noundef @.str.4, i32 noundef 131, ptr noundef @.str.12)
br label %111
111: ; preds = %109, %102
%112 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%113 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%114 = getelementptr inbounds %struct.iovec, ptr %113, i32 0, i32 0
store ptr %112, ptr %114, align 16
%115 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%116 = getelementptr inbounds %struct.iovec, ptr %115, i32 0, i32 1
store i32 32, ptr %116, align 8
%117 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%118 = getelementptr inbounds i32, ptr %117, i64 32
%119 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%120 = getelementptr inbounds %struct.iovec, ptr %119, i32 0, i32 0
store ptr %118, ptr %120, align 16
%121 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 1
%122 = getelementptr inbounds %struct.iovec, ptr %121, i32 0, i32 1
store i32 252, ptr %122, align 8
%123 = load i32, ptr %1, align 4
%124 = getelementptr inbounds [2 x %struct.iovec], ptr %11, i64 0, i64 0
%125 = call i32 @readv(i32 noundef %123, ptr noundef %124, i32 noundef 2)
%126 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 136, i32 noundef %125)
store i32 %126, ptr %3, align 4
%127 = load i32, ptr %3, align 4
%128 = icmp ne i32 %127, 284
br i1 %128, label %129, label %131
129: ; preds = %111
%130 = call i32 @error1(ptr noundef @.str.4, i32 noundef 138, ptr noundef @.str.13)
br label %131
131: ; preds = %129, %111
%132 = getelementptr inbounds [300 x i32], ptr %5, i64 0, i64 0
%133 = getelementptr inbounds i32, ptr %132, i64 16
%134 = getelementptr inbounds [300 x i32], ptr %7, i64 0, i64 0
%135 = call i64 @memcmp(ptr noundef %133, ptr noundef %134, i32 noundef 284)
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %131
%138 = call i32 @error1(ptr noundef @.str.4, i32 noundef 140, ptr noundef @.str.11)
br label %139
139: ; preds = %137, %131
%140 = load i32, ptr %1, align 4
%141 = call i32 @close(i32 noundef %140)
%142 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 142, i32 noundef %141)
%143 = load i32, ptr @R_OK, align 4
%144 = call i32 @access(ptr noundef @.str.9, i32 noundef %143)
%145 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 145, i32 noundef %144)
%146 = call i32 @chmod(ptr noundef @.str.9, i32 noundef 384)
%147 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 149, i32 noundef %146)
%148 = getelementptr inbounds %struct.utimbuf, ptr %10, i32 0, i32 0
store i32 1001, ptr %148, align 4
%149 = getelementptr inbounds %struct.utimbuf, ptr %10, i32 0, i32 1
store i32 1000, ptr %149, align 4
%150 = call i32 @truncate(ptr noundef @.str.9, i32 noundef 100)
%151 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 152, i32 noundef %150)
%152 = call i32 @utime(ptr noundef @.str.9, ptr noundef %10)
%153 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 153, i32 noundef %152)
%154 = call i32 @stat(ptr noundef @.str.9, ptr noundef %9)
%155 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 154, i32 noundef %154)
%156 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%157 = load i32, ptr %156, align 4
%158 = icmp ne i32 %157, 100
br i1 %158, label %159, label %161
159: ; preds = %139
%160 = call i32 @error1(ptr noundef @.str.4, i32 noundef 156, ptr noundef @.str.14)
br label %161
161: ; preds = %159, %139
%162 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%163 = load i32, ptr %162, align 4
%164 = call i32 @S_ISREG(i32 noundef %163)
%165 = icmp ne i32 %164, 0
br i1 %165, label %168, label %166
166: ; preds = %161
%167 = call i32 @error1(ptr noundef @.str.4, i32 noundef 158, ptr noundef @.str.15)
br label %168
168: ; preds = %166, %161
%169 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%170 = load i32, ptr %169, align 4
%171 = and i32 %170, 511
%172 = icmp ne i32 %171, 384
br i1 %172, label %173, label %175
173: ; preds = %168
%174 = call i32 @error1(ptr noundef @.str.4, i32 noundef 160, ptr noundef @.str.16)
br label %175
175: ; preds = %173, %168
%176 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 2
%177 = load i32, ptr %176, align 4
%178 = icmp ne i32 %177, 1001
br i1 %178, label %183, label %179
179: ; preds = %175
%180 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 3
%181 = load i32, ptr %180, align 4
%182 = icmp ne i32 %181, 1000
br i1 %182, label %183, label %185
183: ; preds = %179, %175
%184 = call i32 @error1(ptr noundef @.str.4, i32 noundef 163, ptr noundef @.str.17)
br label %185
185: ; preds = %183, %179
%186 = call i32 @stat(ptr noundef @.str.3, ptr noundef %9)
%187 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 165, i32 noundef %186)
%188 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%189 = load i32, ptr %188, align 4
%190 = call i32 @S_ISDIR(i32 noundef %189)
%191 = icmp ne i32 %190, 0
br i1 %191, label %194, label %192
192: ; preds = %185
%193 = call i32 @error1(ptr noundef @.str.4, i32 noundef 167, ptr noundef @.str.15)
br label %194
194: ; preds = %192, %185
%195 = load i32, ptr @O_RDWR, align 4
%196 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.9, i32 noundef %195)
%197 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 170, i32 noundef %196)
store i32 %197, ptr %1, align 4
%198 = load i32, ptr %1, align 4
%199 = call i32 @ftruncate(i32 noundef %198, i32 noundef 50)
%200 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 171, i32 noundef %199)
%201 = load i32, ptr %1, align 4
%202 = call i32 @fstat(i32 noundef %201, ptr noundef %9)
%203 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 172, i32 noundef %202)
%204 = load i32, ptr %1, align 4
%205 = call i32 @close(i32 noundef %204)
%206 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 173, i32 noundef %205)
%207 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%208 = load i32, ptr %207, align 4
%209 = icmp ne i32 %208, 50
br i1 %209, label %210, label %212
210: ; preds = %194
%211 = call i32 @error1(ptr noundef @.str.4, i32 noundef 176, ptr noundef @.str.14)
br label %212
212: ; preds = %210, %194
%213 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%214 = load i32, ptr %213, align 4
%215 = call i32 @S_ISREG(i32 noundef %214)
%216 = icmp ne i32 %215, 0
br i1 %216, label %219, label %217
217: ; preds = %212
%218 = call i32 @error1(ptr noundef @.str.4, i32 noundef 178, ptr noundef @.str.15)
br label %219
219: ; preds = %217, %212
%220 = call i32 @symlink(ptr noundef @.str.9, ptr noundef @.str.18)
%221 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 181, i32 noundef %220)
%222 = call i32 @lstat(ptr noundef @.str.18, ptr noundef %9)
%223 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 182, i32 noundef %222)
%224 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 1
%225 = load i32, ptr %224, align 4
%226 = call i32 @S_ISLNK(i32 noundef %225)
%227 = icmp ne i32 %226, 0
br i1 %227, label %230, label %228
228: ; preds = %219
%229 = call i32 @error1(ptr noundef @.str.4, i32 noundef 184, ptr noundef @.str.15)
br label %230
230: ; preds = %228, %219
%231 = call ptr @opendir(ptr noundef @.str.3)
store ptr %231, ptr %12, align 8
%232 = load ptr, ptr %12, align 8
%233 = icmp ne ptr %232, null
br i1 %233, label %236, label %234
234: ; preds = %230
%235 = call i32 @error1(ptr noundef @.str.4, i32 noundef 189, ptr noundef @.str.19)
br label %236
236: ; preds = %234, %230
store i32 0, ptr %3, align 4
%237 = load ptr, ptr %12, align 8
%238 = call ptr @readdir(ptr noundef %237)
store ptr %238, ptr %13, align 8
%239 = load ptr, ptr %13, align 8
%240 = icmp ne ptr %239, null
br i1 %240, label %.lr.ph2, label %241
.lr.ph2: ; preds = %236
br label %242
._crit_edge3: ; preds = %268
br label %241
241: ; preds = %._crit_edge3, %236
br label %275
242: ; preds = %.lr.ph2, %268
%243 = load ptr, ptr %13, align 8
%244 = getelementptr inbounds %struct.dirent, ptr %243, i32 0, i32 0
%245 = load i32, ptr %244, align 4
%246 = call i64 @strcmp(i32 noundef %245, ptr noundef @.str.20)
%247 = icmp ne i64 %246, 0
br i1 %247, label %248, label %268
248: ; preds = %242
%249 = load ptr, ptr %13, align 8
%250 = getelementptr inbounds %struct.dirent, ptr %249, i32 0, i32 0
%251 = load i32, ptr %250, align 4
%252 = call i64 @strcmp(i32 noundef %251, ptr noundef @.str.21)
%253 = icmp ne i64 %252, 0
br i1 %253, label %254, label %268
254: ; preds = %248
%255 = load ptr, ptr %13, align 8
%256 = getelementptr inbounds %struct.dirent, ptr %255, i32 0, i32 0
%257 = load i32, ptr %256, align 4
%258 = call i64 @strcmp(i32 noundef %257, ptr noundef @.str.9)
%259 = icmp ne i64 %258, 0
br i1 %259, label %260, label %268
260: ; preds = %254
%261 = load ptr, ptr %13, align 8
%262 = getelementptr inbounds %struct.dirent, ptr %261, i32 0, i32 0
%263 = load i32, ptr %262, align 4
%264 = call i64 @strcmp(i32 noundef %263, ptr noundef @.str.18)
%265 = icmp ne i64 %264, 0
br i1 %265, label %266, label %268
266: ; preds = %260
%267 = call i32 @error1(ptr noundef @.str.4, i32 noundef 199, ptr noundef @.str.22)
br label %268
268: ; preds = %266, %260, %254, %248, %242
%269 = load i32, ptr %3, align 4
%270 = add nsw i32 %269, 1
store i32 %270, ptr %3, align 4
%271 = load ptr, ptr %12, align 8
%272 = call ptr @readdir(ptr noundef %271)
store ptr %272, ptr %13, align 8
%273 = load ptr, ptr %13, align 8
%274 = icmp ne ptr %273, null
br i1 %274, label %242, label %._crit_edge3
275: ; preds = %241
%276 = load ptr, ptr %12, align 8
%277 = call i32 @closedir(ptr noundef %276)
%278 = load i32, ptr %3, align 4
%279 = icmp ne i32 %278, 4
br i1 %279, label %280, label %282
280: ; preds = %275
%281 = call i32 @error1(ptr noundef @.str.4, i32 noundef 204, ptr noundef @.str.22)
br label %282
282: ; preds = %280, %275
%283 = call i32 @unlink(ptr noundef @.str.18)
%284 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 206, i32 noundef %283)
%285 = call i32 @unlink(ptr noundef @.str.9)
%286 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 207, i32 noundef %285)
%287 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%288 = call i32 @chdir(ptr noundef %287)
%289 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 208, i32 noundef %288)
%290 = call i32 @rmdir(ptr noundef @.str.3)
%291 = call i32 @__chk_error(ptr noundef @.str.4, i32 noundef 209, i32 noundef %290)
ret void
}
declare i32 @unlink(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
declare ptr @getcwd(ptr noundef, i32 noundef) #1
declare i32 @error1(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @__chk_error(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @writev(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @readv(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare i32 @chmod(ptr noundef, i32 noundef) #1
declare i32 @truncate(ptr noundef, i32 noundef) #1
declare i32 @utime(ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISREG(i32 noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
declare i32 @ftruncate(i32 noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @symlink(ptr noundef, ptr noundef) #1
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i32 @S_ISLNK(i32 noundef) #1
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(i32 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpdbqg94rh.c'
source_filename = "/tmp/tmpdbqg94rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_run_program(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @av_start_program(ptr noundef %6, ptr noundef %5)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %18
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = call i32 @av_process_program(ptr noundef %13)
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @av_unref_obj(ptr noundef %15)
%17 = load i32, ptr %4, align 4
store i32 %17, ptr %2, align 4
br label %18
18: ; preds = %12, %10
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @av_start_program(ptr noundef, ptr noundef) #1
declare i32 @av_process_program(ptr noundef) #1
declare i32 @av_unref_obj(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdbqg94rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_run_program(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @av_start_program(ptr noundef %6, ptr noundef %5)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %18
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = call i32 @av_process_program(ptr noundef %13)
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @av_unref_obj(ptr noundef %15)
%17 = load i32, ptr %4, align 4
store i32 %17, ptr %2, align 4
br label %18
18: ; preds = %12, %10
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @av_start_program(ptr noundef, ptr noundef) #1
declare i32 @av_process_program(ptr noundef) #1
declare i32 @av_unref_obj(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzfxavwv5.c'
source_filename = "/tmp/tmpzfxavwv5.c"
target datalayout = "e-m:e-p270: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/tmpzfxavwv5.c"
target datalayout = "e-m:e-p270: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/tmpru2btyv3.c'
source_filename = "/tmp/tmpru2btyv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @itex2MML_copy_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @itex2MML_copy3(ptr noundef %3, i32 noundef 0, i32 noundef 0)
ret ptr %4
}
declare ptr @itex2MML_copy3(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpru2btyv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @itex2MML_copy_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @itex2MML_copy3(ptr noundef %3, i32 noundef 0, i32 noundef 0)
ret ptr %4
}
declare ptr @itex2MML_copy3(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpme28x3g0.c'
source_filename = "/tmp/tmpme28x3g0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %7, align 4
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
%16 = call i32 (...) @rand()
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %5, align 4
%19 = sub nsw i32 %17, %18
%20 = srem i32 %16, %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %11, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
%37 = load i32, ptr %10, align 4
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
store i32 %37, ptr %41, align 4
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
br label %44
44: ; preds = %79, %3
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp sle i32 %45, %46
br i1 %47, label %48, label %82
48: ; preds = %44
%49 = load i32, ptr %10, align 4
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = icmp sgt i32 %49, %54
br i1 %55, label %56, label %78
56: ; preds = %48
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
store i32 %61, ptr %9, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
store i32 %66, ptr %70, align 4
%71 = load i32, ptr %9, align 4
%72 = load ptr, ptr %4, align 8
%73 = load i32, ptr %7, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
store i32 %71, ptr %75, align 4
%76 = load i32, ptr %7, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %7, align 4
br label %78
78: ; preds = %56, %48
br label %79
79: ; preds = %78
%80 = load i32, ptr %8, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %8, align 4
br label %44, !llvm.loop !6
82: ; preds = %44
%83 = load ptr, ptr %4, align 8
%84 = load i32, ptr %7, align 4
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %83, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %4, align 8
%90 = load i32, ptr %5, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
store i32 %88, ptr %92, align 4
%93 = load i32, ptr %10, align 4
%94 = load ptr, ptr %4, align 8
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %94, i64 %97
store i32 %93, ptr %98, align 4
%99 = load i32, ptr %7, align 4
%100 = sub nsw i32 %99, 1
ret i32 %100
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpme28x3g0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %7, align 4
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
%16 = call i32 (...) @rand()
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %5, align 4
%19 = sub nsw i32 %17, %18
%20 = srem i32 %16, %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %11, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %10, align 4
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
%37 = load i32, ptr %10, align 4
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
store i32 %37, ptr %41, align 4
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %.lr.ph, label %84
.lr.ph: ; preds = %3
br label %47
47: ; preds = %.lr.ph, %78
%48 = load i32, ptr %10, align 4
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = icmp sgt i32 %48, %53
br i1 %54, label %55, label %77
55: ; preds = %47
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %56, i64 %58
%60 = load i32, ptr %59, align 4
store i32 %60, ptr %9, align 4
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
store i32 %65, ptr %69, align 4
%70 = load i32, ptr %9, align 4
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
store i32 %70, ptr %74, align 4
%75 = load i32, ptr %7, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %7, align 4
br label %77
77: ; preds = %55, %47
br label %78
78: ; preds = %77
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %6, align 4
%83 = icmp sle i32 %81, %82
br i1 %83, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %78
br label %84
84: ; preds = %._crit_edge, %3
%85 = load ptr, ptr %4, align 8
%86 = load i32, ptr %7, align 4
%87 = sub nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %85, i64 %88
%90 = load i32, ptr %89, align 4
%91 = load ptr, ptr %4, align 8
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
store i32 %90, ptr %94, align 4
%95 = load i32, ptr %10, align 4
%96 = load ptr, ptr %4, align 8
%97 = load i32, ptr %7, align 4
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %96, i64 %99
store i32 %95, ptr %100, align 4
%101 = load i32, ptr %7, align 4
%102 = sub nsw i32 %101, 1
ret i32 %102
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn6xskxem.c'
source_filename = "/tmp/tmpn6xskxem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tommy_hash_u32(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %8, align 8
%13 = load i64, ptr %7, align 8
%14 = trunc i64 %13 to i32
%15 = add i32 -559038737, %14
%16 = load i32, ptr %5, align 4
%17 = add i32 %15, %16
store i32 %17, ptr %11, align 4
store i32 %17, ptr %10, align 4
store i32 %17, ptr %9, align 4
br label %18
18: ; preds = %122, %3
%19 = load i64, ptr %7, align 8
%20 = icmp ugt i64 %19, 12
br i1 %20, label %21, label %127
21: ; preds = %18
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = call i64 @tommy_le_uint32_read(ptr noundef %23)
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = add nsw i64 %26, %24
%28 = trunc i64 %27 to i32
store i32 %28, ptr %9, align 4
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 4
%31 = call i64 @tommy_le_uint32_read(ptr noundef %30)
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = add nsw i64 %33, %31
%35 = trunc i64 %34 to i32
store i32 %35, ptr %10, align 4
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 8
%38 = call i64 @tommy_le_uint32_read(ptr noundef %37)
%39 = load i32, ptr %11, align 4
%40 = sext i32 %39 to i64
%41 = add nsw i64 %40, %38
%42 = trunc i64 %41 to i32
store i32 %42, ptr %11, align 4
br label %43
43: ; preds = %21
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %9, align 4
%46 = sub nsw i32 %45, %44
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %11, align 4
%48 = shl i32 %47, 4
%49 = load i32, ptr %11, align 4
%50 = ashr i32 %49, 28
%51 = or i32 %48, %50
%52 = load i32, ptr %9, align 4
%53 = xor i32 %52, %51
store i32 %53, ptr %9, align 4
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %11, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %11, align 4
%57 = load i32, ptr %9, align 4
%58 = load i32, ptr %10, align 4
%59 = sub nsw i32 %58, %57
store i32 %59, ptr %10, align 4
%60 = load i32, ptr %9, align 4
%61 = shl i32 %60, 6
%62 = load i32, ptr %9, align 4
%63 = ashr i32 %62, 26
%64 = or i32 %61, %63
%65 = load i32, ptr %10, align 4
%66 = xor i32 %65, %64
store i32 %66, ptr %10, align 4
%67 = load i32, ptr %11, align 4
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, %67
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %11, align 4
%72 = sub nsw i32 %71, %70
store i32 %72, ptr %11, align 4
%73 = load i32, ptr %10, align 4
%74 = shl i32 %73, 8
%75 = load i32, ptr %10, align 4
%76 = ashr i32 %75, 24
%77 = or i32 %74, %76
%78 = load i32, ptr %11, align 4
%79 = xor i32 %78, %77
store i32 %79, ptr %11, align 4
%80 = load i32, ptr %9, align 4
%81 = load i32, ptr %10, align 4
%82 = add nsw i32 %81, %80
store i32 %82, ptr %10, align 4
%83 = load i32, ptr %11, align 4
%84 = load i32, ptr %9, align 4
%85 = sub nsw i32 %84, %83
store i32 %85, ptr %9, align 4
%86 = load i32, ptr %11, align 4
%87 = shl i32 %86, 16
%88 = load i32, ptr %11, align 4
%89 = ashr i32 %88, 16
%90 = or i32 %87, %89
%91 = load i32, ptr %9, align 4
%92 = xor i32 %91, %90
store i32 %92, ptr %9, align 4
%93 = load i32, ptr %10, align 4
%94 = load i32, ptr %11, align 4
%95 = add nsw i32 %94, %93
store i32 %95, ptr %11, align 4
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %10, align 4
%98 = sub nsw i32 %97, %96
store i32 %98, ptr %10, align 4
%99 = load i32, ptr %9, align 4
%100 = shl i32 %99, 19
%101 = load i32, ptr %9, align 4
%102 = ashr i32 %101, 13
%103 = or i32 %100, %102
%104 = load i32, ptr %10, align 4
%105 = xor i32 %104, %103
store i32 %105, ptr %10, align 4
%106 = load i32, ptr %11, align 4
%107 = load i32, ptr %9, align 4
%108 = add nsw i32 %107, %106
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %10, align 4
%110 = load i32, ptr %11, align 4
%111 = sub nsw i32 %110, %109
store i32 %111, ptr %11, align 4
%112 = load i32, ptr %10, align 4
%113 = shl i32 %112, 4
%114 = load i32, ptr %10, align 4
%115 = ashr i32 %114, 28
%116 = or i32 %113, %115
%117 = load i32, ptr %11, align 4
%118 = xor i32 %117, %116
store i32 %118, ptr %11, align 4
%119 = load i32, ptr %9, align 4
%120 = load i32, ptr %10, align 4
%121 = add nsw i32 %120, %119
store i32 %121, ptr %10, align 4
br label %122
122: ; preds = %43
%123 = load i64, ptr %7, align 8
%124 = sub i64 %123, 12
store i64 %124, ptr %7, align 8
%125 = load ptr, ptr %8, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 12
store ptr %126, ptr %8, align 8
br label %18, !llvm.loop !6
127: ; preds = %18
%128 = load i64, ptr %7, align 8
switch i64 %128, label %245 [
i64 0, label %129
i64 12, label %131
i64 11, label %153
i64 10, label %161
i64 9, label %169
i64 8, label %176
i64 7, label %191
i64 6, label %199
i64 5, label %207
i64 4, label %214
i64 3, label %222
i64 2, label %230
i64 1, label %238
]
129: ; preds = %127
%130 = load i32, ptr %11, align 4
store i32 %130, ptr %4, align 4
br label %319
131: ; preds = %127
%132 = load ptr, ptr %8, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 8
%134 = call i64 @tommy_le_uint32_read(ptr noundef %133)
%135 = load i32, ptr %11, align 4
%136 = sext i32 %135 to i64
%137 = add nsw i64 %136, %134
%138 = trunc i64 %137 to i32
store i32 %138, ptr %11, align 4
%139 = load ptr, ptr %8, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 4
%141 = call i64 @tommy_le_uint32_read(ptr noundef %140)
%142 = load i32, ptr %10, align 4
%143 = sext i32 %142 to i64
%144 = add nsw i64 %143, %141
%145 = trunc i64 %144 to i32
store i32 %145, ptr %10, align 4
%146 = load ptr, ptr %8, align 8
%147 = getelementptr inbounds i8, ptr %146, i64 0
%148 = call i64 @tommy_le_uint32_read(ptr noundef %147)
%149 = load i32, ptr %9, align 4
%150 = sext i32 %149 to i64
%151 = add nsw i64 %150, %148
%152 = trunc i64 %151 to i32
store i32 %152, ptr %9, align 4
br label %245
153: ; preds = %127
%154 = load ptr, ptr %8, align 8
%155 = getelementptr inbounds i8, ptr %154, i64 10
%156 = load i8, ptr %155, align 1
%157 = zext i8 %156 to i32
%158 = shl i32 %157, 16
%159 = load i32, ptr %11, align 4
%160 = add nsw i32 %159, %158
store i32 %160, ptr %11, align 4
br label %161
161: ; preds = %127, %153
%162 = load ptr, ptr %8, align 8
%163 = getelementptr inbounds i8, ptr %162, i64 9
%164 = load i8, ptr %163, align 1
%165 = zext i8 %164 to i32
%166 = shl i32 %165, 8
%167 = load i32, ptr %11, align 4
%168 = add nsw i32 %167, %166
store i32 %168, ptr %11, align 4
br label %169
169: ; preds = %127, %161
%170 = load ptr, ptr %8, align 8
%171 = getelementptr inbounds i8, ptr %170, i64 8
%172 = load i8, ptr %171, align 1
%173 = zext i8 %172 to i32
%174 = load i32, ptr %11, align 4
%175 = add nsw i32 %174, %173
store i32 %175, ptr %11, align 4
br label %176
176: ; preds = %127, %169
%177 = load ptr, ptr %8, align 8
%178 = getelementptr inbounds i8, ptr %177, i64 4
%179 = call i64 @tommy_le_uint32_read(ptr noundef %178)
%180 = load i32, ptr %10, align 4
%181 = sext i32 %180 to i64
%182 = add nsw i64 %181, %179
%183 = trunc i64 %182 to i32
store i32 %183, ptr %10, align 4
%184 = load ptr, ptr %8, align 8
%185 = getelementptr inbounds i8, ptr %184, i64 0
%186 = call i64 @tommy_le_uint32_read(ptr noundef %185)
%187 = load i32, ptr %9, align 4
%188 = sext i32 %187 to i64
%189 = add nsw i64 %188, %186
%190 = trunc i64 %189 to i32
store i32 %190, ptr %9, align 4
br label %245
191: ; preds = %127
%192 = load ptr, ptr %8, align 8
%193 = getelementptr inbounds i8, ptr %192, i64 6
%194 = load i8, ptr %193, align 1
%195 = zext i8 %194 to i32
%196 = shl i32 %195, 16
%197 = load i32, ptr %10, align 4
%198 = add nsw i32 %197, %196
store i32 %198, ptr %10, align 4
br label %199
199: ; preds = %127, %191
%200 = load ptr, ptr %8, align 8
%201 = getelementptr inbounds i8, ptr %200, i64 5
%202 = load i8, ptr %201, align 1
%203 = zext i8 %202 to i32
%204 = shl i32 %203, 8
%205 = load i32, ptr %10, align 4
%206 = add nsw i32 %205, %204
store i32 %206, ptr %10, align 4
br label %207
207: ; preds = %127, %199
%208 = load ptr, ptr %8, align 8
%209 = getelementptr inbounds i8, ptr %208, i64 4
%210 = load i8, ptr %209, align 1
%211 = zext i8 %210 to i32
%212 = load i32, ptr %10, align 4
%213 = add nsw i32 %212, %211
store i32 %213, ptr %10, align 4
br label %214
214: ; preds = %127, %207
%215 = load ptr, ptr %8, align 8
%216 = getelementptr inbounds i8, ptr %215, i64 0
%217 = call i64 @tommy_le_uint32_read(ptr noundef %216)
%218 = load i32, ptr %9, align 4
%219 = sext i32 %218 to i64
%220 = add nsw i64 %219, %217
%221 = trunc i64 %220 to i32
store i32 %221, ptr %9, align 4
br label %245
222: ; preds = %127
%223 = load ptr, ptr %8, align 8
%224 = getelementptr inbounds i8, ptr %223, i64 2
%225 = load i8, ptr %224, align 1
%226 = zext i8 %225 to i32
%227 = shl i32 %226, 16
%228 = load i32, ptr %9, align 4
%229 = add nsw i32 %228, %227
store i32 %229, ptr %9, align 4
br label %230
230: ; preds = %127, %222
%231 = load ptr, ptr %8, align 8
%232 = getelementptr inbounds i8, ptr %231, i64 1
%233 = load i8, ptr %232, align 1
%234 = zext i8 %233 to i32
%235 = shl i32 %234, 8
%236 = load i32, ptr %9, align 4
%237 = add nsw i32 %236, %235
store i32 %237, ptr %9, align 4
br label %238
238: ; preds = %127, %230
%239 = load ptr, ptr %8, align 8
%240 = getelementptr inbounds i8, ptr %239, i64 0
%241 = load i8, ptr %240, align 1
%242 = zext i8 %241 to i32
%243 = load i32, ptr %9, align 4
%244 = add nsw i32 %243, %242
store i32 %244, ptr %9, align 4
br label %245
245: ; preds = %238, %127, %214, %176, %131
br label %246
246: ; preds = %245
%247 = load i32, ptr %10, align 4
%248 = load i32, ptr %11, align 4
%249 = xor i32 %248, %247
store i32 %249, ptr %11, align 4
%250 = load i32, ptr %10, align 4
%251 = shl i32 %250, 14
%252 = load i32, ptr %10, align 4
%253 = ashr i32 %252, 18
%254 = or i32 %251, %253
%255 = load i32, ptr %11, align 4
%256 = sub nsw i32 %255, %254
store i32 %256, ptr %11, align 4
%257 = load i32, ptr %11, align 4
%258 = load i32, ptr %9, align 4
%259 = xor i32 %258, %257
store i32 %259, ptr %9, align 4
%260 = load i32, ptr %11, align 4
%261 = shl i32 %260, 11
%262 = load i32, ptr %11, align 4
%263 = ashr i32 %262, 21
%264 = or i32 %261, %263
%265 = load i32, ptr %9, align 4
%266 = sub nsw i32 %265, %264
store i32 %266, ptr %9, align 4
%267 = load i32, ptr %9, align 4
%268 = load i32, ptr %10, align 4
%269 = xor i32 %268, %267
store i32 %269, ptr %10, align 4
%270 = load i32, ptr %9, align 4
%271 = shl i32 %270, 25
%272 = load i32, ptr %9, align 4
%273 = ashr i32 %272, 7
%274 = or i32 %271, %273
%275 = load i32, ptr %10, align 4
%276 = sub nsw i32 %275, %274
store i32 %276, ptr %10, align 4
%277 = load i32, ptr %10, align 4
%278 = load i32, ptr %11, align 4
%279 = xor i32 %278, %277
store i32 %279, ptr %11, align 4
%280 = load i32, ptr %10, align 4
%281 = shl i32 %280, 16
%282 = load i32, ptr %10, align 4
%283 = ashr i32 %282, 16
%284 = or i32 %281, %283
%285 = load i32, ptr %11, align 4
%286 = sub nsw i32 %285, %284
store i32 %286, ptr %11, align 4
%287 = load i32, ptr %11, align 4
%288 = load i32, ptr %9, align 4
%289 = xor i32 %288, %287
store i32 %289, ptr %9, align 4
%290 = load i32, ptr %11, align 4
%291 = shl i32 %290, 4
%292 = load i32, ptr %11, align 4
%293 = ashr i32 %292, 28
%294 = or i32 %291, %293
%295 = load i32, ptr %9, align 4
%296 = sub nsw i32 %295, %294
store i32 %296, ptr %9, align 4
%297 = load i32, ptr %9, align 4
%298 = load i32, ptr %10, align 4
%299 = xor i32 %298, %297
store i32 %299, ptr %10, align 4
%300 = load i32, ptr %9, align 4
%301 = shl i32 %300, 14
%302 = load i32, ptr %9, align 4
%303 = ashr i32 %302, 18
%304 = or i32 %301, %303
%305 = load i32, ptr %10, align 4
%306 = sub nsw i32 %305, %304
store i32 %306, ptr %10, align 4
%307 = load i32, ptr %10, align 4
%308 = load i32, ptr %11, align 4
%309 = xor i32 %308, %307
store i32 %309, ptr %11, align 4
%310 = load i32, ptr %10, align 4
%311 = shl i32 %310, 24
%312 = load i32, ptr %10, align 4
%313 = ashr i32 %312, 8
%314 = or i32 %311, %313
%315 = load i32, ptr %11, align 4
%316 = sub nsw i32 %315, %314
store i32 %316, ptr %11, align 4
br label %317
317: ; preds = %246
%318 = load i32, ptr %11, align 4
store i32 %318, ptr %4, align 4
br label %319
319: ; preds = %317, %129
%320 = load i32, ptr %4, align 4
ret i32 %320
}
declare i64 @tommy_le_uint32_read(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpn6xskxem.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tommy_hash_u32(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store ptr %12, ptr %8, align 8
%13 = load i64, ptr %7, align 8
%14 = trunc i64 %13 to i32
%15 = add i32 -559038737, %14
%16 = load i32, ptr %5, align 4
%17 = add i32 %15, %16
store i32 %17, ptr %11, align 4
store i32 %17, ptr %10, align 4
store i32 %17, ptr %9, align 4
%18 = load i64, ptr %7, align 8
%19 = icmp ugt i64 %18, 12
br i1 %19, label %.lr.ph, label %128
.lr.ph: ; preds = %3
br label %20
20: ; preds = %.lr.ph, %121
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = call i64 @tommy_le_uint32_read(ptr noundef %22)
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = add nsw i64 %25, %23
%27 = trunc i64 %26 to i32
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 4
%30 = call i64 @tommy_le_uint32_read(ptr noundef %29)
%31 = load i32, ptr %10, align 4
%32 = sext i32 %31 to i64
%33 = add nsw i64 %32, %30
%34 = trunc i64 %33 to i32
store i32 %34, ptr %10, align 4
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 8
%37 = call i64 @tommy_le_uint32_read(ptr noundef %36)
%38 = load i32, ptr %11, align 4
%39 = sext i32 %38 to i64
%40 = add nsw i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, ptr %11, align 4
br label %42
42: ; preds = %20
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %9, align 4
%45 = sub nsw i32 %44, %43
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %11, align 4
%47 = shl i32 %46, 4
%48 = load i32, ptr %11, align 4
%49 = ashr i32 %48, 28
%50 = or i32 %47, %49
%51 = load i32, ptr %9, align 4
%52 = xor i32 %51, %50
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %11, align 4
%55 = add nsw i32 %54, %53
store i32 %55, ptr %11, align 4
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr %10, align 4
%58 = sub nsw i32 %57, %56
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %9, align 4
%60 = shl i32 %59, 6
%61 = load i32, ptr %9, align 4
%62 = ashr i32 %61, 26
%63 = or i32 %60, %62
%64 = load i32, ptr %10, align 4
%65 = xor i32 %64, %63
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, %66
store i32 %68, ptr %9, align 4
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %70, %69
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %10, align 4
%73 = shl i32 %72, 8
%74 = load i32, ptr %10, align 4
%75 = ashr i32 %74, 24
%76 = or i32 %73, %75
%77 = load i32, ptr %11, align 4
%78 = xor i32 %77, %76
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %9, align 4
%80 = load i32, ptr %10, align 4
%81 = add nsw i32 %80, %79
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %11, align 4
%83 = load i32, ptr %9, align 4
%84 = sub nsw i32 %83, %82
store i32 %84, ptr %9, align 4
%85 = load i32, ptr %11, align 4
%86 = shl i32 %85, 16
%87 = load i32, ptr %11, align 4
%88 = ashr i32 %87, 16
%89 = or i32 %86, %88
%90 = load i32, ptr %9, align 4
%91 = xor i32 %90, %89
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %10, align 4
%93 = load i32, ptr %11, align 4
%94 = add nsw i32 %93, %92
store i32 %94, ptr %11, align 4
%95 = load i32, ptr %9, align 4
%96 = load i32, ptr %10, align 4
%97 = sub nsw i32 %96, %95
store i32 %97, ptr %10, align 4
%98 = load i32, ptr %9, align 4
%99 = shl i32 %98, 19
%100 = load i32, ptr %9, align 4
%101 = ashr i32 %100, 13
%102 = or i32 %99, %101
%103 = load i32, ptr %10, align 4
%104 = xor i32 %103, %102
store i32 %104, ptr %10, align 4
%105 = load i32, ptr %11, align 4
%106 = load i32, ptr %9, align 4
%107 = add nsw i32 %106, %105
store i32 %107, ptr %9, align 4
%108 = load i32, ptr %10, align 4
%109 = load i32, ptr %11, align 4
%110 = sub nsw i32 %109, %108
store i32 %110, ptr %11, align 4
%111 = load i32, ptr %10, align 4
%112 = shl i32 %111, 4
%113 = load i32, ptr %10, align 4
%114 = ashr i32 %113, 28
%115 = or i32 %112, %114
%116 = load i32, ptr %11, align 4
%117 = xor i32 %116, %115
store i32 %117, ptr %11, align 4
%118 = load i32, ptr %9, align 4
%119 = load i32, ptr %10, align 4
%120 = add nsw i32 %119, %118
store i32 %120, ptr %10, align 4
br label %121
121: ; preds = %42
%122 = load i64, ptr %7, align 8
%123 = sub i64 %122, 12
store i64 %123, ptr %7, align 8
%124 = load ptr, ptr %8, align 8
%125 = getelementptr inbounds i8, ptr %124, i64 12
store ptr %125, ptr %8, align 8
%126 = load i64, ptr %7, align 8
%127 = icmp ugt i64 %126, 12
br i1 %127, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %121
br label %128
128: ; preds = %._crit_edge, %3
%129 = load i64, ptr %7, align 8
switch i64 %129, label %246 [
i64 0, label %130
i64 12, label %132
i64 11, label %154
i64 10, label %162
i64 9, label %170
i64 8, label %177
i64 7, label %192
i64 6, label %200
i64 5, label %208
i64 4, label %215
i64 3, label %223
i64 2, label %231
i64 1, label %239
]
130: ; preds = %128
%131 = load i32, ptr %11, align 4
store i32 %131, ptr %4, align 4
br label %320
132: ; preds = %128
%133 = load ptr, ptr %8, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 8
%135 = call i64 @tommy_le_uint32_read(ptr noundef %134)
%136 = load i32, ptr %11, align 4
%137 = sext i32 %136 to i64
%138 = add nsw i64 %137, %135
%139 = trunc i64 %138 to i32
store i32 %139, ptr %11, align 4
%140 = load ptr, ptr %8, align 8
%141 = getelementptr inbounds i8, ptr %140, i64 4
%142 = call i64 @tommy_le_uint32_read(ptr noundef %141)
%143 = load i32, ptr %10, align 4
%144 = sext i32 %143 to i64
%145 = add nsw i64 %144, %142
%146 = trunc i64 %145 to i32
store i32 %146, ptr %10, align 4
%147 = load ptr, ptr %8, align 8
%148 = getelementptr inbounds i8, ptr %147, i64 0
%149 = call i64 @tommy_le_uint32_read(ptr noundef %148)
%150 = load i32, ptr %9, align 4
%151 = sext i32 %150 to i64
%152 = add nsw i64 %151, %149
%153 = trunc i64 %152 to i32
store i32 %153, ptr %9, align 4
br label %246
154: ; preds = %128
%155 = load ptr, ptr %8, align 8
%156 = getelementptr inbounds i8, ptr %155, i64 10
%157 = load i8, ptr %156, align 1
%158 = zext i8 %157 to i32
%159 = shl i32 %158, 16
%160 = load i32, ptr %11, align 4
%161 = add nsw i32 %160, %159
store i32 %161, ptr %11, align 4
br label %162
162: ; preds = %154, %128
%163 = load ptr, ptr %8, align 8
%164 = getelementptr inbounds i8, ptr %163, i64 9
%165 = load i8, ptr %164, align 1
%166 = zext i8 %165 to i32
%167 = shl i32 %166, 8
%168 = load i32, ptr %11, align 4
%169 = add nsw i32 %168, %167
store i32 %169, ptr %11, align 4
br label %170
170: ; preds = %162, %128
%171 = load ptr, ptr %8, align 8
%172 = getelementptr inbounds i8, ptr %171, i64 8
%173 = load i8, ptr %172, align 1
%174 = zext i8 %173 to i32
%175 = load i32, ptr %11, align 4
%176 = add nsw i32 %175, %174
store i32 %176, ptr %11, align 4
br label %177
177: ; preds = %170, %128
%178 = load ptr, ptr %8, align 8
%179 = getelementptr inbounds i8, ptr %178, i64 4
%180 = call i64 @tommy_le_uint32_read(ptr noundef %179)
%181 = load i32, ptr %10, align 4
%182 = sext i32 %181 to i64
%183 = add nsw i64 %182, %180
%184 = trunc i64 %183 to i32
store i32 %184, ptr %10, align 4
%185 = load ptr, ptr %8, align 8
%186 = getelementptr inbounds i8, ptr %185, i64 0
%187 = call i64 @tommy_le_uint32_read(ptr noundef %186)
%188 = load i32, ptr %9, align 4
%189 = sext i32 %188 to i64
%190 = add nsw i64 %189, %187
%191 = trunc i64 %190 to i32
store i32 %191, ptr %9, align 4
br label %246
192: ; preds = %128
%193 = load ptr, ptr %8, align 8
%194 = getelementptr inbounds i8, ptr %193, i64 6
%195 = load i8, ptr %194, align 1
%196 = zext i8 %195 to i32
%197 = shl i32 %196, 16
%198 = load i32, ptr %10, align 4
%199 = add nsw i32 %198, %197
store i32 %199, ptr %10, align 4
br label %200
200: ; preds = %192, %128
%201 = load ptr, ptr %8, align 8
%202 = getelementptr inbounds i8, ptr %201, i64 5
%203 = load i8, ptr %202, align 1
%204 = zext i8 %203 to i32
%205 = shl i32 %204, 8
%206 = load i32, ptr %10, align 4
%207 = add nsw i32 %206, %205
store i32 %207, ptr %10, align 4
br label %208
208: ; preds = %200, %128
%209 = load ptr, ptr %8, align 8
%210 = getelementptr inbounds i8, ptr %209, i64 4
%211 = load i8, ptr %210, align 1
%212 = zext i8 %211 to i32
%213 = load i32, ptr %10, align 4
%214 = add nsw i32 %213, %212
store i32 %214, ptr %10, align 4
br label %215
215: ; preds = %208, %128
%216 = load ptr, ptr %8, align 8
%217 = getelementptr inbounds i8, ptr %216, i64 0
%218 = call i64 @tommy_le_uint32_read(ptr noundef %217)
%219 = load i32, ptr %9, align 4
%220 = sext i32 %219 to i64
%221 = add nsw i64 %220, %218
%222 = trunc i64 %221 to i32
store i32 %222, ptr %9, align 4
br label %246
223: ; preds = %128
%224 = load ptr, ptr %8, align 8
%225 = getelementptr inbounds i8, ptr %224, i64 2
%226 = load i8, ptr %225, align 1
%227 = zext i8 %226 to i32
%228 = shl i32 %227, 16
%229 = load i32, ptr %9, align 4
%230 = add nsw i32 %229, %228
store i32 %230, ptr %9, align 4
br label %231
231: ; preds = %223, %128
%232 = load ptr, ptr %8, align 8
%233 = getelementptr inbounds i8, ptr %232, i64 1
%234 = load i8, ptr %233, align 1
%235 = zext i8 %234 to i32
%236 = shl i32 %235, 8
%237 = load i32, ptr %9, align 4
%238 = add nsw i32 %237, %236
store i32 %238, ptr %9, align 4
br label %239
239: ; preds = %231, %128
%240 = load ptr, ptr %8, align 8
%241 = getelementptr inbounds i8, ptr %240, i64 0
%242 = load i8, ptr %241, align 1
%243 = zext i8 %242 to i32
%244 = load i32, ptr %9, align 4
%245 = add nsw i32 %244, %243
store i32 %245, ptr %9, align 4
br label %246
246: ; preds = %239, %215, %177, %132, %128
br label %247
247: ; preds = %246
%248 = load i32, ptr %10, align 4
%249 = load i32, ptr %11, align 4
%250 = xor i32 %249, %248
store i32 %250, ptr %11, align 4
%251 = load i32, ptr %10, align 4
%252 = shl i32 %251, 14
%253 = load i32, ptr %10, align 4
%254 = ashr i32 %253, 18
%255 = or i32 %252, %254
%256 = load i32, ptr %11, align 4
%257 = sub nsw i32 %256, %255
store i32 %257, ptr %11, align 4
%258 = load i32, ptr %11, align 4
%259 = load i32, ptr %9, align 4
%260 = xor i32 %259, %258
store i32 %260, ptr %9, align 4
%261 = load i32, ptr %11, align 4
%262 = shl i32 %261, 11
%263 = load i32, ptr %11, align 4
%264 = ashr i32 %263, 21
%265 = or i32 %262, %264
%266 = load i32, ptr %9, align 4
%267 = sub nsw i32 %266, %265
store i32 %267, ptr %9, align 4
%268 = load i32, ptr %9, align 4
%269 = load i32, ptr %10, align 4
%270 = xor i32 %269, %268
store i32 %270, ptr %10, align 4
%271 = load i32, ptr %9, align 4
%272 = shl i32 %271, 25
%273 = load i32, ptr %9, align 4
%274 = ashr i32 %273, 7
%275 = or i32 %272, %274
%276 = load i32, ptr %10, align 4
%277 = sub nsw i32 %276, %275
store i32 %277, ptr %10, align 4
%278 = load i32, ptr %10, align 4
%279 = load i32, ptr %11, align 4
%280 = xor i32 %279, %278
store i32 %280, ptr %11, align 4
%281 = load i32, ptr %10, align 4
%282 = shl i32 %281, 16
%283 = load i32, ptr %10, align 4
%284 = ashr i32 %283, 16
%285 = or i32 %282, %284
%286 = load i32, ptr %11, align 4
%287 = sub nsw i32 %286, %285
store i32 %287, ptr %11, align 4
%288 = load i32, ptr %11, align 4
%289 = load i32, ptr %9, align 4
%290 = xor i32 %289, %288
store i32 %290, ptr %9, align 4
%291 = load i32, ptr %11, align 4
%292 = shl i32 %291, 4
%293 = load i32, ptr %11, align 4
%294 = ashr i32 %293, 28
%295 = or i32 %292, %294
%296 = load i32, ptr %9, align 4
%297 = sub nsw i32 %296, %295
store i32 %297, ptr %9, align 4
%298 = load i32, ptr %9, align 4
%299 = load i32, ptr %10, align 4
%300 = xor i32 %299, %298
store i32 %300, ptr %10, align 4
%301 = load i32, ptr %9, align 4
%302 = shl i32 %301, 14
%303 = load i32, ptr %9, align 4
%304 = ashr i32 %303, 18
%305 = or i32 %302, %304
%306 = load i32, ptr %10, align 4
%307 = sub nsw i32 %306, %305
store i32 %307, ptr %10, align 4
%308 = load i32, ptr %10, align 4
%309 = load i32, ptr %11, align 4
%310 = xor i32 %309, %308
store i32 %310, ptr %11, align 4
%311 = load i32, ptr %10, align 4
%312 = shl i32 %311, 24
%313 = load i32, ptr %10, align 4
%314 = ashr i32 %313, 8
%315 = or i32 %312, %314
%316 = load i32, ptr %11, align 4
%317 = sub nsw i32 %316, %315
store i32 %317, ptr %11, align 4
br label %318
318: ; preds = %247
%319 = load i32, ptr %11, align 4
store i32 %319, ptr %4, align 4
br label %320
320: ; preds = %318, %130
%321 = load i32, ptr %4, align 4
ret i32 %321
}
declare i64 @tommy_le_uint32_read(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqd41wau6.c'
source_filename = "/tmp/tmpqd41wau6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_U_Qfeq(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %3, align 16
store x86_fp80 %1, ptr %4, align 16
%5 = load x86_fp80, ptr %3, align 16
%6 = load x86_fp80, ptr %4, align 16
%7 = call i64 @_U_Qfcmp(x86_fp80 noundef %5, x86_fp80 noundef %6, i32 noundef 4)
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @_U_Qfcmp(x86_fp80 noundef, x86_fp80 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/tmpqd41wau6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_U_Qfeq(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %3, align 16
store x86_fp80 %1, ptr %4, align 16
%5 = load x86_fp80, ptr %3, align 16
%6 = load x86_fp80, ptr %4, align 16
%7 = call i64 @_U_Qfcmp(x86_fp80 noundef %5, x86_fp80 noundef %6, i32 noundef 4)
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @_U_Qfcmp(x86_fp80 noundef, x86_fp80 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/tmpq9wduqq2.c'
source_filename = "/tmp/tmpq9wduqq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @fget_float(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fgetc(i32 noundef %3)
%5 = call float @bits_to_float(i32 noundef %4)
ret float %5
}
declare float @bits_to_float(i32 noundef) #1
declare i32 @fgetc(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/tmpq9wduqq2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @fget_float(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fgetc(i32 noundef %3)
%5 = call float @bits_to_float(i32 noundef %4)
ret float %5
}
declare float @bits_to_float(i32 noundef) #1
declare i32 @fgetc(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/tmpfn495fsk.c'
source_filename = "/tmp/tmpfn495fsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RIFEXITED(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @RIFSIGNALED(i32 noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @RIFTIMEDOUT(i32 noundef %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br label %11
11: ; preds = %6, %1
%12 = phi i1 [ false, %1 ], [ %10, %6 ]
%13 = zext i1 %12 to i32
ret i32 %13
}
declare i32 @RIFSIGNALED(i32 noundef) #1
declare i32 @RIFTIMEDOUT(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/tmpfn495fsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RIFEXITED(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @RIFSIGNALED(i32 noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @RIFTIMEDOUT(i32 noundef %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br label %11
11: ; preds = %6, %1
%12 = phi i1 [ false, %1 ], [ %10, %6 ]
%13 = zext i1 %12 to i32
ret i32 %13
}
declare i32 @RIFSIGNALED(i32 noundef) #1
declare i32 @RIFTIMEDOUT(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/tmpp3kwbgmi.c'
source_filename = "/tmp/tmpp3kwbgmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s = %s + %s;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__func_add_uint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @pA(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @pA(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/tmpp3kwbgmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s = %s + %s;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @__func_add_uint(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %7, align 8
%11 = load ptr, ptr %8, align 8
%12 = call i32 @pA(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @pA(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/tmpept37vx7.c'
source_filename = "/tmp/tmpept37vx7.c"
target datalayout = "e-m:e-p270: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.name = private unnamed_addr constant [4 x i8] c"a\00\00\00", align 1
@__const.main.love = private unnamed_addr constant [4 x i8] c"love", align 1
@.str = private unnamed_addr constant [22 x i8] c"Numbers: %d %d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Name each: %c %c %c %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Name: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Name %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Another: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Another each: %c %c %c %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"Characters as numbers: %d %d %d %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c"Number array with a char in it: %d %d %d %d\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c"The love character array, being ruined by numbers: %c %c %c %c \0A\00", align 1
@.str.10 = private unnamed_addr constant [76 x i8] c"hahahahhahahahahahahahahhahahahahahahahahahsdhahahahahahahahahahahahahahhah\00", align 1
@.str.11 = private unnamed_addr constant [76 x i8] c"How many bytes is a character array, it must surely depend on the size? %d\0A\00", align 1
@.str.12 = private unnamed_addr constant [36 x i8] c"How many bytes is a reguar int? %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 [4 x i32], align 16
%7 = alloca [4 x i32], align 16
%8 = alloca [4 x i8], align 1
%9 = alloca [4 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.love, i64 4, i1 false)
%13 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%14 = load i32, ptr %13, align 16
%15 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%16 = load i32, ptr %15, align 4
%17 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%18 = load i32, ptr %17, align 8
%19 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14, i32 noundef %16, i32 noundef %18, i32 noundef %20)
%22 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %24, i32 noundef %27, i32 noundef %30, i32 noundef %33)
%35 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %35)
%37 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
store i32 1, ptr %37, align 16
%38 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
store i32 2, ptr %38, align 4
%39 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
store i32 3, ptr %39, align 8
%40 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
store i32 4, ptr %40, align 4
%41 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
store i8 90, ptr %41, align 1
%42 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
store i8 101, ptr %42, align 1
%43 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
store i8 100, ptr %43, align 1
%44 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
store i8 0, ptr %44, align 1
%45 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%46 = load i32, ptr %45, align 16
%47 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%48 = load i32, ptr %47, align 4
%49 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%50 = load i32, ptr %49, align 8
%51 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%52 = load i32, ptr %51, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %46, i32 noundef %48, i32 noundef %50, i32 noundef %52)
%54 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %56, i32 noundef %59, i32 noundef %62, i32 noundef %65)
%67 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %67)
store ptr @.str.4, ptr %10, align 8
%69 = load ptr, ptr %10, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %69)
%71 = load ptr, ptr %10, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 0
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = load ptr, ptr %10, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load ptr, ptr %10, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 2
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = load ptr, ptr %10, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 3
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %74, i32 noundef %78, i32 noundef %82, i32 noundef %86)
%88 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
store i32 1, ptr %88, align 16
%89 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
store i32 2, ptr %89, align 4
%90 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
store i32 3, ptr %90, align 8
%91 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
store i32 %93, ptr %94, align 4
%95 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %97, i32 noundef %100, i32 noundef %103, i32 noundef %106)
%108 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
%109 = load i32, ptr %108, align 16
%110 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
%111 = load i32, ptr %110, align 4
%112 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
%113 = load i32, ptr %112, align 8
%114 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
%115 = load i32, ptr %114, align 4
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %109, i32 noundef %111, i32 noundef %113, i32 noundef %115)
%117 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 88, ptr %117, align 1
%118 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 70, ptr %118, align 1
%119 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 90, ptr %119, align 1
%120 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%130 = load i8, ptr %129, align 1
%131 = sext i8 %130 to i32
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %122, i32 noundef %125, i32 noundef %128, i32 noundef %131)
store ptr @.str.10, ptr %11, align 8
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef 8)
store i32 5, ptr %12, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef 4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpept37vx7.c"
target datalayout = "e-m:e-p270: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.name = private unnamed_addr constant [4 x i8] c"a\00\00\00", align 1
@__const.main.love = private unnamed_addr constant [4 x i8] c"love", align 1
@.str = private unnamed_addr constant [22 x i8] c"Numbers: %d %d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Name each: %c %c %c %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Name: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Name %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Another: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Another each: %c %c %c %c\0A\00", align 1
@.str.7 = private unnamed_addr constant [36 x i8] c"Characters as numbers: %d %d %d %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c"Number array with a char in it: %d %d %d %d\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c"The love character array, being ruined by numbers: %c %c %c %c \0A\00", align 1
@.str.10 = private unnamed_addr constant [76 x i8] c"hahahahhahahahahahahahahhahahahahahahahahahsdhahahahahahahahahahahahahahhah\00", align 1
@.str.11 = private unnamed_addr constant [76 x i8] c"How many bytes is a character array, it must surely depend on the size? %d\0A\00", align 1
@.str.12 = private unnamed_addr constant [36 x i8] c"How many bytes is a reguar int? %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 [4 x i32], align 16
%7 = alloca [4 x i32], align 16
%8 = alloca [4 x i8], align 1
%9 = alloca [4 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.love, i64 4, i1 false)
%13 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%14 = load i32, ptr %13, align 16
%15 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%16 = load i32, ptr %15, align 4
%17 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%18 = load i32, ptr %17, align 8
%19 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14, i32 noundef %16, i32 noundef %18, i32 noundef %20)
%22 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %24, i32 noundef %27, i32 noundef %30, i32 noundef %33)
%35 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %35)
%37 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
store i32 1, ptr %37, align 16
%38 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
store i32 2, ptr %38, align 4
%39 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
store i32 3, ptr %39, align 8
%40 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
store i32 4, ptr %40, align 4
%41 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
store i8 90, ptr %41, align 1
%42 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
store i8 101, ptr %42, align 1
%43 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
store i8 100, ptr %43, align 1
%44 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
store i8 0, ptr %44, align 1
%45 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%46 = load i32, ptr %45, align 16
%47 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%48 = load i32, ptr %47, align 4
%49 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%50 = load i32, ptr %49, align 8
%51 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%52 = load i32, ptr %51, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %46, i32 noundef %48, i32 noundef %50, i32 noundef %52)
%54 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %56, i32 noundef %59, i32 noundef %62, i32 noundef %65)
%67 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %67)
store ptr @.str.4, ptr %10, align 8
%69 = load ptr, ptr %10, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %69)
%71 = load ptr, ptr %10, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 0
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = load ptr, ptr %10, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = load ptr, ptr %10, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 2
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = load ptr, ptr %10, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 3
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %74, i32 noundef %78, i32 noundef %82, i32 noundef %86)
%88 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
store i32 1, ptr %88, align 16
%89 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
store i32 2, ptr %89, align 4
%90 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
store i32 3, ptr %90, align 8
%91 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
store i32 %93, ptr %94, align 4
%95 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %97, i32 noundef %100, i32 noundef %103, i32 noundef %106)
%108 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
%109 = load i32, ptr %108, align 16
%110 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
%111 = load i32, ptr %110, align 4
%112 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
%113 = load i32, ptr %112, align 8
%114 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
%115 = load i32, ptr %114, align 4
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %109, i32 noundef %111, i32 noundef %113, i32 noundef %115)
%117 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 88, ptr %117, align 1
%118 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 70, ptr %118, align 1
%119 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 90, ptr %119, align 1
%120 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%130 = load i8, ptr %129, align 1
%131 = sext i8 %130 to i32
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %122, i32 noundef %125, i32 noundef %128, i32 noundef %131)
store ptr @.str.10, ptr %11, align 8
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef 8)
store i32 5, ptr %12, align 4
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef 4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp14jr4dww.c'
source_filename = "/tmp/tmp14jr4dww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ldexp(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load double, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call double @__nv_ldexp(double noundef %5, i32 noundef %6)
ret double %7
}
declare double @__nv_ldexp(double 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/tmp14jr4dww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ldexp(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load double, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call double @__nv_ldexp(double noundef %5, i32 noundef %6)
ret double %7
}
declare double @__nv_ldexp(double 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/tmp2k2iqul8.c'
source_filename = "/tmp/tmp2k2iqul8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Connect error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @connect(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = call i32 @log_unix_error(ptr noundef @.str)
br label %15
15: ; preds = %13, %3
%16 = load i32, ptr %7, align 4
ret i32 %16
}
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @log_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/tmp2k2iqul8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Connect error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Connect(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @connect(i32 noundef %8, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = call i32 @log_unix_error(ptr noundef @.str)
br label %15
15: ; preds = %13, %3
%16 = load i32, ptr %7, align 4
ret i32 %16
}
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @log_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/tmprg9ej31j.c'
source_filename = "/tmp/tmprg9ej31j.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"Error abriendo /dev/ptmx\00", align 1
@TCSAFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pts_master_open() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.termios, align 4
%3 = load i32, ptr @O_RDWR, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str.1)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @grantpt(i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @unlockpt(i32 noundef %12)
%14 = load i32, ptr %1, align 4
%15 = call i32 @tcgetattr(i32 noundef %14, ptr noundef %2)
%16 = call i32 @cfmakeraw(ptr noundef %2)
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr @TCSAFLUSH, align 4
%19 = call i32 @tcsetattr(i32 noundef %17, i32 noundef %18, ptr noundef %2)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @grantpt(i32 noundef) #1
declare i32 @unlockpt(i32 noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprg9ej31j.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"Error abriendo /dev/ptmx\00", align 1
@TCSAFLUSH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pts_master_open() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.termios, align 4
%3 = load i32, ptr @O_RDWR, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str.1)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @grantpt(i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @unlockpt(i32 noundef %12)
%14 = load i32, ptr %1, align 4
%15 = call i32 @tcgetattr(i32 noundef %14, ptr noundef %2)
%16 = call i32 @cfmakeraw(ptr noundef %2)
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr @TCSAFLUSH, align 4
%19 = call i32 @tcsetattr(i32 noundef %17, i32 noundef %18, ptr noundef %2)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @grantpt(i32 noundef) #1
declare i32 @unlockpt(i32 noundef) #1
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprrwvpz1f.c'
source_filename = "/tmp/tmprrwvpz1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\0A-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0ASolucao linear para o sistema: \0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"A = coeficientes das incognitas\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"B = termos independentes\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"X = resultado encontrado\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"X correto = resultado esperado\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"\0ASistema resolvido com sucesso.\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"\0ASistema nao passou nos testes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_teste_solucao_linear(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = call ptr @matriz_nula(i32 noundef %12, i32 noundef 1)
store ptr %13, ptr %10, align 8
%14 = load i32, ptr %8, align 4
%15 = call ptr @matriz_quadrada_nula(i32 noundef %14)
store ptr %15, ptr %11, align 8
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @printf(ptr noundef @.str.1)
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = call i32 @imprime_matriz(ptr noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %8, align 4
%24 = call i32 @imprime_matriz(ptr noundef %22, i32 noundef %23, i32 noundef 1, ptr noundef @.str.3)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %8, align 4
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %11, align 8
%29 = load ptr, ptr %10, align 8
%30 = call i32 @solucao_linear(ptr noundef %25, i32 noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %8, align 4
%33 = call i32 @imprime_matriz(ptr noundef %31, i32 noundef %32, i32 noundef 1, ptr noundef @.str.4)
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %8, align 4
%36 = call i32 @imprime_matriz(ptr noundef %34, i32 noundef %35, i32 noundef 1, ptr noundef @.str.5)
%37 = load ptr, ptr %10, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %8, align 4
%40 = call i32 @confere_solucao_linear(ptr noundef %37, ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %4
%44 = call i32 @printf(ptr noundef @.str.6)
br label %47
45: ; preds = %4
%46 = call i32 @printf(ptr noundef @.str.7)
br label %47
47: ; preds = %45, %43
%48 = call i32 @printf(ptr noundef @.str)
%49 = load ptr, ptr %11, align 8
%50 = call i32 @free(ptr noundef %49)
store ptr null, ptr %11, align 8
%51 = load ptr, ptr %10, align 8
%52 = call i32 @free(ptr noundef %51)
store ptr null, ptr %10, align 8
ret void
}
declare ptr @matriz_nula(i32 noundef, i32 noundef) #1
declare ptr @matriz_quadrada_nula(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @imprime_matriz(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @solucao_linear(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @confere_solucao_linear(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprrwvpz1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"\0A-------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0ASolucao linear para o sistema: \0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"A = coeficientes das incognitas\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"B = termos independentes\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"X = resultado encontrado\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"X correto = resultado esperado\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"\0ASistema resolvido com sucesso.\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"\0ASistema nao passou nos testes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_teste_solucao_linear(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = call ptr @matriz_nula(i32 noundef %12, i32 noundef 1)
store ptr %13, ptr %10, align 8
%14 = load i32, ptr %8, align 4
%15 = call ptr @matriz_quadrada_nula(i32 noundef %14)
store ptr %15, ptr %11, align 8
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @printf(ptr noundef @.str.1)
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = call i32 @imprime_matriz(ptr noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %8, align 4
%24 = call i32 @imprime_matriz(ptr noundef %22, i32 noundef %23, i32 noundef 1, ptr noundef @.str.3)
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %8, align 4
%27 = load ptr, ptr %6, align 8
%28 = load ptr, ptr %11, align 8
%29 = load ptr, ptr %10, align 8
%30 = call i32 @solucao_linear(ptr noundef %25, i32 noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %8, align 4
%33 = call i32 @imprime_matriz(ptr noundef %31, i32 noundef %32, i32 noundef 1, ptr noundef @.str.4)
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %8, align 4
%36 = call i32 @imprime_matriz(ptr noundef %34, i32 noundef %35, i32 noundef 1, ptr noundef @.str.5)
%37 = load ptr, ptr %10, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %8, align 4
%40 = call i32 @confere_solucao_linear(ptr noundef %37, ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %4
%44 = call i32 @printf(ptr noundef @.str.6)
br label %47
45: ; preds = %4
%46 = call i32 @printf(ptr noundef @.str.7)
br label %47
47: ; preds = %45, %43
%48 = call i32 @printf(ptr noundef @.str)
%49 = load ptr, ptr %11, align 8
%50 = call i32 @free(ptr noundef %49)
store ptr null, ptr %11, align 8
%51 = load ptr, ptr %10, align 8
%52 = call i32 @free(ptr noundef %51)
store ptr null, ptr %10, align 8
ret void
}
declare ptr @matriz_nula(i32 noundef, i32 noundef) #1
declare ptr @matriz_quadrada_nula(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @imprime_matriz(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @solucao_linear(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @confere_solucao_linear(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9l4n_adk.c'
source_filename = "/tmp/tmp9l4n_adk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_prefix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %27, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %7
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @tolower(i8 noundef signext %19)
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @tolower(i8 noundef signext %22)
%24 = icmp eq i64 %20, %23
br label %25
25: ; preds = %17, %12, %7
%26 = phi i1 [ false, %12 ], [ false, %7 ], [ %24, %17 ]
br i1 %26, label %27, label %34
27: ; preds = %25
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %7, !llvm.loop !6
34: ; preds = %25
%35 = load ptr, ptr %5, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = load i32, ptr %6, align 4
store i32 %40, ptr %3, align 4
br label %42
41: ; preds = %34
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %41, %39
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i64 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9l4n_adk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_prefix(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %27, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %7
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @tolower(i8 noundef signext %19)
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @tolower(i8 noundef signext %22)
%24 = icmp eq i64 %20, %23
br label %25
25: ; preds = %17, %12, %7
%26 = phi i1 [ false, %12 ], [ false, %7 ], [ %24, %17 ]
br i1 %26, label %27, label %34
27: ; preds = %25
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %7, !llvm.loop !6
34: ; preds = %25
%35 = load ptr, ptr %5, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = load i32, ptr %6, align 4
store i32 %40, ptr %3, align 4
br label %42
41: ; preds = %34
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %41, %39
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i64 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnzt6c8f_.c'
source_filename = "/tmp/tmpnzt6c8f_.c"
target datalayout = "e-m:e-p270: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/tmpnzt6c8f_.c"
target datalayout = "e-m:e-p270: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/tmp2rk7lt2y.c'
source_filename = "/tmp/tmp2rk7lt2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Color3us(i16 noundef zeroext %0, i16 noundef zeroext %1, i16 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
store i16 %2, ptr %6, align 2
%7 = load i16, ptr %4, align 2
%8 = load i16, ptr %5, align 2
%9 = load i16, ptr %6, align 2
%10 = call i32 @glColor3us(i16 noundef zeroext %7, i16 noundef zeroext %8, i16 noundef zeroext %9)
ret void
}
declare i32 @glColor3us(i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2rk7lt2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Color3us(i16 noundef zeroext %0, i16 noundef zeroext %1, i16 noundef zeroext %2) #0 {
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i16, align 2
store i16 %0, ptr %4, align 2
store i16 %1, ptr %5, align 2
store i16 %2, ptr %6, align 2
%7 = load i16, ptr %4, align 2
%8 = load i16, ptr %5, align 2
%9 = load i16, ptr %6, align 2
%10 = call i32 @glColor3us(i16 noundef zeroext %7, i16 noundef zeroext %8, i16 noundef zeroext %9)
ret void
}
declare i32 @glColor3us(i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnm8rfbp3.c'
source_filename = "/tmp/tmpnm8rfbp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A\0AEnable parity (y/n)?\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @parity_enable() #0 {
%1 = alloca i64, align 8
%2 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str)
br label %3
3: ; preds = %0, %11
%4 = call i32 (...) @c40_getchar()
switch i32 %4, label %9 [
i32 89, label %5
i32 121, label %5
i32 78, label %7
i32 110, label %7
]
5: ; preds = %3, %3
%6 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.1)
store i64 1, ptr %1, align 8
br label %12
7: ; preds = %3, %3
%8 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.1)
store i64 0, ptr %1, align 8
br label %12
9: ; preds = %3
%10 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.2, i32 noundef 7)
br label %11
11: ; preds = %9
br label %3
12: ; preds = %7, %5
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i32 @c40_printf(ptr noundef, ...) #1
declare i32 @c40_getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnm8rfbp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A\0AEnable parity (y/n)?\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @parity_enable() #0 {
%1 = alloca i64, align 8
%2 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str)
br label %3
3: ; preds = %11, %0
%4 = call i32 (...) @c40_getchar()
switch i32 %4, label %9 [
i32 89, label %5
i32 121, label %5
i32 78, label %7
i32 110, label %7
]
5: ; preds = %3, %3
%6 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.1)
store i64 1, ptr %1, align 8
br label %12
7: ; preds = %3, %3
%8 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.1)
store i64 0, ptr %1, align 8
br label %12
9: ; preds = %3
%10 = call i32 (ptr, ...) @c40_printf(ptr noundef @.str.2, i32 noundef 7)
br label %11
11: ; preds = %9
br label %3
12: ; preds = %7, %5
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i32 @c40_printf(ptr noundef, ...) #1
declare i32 @c40_getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyiplaev_.c'
source_filename = "/tmp/tmpyiplaev_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcasecmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcasecmp(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyiplaev_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local i32 @softboundmpx_strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcasecmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcasecmp(ptr noundef, ptr noundef) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzq6h_jy8.c'
source_filename = "/tmp/tmpzq6h_jy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"info == info\00", align 1
@.str.1 = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Erez-Buchnik/Bouma2/refs/heads/master/dep/glpk/glpavl.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_glp_avl_strcmp(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %7, %8
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = call i32 @glp_assert_(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 43)
br label %12
12: ; preds = %10, %3
%13 = phi i1 [ true, %3 ], [ true, %10 ]
%14 = zext i1 %13 to i32
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strcmp(ptr noundef %15, ptr noundef %16)
ret i32 %17
}
declare i32 @glp_assert_(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzq6h_jy8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"info == info\00", align 1
@.str.1 = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Erez-Buchnik/Bouma2/refs/heads/master/dep/glpk/glpavl.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_glp_avl_strcmp(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %7, %8
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = call i32 @glp_assert_(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 43)
br label %12
12: ; preds = %10, %3
%13 = phi i1 [ true, %3 ], [ true, %10 ]
%14 = zext i1 %13 to i32
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strcmp(ptr noundef %15, ptr noundef %16)
ret i32 %17
}
declare i32 @glp_assert_(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6y6igj92.c'
source_filename = "/tmp/tmp6y6igj92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printl(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 @terminal_writeline(ptr noundef %3)
ret void
}
declare i32 @terminal_writeline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6y6igj92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printl(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 @terminal_writeline(ptr noundef %3)
ret void
}
declare i32 @terminal_writeline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz77puclo.c'
source_filename = "/tmp/tmpz77puclo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@grat1.K2 = internal global i32 0, align 4
@grat1.a2n = internal global double 0.000000e+00, align 8
@grat1.a2nm1 = internal global double 0.000000e+00, align 8
@grat1.am0 = internal global double 0.000000e+00, align 8
@grat1.an = internal global double 0.000000e+00, align 8
@grat1.an0 = internal global double 0.000000e+00, align 8
@grat1.b2n = internal global double 0.000000e+00, align 8
@grat1.b2nm1 = internal global double 0.000000e+00, align 8
@grat1.c = internal global double 0.000000e+00, align 8
@grat1.cma = internal global double 0.000000e+00, align 8
@grat1.g = internal global double 0.000000e+00, align 8
@grat1.h = internal global double 0.000000e+00, align 8
@grat1.j = internal global double 0.000000e+00, align 8
@grat1.l = internal global double 0.000000e+00, align 8
@grat1.sum = internal global double 0.000000e+00, align 8
@grat1.t = internal global double 0.000000e+00, align 8
@grat1.tol = internal global double 0.000000e+00, align 8
@grat1.w = internal global double 0.000000e+00, align 8
@grat1.z = internal global double 0.000000e+00, align 8
@grat1.T1 = internal global double 0.000000e+00, align 8
@grat1.T3 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @grat1(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load double, ptr %13, align 8
%15 = load ptr, ptr %8, align 8
%16 = load double, ptr %15, align 8
%17 = fmul double %14, %16
%18 = fcmp oeq double %17, 0.000000e+00
br i1 %18, label %19, label %20
19: ; preds = %6
br label %259
20: ; preds = %6
%21 = load ptr, ptr %7, align 8
%22 = load double, ptr %21, align 8
%23 = fcmp oeq double %22, 5.000000e-01
br i1 %23, label %24, label %25
24: ; preds = %20
br label %232
25: ; preds = %20
%26 = load ptr, ptr %8, align 8
%27 = load double, ptr %26, align 8
%28 = fcmp olt double %27, 1.100000e+00
br i1 %28, label %29, label %30
29: ; preds = %25
br label %31
30: ; preds = %25
br label %161
31: ; preds = %29
store double 3.000000e+00, ptr @grat1.an, align 8
%32 = load ptr, ptr %8, align 8
%33 = load double, ptr %32, align 8
store double %33, ptr @grat1.c, align 8
%34 = load ptr, ptr %8, align 8
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %7, align 8
%37 = load double, ptr %36, align 8
%38 = fadd double %37, 3.000000e+00
%39 = fdiv double %35, %38
store double %39, ptr @grat1.sum, align 8
%40 = load ptr, ptr %12, align 8
%41 = load double, ptr %40, align 8
%42 = fmul double 1.000000e-01, %41
%43 = load ptr, ptr %7, align 8
%44 = load double, ptr %43, align 8
%45 = fadd double %44, 1.000000e+00
%46 = fdiv double %42, %45
store double %46, ptr @grat1.tol, align 8
br label %47
47: ; preds = %70, %31
%48 = load double, ptr @grat1.an, align 8
%49 = fadd double %48, 1.000000e+00
store double %49, ptr @grat1.an, align 8
%50 = load double, ptr @grat1.c, align 8
%51 = load ptr, ptr %8, align 8
%52 = load double, ptr %51, align 8
%53 = load double, ptr @grat1.an, align 8
%54 = fdiv double %52, %53
%55 = fmul double %50, %54
%56 = fneg double %55
store double %56, ptr @grat1.c, align 8
%57 = load double, ptr @grat1.c, align 8
%58 = load ptr, ptr %7, align 8
%59 = load double, ptr %58, align 8
%60 = load double, ptr @grat1.an, align 8
%61 = fadd double %59, %60
%62 = fdiv double %57, %61
store double %62, ptr @grat1.t, align 8
%63 = load double, ptr @grat1.t, align 8
%64 = load double, ptr @grat1.sum, align 8
%65 = fadd double %64, %63
store double %65, ptr @grat1.sum, align 8
%66 = load double, ptr @grat1.t, align 8
%67 = call double @llvm.fabs.f64(double %66)
%68 = load double, ptr @grat1.tol, align 8
%69 = fcmp ogt double %67, %68
br i1 %69, label %70, label %71
70: ; preds = %47
br label %47
71: ; preds = %47
%72 = load ptr, ptr %7, align 8
%73 = load double, ptr %72, align 8
%74 = load ptr, ptr %8, align 8
%75 = load double, ptr %74, align 8
%76 = fmul double %73, %75
%77 = load double, ptr @grat1.sum, align 8
%78 = fdiv double %77, 6.000000e+00
%79 = load ptr, ptr %7, align 8
%80 = load double, ptr %79, align 8
%81 = fadd double %80, 2.000000e+00
%82 = fdiv double 5.000000e-01, %81
%83 = fsub double %78, %82
%84 = load ptr, ptr %8, align 8
%85 = load double, ptr %84, align 8
%86 = load ptr, ptr %7, align 8
%87 = load double, ptr %86, align 8
%88 = fadd double %87, 1.000000e+00
%89 = fdiv double 1.000000e+00, %88
%90 = call double @llvm.fmuladd.f64(double %83, double %85, double %89)
%91 = fmul double %76, %90
store double %91, ptr @grat1.j, align 8
%92 = load ptr, ptr %7, align 8
%93 = load double, ptr %92, align 8
%94 = load ptr, ptr %8, align 8
%95 = load double, ptr %94, align 8
%96 = call double @log(double noundef %95) #4
%97 = fmul double %93, %96
store double %97, ptr @grat1.z, align 8
%98 = load ptr, ptr %7, align 8
%99 = call double @gam1(ptr noundef %98)
store double %99, ptr @grat1.h, align 8
%100 = load double, ptr @grat1.h, align 8
%101 = fadd double 1.000000e+00, %100
store double %101, ptr @grat1.g, align 8
%102 = load ptr, ptr %8, align 8
%103 = load double, ptr %102, align 8
%104 = fcmp olt double %103, 2.500000e-01
br i1 %104, label %105, label %106
105: ; preds = %71
br label %115
106: ; preds = %71
%107 = load ptr, ptr %7, align 8
%108 = load double, ptr %107, align 8
%109 = load ptr, ptr %8, align 8
%110 = load double, ptr %109, align 8
%111 = fdiv double %110, 2.590000e+00
%112 = fcmp olt double %108, %111
br i1 %112, label %113, label %114
113: ; preds = %106
br label %136
114: ; preds = %106
br label %120
115: ; preds = %105
%116 = load double, ptr @grat1.z, align 8
%117 = fcmp ogt double %116, -1.339400e-01
br i1 %117, label %118, label %119
118: ; preds = %115
br label %136
119: ; preds = %115
br label %120
120: ; preds = %119, %114
%121 = load double, ptr @grat1.z, align 8
%122 = call double @exp(double noundef %121) #4
store double %122, ptr @grat1.w, align 8
%123 = load double, ptr @grat1.w, align 8
%124 = load double, ptr @grat1.g, align 8
%125 = fmul double %123, %124
%126 = load double, ptr @grat1.j, align 8
%127 = fsub double 5.000000e-01, %126
%128 = fadd double 5.000000e-01, %127
%129 = fmul double %125, %128
%130 = load ptr, ptr %10, align 8
store double %129, ptr %130, align 8
%131 = load ptr, ptr %10, align 8
%132 = load double, ptr %131, align 8
%133 = fsub double 5.000000e-01, %132
%134 = fadd double 5.000000e-01, %133
%135 = load ptr, ptr %11, align 8
store double %134, ptr %135, align 8
br label %267
136: ; preds = %118, %113
%137 = call double @rexp(ptr noundef @grat1.z)
store double %137, ptr @grat1.l, align 8
%138 = load double, ptr @grat1.l, align 8
%139 = fadd double 5.000000e-01, %138
%140 = fadd double 5.000000e-01, %139
store double %140, ptr @grat1.w, align 8
%141 = load double, ptr @grat1.w, align 8
%142 = load double, ptr @grat1.j, align 8
%143 = load double, ptr @grat1.l, align 8
%144 = fneg double %143
%145 = call double @llvm.fmuladd.f64(double %141, double %142, double %144)
%146 = load double, ptr @grat1.g, align 8
%147 = load double, ptr @grat1.h, align 8
%148 = fneg double %147
%149 = call double @llvm.fmuladd.f64(double %145, double %146, double %148)
%150 = load ptr, ptr %11, align 8
store double %149, ptr %150, align 8
%151 = load ptr, ptr %11, align 8
%152 = load double, ptr %151, align 8
%153 = fcmp olt double %152, 0.000000e+00
br i1 %153, label %154, label %155
154: ; preds = %136
br label %229
155: ; preds = %136
%156 = load ptr, ptr %11, align 8
%157 = load double, ptr %156, align 8
%158 = fsub double 5.000000e-01, %157
%159 = fadd double 5.000000e-01, %158
%160 = load ptr, ptr %10, align 8
store double %159, ptr %160, align 8
br label %267
161: ; preds = %30
store double 1.000000e+00, ptr @grat1.a2n, align 8
store double 1.000000e+00, ptr @grat1.a2nm1, align 8
%162 = load ptr, ptr %8, align 8
%163 = load double, ptr %162, align 8
store double %163, ptr @grat1.b2nm1, align 8
%164 = load ptr, ptr %8, align 8
%165 = load double, ptr %164, align 8
%166 = load ptr, ptr %7, align 8
%167 = load double, ptr %166, align 8
%168 = fsub double 1.000000e+00, %167
%169 = fadd double %165, %168
store double %169, ptr @grat1.b2n, align 8
store double 1.000000e+00, ptr @grat1.c, align 8
br label %170
170: ; preds = %214, %161
%171 = load ptr, ptr %8, align 8
%172 = load double, ptr %171, align 8
%173 = load double, ptr @grat1.a2n, align 8
%174 = load double, ptr @grat1.c, align 8
%175 = load double, ptr @grat1.a2nm1, align 8
%176 = fmul double %174, %175
%177 = call double @llvm.fmuladd.f64(double %172, double %173, double %176)
store double %177, ptr @grat1.a2nm1, align 8
%178 = load ptr, ptr %8, align 8
%179 = load double, ptr %178, align 8
%180 = load double, ptr @grat1.b2n, align 8
%181 = load double, ptr @grat1.c, align 8
%182 = load double, ptr @grat1.b2nm1, align 8
%183 = fmul double %181, %182
%184 = call double @llvm.fmuladd.f64(double %179, double %180, double %183)
store double %184, ptr @grat1.b2nm1, align 8
%185 = load double, ptr @grat1.a2nm1, align 8
%186 = load double, ptr @grat1.b2nm1, align 8
%187 = fdiv double %185, %186
store double %187, ptr @grat1.am0, align 8
%188 = load double, ptr @grat1.c, align 8
%189 = fadd double %188, 1.000000e+00
store double %189, ptr @grat1.c, align 8
%190 = load double, ptr @grat1.c, align 8
%191 = load ptr, ptr %7, align 8
%192 = load double, ptr %191, align 8
%193 = fsub double %190, %192
store double %193, ptr @grat1.cma, align 8
%194 = load double, ptr @grat1.a2nm1, align 8
%195 = load double, ptr @grat1.cma, align 8
%196 = load double, ptr @grat1.a2n, align 8
%197 = call double @llvm.fmuladd.f64(double %195, double %196, double %194)
store double %197, ptr @grat1.a2n, align 8
%198 = load double, ptr @grat1.b2nm1, align 8
%199 = load double, ptr @grat1.cma, align 8
%200 = load double, ptr @grat1.b2n, align 8
%201 = call double @llvm.fmuladd.f64(double %199, double %200, double %198)
store double %201, ptr @grat1.b2n, align 8
%202 = load double, ptr @grat1.a2n, align 8
%203 = load double, ptr @grat1.b2n, align 8
%204 = fdiv double %202, %203
store double %204, ptr @grat1.an0, align 8
%205 = load double, ptr @grat1.an0, align 8
%206 = load double, ptr @grat1.am0, align 8
%207 = fsub double %205, %206
%208 = call double @llvm.fabs.f64(double %207)
%209 = load ptr, ptr %12, align 8
%210 = load double, ptr %209, align 8
%211 = load double, ptr @grat1.an0, align 8
%212 = fmul double %210, %211
%213 = fcmp oge double %208, %212
br i1 %213, label %214, label %215
214: ; preds = %170
br label %170
215: ; preds = %170
%216 = load ptr, ptr %9, align 8
%217 = load double, ptr %216, align 8
%218 = load double, ptr @grat1.an0, align 8
%219 = fmul double %217, %218
%220 = load ptr, ptr %11, align 8
store double %219, ptr %220, align 8
%221 = load ptr, ptr %11, align 8
%222 = load double, ptr %221, align 8
%223 = fsub double 5.000000e-01, %222
%224 = fadd double 5.000000e-01, %223
%225 = load ptr, ptr %10, align 8
store double %224, ptr %225, align 8
br label %267
226: ; preds = %265
%227 = load ptr, ptr %10, align 8
store double 0.000000e+00, ptr %227, align 8
%228 = load ptr, ptr %11, align 8
store double 1.000000e+00, ptr %228, align 8
br label %267
229: ; preds = %266, %154
%230 = load ptr, ptr %10, align 8
store double 1.000000e+00, ptr %230, align 8
%231 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %231, align 8
br label %267
232: ; preds = %24
%233 = load ptr, ptr %8, align 8
%234 = load double, ptr %233, align 8
%235 = fcmp oge double %234, 2.500000e-01
br i1 %235, label %236, label %237
236: ; preds = %232
br label %248
237: ; preds = %232
%238 = load ptr, ptr %8, align 8
%239 = load double, ptr %238, align 8
%240 = call double @sqrt(double noundef %239) #4
store double %240, ptr @grat1.T1, align 8
%241 = call double @erf1(ptr noundef @grat1.T1)
%242 = load ptr, ptr %10, align 8
store double %241, ptr %242, align 8
%243 = load ptr, ptr %10, align 8
%244 = load double, ptr %243, align 8
%245 = fsub double 5.000000e-01, %244
%246 = fadd double 5.000000e-01, %245
%247 = load ptr, ptr %11, align 8
store double %246, ptr %247, align 8
br label %267
248: ; preds = %236
%249 = load ptr, ptr %8, align 8
%250 = load double, ptr %249, align 8
%251 = call double @sqrt(double noundef %250) #4
store double %251, ptr @grat1.T3, align 8
%252 = call double @erfc1(ptr noundef @grat1.K2, ptr noundef @grat1.T3)
%253 = load ptr, ptr %11, align 8
store double %252, ptr %253, align 8
%254 = load ptr, ptr %11, align 8
%255 = load double, ptr %254, align 8
%256 = fsub double 5.000000e-01, %255
%257 = fadd double 5.000000e-01, %256
%258 = load ptr, ptr %10, align 8
store double %257, ptr %258, align 8
br label %267
259: ; preds = %19
%260 = load ptr, ptr %8, align 8
%261 = load double, ptr %260, align 8
%262 = load ptr, ptr %7, align 8
%263 = load double, ptr %262, align 8
%264 = fcmp ole double %261, %263
br i1 %264, label %265, label %266
265: ; preds = %259
br label %226
266: ; preds = %259
br label %229
267: ; preds = %248, %237, %229, %226, %215, %155, %120
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare double @gam1(ptr noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @rexp(ptr noundef) #3
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @erf1(ptr noundef) #3
declare double @erfc1(ptr noundef, ptr noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz77puclo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@grat1.K2 = internal global i32 0, align 4
@grat1.a2n = internal global double 0.000000e+00, align 8
@grat1.a2nm1 = internal global double 0.000000e+00, align 8
@grat1.am0 = internal global double 0.000000e+00, align 8
@grat1.an = internal global double 0.000000e+00, align 8
@grat1.an0 = internal global double 0.000000e+00, align 8
@grat1.b2n = internal global double 0.000000e+00, align 8
@grat1.b2nm1 = internal global double 0.000000e+00, align 8
@grat1.c = internal global double 0.000000e+00, align 8
@grat1.cma = internal global double 0.000000e+00, align 8
@grat1.g = internal global double 0.000000e+00, align 8
@grat1.h = internal global double 0.000000e+00, align 8
@grat1.j = internal global double 0.000000e+00, align 8
@grat1.l = internal global double 0.000000e+00, align 8
@grat1.sum = internal global double 0.000000e+00, align 8
@grat1.t = internal global double 0.000000e+00, align 8
@grat1.tol = internal global double 0.000000e+00, align 8
@grat1.w = internal global double 0.000000e+00, align 8
@grat1.z = internal global double 0.000000e+00, align 8
@grat1.T1 = internal global double 0.000000e+00, align 8
@grat1.T3 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @grat1(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load double, ptr %13, align 8
%15 = load ptr, ptr %8, align 8
%16 = load double, ptr %15, align 8
%17 = fmul double %14, %16
%18 = fcmp oeq double %17, 0.000000e+00
br i1 %18, label %19, label %20
19: ; preds = %6
br label %257
20: ; preds = %6
%21 = load ptr, ptr %7, align 8
%22 = load double, ptr %21, align 8
%23 = fcmp oeq double %22, 5.000000e-01
br i1 %23, label %24, label %25
24: ; preds = %20
br label %230
25: ; preds = %20
%26 = load ptr, ptr %8, align 8
%27 = load double, ptr %26, align 8
%28 = fcmp olt double %27, 1.100000e+00
br i1 %28, label %29, label %30
29: ; preds = %25
br label %31
30: ; preds = %25
br label %160
31: ; preds = %29
store double 3.000000e+00, ptr @grat1.an, align 8
%32 = load ptr, ptr %8, align 8
%33 = load double, ptr %32, align 8
store double %33, ptr @grat1.c, align 8
%34 = load ptr, ptr %8, align 8
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %7, align 8
%37 = load double, ptr %36, align 8
%38 = fadd double %37, 3.000000e+00
%39 = fdiv double %35, %38
store double %39, ptr @grat1.sum, align 8
%40 = load ptr, ptr %12, align 8
%41 = load double, ptr %40, align 8
%42 = fmul double 1.000000e-01, %41
%43 = load ptr, ptr %7, align 8
%44 = load double, ptr %43, align 8
%45 = fadd double %44, 1.000000e+00
%46 = fdiv double %42, %45
store double %46, ptr @grat1.tol, align 8
br label %47
47: ; preds = %47, %31
%48 = load double, ptr @grat1.an, align 8
%49 = fadd double %48, 1.000000e+00
store double %49, ptr @grat1.an, align 8
%50 = load double, ptr @grat1.c, align 8
%51 = load ptr, ptr %8, align 8
%52 = load double, ptr %51, align 8
%53 = load double, ptr @grat1.an, align 8
%54 = fdiv double %52, %53
%55 = fmul double %50, %54
%56 = fneg double %55
store double %56, ptr @grat1.c, align 8
%57 = load double, ptr @grat1.c, align 8
%58 = load ptr, ptr %7, align 8
%59 = load double, ptr %58, align 8
%60 = load double, ptr @grat1.an, align 8
%61 = fadd double %59, %60
%62 = fdiv double %57, %61
store double %62, ptr @grat1.t, align 8
%63 = load double, ptr @grat1.t, align 8
%64 = load double, ptr @grat1.sum, align 8
%65 = fadd double %64, %63
store double %65, ptr @grat1.sum, align 8
%66 = load double, ptr @grat1.t, align 8
%67 = call double @llvm.fabs.f64(double %66)
%68 = load double, ptr @grat1.tol, align 8
%69 = fcmp ogt double %67, %68
br i1 %69, label %47, label %70
70: ; preds = %47
%71 = load ptr, ptr %7, align 8
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %8, align 8
%74 = load double, ptr %73, align 8
%75 = fmul double %72, %74
%76 = load double, ptr @grat1.sum, align 8
%77 = fdiv double %76, 6.000000e+00
%78 = load ptr, ptr %7, align 8
%79 = load double, ptr %78, align 8
%80 = fadd double %79, 2.000000e+00
%81 = fdiv double 5.000000e-01, %80
%82 = fsub double %77, %81
%83 = load ptr, ptr %8, align 8
%84 = load double, ptr %83, align 8
%85 = load ptr, ptr %7, align 8
%86 = load double, ptr %85, align 8
%87 = fadd double %86, 1.000000e+00
%88 = fdiv double 1.000000e+00, %87
%89 = call double @llvm.fmuladd.f64(double %82, double %84, double %88)
%90 = fmul double %75, %89
store double %90, ptr @grat1.j, align 8
%91 = load ptr, ptr %7, align 8
%92 = load double, ptr %91, align 8
%93 = load ptr, ptr %8, align 8
%94 = load double, ptr %93, align 8
%95 = call double @log(double noundef %94) #4
%96 = fmul double %92, %95
store double %96, ptr @grat1.z, align 8
%97 = load ptr, ptr %7, align 8
%98 = call double @gam1(ptr noundef %97)
store double %98, ptr @grat1.h, align 8
%99 = load double, ptr @grat1.h, align 8
%100 = fadd double 1.000000e+00, %99
store double %100, ptr @grat1.g, align 8
%101 = load ptr, ptr %8, align 8
%102 = load double, ptr %101, align 8
%103 = fcmp olt double %102, 2.500000e-01
br i1 %103, label %104, label %105
104: ; preds = %70
br label %114
105: ; preds = %70
%106 = load ptr, ptr %7, align 8
%107 = load double, ptr %106, align 8
%108 = load ptr, ptr %8, align 8
%109 = load double, ptr %108, align 8
%110 = fdiv double %109, 2.590000e+00
%111 = fcmp olt double %107, %110
br i1 %111, label %112, label %113
112: ; preds = %105
br label %135
113: ; preds = %105
br label %119
114: ; preds = %104
%115 = load double, ptr @grat1.z, align 8
%116 = fcmp ogt double %115, -1.339400e-01
br i1 %116, label %117, label %118
117: ; preds = %114
br label %135
118: ; preds = %114
br label %119
119: ; preds = %118, %113
%120 = load double, ptr @grat1.z, align 8
%121 = call double @exp(double noundef %120) #4
store double %121, ptr @grat1.w, align 8
%122 = load double, ptr @grat1.w, align 8
%123 = load double, ptr @grat1.g, align 8
%124 = fmul double %122, %123
%125 = load double, ptr @grat1.j, align 8
%126 = fsub double 5.000000e-01, %125
%127 = fadd double 5.000000e-01, %126
%128 = fmul double %124, %127
%129 = load ptr, ptr %10, align 8
store double %128, ptr %129, align 8
%130 = load ptr, ptr %10, align 8
%131 = load double, ptr %130, align 8
%132 = fsub double 5.000000e-01, %131
%133 = fadd double 5.000000e-01, %132
%134 = load ptr, ptr %11, align 8
store double %133, ptr %134, align 8
br label %265
135: ; preds = %117, %112
%136 = call double @rexp(ptr noundef @grat1.z)
store double %136, ptr @grat1.l, align 8
%137 = load double, ptr @grat1.l, align 8
%138 = fadd double 5.000000e-01, %137
%139 = fadd double 5.000000e-01, %138
store double %139, ptr @grat1.w, align 8
%140 = load double, ptr @grat1.w, align 8
%141 = load double, ptr @grat1.j, align 8
%142 = load double, ptr @grat1.l, align 8
%143 = fneg double %142
%144 = call double @llvm.fmuladd.f64(double %140, double %141, double %143)
%145 = load double, ptr @grat1.g, align 8
%146 = load double, ptr @grat1.h, align 8
%147 = fneg double %146
%148 = call double @llvm.fmuladd.f64(double %144, double %145, double %147)
%149 = load ptr, ptr %11, align 8
store double %148, ptr %149, align 8
%150 = load ptr, ptr %11, align 8
%151 = load double, ptr %150, align 8
%152 = fcmp olt double %151, 0.000000e+00
br i1 %152, label %153, label %154
153: ; preds = %135
br label %227
154: ; preds = %135
%155 = load ptr, ptr %11, align 8
%156 = load double, ptr %155, align 8
%157 = fsub double 5.000000e-01, %156
%158 = fadd double 5.000000e-01, %157
%159 = load ptr, ptr %10, align 8
store double %158, ptr %159, align 8
br label %265
160: ; preds = %30
store double 1.000000e+00, ptr @grat1.a2n, align 8
store double 1.000000e+00, ptr @grat1.a2nm1, align 8
%161 = load ptr, ptr %8, align 8
%162 = load double, ptr %161, align 8
store double %162, ptr @grat1.b2nm1, align 8
%163 = load ptr, ptr %8, align 8
%164 = load double, ptr %163, align 8
%165 = load ptr, ptr %7, align 8
%166 = load double, ptr %165, align 8
%167 = fsub double 1.000000e+00, %166
%168 = fadd double %164, %167
store double %168, ptr @grat1.b2n, align 8
store double 1.000000e+00, ptr @grat1.c, align 8
br label %169
169: ; preds = %169, %160
%170 = load ptr, ptr %8, align 8
%171 = load double, ptr %170, align 8
%172 = load double, ptr @grat1.a2n, align 8
%173 = load double, ptr @grat1.c, align 8
%174 = load double, ptr @grat1.a2nm1, align 8
%175 = fmul double %173, %174
%176 = call double @llvm.fmuladd.f64(double %171, double %172, double %175)
store double %176, ptr @grat1.a2nm1, align 8
%177 = load ptr, ptr %8, align 8
%178 = load double, ptr %177, align 8
%179 = load double, ptr @grat1.b2n, align 8
%180 = load double, ptr @grat1.c, align 8
%181 = load double, ptr @grat1.b2nm1, align 8
%182 = fmul double %180, %181
%183 = call double @llvm.fmuladd.f64(double %178, double %179, double %182)
store double %183, ptr @grat1.b2nm1, align 8
%184 = load double, ptr @grat1.a2nm1, align 8
%185 = load double, ptr @grat1.b2nm1, align 8
%186 = fdiv double %184, %185
store double %186, ptr @grat1.am0, align 8
%187 = load double, ptr @grat1.c, align 8
%188 = fadd double %187, 1.000000e+00
store double %188, ptr @grat1.c, align 8
%189 = load double, ptr @grat1.c, align 8
%190 = load ptr, ptr %7, align 8
%191 = load double, ptr %190, align 8
%192 = fsub double %189, %191
store double %192, ptr @grat1.cma, align 8
%193 = load double, ptr @grat1.a2nm1, align 8
%194 = load double, ptr @grat1.cma, align 8
%195 = load double, ptr @grat1.a2n, align 8
%196 = call double @llvm.fmuladd.f64(double %194, double %195, double %193)
store double %196, ptr @grat1.a2n, align 8
%197 = load double, ptr @grat1.b2nm1, align 8
%198 = load double, ptr @grat1.cma, align 8
%199 = load double, ptr @grat1.b2n, align 8
%200 = call double @llvm.fmuladd.f64(double %198, double %199, double %197)
store double %200, ptr @grat1.b2n, align 8
%201 = load double, ptr @grat1.a2n, align 8
%202 = load double, ptr @grat1.b2n, align 8
%203 = fdiv double %201, %202
store double %203, ptr @grat1.an0, align 8
%204 = load double, ptr @grat1.an0, align 8
%205 = load double, ptr @grat1.am0, align 8
%206 = fsub double %204, %205
%207 = call double @llvm.fabs.f64(double %206)
%208 = load ptr, ptr %12, align 8
%209 = load double, ptr %208, align 8
%210 = load double, ptr @grat1.an0, align 8
%211 = fmul double %209, %210
%212 = fcmp oge double %207, %211
br i1 %212, label %169, label %213
213: ; preds = %169
%214 = load ptr, ptr %9, align 8
%215 = load double, ptr %214, align 8
%216 = load double, ptr @grat1.an0, align 8
%217 = fmul double %215, %216
%218 = load ptr, ptr %11, align 8
store double %217, ptr %218, align 8
%219 = load ptr, ptr %11, align 8
%220 = load double, ptr %219, align 8
%221 = fsub double 5.000000e-01, %220
%222 = fadd double 5.000000e-01, %221
%223 = load ptr, ptr %10, align 8
store double %222, ptr %223, align 8
br label %265
224: ; preds = %263
%225 = load ptr, ptr %10, align 8
store double 0.000000e+00, ptr %225, align 8
%226 = load ptr, ptr %11, align 8
store double 1.000000e+00, ptr %226, align 8
br label %265
227: ; preds = %264, %153
%228 = load ptr, ptr %10, align 8
store double 1.000000e+00, ptr %228, align 8
%229 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %229, align 8
br label %265
230: ; preds = %24
%231 = load ptr, ptr %8, align 8
%232 = load double, ptr %231, align 8
%233 = fcmp oge double %232, 2.500000e-01
br i1 %233, label %234, label %235
234: ; preds = %230
br label %246
235: ; preds = %230
%236 = load ptr, ptr %8, align 8
%237 = load double, ptr %236, align 8
%238 = call double @sqrt(double noundef %237) #4
store double %238, ptr @grat1.T1, align 8
%239 = call double @erf1(ptr noundef @grat1.T1)
%240 = load ptr, ptr %10, align 8
store double %239, ptr %240, align 8
%241 = load ptr, ptr %10, align 8
%242 = load double, ptr %241, align 8
%243 = fsub double 5.000000e-01, %242
%244 = fadd double 5.000000e-01, %243
%245 = load ptr, ptr %11, align 8
store double %244, ptr %245, align 8
br label %265
246: ; preds = %234
%247 = load ptr, ptr %8, align 8
%248 = load double, ptr %247, align 8
%249 = call double @sqrt(double noundef %248) #4
store double %249, ptr @grat1.T3, align 8
%250 = call double @erfc1(ptr noundef @grat1.K2, ptr noundef @grat1.T3)
%251 = load ptr, ptr %11, align 8
store double %250, ptr %251, align 8
%252 = load ptr, ptr %11, align 8
%253 = load double, ptr %252, align 8
%254 = fsub double 5.000000e-01, %253
%255 = fadd double 5.000000e-01, %254
%256 = load ptr, ptr %10, align 8
store double %255, ptr %256, align 8
br label %265
257: ; preds = %19
%258 = load ptr, ptr %8, align 8
%259 = load double, ptr %258, align 8
%260 = load ptr, ptr %7, align 8
%261 = load double, ptr %260, align 8
%262 = fcmp ole double %259, %261
br i1 %262, label %263, label %264
263: ; preds = %257
br label %224
264: ; preds = %257
br label %227
265: ; preds = %246, %235, %227, %224, %213, %154, %119
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare double @gam1(ptr noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @rexp(ptr noundef) #3
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
declare double @erf1(ptr noundef) #3
declare double @erfc1(ptr noundef, ptr noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwia2zutb.c'
source_filename = "/tmp/tmpwia2zutb.c"
target datalayout = "e-m:e-p270: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/tmpwia2zutb.c"
target datalayout = "e-m:e-p270: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/tmptyn0pl5a.c'
source_filename = "/tmp/tmptyn0pl5a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_cond_destroy(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 @assert(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @cond_destroy(ptr noundef %5)
ret i32 0
}
declare i32 @assert(ptr noundef) #1
declare i32 @cond_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptyn0pl5a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_cond_destroy(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 @assert(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @cond_destroy(ptr noundef %5)
ret i32 0
}
declare i32 @assert(ptr noundef) #1
declare i32 @cond_destroy(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp36e4z69l.c'
source_filename = "/tmp/tmp36e4z69l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c" !\22#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_isprint(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr @.str, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i64 @ft_isalnum(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %33
9: ; preds = %1
br label %10
10: ; preds = %23, %9
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i32, ptr %3, align 4
%20 = icmp ne i32 %18, %19
br label %21
21: ; preds = %15, %10
%22 = phi i1 [ false, %10 ], [ %20, %15 ]
br i1 %22, label %23, label %26
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
br label %10, !llvm.loop !6
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 0, ptr %2, align 4
br label %33
32: ; preds = %26
store i32 1, ptr %2, align 4
br label %33
33: ; preds = %32, %31, %8
%34 = load i32, ptr %2, align 4
ret i32 %34
}
declare i64 @ft_isalnum(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp36e4z69l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c" !\22#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_isprint(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr @.str, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = call i64 @ft_isalnum(i32 noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %33
9: ; preds = %1
br label %10
10: ; preds = %23, %9
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i32, ptr %3, align 4
%20 = icmp ne i32 %18, %19
br label %21
21: ; preds = %15, %10
%22 = phi i1 [ false, %10 ], [ %20, %15 ]
br i1 %22, label %23, label %26
23: ; preds = %21
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
br label %10, !llvm.loop !6
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 0, ptr %2, align 4
br label %33
32: ; preds = %26
store i32 1, ptr %2, align 4
br label %33
33: ; preds = %32, %31, %8
%34 = load i32, ptr %2, align 4
ret i32 %34
}
declare i64 @ft_isalnum(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5xe1mjzl.c'
source_filename = "/tmp/tmp5xe1mjzl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @sleep(i32 noundef 600)
ret i32 0
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5xe1mjzl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @sleep(i32 noundef 600)
ret i32 0
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16a8hne7.c'
source_filename = "/tmp/tmp16a8hne7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @digamma(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fadd double %4, 6.000000e+00
store double %5, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = fmul double %6, %7
%9 = fdiv double 1.000000e+00, %8
store double %9, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = call double @llvm.fmuladd.f64(double 0x3F71111111111291, double %10, double 0xBF704104117DAD00)
%12 = load double, ptr %3, align 8
%13 = call double @llvm.fmuladd.f64(double %11, double %12, double 0x3F81111111111051)
%14 = load double, ptr %3, align 8
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double 0xBFB555555555553D)
%16 = load double, ptr %3, align 8
%17 = fmul double %15, %16
store double %17, ptr %3, align 8
%18 = load double, ptr %3, align 8
%19 = load double, ptr %2, align 8
%20 = call double @log(double noundef %19) #3
%21 = fadd double %18, %20
%22 = load double, ptr %2, align 8
%23 = fdiv double 5.000000e-01, %22
%24 = fsub double %21, %23
%25 = load double, ptr %2, align 8
%26 = fsub double %25, 1.000000e+00
%27 = fdiv double 1.000000e+00, %26
%28 = fsub double %24, %27
%29 = load double, ptr %2, align 8
%30 = fsub double %29, 2.000000e+00
%31 = fdiv double 1.000000e+00, %30
%32 = fsub double %28, %31
%33 = load double, ptr %2, align 8
%34 = fsub double %33, 3.000000e+00
%35 = fdiv double 1.000000e+00, %34
%36 = fsub double %32, %35
%37 = load double, ptr %2, align 8
%38 = fsub double %37, 4.000000e+00
%39 = fdiv double 1.000000e+00, %38
%40 = fsub double %36, %39
%41 = load double, ptr %2, align 8
%42 = fsub double %41, 5.000000e+00
%43 = fdiv double 1.000000e+00, %42
%44 = fsub double %40, %43
%45 = load double, ptr %2, align 8
%46 = fsub double %45, 6.000000e+00
%47 = fdiv double 1.000000e+00, %46
%48 = fsub double %44, %47
store double %48, ptr %3, align 8
%49 = load double, ptr %3, align 8
ret double %49
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16a8hne7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @digamma(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fadd double %4, 6.000000e+00
store double %5, ptr %2, align 8
%6 = load double, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = fmul double %6, %7
%9 = fdiv double 1.000000e+00, %8
store double %9, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = call double @llvm.fmuladd.f64(double 0x3F71111111111291, double %10, double 0xBF704104117DAD00)
%12 = load double, ptr %3, align 8
%13 = call double @llvm.fmuladd.f64(double %11, double %12, double 0x3F81111111111051)
%14 = load double, ptr %3, align 8
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double 0xBFB555555555553D)
%16 = load double, ptr %3, align 8
%17 = fmul double %15, %16
store double %17, ptr %3, align 8
%18 = load double, ptr %3, align 8
%19 = load double, ptr %2, align 8
%20 = call double @log(double noundef %19) #3
%21 = fadd double %18, %20
%22 = load double, ptr %2, align 8
%23 = fdiv double 5.000000e-01, %22
%24 = fsub double %21, %23
%25 = load double, ptr %2, align 8
%26 = fsub double %25, 1.000000e+00
%27 = fdiv double 1.000000e+00, %26
%28 = fsub double %24, %27
%29 = load double, ptr %2, align 8
%30 = fsub double %29, 2.000000e+00
%31 = fdiv double 1.000000e+00, %30
%32 = fsub double %28, %31
%33 = load double, ptr %2, align 8
%34 = fsub double %33, 3.000000e+00
%35 = fdiv double 1.000000e+00, %34
%36 = fsub double %32, %35
%37 = load double, ptr %2, align 8
%38 = fsub double %37, 4.000000e+00
%39 = fdiv double 1.000000e+00, %38
%40 = fsub double %36, %39
%41 = load double, ptr %2, align 8
%42 = fsub double %41, 5.000000e+00
%43 = fdiv double 1.000000e+00, %42
%44 = fsub double %40, %43
%45 = load double, ptr %2, align 8
%46 = fsub double %45, 6.000000e+00
%47 = fdiv double 1.000000e+00, %46
%48 = fsub double %44, %47
store double %48, ptr %3, align 8
%49 = load double, ptr %3, align 8
ret double %49
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuu67d_lw.c'
source_filename = "/tmp/tmpuu67d_lw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
br label %12
12: ; preds = %22, %3
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %25
16: ; preds = %12
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %7, align 8
%19 = load i8, ptr %17, align 1
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %8, align 8
store i8 %19, ptr %20, align 1
br label %22
22: ; preds = %16
%23 = load i64, ptr %9, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %9, align 8
br label %12, !llvm.loop !6
25: ; preds = %12
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpuu67d_lw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %5, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %21
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %8, align 8
store i8 %18, ptr %19, align 1
br label %21
21: ; preds = %15
%22 = load i64, ptr %9, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %9, align 8
%25 = load i64, ptr %6, align 8
%26 = icmp ult i64 %24, %25
br i1 %26, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %3
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpksikofxj.c'
source_filename = "/tmp/tmpksikofxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compound_strings(ptr noundef %0, i8 noundef zeroext %1, ptr noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store ptr %2, ptr %7, align 8
store i8 %3, ptr %8, align 1
store ptr null, ptr %9, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i8, ptr %6, align 1
%12 = zext i8 %11 to i32
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %10, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 47
br i1 %18, label %19, label %54
19: ; preds = %4
%20 = load i8, ptr %6, align 1
%21 = zext i8 %20 to i32
%22 = load i8, ptr %8, align 1
%23 = zext i8 %22 to i32
%24 = add nsw i32 %21, %23
%25 = add nsw i32 %24, 2
%26 = trunc i32 %25 to i8
%27 = call ptr @malloc(i8 noundef zeroext %26)
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %6, align 1
%31 = call i32 @memcpy(ptr noundef %28, ptr noundef %29, i8 noundef zeroext %30)
%32 = load ptr, ptr %9, align 8
%33 = load i8, ptr %6, align 1
%34 = zext i8 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 47, ptr %35, align 1
%36 = load ptr, ptr %9, align 8
%37 = load i8, ptr %6, align 1
%38 = zext i8 %37 to i32
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load ptr, ptr %7, align 8
%43 = load i8, ptr %8, align 1
%44 = call i32 @memcpy(ptr noundef %41, ptr noundef %42, i8 noundef zeroext %43)
%45 = load ptr, ptr %9, align 8
%46 = load i8, ptr %6, align 1
%47 = zext i8 %46 to i32
%48 = load i8, ptr %8, align 1
%49 = zext i8 %48 to i32
%50 = add nsw i32 %47, %49
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %45, i64 %52
store i8 0, ptr %53, align 1
br label %83
54: ; preds = %4
%55 = load i8, ptr %6, align 1
%56 = zext i8 %55 to i32
%57 = load i8, ptr %8, align 1
%58 = zext i8 %57 to i32
%59 = add nsw i32 %56, %58
%60 = add nsw i32 %59, 1
%61 = trunc i32 %60 to i8
%62 = call ptr @malloc(i8 noundef zeroext %61)
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = load ptr, ptr %5, align 8
%65 = load i8, ptr %6, align 1
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i8 noundef zeroext %65)
%67 = load ptr, ptr %9, align 8
%68 = load i8, ptr %6, align 1
%69 = zext i8 %68 to i32
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
%72 = load ptr, ptr %7, align 8
%73 = load i8, ptr %8, align 1
%74 = call i32 @memcpy(ptr noundef %71, ptr noundef %72, i8 noundef zeroext %73)
%75 = load ptr, ptr %9, align 8
%76 = load i8, ptr %6, align 1
%77 = zext i8 %76 to i32
%78 = load i8, ptr %8, align 1
%79 = zext i8 %78 to i32
%80 = add nsw i32 %77, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %75, i64 %81
store i8 0, ptr %82, align 1
br label %83
83: ; preds = %54, %19
%84 = load ptr, ptr %9, align 8
ret ptr %84
}
declare ptr @malloc(i8 noundef zeroext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpksikofxj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compound_strings(ptr noundef %0, i8 noundef zeroext %1, ptr noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store ptr %2, ptr %7, align 8
store i8 %3, ptr %8, align 1
store ptr null, ptr %9, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i8, ptr %6, align 1
%12 = zext i8 %11 to i32
%13 = sub nsw i32 %12, 1
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %10, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 47
br i1 %18, label %19, label %54
19: ; preds = %4
%20 = load i8, ptr %6, align 1
%21 = zext i8 %20 to i32
%22 = load i8, ptr %8, align 1
%23 = zext i8 %22 to i32
%24 = add nsw i32 %21, %23
%25 = add nsw i32 %24, 2
%26 = trunc i32 %25 to i8
%27 = call ptr @malloc(i8 noundef zeroext %26)
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %6, align 1
%31 = call i32 @memcpy(ptr noundef %28, ptr noundef %29, i8 noundef zeroext %30)
%32 = load ptr, ptr %9, align 8
%33 = load i8, ptr %6, align 1
%34 = zext i8 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 47, ptr %35, align 1
%36 = load ptr, ptr %9, align 8
%37 = load i8, ptr %6, align 1
%38 = zext i8 %37 to i32
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load ptr, ptr %7, align 8
%43 = load i8, ptr %8, align 1
%44 = call i32 @memcpy(ptr noundef %41, ptr noundef %42, i8 noundef zeroext %43)
%45 = load ptr, ptr %9, align 8
%46 = load i8, ptr %6, align 1
%47 = zext i8 %46 to i32
%48 = load i8, ptr %8, align 1
%49 = zext i8 %48 to i32
%50 = add nsw i32 %47, %49
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %45, i64 %52
store i8 0, ptr %53, align 1
br label %83
54: ; preds = %4
%55 = load i8, ptr %6, align 1
%56 = zext i8 %55 to i32
%57 = load i8, ptr %8, align 1
%58 = zext i8 %57 to i32
%59 = add nsw i32 %56, %58
%60 = add nsw i32 %59, 1
%61 = trunc i32 %60 to i8
%62 = call ptr @malloc(i8 noundef zeroext %61)
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = load ptr, ptr %5, align 8
%65 = load i8, ptr %6, align 1
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i8 noundef zeroext %65)
%67 = load ptr, ptr %9, align 8
%68 = load i8, ptr %6, align 1
%69 = zext i8 %68 to i32
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
%72 = load ptr, ptr %7, align 8
%73 = load i8, ptr %8, align 1
%74 = call i32 @memcpy(ptr noundef %71, ptr noundef %72, i8 noundef zeroext %73)
%75 = load ptr, ptr %9, align 8
%76 = load i8, ptr %6, align 1
%77 = zext i8 %76 to i32
%78 = load i8, ptr %8, align 1
%79 = zext i8 %78 to i32
%80 = add nsw i32 %77, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %75, i64 %81
store i8 0, ptr %82, align 1
br label %83
83: ; preds = %54, %19
%84 = load ptr, ptr %9, align 8
ret ptr %84
}
declare ptr @malloc(i8 noundef zeroext) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpil21bpqb.c'
source_filename = "/tmp/tmpil21bpqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"SV_CopySaveGame(%s, %s)\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"%s/save/%s/server.ssv\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%s/save/%s/game.ssv\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%s/save/%s/\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"%s/save/%s/*.sav\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%s/save/%s/%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"sv2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SV_CopySaveGame(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [128 x i8], align 16
%6 = alloca [128 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @Com_DPrintf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = call i32 @SV_WipeSavegame(ptr noundef %13)
%15 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%16 = call i32 (...) @FS_Gamedir()
%17 = load ptr, ptr %3, align 8
%18 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %15, i32 noundef 128, ptr noundef @.str.1, i32 noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%20 = call i32 (...) @FS_Gamedir()
%21 = load ptr, ptr %4, align 8
%22 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %19, i32 noundef 128, ptr noundef @.str.1, i32 noundef %20, ptr noundef %21)
%23 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @FS_CreatePath(ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%26 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @CopyFile(ptr noundef %25, ptr noundef %26)
%28 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%29 = call i32 (...) @FS_Gamedir()
%30 = load ptr, ptr %3, align 8
%31 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %28, i32 noundef 128, ptr noundef @.str.2, i32 noundef %29, ptr noundef %30)
%32 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%33 = call i32 (...) @FS_Gamedir()
%34 = load ptr, ptr %4, align 8
%35 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %32, i32 noundef 128, ptr noundef @.str.2, i32 noundef %33, ptr noundef %34)
%36 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%37 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @CopyFile(ptr noundef %36, ptr noundef %37)
%39 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%40 = call i32 (...) @FS_Gamedir()
%41 = load ptr, ptr %3, align 8
%42 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %39, i32 noundef 128, ptr noundef @.str.3, i32 noundef %40, ptr noundef %41)
%43 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
store i32 %44, ptr %8, align 4
%45 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%46 = call i32 (...) @FS_Gamedir()
%47 = load ptr, ptr %3, align 8
%48 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %45, i32 noundef 128, ptr noundef @.str.4, i32 noundef %46, ptr noundef %47)
%49 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%50 = call ptr @Sys_FindFirst(ptr noundef %49, i32 noundef 0, i32 noundef 0)
store ptr %50, ptr %9, align 8
br label %51
51: ; preds = %54, %2
%52 = load ptr, ptr %9, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %95
54: ; preds = %51
%55 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load ptr, ptr %9, align 8
%60 = load i32, ptr %8, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = call i32 @strcpy(ptr noundef %58, ptr noundef %62)
%64 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%65 = call i32 (...) @FS_Gamedir()
%66 = load ptr, ptr %4, align 8
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %64, i32 noundef 128, ptr noundef @.str.5, i32 noundef %65, ptr noundef %66, ptr noundef %70)
%72 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%73 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%74 = call i32 @CopyFile(ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%76 = call i32 @strlen(ptr noundef %75)
store i32 %76, ptr %7, align 4
%77 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%78 = load i32, ptr %7, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = getelementptr inbounds i8, ptr %80, i64 -3
%82 = call i32 @strcpy(ptr noundef %81, ptr noundef @.str.6)
%83 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%84 = call i32 @strlen(ptr noundef %83)
store i32 %84, ptr %7, align 4
%85 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%86 = load i32, ptr %7, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = getelementptr inbounds i8, ptr %88, i64 -3
%90 = call i32 @strcpy(ptr noundef %89, ptr noundef @.str.6)
%91 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%92 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%93 = call i32 @CopyFile(ptr noundef %91, ptr noundef %92)
%94 = call ptr @Sys_FindNext(i32 noundef 0, i32 noundef 0)
store ptr %94, ptr %9, align 8
br label %51, !llvm.loop !6
95: ; preds = %51
%96 = call i32 (...) @Sys_FindClose()
ret void
}
declare i32 @Com_DPrintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @SV_WipeSavegame(ptr noundef) #1
declare i32 @Com_sprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @FS_Gamedir(...) #1
declare i32 @FS_CreatePath(ptr noundef) #1
declare i32 @CopyFile(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @Sys_FindFirst(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @Sys_FindNext(i32 noundef, i32 noundef) #1
declare i32 @Sys_FindClose(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpil21bpqb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"SV_CopySaveGame(%s, %s)\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"%s/save/%s/server.ssv\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%s/save/%s/game.ssv\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%s/save/%s/\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"%s/save/%s/*.sav\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"%s/save/%s/%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"sv2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SV_CopySaveGame(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [128 x i8], align 16
%6 = alloca [128 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @Com_DPrintf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = call i32 @SV_WipeSavegame(ptr noundef %13)
%15 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%16 = call i32 (...) @FS_Gamedir()
%17 = load ptr, ptr %3, align 8
%18 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %15, i32 noundef 128, ptr noundef @.str.1, i32 noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%20 = call i32 (...) @FS_Gamedir()
%21 = load ptr, ptr %4, align 8
%22 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %19, i32 noundef 128, ptr noundef @.str.1, i32 noundef %20, ptr noundef %21)
%23 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @FS_CreatePath(ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%26 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%27 = call i32 @CopyFile(ptr noundef %25, ptr noundef %26)
%28 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%29 = call i32 (...) @FS_Gamedir()
%30 = load ptr, ptr %3, align 8
%31 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %28, i32 noundef 128, ptr noundef @.str.2, i32 noundef %29, ptr noundef %30)
%32 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%33 = call i32 (...) @FS_Gamedir()
%34 = load ptr, ptr %4, align 8
%35 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %32, i32 noundef 128, ptr noundef @.str.2, i32 noundef %33, ptr noundef %34)
%36 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%37 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%38 = call i32 @CopyFile(ptr noundef %36, ptr noundef %37)
%39 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%40 = call i32 (...) @FS_Gamedir()
%41 = load ptr, ptr %3, align 8
%42 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %39, i32 noundef 128, ptr noundef @.str.3, i32 noundef %40, ptr noundef %41)
%43 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
store i32 %44, ptr %8, align 4
%45 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%46 = call i32 (...) @FS_Gamedir()
%47 = load ptr, ptr %3, align 8
%48 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %45, i32 noundef 128, ptr noundef @.str.4, i32 noundef %46, ptr noundef %47)
%49 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%50 = call ptr @Sys_FindFirst(ptr noundef %49, i32 noundef 0, i32 noundef 0)
store ptr %50, ptr %9, align 8
%51 = load ptr, ptr %9, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %.lr.ph, label %96
.lr.ph: ; preds = %2
br label %53
53: ; preds = %.lr.ph, %53
%54 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load ptr, ptr %9, align 8
%59 = load i32, ptr %8, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = call i32 @strcpy(ptr noundef %57, ptr noundef %61)
%63 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%64 = call i32 (...) @FS_Gamedir()
%65 = load ptr, ptr %4, align 8
%66 = load ptr, ptr %9, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = call i32 (ptr, i32, ptr, i32, ptr, ...) @Com_sprintf(ptr noundef %63, i32 noundef 128, ptr noundef @.str.5, i32 noundef %64, ptr noundef %65, ptr noundef %69)
%71 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%72 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%73 = call i32 @CopyFile(ptr noundef %71, ptr noundef %72)
%74 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%75 = call i32 @strlen(ptr noundef %74)
store i32 %75, ptr %7, align 4
%76 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%77 = load i32, ptr %7, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = getelementptr inbounds i8, ptr %79, i64 -3
%81 = call i32 @strcpy(ptr noundef %80, ptr noundef @.str.6)
%82 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%83 = call i32 @strlen(ptr noundef %82)
store i32 %83, ptr %7, align 4
%84 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%85 = load i32, ptr %7, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = getelementptr inbounds i8, ptr %87, i64 -3
%89 = call i32 @strcpy(ptr noundef %88, ptr noundef @.str.6)
%90 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
%91 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%92 = call i32 @CopyFile(ptr noundef %90, ptr noundef %91)
%93 = call ptr @Sys_FindNext(i32 noundef 0, i32 noundef 0)
store ptr %93, ptr %9, align 8
%94 = load ptr, ptr %9, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %96
96: ; preds = %._crit_edge, %2
%97 = call i32 (...) @Sys_FindClose()
ret void
}
declare i32 @Com_DPrintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @SV_WipeSavegame(ptr noundef) #1
declare i32 @Com_sprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @FS_Gamedir(...) #1
declare i32 @FS_CreatePath(ptr noundef) #1
declare i32 @CopyFile(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @Sys_FindFirst(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @Sys_FindNext(i32 noundef, i32 noundef) #1
declare i32 @Sys_FindClose(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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_axwl_8w.c'
source_filename = "/tmp/tmp_axwl_8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_gettid = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_tid() #0 {
%1 = load i32, ptr @SYS_gettid, align 4
%2 = call i32 @syscall(i32 noundef %1)
ret i32 %2
}
declare i32 @syscall(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_axwl_8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_gettid = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_tid() #0 {
%1 = load i32, ptr @SYS_gettid, align 4
%2 = call i32 @syscall(i32 noundef %1)
ret i32 %2
}
declare i32 @syscall(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/tmplnl0ykmy.c'
source_filename = "/tmp/tmplnl0ykmy.c"
target datalayout = "e-m:e-p270: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/tmplnl0ykmy.c"
target datalayout = "e-m:e-p270: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/tmpxp154bap.c'
source_filename = "/tmp/tmpxp154bap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OCSP_RESPID_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OCSP_RESPID_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ASN1_item_free(ptr noundef %3, ptr noundef @OCSP_RESPID_it)
ret void
}
declare i32 @ASN1_item_free(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/tmpxp154bap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OCSP_RESPID_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OCSP_RESPID_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ASN1_item_free(ptr noundef %3, ptr noundef @OCSP_RESPID_it)
ret void
}
declare i32 @ASN1_item_free(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/tmpp9n96cd6.c'
source_filename = "/tmp/tmpp9n96cd6.c"
target datalayout = "e-m:e-p270: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/tmpp9n96cd6.c"
target datalayout = "e-m:e-p270: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/tmpw2qfdn8j.c'
source_filename = "/tmp/tmpw2qfdn8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"test_clone still considered buggy\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 = call i32 (...) @test_file()
%7 = call i32 (...) @test_pipe()
%8 = call i32 (...) @test_fork()
%9 = call i32 (...) @test_time()
%10 = call i32 (...) @test_socket()
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
%15 = call i32 (...) @test_clone()
br label %16
16: ; preds = %13, %2
%17 = call i32 (...) @test_signal()
%18 = call i32 (...) @test_shm()
ret i32 0
}
declare i32 @test_file(...) #1
declare i32 @test_pipe(...) #1
declare i32 @test_fork(...) #1
declare i32 @test_time(...) #1
declare i32 @test_socket(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test_clone(...) #1
declare i32 @test_signal(...) #1
declare i32 @test_shm(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw2qfdn8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"test_clone still considered buggy\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 = call i32 (...) @test_file()
%7 = call i32 (...) @test_pipe()
%8 = call i32 (...) @test_fork()
%9 = call i32 (...) @test_time()
%10 = call i32 (...) @test_socket()
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
%15 = call i32 (...) @test_clone()
br label %16
16: ; preds = %13, %2
%17 = call i32 (...) @test_signal()
%18 = call i32 (...) @test_shm()
ret i32 0
}
declare i32 @test_file(...) #1
declare i32 @test_pipe(...) #1
declare i32 @test_fork(...) #1
declare i32 @test_time(...) #1
declare i32 @test_socket(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test_clone(...) #1
declare i32 @test_signal(...) #1
declare i32 @test_shm(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqquwhiah.c'
source_filename = "/tmp/tmpqquwhiah.c"
target datalayout = "e-m:e-p270: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/tmpqquwhiah.c"
target datalayout = "e-m:e-p270: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/tmpn0k0w_nr.c'
source_filename = "/tmp/tmpn0k0w_nr.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"+------ From Radio ------+ \00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"+---------------------- To Radio --------------------+\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"+---+ DMTF +---+ COS + \00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"+ IRLP + IRLP + KEY + MUTE + PL + FAN + AUX4 + AUX5 +\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"| %u | %u | %u | %u | %u | \00", align 1
@.str.5 = private unnamed_addr constant [67 x i8] c"| %u | %u | %u | %u | %u | %u | %u | %u |\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"+---+---+---+---+-----+ \00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c"+------+------+------+------+------+------+------+------+\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_irlp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 0
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = ashr i32 %19, 3
%21 = and i32 %20, 1
%22 = trunc i32 %21 to i8
store i8 %22, ptr %3, align 1
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = ashr i32 %26, 4
%28 = and i32 %27, 1
%29 = trunc i32 %28 to i8
store i8 %29, ptr %4, align 1
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = ashr i32 %33, 5
%35 = and i32 %34, 1
%36 = trunc i32 %35 to i8
store i8 %36, ptr %5, align 1
%37 = load ptr, ptr %2, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = ashr i32 %40, 6
%42 = and i32 %41, 1
%43 = trunc i32 %42 to i8
store i8 %43, ptr %6, align 1
%44 = load ptr, ptr %2, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 0
%46 = load i8, ptr %45, align 1
%47 = zext i8 %46 to i32
%48 = ashr i32 %47, 7
%49 = and i32 %48, 1
%50 = trunc i32 %49 to i8
store i8 %50, ptr %7, align 1
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = and i32 %54, 1
%56 = trunc i32 %55 to i8
store i8 %56, ptr %8, align 1
%57 = load ptr, ptr %2, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 1
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
%61 = ashr i32 %60, 1
%62 = and i32 %61, 1
%63 = trunc i32 %62 to i8
store i8 %63, ptr %9, align 1
%64 = load ptr, ptr %2, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 1
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = ashr i32 %67, 2
%69 = and i32 %68, 1
%70 = trunc i32 %69 to i8
store i8 %70, ptr %10, align 1
%71 = load ptr, ptr %2, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = load i8, ptr %72, align 1
%74 = zext i8 %73 to i32
%75 = ashr i32 %74, 3
%76 = and i32 %75, 1
%77 = trunc i32 %76 to i8
store i8 %77, ptr %11, align 1
%78 = load ptr, ptr %2, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load i8, ptr %79, align 1
%81 = zext i8 %80 to i32
%82 = ashr i32 %81, 4
%83 = and i32 %82, 1
%84 = trunc i32 %83 to i8
store i8 %84, ptr %12, align 1
%85 = load ptr, ptr %2, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = ashr i32 %88, 5
%90 = and i32 %89, 1
%91 = trunc i32 %90 to i8
store i8 %91, ptr %13, align 1
%92 = load ptr, ptr %2, align 8
%93 = getelementptr inbounds i8, ptr %92, i64 1
%94 = load i8, ptr %93, align 1
%95 = zext i8 %94 to i32
%96 = ashr i32 %95, 6
%97 = and i32 %96, 1
%98 = trunc i32 %97 to i8
store i8 %98, ptr %14, align 1
%99 = load ptr, ptr %2, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 1
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = ashr i32 %102, 7
%104 = and i32 %103, 1
%105 = trunc i32 %104 to i8
store i8 %105, ptr %15, align 1
%106 = load i32, ptr @stderr, align 4
%107 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str)
%108 = load i32, ptr @stderr, align 4
%109 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %108, ptr noundef @.str.1)
%110 = load i32, ptr @stderr, align 4
%111 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %110, ptr noundef @.str.2)
%112 = load i32, ptr @stderr, align 4
%113 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %112, ptr noundef @.str.3)
%114 = load i32, ptr @stderr, align 4
%115 = load i8, ptr %3, align 1
%116 = zext i8 %115 to i32
%117 = load i8, ptr %4, align 1
%118 = zext i8 %117 to i32
%119 = load i8, ptr %5, align 1
%120 = zext i8 %119 to i32
%121 = load i8, ptr %6, align 1
%122 = zext i8 %121 to i32
%123 = load i8, ptr %7, align 1
%124 = zext i8 %123 to i32
%125 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef @.str.4, i32 noundef %116, i32 noundef %118, i32 noundef %120, i32 noundef %122, i32 noundef %124)
%126 = load i32, ptr @stderr, align 4
%127 = load i8, ptr %8, align 1
%128 = zext i8 %127 to i32
%129 = load i8, ptr %9, align 1
%130 = zext i8 %129 to i32
%131 = load i8, ptr %10, align 1
%132 = zext i8 %131 to i32
%133 = load i8, ptr %11, align 1
%134 = zext i8 %133 to i32
%135 = load i8, ptr %12, align 1
%136 = zext i8 %135 to i32
%137 = load i8, ptr %13, align 1
%138 = zext i8 %137 to i32
%139 = load i8, ptr %14, align 1
%140 = zext i8 %139 to i32
%141 = load i8, ptr %15, align 1
%142 = zext i8 %141 to i32
%143 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %126, ptr noundef @.str.5, i32 noundef %128, i32 noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef %136, i32 noundef %138, i32 noundef %140, i32 noundef %142)
%144 = load i32, ptr @stderr, align 4
%145 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %144, ptr noundef @.str.6)
%146 = load i32, ptr @stderr, align 4
%147 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %146, ptr noundef @.str.7)
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/tmpn0k0w_nr.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"+------ From Radio ------+ \00", align 1
@.str.1 = private unnamed_addr constant [56 x i8] c"+---------------------- To Radio --------------------+\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"+---+ DMTF +---+ COS + \00", align 1
@.str.3 = private unnamed_addr constant [59 x i8] c"+ IRLP + IRLP + KEY + MUTE + PL + FAN + AUX4 + AUX5 +\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"| %u | %u | %u | %u | %u | \00", align 1
@.str.5 = private unnamed_addr constant [67 x i8] c"| %u | %u | %u | %u | %u | %u | %u | %u |\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"+---+---+---+---+-----+ \00", align 1
@.str.7 = private unnamed_addr constant [60 x i8] c"+------+------+------+------+------+------+------+------+\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_irlp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 0
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = ashr i32 %19, 3
%21 = and i32 %20, 1
%22 = trunc i32 %21 to i8
store i8 %22, ptr %3, align 1
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = ashr i32 %26, 4
%28 = and i32 %27, 1
%29 = trunc i32 %28 to i8
store i8 %29, ptr %4, align 1
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = ashr i32 %33, 5
%35 = and i32 %34, 1
%36 = trunc i32 %35 to i8
store i8 %36, ptr %5, align 1
%37 = load ptr, ptr %2, align 8
%38 = getelementptr inbounds i8, ptr %37, i64 0
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = ashr i32 %40, 6
%42 = and i32 %41, 1
%43 = trunc i32 %42 to i8
store i8 %43, ptr %6, align 1
%44 = load ptr, ptr %2, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 0
%46 = load i8, ptr %45, align 1
%47 = zext i8 %46 to i32
%48 = ashr i32 %47, 7
%49 = and i32 %48, 1
%50 = trunc i32 %49 to i8
store i8 %50, ptr %7, align 1
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = and i32 %54, 1
%56 = trunc i32 %55 to i8
store i8 %56, ptr %8, align 1
%57 = load ptr, ptr %2, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 1
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
%61 = ashr i32 %60, 1
%62 = and i32 %61, 1
%63 = trunc i32 %62 to i8
store i8 %63, ptr %9, align 1
%64 = load ptr, ptr %2, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 1
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = ashr i32 %67, 2
%69 = and i32 %68, 1
%70 = trunc i32 %69 to i8
store i8 %70, ptr %10, align 1
%71 = load ptr, ptr %2, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = load i8, ptr %72, align 1
%74 = zext i8 %73 to i32
%75 = ashr i32 %74, 3
%76 = and i32 %75, 1
%77 = trunc i32 %76 to i8
store i8 %77, ptr %11, align 1
%78 = load ptr, ptr %2, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load i8, ptr %79, align 1
%81 = zext i8 %80 to i32
%82 = ashr i32 %81, 4
%83 = and i32 %82, 1
%84 = trunc i32 %83 to i8
store i8 %84, ptr %12, align 1
%85 = load ptr, ptr %2, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = ashr i32 %88, 5
%90 = and i32 %89, 1
%91 = trunc i32 %90 to i8
store i8 %91, ptr %13, align 1
%92 = load ptr, ptr %2, align 8
%93 = getelementptr inbounds i8, ptr %92, i64 1
%94 = load i8, ptr %93, align 1
%95 = zext i8 %94 to i32
%96 = ashr i32 %95, 6
%97 = and i32 %96, 1
%98 = trunc i32 %97 to i8
store i8 %98, ptr %14, align 1
%99 = load ptr, ptr %2, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 1
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = ashr i32 %102, 7
%104 = and i32 %103, 1
%105 = trunc i32 %104 to i8
store i8 %105, ptr %15, align 1
%106 = load i32, ptr @stderr, align 4
%107 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str)
%108 = load i32, ptr @stderr, align 4
%109 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %108, ptr noundef @.str.1)
%110 = load i32, ptr @stderr, align 4
%111 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %110, ptr noundef @.str.2)
%112 = load i32, ptr @stderr, align 4
%113 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %112, ptr noundef @.str.3)
%114 = load i32, ptr @stderr, align 4
%115 = load i8, ptr %3, align 1
%116 = zext i8 %115 to i32
%117 = load i8, ptr %4, align 1
%118 = zext i8 %117 to i32
%119 = load i8, ptr %5, align 1
%120 = zext i8 %119 to i32
%121 = load i8, ptr %6, align 1
%122 = zext i8 %121 to i32
%123 = load i8, ptr %7, align 1
%124 = zext i8 %123 to i32
%125 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef @.str.4, i32 noundef %116, i32 noundef %118, i32 noundef %120, i32 noundef %122, i32 noundef %124)
%126 = load i32, ptr @stderr, align 4
%127 = load i8, ptr %8, align 1
%128 = zext i8 %127 to i32
%129 = load i8, ptr %9, align 1
%130 = zext i8 %129 to i32
%131 = load i8, ptr %10, align 1
%132 = zext i8 %131 to i32
%133 = load i8, ptr %11, align 1
%134 = zext i8 %133 to i32
%135 = load i8, ptr %12, align 1
%136 = zext i8 %135 to i32
%137 = load i8, ptr %13, align 1
%138 = zext i8 %137 to i32
%139 = load i8, ptr %14, align 1
%140 = zext i8 %139 to i32
%141 = load i8, ptr %15, align 1
%142 = zext i8 %141 to i32
%143 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %126, ptr noundef @.str.5, i32 noundef %128, i32 noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef %136, i32 noundef %138, i32 noundef %140, i32 noundef %142)
%144 = load i32, ptr @stderr, align 4
%145 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %144, ptr noundef @.str.6)
%146 = load i32, ptr @stderr, align 4
%147 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %146, ptr noundef @.str.7)
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/tmpv5wkssqu.c'
source_filename = "/tmp/tmpv5wkssqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"\0AEnter here a number to be converted to characters: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\0A\09Cool!\00", align 1
@.str.3 = private unnamed_addr constant [52 x i8] c"\0ASo that number, when viewed as characters would be\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"\0A\09...\0A\09 \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = call i32 @puts(ptr noundef @.str.2)
%6 = call i32 @puts(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = load i32, ptr %2, align 4
%9 = call i32 @binary_to_ascii(i32 noundef %8)
%10 = call i32 @puts(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @binary_to_ascii(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/tmpv5wkssqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"\0AEnter here a number to be converted to characters: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"\0A\09Cool!\00", align 1
@.str.3 = private unnamed_addr constant [52 x i8] c"\0ASo that number, when viewed as characters would be\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"\0A\09...\0A\09 \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = call i32 @puts(ptr noundef @.str.2)
%6 = call i32 @puts(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = load i32, ptr %2, align 4
%9 = call i32 @binary_to_ascii(i32 noundef %8)
%10 = call i32 @puts(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @binary_to_ascii(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/tmpj79dy5l9.c'
source_filename = "/tmp/tmpj79dy5l9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buffer_underflow() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%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 -1
store i8 33, ptr %5, align 1
%6 = load ptr, ptr %1, align 8
%7 = call i32 @free(ptr noundef %6)
ret void
}
declare i64 @malloc(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/tmpj79dy5l9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buffer_underflow() #0 {
%1 = alloca ptr, align 8
%2 = call i64 @malloc(i32 noundef 4)
%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 -1
store i8 33, ptr %5, align 1
%6 = load ptr, ptr %1, align 8
%7 = call i32 @free(ptr noundef %6)
ret void
}
declare i64 @malloc(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/tmpxjjq9mcs.c'
source_filename = "/tmp/tmpxjjq9mcs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"printf\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Socket failed to be created!\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"www.google.com\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Target is unresolvable...\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Target is unreachable...\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"We didn't succeed to send any data to the target...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_download(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @PF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i64 @call_replacement(ptr noundef %18, ptr noundef @.str)
%20 = inttoptr i64 %19 to ptr
call void %20(ptr noundef @.str.1)
%21 = load ptr, ptr %4, align 8
%22 = call i64 @call_replacement(ptr noundef %21, ptr noundef @.str)
%23 = inttoptr i64 %22 to ptr
call void %23(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
24: ; preds = %2
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 80)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = call ptr @gethostbyname(ptr noundef @.str.3)
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %24
%33 = load ptr, ptr %4, align 8
%34 = call i64 @call_replacement(ptr noundef %33, ptr noundef @.str)
%35 = inttoptr i64 %34 to ptr
call void %35(ptr noundef @.str.4)
%36 = load ptr, ptr %4, align 8
%37 = call i64 @call_replacement(ptr noundef %36, ptr noundef @.str)
%38 = inttoptr i64 %37 to ptr
call void %38(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
39: ; preds = %24
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = inttoptr i64 %43 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %44, i64 4, i1 false)
%45 = load i32, ptr %6, align 4
%46 = call i32 @connect(i32 noundef %45, ptr noundef %7, i32 noundef 12)
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %56
49: ; preds = %39
%50 = load ptr, ptr %4, align 8
%51 = call i64 @call_replacement(ptr noundef %50, ptr noundef @.str)
%52 = inttoptr i64 %51 to ptr
call void %52(ptr noundef @.str.5)
%53 = load ptr, ptr %4, align 8
%54 = call i64 @call_replacement(ptr noundef %53, ptr noundef @.str)
%55 = inttoptr i64 %54 to ptr
call void %55(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
56: ; preds = %39
%57 = load ptr, ptr %11, align 8
%58 = call i32 @prepare_get_payload(ptr noundef %57)
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %6, align 4
%60 = load ptr, ptr %11, align 8
%61 = load i32, ptr %10, align 4
%62 = call i32 @send(i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef 0)
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %72
65: ; preds = %56
%66 = load ptr, ptr %4, align 8
%67 = call i64 @call_replacement(ptr noundef %66, ptr noundef @.str)
%68 = inttoptr i64 %67 to ptr
call void %68(ptr noundef @.str.6)
%69 = load ptr, ptr %4, align 8
%70 = call i64 @call_replacement(ptr noundef %69, ptr noundef @.str)
%71 = inttoptr i64 %70 to ptr
call void %71(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
72: ; preds = %56
%73 = load ptr, ptr %11, align 8
%74 = call i32 @free(ptr noundef %73)
%75 = load i32, ptr %6, align 4
%76 = load ptr, ptr %5, align 8
%77 = call i32 @receive_download(i32 noundef %75, ptr noundef %76)
store i32 %77, ptr %3, align 4
br label %78
78: ; preds = %72, %65, %49, %32, %17
%79 = load i32, ptr %3, align 4
ret i32 %79
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @call_replacement(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @prepare_get_payload(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @receive_download(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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxjjq9mcs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"printf\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Socket failed to be created!\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"www.google.com\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Target is unresolvable...\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Target is unreachable...\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"We didn't succeed to send any data to the target...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_download(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%12 = load i32, ptr @PF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i64 @call_replacement(ptr noundef %18, ptr noundef @.str)
%20 = inttoptr i64 %19 to ptr
call void %20(ptr noundef @.str.1)
%21 = load ptr, ptr %4, align 8
%22 = call i64 @call_replacement(ptr noundef %21, ptr noundef @.str)
%23 = inttoptr i64 %22 to ptr
call void %23(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
24: ; preds = %2
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 80)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = call ptr @gethostbyname(ptr noundef @.str.3)
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %24
%33 = load ptr, ptr %4, align 8
%34 = call i64 @call_replacement(ptr noundef %33, ptr noundef @.str)
%35 = inttoptr i64 %34 to ptr
call void %35(ptr noundef @.str.4)
%36 = load ptr, ptr %4, align 8
%37 = call i64 @call_replacement(ptr noundef %36, ptr noundef @.str)
%38 = inttoptr i64 %37 to ptr
call void %38(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
39: ; preds = %24
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = inttoptr i64 %43 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %44, i64 4, i1 false)
%45 = load i32, ptr %6, align 4
%46 = call i32 @connect(i32 noundef %45, ptr noundef %7, i32 noundef 12)
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %56
49: ; preds = %39
%50 = load ptr, ptr %4, align 8
%51 = call i64 @call_replacement(ptr noundef %50, ptr noundef @.str)
%52 = inttoptr i64 %51 to ptr
call void %52(ptr noundef @.str.5)
%53 = load ptr, ptr %4, align 8
%54 = call i64 @call_replacement(ptr noundef %53, ptr noundef @.str)
%55 = inttoptr i64 %54 to ptr
call void %55(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
56: ; preds = %39
%57 = load ptr, ptr %11, align 8
%58 = call i32 @prepare_get_payload(ptr noundef %57)
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %6, align 4
%60 = load ptr, ptr %11, align 8
%61 = load i32, ptr %10, align 4
%62 = call i32 @send(i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef 0)
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %72
65: ; preds = %56
%66 = load ptr, ptr %4, align 8
%67 = call i64 @call_replacement(ptr noundef %66, ptr noundef @.str)
%68 = inttoptr i64 %67 to ptr
call void %68(ptr noundef @.str.6)
%69 = load ptr, ptr %4, align 8
%70 = call i64 @call_replacement(ptr noundef %69, ptr noundef @.str)
%71 = inttoptr i64 %70 to ptr
call void %71(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %78
72: ; preds = %56
%73 = load ptr, ptr %11, align 8
%74 = call i32 @free(ptr noundef %73)
%75 = load i32, ptr %6, align 4
%76 = load ptr, ptr %5, align 8
%77 = call i32 @receive_download(i32 noundef %75, ptr noundef %76)
store i32 %77, ptr %3, align 4
br label %78
78: ; preds = %72, %65, %49, %32, %17
%79 = load i32, ptr %3, align 4
ret i32 %79
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @call_replacement(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @prepare_get_payload(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @receive_download(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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_yxs3d82.c'
source_filename = "/tmp/tmp_yxs3d82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @udev_device_new_from_synthetic_event(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %3
%13 = load i32, ptr @EINVAL, align 4
store i32 %13, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call ptr @udev_device_new_from_syspath(ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %14
store ptr null, ptr %4, align 8
br label %44
21: ; preds = %14
%22 = load ptr, ptr %8, align 8
%23 = call i32 @udev_device_read_uevent_file(ptr noundef %22)
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = call i32 @udev_device_unref(ptr noundef %27)
%29 = load i32, ptr %9, align 4
%30 = sub nsw i32 0, %29
store i32 %30, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
31: ; preds = %21
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @udev_device_set_action(ptr noundef %32, ptr noundef %33)
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %31
%38 = load ptr, ptr %8, align 8
%39 = call i32 @udev_device_unref(ptr noundef %38)
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 0, %40
store i32 %41, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
42: ; preds = %31
%43 = load ptr, ptr %8, align 8
store ptr %43, ptr %4, align 8
br label %44
44: ; preds = %42, %37, %26, %20, %12
%45 = load ptr, ptr %4, align 8
ret ptr %45
}
declare ptr @udev_device_new_from_syspath(ptr noundef, ptr noundef) #1
declare i32 @udev_device_read_uevent_file(ptr noundef) #1
declare i32 @udev_device_unref(ptr noundef) #1
declare i32 @udev_device_set_action(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/tmp_yxs3d82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @udev_device_new_from_synthetic_event(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %14, label %12
12: ; preds = %3
%13 = load i32, ptr @EINVAL, align 4
store i32 %13, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = call ptr @udev_device_new_from_syspath(ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %14
store ptr null, ptr %4, align 8
br label %44
21: ; preds = %14
%22 = load ptr, ptr %8, align 8
%23 = call i32 @udev_device_read_uevent_file(ptr noundef %22)
store i32 %23, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = call i32 @udev_device_unref(ptr noundef %27)
%29 = load i32, ptr %9, align 4
%30 = sub nsw i32 0, %29
store i32 %30, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
31: ; preds = %21
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @udev_device_set_action(ptr noundef %32, ptr noundef %33)
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %31
%38 = load ptr, ptr %8, align 8
%39 = call i32 @udev_device_unref(ptr noundef %38)
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 0, %40
store i32 %41, ptr @errno, align 4
store ptr null, ptr %4, align 8
br label %44
42: ; preds = %31
%43 = load ptr, ptr %8, align 8
store ptr %43, ptr %4, align 8
br label %44
44: ; preds = %42, %37, %26, %20, %12
%45 = load ptr, ptr %4, align 8
ret ptr %45
}
declare ptr @udev_device_new_from_syspath(ptr noundef, ptr noundef) #1
declare i32 @udev_device_read_uevent_file(ptr noundef) #1
declare i32 @udev_device_unref(ptr noundef) #1
declare i32 @udev_device_set_action(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/tmpjir1pvtp.c'
source_filename = "/tmp/tmpjir1pvtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Act_Join() #0 {
%1 = call i32 (...) @ArgItem()
%2 = call i32 (...) @ArgItem()
ret void
}
declare i32 @ArgItem(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjir1pvtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Act_Join() #0 {
%1 = call i32 (...) @ArgItem()
%2 = call i32 (...) @ArgItem()
ret void
}
declare i32 @ArgItem(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjt4qs8z9.c'
source_filename = "/tmp/tmpjt4qs8z9.c"
target datalayout = "e-m:e-p270: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.memset6_char_array_nonnull.str = private unnamed_addr constant [5 x i8] c"abcd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memset6_char_array_nonnull() #0 {
%1 = alloca [5 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.memset6_char_array_nonnull.str, i64 5, i1 false)
%2 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @strlen(ptr noundef %2)
%4 = icmp eq i32 %3, 4
%5 = zext i1 %4 to i32
%6 = call i32 @clang_analyzer_eval(i32 noundef %5)
%7 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 48, i32 noundef 2)
%9 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 97
%13 = zext i1 %12 to i32
%14 = call i32 @clang_analyzer_eval(i32 noundef %13)
%15 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp eq i32 %16, 4
%18 = zext i1 %17 to i32
%19 = call i32 @clang_analyzer_eval(i32 noundef %18)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @clang_analyzer_eval(i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjt4qs8z9.c"
target datalayout = "e-m:e-p270: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.memset6_char_array_nonnull.str = private unnamed_addr constant [5 x i8] c"abcd\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memset6_char_array_nonnull() #0 {
%1 = alloca [5 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.memset6_char_array_nonnull.str, i64 5, i1 false)
%2 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @strlen(ptr noundef %2)
%4 = icmp eq i32 %3, 4
%5 = zext i1 %4 to i32
%6 = call i32 @clang_analyzer_eval(i32 noundef %5)
%7 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 48, i32 noundef 2)
%9 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 97
%13 = zext i1 %12 to i32
%14 = call i32 @clang_analyzer_eval(i32 noundef %13)
%15 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp eq i32 %16, 4
%18 = zext i1 %17 to i32
%19 = call i32 @clang_analyzer_eval(i32 noundef %18)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @clang_analyzer_eval(i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9ehn4gjv.c'
source_filename = "/tmp/tmp9ehn4gjv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @decrypt(i8 noundef signext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i8 0, ptr %10, align 1
store i32 0, ptr %11, align 4
store i32 97, ptr %12, align 4
%13 = load i8, ptr %4, align 1
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 97
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 65, ptr %12, align 4
br label %17
17: ; preds = %16, %3
%18 = load i32, ptr %5, align 4
%19 = call i32 @eea(i32 noundef 26, i32 noundef %18, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load i32, ptr %9, align 4
%24 = add nsw i32 %23, 26
%25 = srem i32 %24, 26
store i32 %25, ptr %11, align 4
br label %26
26: ; preds = %22, %17
%27 = load i32, ptr %11, align 4
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
%30 = load i32, ptr %12, align 4
%31 = sub nsw i32 %29, %30
%32 = load i32, ptr %6, align 4
%33 = sub nsw i32 %31, %32
%34 = add nsw i32 %33, 26
%35 = mul nsw i32 %27, %34
%36 = srem i32 %35, 26
%37 = load i32, ptr %12, align 4
%38 = add nsw i32 %36, %37
%39 = trunc i32 %38 to i8
store i8 %39, ptr %10, align 1
%40 = load i8, ptr %10, align 1
ret i8 %40
}
declare i32 @eea(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/tmp9ehn4gjv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @decrypt(i8 noundef signext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i8 0, ptr %10, align 1
store i32 0, ptr %11, align 4
store i32 97, ptr %12, align 4
%13 = load i8, ptr %4, align 1
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 97
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 65, ptr %12, align 4
br label %17
17: ; preds = %16, %3
%18 = load i32, ptr %5, align 4
%19 = call i32 @eea(i32 noundef 26, i32 noundef %18, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %17
%23 = load i32, ptr %9, align 4
%24 = add nsw i32 %23, 26
%25 = srem i32 %24, 26
store i32 %25, ptr %11, align 4
br label %26
26: ; preds = %22, %17
%27 = load i32, ptr %11, align 4
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
%30 = load i32, ptr %12, align 4
%31 = sub nsw i32 %29, %30
%32 = load i32, ptr %6, align 4
%33 = sub nsw i32 %31, %32
%34 = add nsw i32 %33, 26
%35 = mul nsw i32 %27, %34
%36 = srem i32 %35, 26
%37 = load i32, ptr %12, align 4
%38 = add nsw i32 %36, %37
%39 = trunc i32 %38 to i8
store i8 %39, ptr %10, align 1
%40 = load i8, ptr %10, align 1
ret i8 %40
}
declare i32 @eea(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/tmpfm49os_v.c'
source_filename = "/tmp/tmpfm49os_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @periodic_1D_mesh(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 2, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @line_mesh(ptr noundef %4, i32 noundef 2)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @exit(i32 noundef 5) #3
unreachable
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @line_border_cond(ptr noundef %10, i32 noundef 2, i32 noundef -7, i32 noundef -7)
ret void
}
declare i64 @line_mesh(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @line_border_cond(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpfm49os_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @periodic_1D_mesh(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 2, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i64 @line_mesh(ptr noundef %4, i32 noundef 2)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @exit(i32 noundef 5) #3
unreachable
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @line_border_cond(ptr noundef %10, i32 noundef 2, i32 noundef -7, i32 noundef -7)
ret void
}
declare i64 @line_mesh(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @line_border_cond(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpmu21t5xd.c'
source_filename = "/tmp/tmpmu21t5xd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Give me three: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Theresult: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load float, ptr %2, align 4
%8 = load float, ptr %3, align 4
%9 = fadd float %7, %8
%10 = load float, ptr %4, align 4
%11 = fadd float %9, %10
%12 = fpext float %11 to double
%13 = fdiv double %12, 3.000000e+00
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpmu21t5xd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Give me three: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Theresult: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load float, ptr %2, align 4
%8 = load float, ptr %3, align 4
%9 = fadd float %7, %8
%10 = load float, ptr %4, align 4
%11 = fadd float %9, %10
%12 = fpext float %11 to double
%13 = fdiv double %12, 3.000000e+00
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpf9mmxw7u.c'
source_filename = "/tmp/tmpf9mmxw7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__clzsi2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, -65536
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 16
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 16
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %7, %1
%13 = load i32, ptr %2, align 4
%14 = and i32 %13, 65280
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 8
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = ashr i32 %19, 8
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %16, %12
%22 = load i32, ptr %2, align 4
%23 = and i32 %22, 240
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = sub nsw i32 %26, 4
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %2, align 4
%29 = ashr i32 %28, 4
store i32 %29, ptr %2, align 4
br label %30
30: ; preds = %25, %21
%31 = load i32, ptr %2, align 4
%32 = and i32 %31, 12
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, ptr %3, align 4
%36 = sub nsw i32 %35, 2
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %2, align 4
%38 = ashr i32 %37, 2
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %34, %30
%40 = load i32, ptr %2, align 4
%41 = and i32 %40, 2
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = sub nsw i32 %44, 1
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = ashr i32 %46, 1
store i32 %47, ptr %2, align 4
br label %48
48: ; preds = %43, %39
%49 = load i32, ptr %3, align 4
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9mmxw7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__clzsi2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 31, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, -65536
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 16
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 16
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %7, %1
%13 = load i32, ptr %2, align 4
%14 = and i32 %13, 65280
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 8
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = ashr i32 %19, 8
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %16, %12
%22 = load i32, ptr %2, align 4
%23 = and i32 %22, 240
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = sub nsw i32 %26, 4
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %2, align 4
%29 = ashr i32 %28, 4
store i32 %29, ptr %2, align 4
br label %30
30: ; preds = %25, %21
%31 = load i32, ptr %2, align 4
%32 = and i32 %31, 12
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, ptr %3, align 4
%36 = sub nsw i32 %35, 2
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %2, align 4
%38 = ashr i32 %37, 2
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %34, %30
%40 = load i32, ptr %2, align 4
%41 = and i32 %40, 2
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i32, ptr %3, align 4
%45 = sub nsw i32 %44, 1
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = ashr i32 %46, 1
store i32 %47, ptr %2, align 4
br label %48
48: ; preds = %43, %39
%49 = load i32, ptr %3, align 4
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpihrqjbm9.c'
source_filename = "/tmp/tmpihrqjbm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"\0A No folder specified. \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 slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @analyzedir(ptr noundef %13)
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %10, %8
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @printf(ptr noundef) #1
declare i32 @analyzedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpihrqjbm9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"\0A No folder specified. \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 slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @analyzedir(ptr noundef %13)
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %10, %8
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @printf(ptr noundef) #1
declare i32 @analyzedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkd5dzh5z.c'
source_filename = "/tmp/tmpkd5dzh5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"EOF is in fact: %d.\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @EOF, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkd5dzh5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"EOF is in fact: %d.\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @EOF, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsqntk3cn.c'
source_filename = "/tmp/tmpsqntk3cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"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 i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @pause()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @pause(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsqntk3cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"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 i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @pause()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @pause(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpllt7hn13.c'
source_filename = "/tmp/tmpllt7hn13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @config_atoi(ptr 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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 48
br i1 %10, label %11, label %32
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 120
br i1 %19, label %25, label %20
20: ; preds = %11
%21 = load ptr, ptr %3, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 88
br i1 %24, label %25, label %30
25: ; preds = %20, %11
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %4, align 4
store i32 16, ptr %5, align 4
br label %31
30: ; preds = %20
store i32 8, ptr %5, align 4
br label %31
31: ; preds = %30, %25
br label %33
32: ; preds = %2
store i32 10, ptr %5, align 4
br label %33
33: ; preds = %32, %31
store i32 0, ptr %6, align 4
br label %34
34: ; preds = %75, %33
%35 = load i32, ptr %4, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %80
37: ; preds = %34
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %6, align 4
%40 = mul nsw i32 %39, %38
store i32 %40, ptr %6, align 4
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = call i64 @isdigit(i8 noundef signext %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %37
%46 = load ptr, ptr %3, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = sub nsw i32 %48, 48
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, %49
store i32 %51, ptr %6, align 4
br label %74
52: ; preds = %37
%53 = load ptr, ptr %3, align 8
%54 = load i8, ptr %53, align 1
%55 = call i64 @isupper(i8 noundef signext %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %52
%58 = load ptr, ptr %3, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = sub nsw i32 %60, 65
%62 = add nsw i32 %61, 10
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, %62
store i32 %64, ptr %6, align 4
br label %73
65: ; preds = %52
%66 = load ptr, ptr %3, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = sub nsw i32 %68, 97
%70 = add nsw i32 %69, 10
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, %70
store i32 %72, ptr %6, align 4
br label %73
73: ; preds = %65, %57
br label %74
74: ; preds = %73, %45
br label %75
75: ; preds = %74
%76 = load ptr, ptr %3, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %3, align 8
%78 = load i32, ptr %4, align 4
%79 = add nsw i32 %78, -1
store i32 %79, ptr %4, align 4
br label %34, !llvm.loop !6
80: ; preds = %34
%81 = load i32, ptr %6, align 4
ret i32 %81
}
declare i64 @isdigit(i8 noundef signext) #1
declare i64 @isupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpllt7hn13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @config_atoi(ptr 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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 48
br i1 %10, label %11, label %32
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 120
br i1 %19, label %25, label %20
20: ; preds = %11
%21 = load ptr, ptr %3, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 88
br i1 %24, label %25, label %30
25: ; preds = %20, %11
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %4, align 4
store i32 16, ptr %5, align 4
br label %31
30: ; preds = %20
store i32 8, ptr %5, align 4
br label %31
31: ; preds = %30, %25
br label %33
32: ; preds = %2
store i32 10, ptr %5, align 4
br label %33
33: ; preds = %32, %31
store i32 0, ptr %6, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %.lr.ph, label %81
.lr.ph: ; preds = %33
br label %36
36: ; preds = %.lr.ph, %74
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %6, align 4
%39 = mul nsw i32 %38, %37
store i32 %39, ptr %6, align 4
%40 = load ptr, ptr %3, align 8
%41 = load i8, ptr %40, align 1
%42 = call i64 @isdigit(i8 noundef signext %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %36
%45 = load ptr, ptr %3, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = sub nsw i32 %47, 48
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, %48
store i32 %50, ptr %6, align 4
br label %73
51: ; preds = %36
%52 = load ptr, ptr %3, align 8
%53 = load i8, ptr %52, align 1
%54 = call i64 @isupper(i8 noundef signext %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %64
56: ; preds = %51
%57 = load ptr, ptr %3, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = sub nsw i32 %59, 65
%61 = add nsw i32 %60, 10
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %6, align 4
br label %72
64: ; preds = %51
%65 = load ptr, ptr %3, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = sub nsw i32 %67, 97
%69 = add nsw i32 %68, 10
%70 = load i32, ptr %6, align 4
%71 = add nsw i32 %70, %69
store i32 %71, ptr %6, align 4
br label %72
72: ; preds = %64, %56
br label %73
73: ; preds = %72, %44
br label %74
74: ; preds = %73
%75 = load ptr, ptr %3, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %3, align 8
%77 = load i32, ptr %4, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %4, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp sgt i32 %79, 0
br i1 %80, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %81
81: ; preds = %._crit_edge, %33
%82 = load i32, ptr %6, align 4
ret i32 %82
}
declare i64 @isdigit(i8 noundef signext) #1
declare i64 @isupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_ffqaeqw.c'
source_filename = "/tmp/tmp_ffqaeqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgpq_expanded_v6prefix(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 94)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %16, label %12
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @bgpq_expander_add_prefix(ptr noundef %13, ptr noundef %14)
br label %20
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @bgpq_expander_add_prefix_range(ptr noundef %17, ptr noundef %18)
br label %20
20: ; preds = %16, %12
ret i32 1
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @bgpq_expander_add_prefix(ptr noundef, ptr noundef) #1
declare i32 @bgpq_expander_add_prefix_range(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/tmp_ffqaeqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bgpq_expanded_v6prefix(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 94)
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %16, label %12
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @bgpq_expander_add_prefix(ptr noundef %13, ptr noundef %14)
br label %20
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call i32 @bgpq_expander_add_prefix_range(ptr noundef %17, ptr noundef %18)
br label %20
20: ; preds = %16, %12
ret i32 1
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @bgpq_expander_add_prefix(ptr noundef, ptr noundef) #1
declare i32 @bgpq_expander_add_prefix_range(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.