llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpr4fi53b3.c'
source_filename = "/tmp/tmpr4fi53b3.c"
target datalayout = "e-m:e-p270: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/tmpr4fi53b3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_pm4w3rf.c'
source_filename = "/tmp/tmp_pm4w3rf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Usage: udp-echo-server -p LISTEN_PORT -m MODE [OPTIONS]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [131 x i8] c"\09-m, --mode\09\09\09Server mode: echo or proxy. If mode is proxy MUST be pointed redirect address/port. The default mode is echo server\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"\09-P, --proxy-address\09\09Address/domain to redirect\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\09-r, --proxy-port\09\09Port to redirect\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\09-p, --port\09\09\09Listen port\0A\00", align 1
@.str.5 = private unnamed_addr constant [40 x i8] c"\09-h, --help\09\09\09Display this help screen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_pm4w3rf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Usage: udp-echo-server -p LISTEN_PORT -m MODE [OPTIONS]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [131 x i8] c"\09-m, --mode\09\09\09Server mode: echo or proxy. If mode is proxy MUST be pointed redirect address/port. The default mode is echo server\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"\09-P, --proxy-address\09\09Address/domain to redirect\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\09-r, --proxy-port\09\09Port to redirect\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\09-p, --port\09\09\09Listen port\0A\00", align 1
@.str.5 = private unnamed_addr constant [40 x i8] c"\09-h, --help\09\09\09Display this help screen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.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"}
|
; ModuleID = '/tmp/tmp9uzm_e14.c'
source_filename = "/tmp/tmp9uzm_e14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = call i32 (...) @bank_simulation()
ret void
}
declare i32 @bank_simulation(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9uzm_e14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = call i32 (...) @bank_simulation()
ret void
}
declare i32 @bank_simulation(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpco4szslv.c'
source_filename = "/tmp/tmpco4szslv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @loggerGetFilePathWithoutExt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @strrchr(ptr noundef %5, i8 noundef signext 46)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %18
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = ptrtoint ptr %11 to i64
%14 = ptrtoint ptr %12 to i64
%15 = sub i64 %13, %14
%16 = trunc i64 %15 to i32
%17 = call ptr @loggerStrNDup(ptr noundef %10, i32 noundef %16)
store ptr %17, ptr %2, align 8
br label %21
18: ; preds = %1
%19 = load ptr, ptr %3, align 8
%20 = call ptr @loggerStrDup(ptr noundef %19)
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %18, %9
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @loggerStrNDup(ptr noundef, i32 noundef) #1
declare ptr @loggerStrDup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpco4szslv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @loggerGetFilePathWithoutExt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @strrchr(ptr noundef %5, i8 noundef signext 46)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %18
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = ptrtoint ptr %11 to i64
%14 = ptrtoint ptr %12 to i64
%15 = sub i64 %13, %14
%16 = trunc i64 %15 to i32
%17 = call ptr @loggerStrNDup(ptr noundef %10, i32 noundef %16)
store ptr %17, ptr %2, align 8
br label %21
18: ; preds = %1
%19 = load ptr, ptr %3, align 8
%20 = call ptr @loggerStrDup(ptr noundef %19)
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %18, %9
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @loggerStrNDup(ptr noundef, i32 noundef) #1
declare ptr @loggerStrDup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpehrbmmna.c'
source_filename = "/tmp/tmpehrbmmna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"usage: acc <pathname> <flag>\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"R\00", align 1
@R_OK = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"W\00", align 1
@W_OK = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"X\00", align 1
@X_OK = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"F\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [17 x i8] c"unknown flag %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"access error for %s\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%s access OK\0A\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"open error for %s\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"open for %sing OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @err_quit(ptr noundef @.str)
br label %13
13: ; preds = %11, %2
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i64 @strcasecmp(ptr noundef %16, ptr noundef @.str.1)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr @R_OK, align 4
store i32 %20, ptr %6, align 4
%21 = load i32, ptr @O_RDONLY, align 4
store i32 %21, ptr %7, align 4
br label %58
22: ; preds = %13
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcasecmp(ptr noundef %25, ptr noundef @.str.2)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = load i32, ptr @W_OK, align 4
store i32 %29, ptr %6, align 4
%30 = load i32, ptr @O_WRONLY, align 4
store i32 %30, ptr %7, align 4
br label %57
31: ; preds = %22
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcasecmp(ptr noundef %34, ptr noundef @.str.3)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load i32, ptr @X_OK, align 4
store i32 %38, ptr %6, align 4
%39 = load i32, ptr @O_RDWR, align 4
store i32 %39, ptr %7, align 4
br label %56
40: ; preds = %31
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i64 @strcasecmp(ptr noundef %43, ptr noundef @.str.4)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %40
%47 = load i32, ptr @F_OK, align 4
store i32 %47, ptr %6, align 4
%48 = load i32, ptr @O_RDONLY, align 4
store i32 %48, ptr %7, align 4
br label %55
49: ; preds = %40
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 2
%52 = load ptr, ptr %51, align 8
%53 = call i32 @printf(ptr noundef @.str.5, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %46
br label %56
56: ; preds = %55, %37
br label %57
57: ; preds = %56, %28
br label %58
58: ; preds = %57, %19
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds ptr, ptr %59, i64 1
%61 = load ptr, ptr %60, align 8
%62 = load i32, ptr %6, align 4
%63 = call i64 @access(ptr noundef %61, i32 noundef %62)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %58
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i32 @err_ret(ptr noundef @.str.6, ptr noundef %68)
br label %75
70: ; preds = %58
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 2
%73 = load ptr, ptr %72, align 8
%74 = call i32 @printf(ptr noundef @.str.7, ptr noundef %73)
br label %75
75: ; preds = %70, %65
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %7, align 4
%80 = call i32 @open(ptr noundef %78, i32 noundef %79)
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %88
83: ; preds = %75
%84 = load ptr, ptr %5, align 8
%85 = getelementptr inbounds ptr, ptr %84, i64 1
%86 = load ptr, ptr %85, align 8
%87 = call i32 @err_ret(ptr noundef @.str.8, ptr noundef %86)
br label %93
88: ; preds = %75
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 2
%91 = load ptr, ptr %90, align 8
%92 = call i32 @printf(ptr noundef @.str.9, ptr noundef %91)
br label %93
93: ; preds = %88, %83
%94 = load i32, ptr %8, align 4
%95 = call i32 @close(i32 noundef %94)
%96 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @err_quit(ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @err_ret(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpehrbmmna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"usage: acc <pathname> <flag>\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"R\00", align 1
@R_OK = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"W\00", align 1
@W_OK = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"X\00", align 1
@X_OK = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [2 x i8] c"F\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [17 x i8] c"unknown flag %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"access error for %s\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"%s access OK\0A\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"open error for %s\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"open for %sing OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @err_quit(ptr noundef @.str)
br label %13
13: ; preds = %11, %2
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i64 @strcasecmp(ptr noundef %16, ptr noundef @.str.1)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = load i32, ptr @R_OK, align 4
store i32 %20, ptr %6, align 4
%21 = load i32, ptr @O_RDONLY, align 4
store i32 %21, ptr %7, align 4
br label %58
22: ; preds = %13
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcasecmp(ptr noundef %25, ptr noundef @.str.2)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = load i32, ptr @W_OK, align 4
store i32 %29, ptr %6, align 4
%30 = load i32, ptr @O_WRONLY, align 4
store i32 %30, ptr %7, align 4
br label %57
31: ; preds = %22
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcasecmp(ptr noundef %34, ptr noundef @.str.3)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load i32, ptr @X_OK, align 4
store i32 %38, ptr %6, align 4
%39 = load i32, ptr @O_RDWR, align 4
store i32 %39, ptr %7, align 4
br label %56
40: ; preds = %31
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 2
%43 = load ptr, ptr %42, align 8
%44 = call i64 @strcasecmp(ptr noundef %43, ptr noundef @.str.4)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %40
%47 = load i32, ptr @F_OK, align 4
store i32 %47, ptr %6, align 4
%48 = load i32, ptr @O_RDONLY, align 4
store i32 %48, ptr %7, align 4
br label %55
49: ; preds = %40
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 2
%52 = load ptr, ptr %51, align 8
%53 = call i32 @printf(ptr noundef @.str.5, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 0) #3
unreachable
55: ; preds = %46
br label %56
56: ; preds = %55, %37
br label %57
57: ; preds = %56, %28
br label %58
58: ; preds = %57, %19
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds ptr, ptr %59, i64 1
%61 = load ptr, ptr %60, align 8
%62 = load i32, ptr %6, align 4
%63 = call i64 @access(ptr noundef %61, i32 noundef %62)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %58
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i32 @err_ret(ptr noundef @.str.6, ptr noundef %68)
br label %75
70: ; preds = %58
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 2
%73 = load ptr, ptr %72, align 8
%74 = call i32 @printf(ptr noundef @.str.7, ptr noundef %73)
br label %75
75: ; preds = %70, %65
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %7, align 4
%80 = call i32 @open(ptr noundef %78, i32 noundef %79)
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %88
83: ; preds = %75
%84 = load ptr, ptr %5, align 8
%85 = getelementptr inbounds ptr, ptr %84, i64 1
%86 = load ptr, ptr %85, align 8
%87 = call i32 @err_ret(ptr noundef @.str.8, ptr noundef %86)
br label %93
88: ; preds = %75
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 2
%91 = load ptr, ptr %90, align 8
%92 = call i32 @printf(ptr noundef @.str.9, ptr noundef %91)
br label %93
93: ; preds = %88, %83
%94 = load i32, ptr %8, align 4
%95 = call i32 @close(i32 noundef %94)
%96 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @err_quit(ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @err_ret(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwjn4zh66.c'
source_filename = "/tmp/tmpwjn4zh66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reverse_char_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
br label %39
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
br label %39
15: ; preds = %9
%16 = load ptr, ptr %2, align 8
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %2, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %17, i64 %20
%22 = getelementptr inbounds i8, ptr %21, i64 -1
store ptr %22, ptr %4, align 8
br label %23
23: ; preds = %27, %15
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %3, align 8
%26 = icmp ugt ptr %24, %25
br i1 %26, label %27, label %39
27: ; preds = %23
%28 = load ptr, ptr %3, align 8
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %5, align 1
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %3, align 8
store i8 %31, ptr %32, align 1
%33 = load i8, ptr %5, align 1
%34 = load ptr, ptr %4, align 8
store i8 %33, ptr %34, align 1
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %3, align 8
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 -1
store ptr %38, ptr %4, align 8
br label %23, !llvm.loop !6
39: ; preds = %8, %14, %23
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwjn4zh66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reverse_char_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
br label %41
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
br label %41
15: ; preds = %9
%16 = load ptr, ptr %2, align 8
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %2, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %17, i64 %20
%22 = getelementptr inbounds i8, ptr %21, i64 -1
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %3, align 8
%25 = icmp ugt ptr %23, %24
br i1 %25, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %26
26: ; preds = %.lr.ph, %26
%27 = load ptr, ptr %3, align 8
%28 = load i8, ptr %27, align 1
store i8 %28, ptr %5, align 1
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = load ptr, ptr %3, align 8
store i8 %30, ptr %31, align 1
%32 = load i8, ptr %5, align 1
%33 = load ptr, ptr %4, align 8
store i8 %32, ptr %33, align 1
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %3, align 8
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 -1
store ptr %37, ptr %4, align 8
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %3, align 8
%40 = icmp ugt ptr %38, %39
br i1 %40, label %26, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %26
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %41
41: ; preds = %.loopexit, %14, %8
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7wtqn029.c'
source_filename = "/tmp/tmp7wtqn029.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"FATAL: %s\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sem_fatal_error() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call ptr (...) @sem_get_error()
%3 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr @EXIT_FAILURE, align 4
ret i32 %4
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @sem_get_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7wtqn029.c"
target datalayout = "e-m:e-p270: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 [10 x i8] c"FATAL: %s\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sem_fatal_error() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call ptr (...) @sem_get_error()
%3 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr @EXIT_FAILURE, align 4
ret i32 %4
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @sem_get_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8qsfcnxf.c'
source_filename = "/tmp/tmp8qsfcnxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbt(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 @brc(i32 noundef %3, i8 noundef signext 90)
ret void
}
declare i32 @brc(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8qsfcnxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbt(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 @brc(i32 noundef %3, i8 noundef signext 90)
ret void
}
declare i32 @brc(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7q7hmcr4.c'
source_filename = "/tmp/tmp7q7hmcr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Anton\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Danik\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"Friendship\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %7
7: ; preds = %22, %0
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %23
11: ; preds = %7
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%13 = load i8, ptr %5, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 65
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %22
19: ; preds = %11
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %19, %16
br label %7, !llvm.loop !6
23: ; preds = %7
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(ptr noundef @.str.2)
br label %38
29: ; preds = %23
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @printf(ptr noundef @.str.3)
br label %37
35: ; preds = %29
%36 = call i32 @printf(ptr noundef @.str.4)
br label %37
37: ; preds = %35, %33
br label %38
38: ; preds = %37, %27
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7q7hmcr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Anton\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Danik\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"Friendship\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %2, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %21
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%12 = load i8, ptr %5, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 65
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %21
18: ; preds = %10
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
br label %21
21: ; preds = %18, %15
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %2, align 4
%24 = icmp ne i32 %22, 0
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %25
25: ; preds = %._crit_edge, %0
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @printf(ptr noundef @.str.2)
br label %40
31: ; preds = %25
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.3)
br label %39
37: ; preds = %31
%38 = call i32 @printf(ptr noundef @.str.4)
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39, %29
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4nl5azx8.c'
source_filename = "/tmp/tmp4nl5azx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4nl5azx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmswdmrzt.c'
source_filename = "/tmp/tmpmswdmrzt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IP_MULTICAST_LOOP = 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/tmpmswdmrzt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IP_MULTICAST_LOOP = 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/tmp50ban1y7.c'
source_filename = "/tmp/tmp50ban1y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @e_brk_accu() #0 {
%1 = call i32 (...) @e_brk()
ret void
}
declare i32 @e_brk(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp50ban1y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @e_brk_accu() #0 {
%1 = call i32 (...) @e_brk()
ret void
}
declare i32 @e_brk(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptxobg4sl.c'
source_filename = "/tmp/tmptxobg4sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @forward_oop_cos_low(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 [3 x double], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds double, ptr %11, i64 1
%13 = load double, ptr %12, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 2
%16 = load double, ptr %15, align 8
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds double, ptr %17, i64 2
%19 = load double, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds double, ptr %20, i64 1
%22 = load double, ptr %21, align 8
%23 = fmul double %19, %22
%24 = fneg double %23
%25 = call double @llvm.fmuladd.f64(double %13, double %16, double %24)
%26 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
store double %25, ptr %26, align 16
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 2
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds double, ptr %30, i64 0
%32 = load double, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds double, ptr %33, i64 0
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds double, ptr %36, i64 2
%38 = load double, ptr %37, align 8
%39 = fmul double %35, %38
%40 = fneg double %39
%41 = call double @llvm.fmuladd.f64(double %29, double %32, double %40)
%42 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
store double %41, ptr %42, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds double, ptr %43, i64 0
%45 = load double, ptr %44, align 8
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds double, ptr %46, i64 1
%48 = load double, ptr %47, align 8
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds double, ptr %49, i64 1
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
%55 = fmul double %51, %54
%56 = fneg double %55
%57 = call double @llvm.fmuladd.f64(double %45, double %48, double %56)
%58 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
store double %57, ptr %58, align 16
%59 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%60 = load double, ptr %59, align 16
%61 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%62 = load double, ptr %61, align 16
%63 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%64 = load double, ptr %63, align 8
%65 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%66 = load double, ptr %65, align 8
%67 = fmul double %64, %66
%68 = call double @llvm.fmuladd.f64(double %60, double %62, double %67)
%69 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%70 = load double, ptr %69, align 16
%71 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%72 = load double, ptr %71, align 16
%73 = call double @llvm.fmuladd.f64(double %70, double %72, double %68)
store double %73, ptr %8, align 8
%74 = load ptr, ptr %6, align 8
%75 = getelementptr inbounds double, ptr %74, i64 0
%76 = load double, ptr %75, align 8
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds double, ptr %77, i64 0
%79 = load double, ptr %78, align 8
%80 = load ptr, ptr %6, align 8
%81 = getelementptr inbounds double, ptr %80, i64 1
%82 = load double, ptr %81, align 8
%83 = load ptr, ptr %6, align 8
%84 = getelementptr inbounds double, ptr %83, i64 1
%85 = load double, ptr %84, align 8
%86 = fmul double %82, %85
%87 = call double @llvm.fmuladd.f64(double %76, double %79, double %86)
%88 = load ptr, ptr %6, align 8
%89 = getelementptr inbounds double, ptr %88, i64 2
%90 = load double, ptr %89, align 8
%91 = load ptr, ptr %6, align 8
%92 = getelementptr inbounds double, ptr %91, i64 2
%93 = load double, ptr %92, align 8
%94 = call double @llvm.fmuladd.f64(double %90, double %93, double %87)
store double %94, ptr %9, align 8
%95 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%96 = load double, ptr %95, align 16
%97 = load ptr, ptr %6, align 8
%98 = getelementptr inbounds double, ptr %97, i64 0
%99 = load double, ptr %98, align 8
%100 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%101 = load double, ptr %100, align 8
%102 = load ptr, ptr %6, align 8
%103 = getelementptr inbounds double, ptr %102, i64 1
%104 = load double, ptr %103, align 8
%105 = fmul double %101, %104
%106 = call double @llvm.fmuladd.f64(double %96, double %99, double %105)
%107 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%108 = load double, ptr %107, align 16
%109 = load ptr, ptr %6, align 8
%110 = getelementptr inbounds double, ptr %109, i64 2
%111 = load double, ptr %110, align 8
%112 = call double @llvm.fmuladd.f64(double %108, double %111, double %106)
store double %112, ptr %10, align 8
%113 = load double, ptr %10, align 8
%114 = load double, ptr %10, align 8
%115 = fmul double %113, %114
%116 = load double, ptr %9, align 8
%117 = fdiv double %115, %116
%118 = load double, ptr %8, align 8
%119 = fdiv double %117, %118
%120 = fsub double 1.000000e+00, %119
%121 = call double @sqrt(double noundef %120) #3
ret double %121
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(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/tmptxobg4sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @forward_oop_cos_low(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 [3 x double], align 16
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds double, ptr %11, i64 1
%13 = load double, ptr %12, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 2
%16 = load double, ptr %15, align 8
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds double, ptr %17, i64 2
%19 = load double, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds double, ptr %20, i64 1
%22 = load double, ptr %21, align 8
%23 = fmul double %19, %22
%24 = fneg double %23
%25 = call double @llvm.fmuladd.f64(double %13, double %16, double %24)
%26 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
store double %25, ptr %26, align 16
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 2
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds double, ptr %30, i64 0
%32 = load double, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds double, ptr %33, i64 0
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds double, ptr %36, i64 2
%38 = load double, ptr %37, align 8
%39 = fmul double %35, %38
%40 = fneg double %39
%41 = call double @llvm.fmuladd.f64(double %29, double %32, double %40)
%42 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
store double %41, ptr %42, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds double, ptr %43, i64 0
%45 = load double, ptr %44, align 8
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds double, ptr %46, i64 1
%48 = load double, ptr %47, align 8
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds double, ptr %49, i64 1
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load double, ptr %53, align 8
%55 = fmul double %51, %54
%56 = fneg double %55
%57 = call double @llvm.fmuladd.f64(double %45, double %48, double %56)
%58 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
store double %57, ptr %58, align 16
%59 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%60 = load double, ptr %59, align 16
%61 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%62 = load double, ptr %61, align 16
%63 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%64 = load double, ptr %63, align 8
%65 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%66 = load double, ptr %65, align 8
%67 = fmul double %64, %66
%68 = call double @llvm.fmuladd.f64(double %60, double %62, double %67)
%69 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%70 = load double, ptr %69, align 16
%71 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%72 = load double, ptr %71, align 16
%73 = call double @llvm.fmuladd.f64(double %70, double %72, double %68)
store double %73, ptr %8, align 8
%74 = load ptr, ptr %6, align 8
%75 = getelementptr inbounds double, ptr %74, i64 0
%76 = load double, ptr %75, align 8
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds double, ptr %77, i64 0
%79 = load double, ptr %78, align 8
%80 = load ptr, ptr %6, align 8
%81 = getelementptr inbounds double, ptr %80, i64 1
%82 = load double, ptr %81, align 8
%83 = load ptr, ptr %6, align 8
%84 = getelementptr inbounds double, ptr %83, i64 1
%85 = load double, ptr %84, align 8
%86 = fmul double %82, %85
%87 = call double @llvm.fmuladd.f64(double %76, double %79, double %86)
%88 = load ptr, ptr %6, align 8
%89 = getelementptr inbounds double, ptr %88, i64 2
%90 = load double, ptr %89, align 8
%91 = load ptr, ptr %6, align 8
%92 = getelementptr inbounds double, ptr %91, i64 2
%93 = load double, ptr %92, align 8
%94 = call double @llvm.fmuladd.f64(double %90, double %93, double %87)
store double %94, ptr %9, align 8
%95 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 0
%96 = load double, ptr %95, align 16
%97 = load ptr, ptr %6, align 8
%98 = getelementptr inbounds double, ptr %97, i64 0
%99 = load double, ptr %98, align 8
%100 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 1
%101 = load double, ptr %100, align 8
%102 = load ptr, ptr %6, align 8
%103 = getelementptr inbounds double, ptr %102, i64 1
%104 = load double, ptr %103, align 8
%105 = fmul double %101, %104
%106 = call double @llvm.fmuladd.f64(double %96, double %99, double %105)
%107 = getelementptr inbounds [3 x double], ptr %7, i64 0, i64 2
%108 = load double, ptr %107, align 16
%109 = load ptr, ptr %6, align 8
%110 = getelementptr inbounds double, ptr %109, i64 2
%111 = load double, ptr %110, align 8
%112 = call double @llvm.fmuladd.f64(double %108, double %111, double %106)
store double %112, ptr %10, align 8
%113 = load double, ptr %10, align 8
%114 = load double, ptr %10, align 8
%115 = fmul double %113, %114
%116 = load double, ptr %9, align 8
%117 = fdiv double %115, %116
%118 = load double, ptr %8, align 8
%119 = fdiv double %117, %118
%120 = fsub double 1.000000e+00, %119
%121 = call double @sqrt(double noundef %120) #3
ret double %121
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(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/tmpnq4xhbas.c'
source_filename = "/tmp/tmpnq4xhbas.c"
target datalayout = "e-m:e-p270: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/tmpnq4xhbas.c"
target datalayout = "e-m:e-p270: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/tmpw0ophnz8.c'
source_filename = "/tmp/tmpw0ophnz8.c"
target datalayout = "e-m:e-p270: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/tmpw0ophnz8.c"
target datalayout = "e-m:e-p270: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/tmp4x0mh410.c'
source_filename = "/tmp/tmp4x0mh410.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fileClose(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fclose(ptr noundef %5)
ret void
}
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4x0mh410.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fileClose(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fclose(ptr noundef %5)
ret void
}
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp2z5epby.c'
source_filename = "/tmp/tmpp2z5epby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"done\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)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp2z5epby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"done\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)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw7bzffll.c'
source_filename = "/tmp/tmpw7bzffll.c"
target datalayout = "e-m:e-p270: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/tmpw7bzffll.c"
target datalayout = "e-m:e-p270: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/tmpbujovrha.c'
source_filename = "/tmp/tmpbujovrha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_constant_fill(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i64, ptr %9, i64 %10
store ptr %11, ptr %8, align 8
br label %12
12: ; preds = %23, %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp ult ptr %13, %14
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i64, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load i64, ptr %17, align 8
%20 = load i64, ptr %7, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %16
store i32 0, ptr %4, align 4
br label %25
23: ; preds = %16
br label %12, !llvm.loop !6
24: ; preds = %12
store i32 1, ptr %4, align 4
br label %25
25: ; preds = %24, %22
%26 = load i32, ptr %4, align 4
ret i32 %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/tmpbujovrha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_constant_fill(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i64, ptr %9, i64 %10
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %8, align 8
%14 = icmp ult ptr %12, %13
br i1 %14, label %.lr.ph, label %26
.lr.ph: ; preds = %3
br label %19
15: ; preds = %19
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp ult ptr %16, %17
br i1 %18, label %19, label %._crit_edge, !llvm.loop !6
19: ; preds = %.lr.ph, %15
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i64, ptr %20, i32 1
store ptr %21, ptr %5, align 8
%22 = load i64, ptr %20, align 8
%23 = load i64, ptr %7, align 8
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %15
25: ; preds = %19
store i32 0, ptr %4, align 4
br label %27
._crit_edge: ; preds = %15
br label %26
26: ; preds = %._crit_edge, %3
store i32 1, ptr %4, align 4
br label %27
27: ; preds = %26, %25
%28 = load i32, ptr %4, align 4
ret i32 %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/tmpb5vpy4ib.c'
source_filename = "/tmp/tmpb5vpy4ib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getOriginalBreak.original_break = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getOriginalBreak() #0 {
%1 = load ptr, ptr @getOriginalBreak.original_break, align 8
%2 = icmp eq ptr %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call ptr @sbrk(i32 noundef 0)
store ptr %4, ptr @getOriginalBreak.original_break, align 8
br label %5
5: ; preds = %3, %0
%6 = load ptr, ptr @getOriginalBreak.original_break, align 8
ret ptr %6
}
declare ptr @sbrk(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/tmpb5vpy4ib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getOriginalBreak.original_break = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getOriginalBreak() #0 {
%1 = load ptr, ptr @getOriginalBreak.original_break, align 8
%2 = icmp eq ptr %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call ptr @sbrk(i32 noundef 0)
store ptr %4, ptr @getOriginalBreak.original_break, align 8
br label %5
5: ; preds = %3, %0
%6 = load ptr, ptr @getOriginalBreak.original_break, align 8
ret ptr %6
}
declare ptr @sbrk(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/tmp4nrqoopa.c'
source_filename = "/tmp/tmp4nrqoopa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @str2int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strtoull(ptr noundef %4, ptr noundef %3, i32 noundef 0)
ret i64 %5
}
declare i64 @strtoull(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/tmp4nrqoopa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @str2int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strtoull(ptr noundef %4, ptr noundef %3, i32 noundef 0)
ret i64 %5
}
declare i64 @strtoull(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/tmp7mns0kxg.c'
source_filename = "/tmp/tmp7mns0kxg.c"
target datalayout = "e-m:e-p270: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/tmp7mns0kxg.c"
target datalayout = "e-m:e-p270: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/tmpjivwou1y.c'
source_filename = "/tmp/tmpjivwou1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Vavedi chislo - \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %10)
%12 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %5, align 4
br label %14
14: ; preds = %73, %0
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %76
18: ; preds = %14
%19 = load i32, ptr %2, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp sge i32 %23, 73
br i1 %24, label %25, label %29
25: ; preds = %18
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %27
store i32 1, ptr %28, align 4
br label %29
29: ; preds = %25, %18
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 86
br i1 %35, label %36, label %40
36: ; preds = %29
%37 = load i32, ptr %2, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %38
store i32 5, ptr %39, align 4
br label %40
40: ; preds = %36, %29
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 88
br i1 %46, label %47, label %51
47: ; preds = %40
%48 = load i32, ptr %2, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %49
store i32 10, ptr %50, align 4
br label %51
51: ; preds = %47, %40
%52 = load i32, ptr %2, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 76
br i1 %57, label %58, label %62
58: ; preds = %51
%59 = load i32, ptr %2, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %60
store i32 50, ptr %61, align 4
br label %62
62: ; preds = %58, %51
%63 = load i32, ptr %2, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 67
br i1 %68, label %69, label %73
69: ; preds = %62
%70 = load i32, ptr %2, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %71
store i32 100, ptr %72, align 4
br label %73
73: ; preds = %69, %62
%74 = load i32, ptr %2, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %2, align 4
br label %14, !llvm.loop !6
76: ; preds = %14
store i32 0, ptr %2, align 4
br label %77
77: ; preds = %154, %76
%78 = load i32, ptr %2, align 4
%79 = load i32, ptr %5, align 4
%80 = sub nsw i32 %79, 1
%81 = icmp ne i32 %78, %80
br i1 %81, label %82, label %157
82: ; preds = %77
%83 = load i32, ptr %2, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %2, align 4
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp slt i32 %86, %91
br i1 %92, label %93, label %106
93: ; preds = %82
%94 = load i32, ptr %7, align 4
%95 = load i32, ptr %2, align 4
%96 = add nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load i32, ptr %2, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = sub nsw i32 %99, %103
%105 = add nsw i32 %94, %104
store i32 %105, ptr %7, align 4
br label %106
106: ; preds = %93, %82
%107 = load i32, ptr %2, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %108
%110 = load i32, ptr %109, align 4
%111 = load i32, ptr %2, align 4
%112 = add nsw i32 %111, 1
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %113
%115 = load i32, ptr %114, align 4
%116 = icmp sgt i32 %110, %115
br i1 %116, label %128, label %117
117: ; preds = %106
%118 = load i32, ptr %2, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %119
%121 = load i32, ptr %120, align 4
%122 = load i32, ptr %2, align 4
%123 = add nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = icmp eq i32 %121, %126
br i1 %127, label %128, label %154
128: ; preds = %117, %106
%129 = load i32, ptr %2, align 4
%130 = load i32, ptr %5, align 4
%131 = sub nsw i32 %130, 2
%132 = icmp ne i32 %129, %131
br i1 %132, label %133, label %140
133: ; preds = %128
%134 = load i32, ptr %7, align 4
%135 = load i32, ptr %2, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %136
%138 = load i32, ptr %137, align 4
%139 = add nsw i32 %134, %138
store i32 %139, ptr %7, align 4
br label %153
140: ; preds = %128
%141 = load i32, ptr %7, align 4
%142 = load i32, ptr %2, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %143
%145 = load i32, ptr %144, align 4
%146 = add nsw i32 %141, %145
%147 = load i32, ptr %2, align 4
%148 = add nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %149
%151 = load i32, ptr %150, align 4
%152 = add nsw i32 %146, %151
store i32 %152, ptr %7, align 4
br label %153
153: ; preds = %140, %133
br label %154
154: ; preds = %153, %117
%155 = load i32, ptr %2, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %2, align 4
br label %77, !llvm.loop !8
157: ; preds = %77
%158 = load i32, ptr %5, align 4
%159 = icmp eq i32 %158, 1
br i1 %159, label %160, label %165
160: ; preds = %157
%161 = load i32, ptr %7, align 4
%162 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%163 = load i32, ptr %162, align 16
%164 = add nsw i32 %161, %163
store i32 %164, ptr %7, align 4
br label %165
165: ; preds = %160, %157
%166 = load i32, ptr %7, align 4
%167 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %166)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjivwou1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Vavedi chislo - \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca [10 x i8], align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %10)
%12 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp ne i32 %14, %15
br i1 %16, label %.lr.ph, label %78
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %72
%18 = load i32, ptr %2, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp sge i32 %22, 73
br i1 %23, label %24, label %28
24: ; preds = %17
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %26
store i32 1, ptr %27, align 4
br label %28
28: ; preds = %24, %17
%29 = load i32, ptr %2, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 86
br i1 %34, label %35, label %39
35: ; preds = %28
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %37
store i32 5, ptr %38, align 4
br label %39
39: ; preds = %35, %28
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 88
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = load i32, ptr %2, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %48
store i32 10, ptr %49, align 4
br label %50
50: ; preds = %46, %39
%51 = load i32, ptr %2, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 76
br i1 %56, label %57, label %61
57: ; preds = %50
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %59
store i32 50, ptr %60, align 4
br label %61
61: ; preds = %57, %50
%62 = load i32, ptr %2, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 67
br i1 %67, label %68, label %72
68: ; preds = %61
%69 = load i32, ptr %2, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %70
store i32 100, ptr %71, align 4
br label %72
72: ; preds = %68, %61
%73 = load i32, ptr %2, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %2, align 4
%75 = load i32, ptr %2, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp ne i32 %75, %76
br i1 %77, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%79 = load i32, ptr %2, align 4
%80 = load i32, ptr %5, align 4
%81 = sub nsw i32 %80, 1
%82 = icmp ne i32 %79, %81
br i1 %82, label %.lr.ph2, label %162
.lr.ph2: ; preds = %78
br label %83
83: ; preds = %.lr.ph2, %155
%84 = load i32, ptr %2, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
%88 = load i32, ptr %2, align 4
%89 = add nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
%93 = icmp slt i32 %87, %92
br i1 %93, label %94, label %107
94: ; preds = %83
%95 = load i32, ptr %7, align 4
%96 = load i32, ptr %2, align 4
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i32, ptr %2, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %102
%104 = load i32, ptr %103, align 4
%105 = sub nsw i32 %100, %104
%106 = add nsw i32 %95, %105
store i32 %106, ptr %7, align 4
br label %107
107: ; preds = %94, %83
%108 = load i32, ptr %2, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load i32, ptr %2, align 4
%113 = add nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %114
%116 = load i32, ptr %115, align 4
%117 = icmp sgt i32 %111, %116
br i1 %117, label %129, label %118
118: ; preds = %107
%119 = load i32, ptr %2, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %120
%122 = load i32, ptr %121, align 4
%123 = load i32, ptr %2, align 4
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %125
%127 = load i32, ptr %126, align 4
%128 = icmp eq i32 %122, %127
br i1 %128, label %129, label %155
129: ; preds = %118, %107
%130 = load i32, ptr %2, align 4
%131 = load i32, ptr %5, align 4
%132 = sub nsw i32 %131, 2
%133 = icmp ne i32 %130, %132
br i1 %133, label %134, label %141
134: ; preds = %129
%135 = load i32, ptr %7, align 4
%136 = load i32, ptr %2, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %137
%139 = load i32, ptr %138, align 4
%140 = add nsw i32 %135, %139
store i32 %140, ptr %7, align 4
br label %154
141: ; preds = %129
%142 = load i32, ptr %7, align 4
%143 = load i32, ptr %2, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %144
%146 = load i32, ptr %145, align 4
%147 = add nsw i32 %142, %146
%148 = load i32, ptr %2, align 4
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %150
%152 = load i32, ptr %151, align 4
%153 = add nsw i32 %147, %152
store i32 %153, ptr %7, align 4
br label %154
154: ; preds = %141, %134
br label %155
155: ; preds = %154, %118
%156 = load i32, ptr %2, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %2, align 4
%158 = load i32, ptr %2, align 4
%159 = load i32, ptr %5, align 4
%160 = sub nsw i32 %159, 1
%161 = icmp ne i32 %158, %160
br i1 %161, label %83, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %155
br label %162
162: ; preds = %._crit_edge3, %78
%163 = load i32, ptr %5, align 4
%164 = icmp eq i32 %163, 1
br i1 %164, label %165, label %170
165: ; preds = %162
%166 = load i32, ptr %7, align 4
%167 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%168 = load i32, ptr %167, align 16
%169 = add nsw i32 %166, %168
store i32 %169, ptr %7, align 4
br label %170
170: ; preds = %165, %162
%171 = load i32, ptr %7, align 4
%172 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %171)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpodsaj6p5.c'
source_filename = "/tmp/tmpodsaj6p5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rrawad(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i8 1, ptr %2, align 1
br label %16
12: ; preds = %1
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %3, align 8
store i32 %13, ptr %14, align 4
br label %15
15: ; preds = %12
store i8 0, ptr %2, align 1
br label %16
16: ; preds = %15, %11
%17 = load i8, ptr %2, align 1
ret i8 %17
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpodsaj6p5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rrawad(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = load i32, ptr @stdout, align 4
%7 = call i32 @fflush(i32 noundef %6)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i8 1, ptr %2, align 1
br label %16
12: ; preds = %1
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %3, align 8
store i32 %13, ptr %14, align 4
br label %15
15: ; preds = %12
store i8 0, ptr %2, align 1
br label %16
16: ; preds = %15, %11
%17 = load i8, ptr %2, align 1
ret i8 %17
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuo_8n76k.c'
source_filename = "/tmp/tmpuo_8n76k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f19(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 @f18(ptr noundef %3)
ret i32 %4
}
declare i32 @f18(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuo_8n76k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f19(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 @f18(ptr noundef %3)
ret i32 %4
}
declare i32 @f18(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ggx6qv2.c'
source_filename = "/tmp/tmp2ggx6qv2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Test 1\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Test1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 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/tmp2ggx6qv2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Test 1\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Test1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 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/tmpqj_qfuls.c'
source_filename = "/tmp/tmpqj_qfuls.c"
target datalayout = "e-m:e-p270: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.FACOM_run.command = private unnamed_addr constant [4 x i8] c"410\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FACOM_run(i8 noundef zeroext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.FACOM_run.command, i64 4, i1 false)
%6 = load i8, ptr %3, align 1
%7 = zext i8 %6 to i32
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
store i8 49, ptr %10, align 1
br label %11
11: ; preds = %9, %1
%12 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @FACOM_write(ptr noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %2, align 4
br label %20
18: ; preds = %11
%19 = call i32 (...) @FACOM_checkForErrors()
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %18, %16
%21 = load i32, ptr %2, align 4
ret i32 %21
}
; 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 @FACOM_write(ptr noundef) #2
declare i32 @FACOM_checkForErrors(...) #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/tmpqj_qfuls.c"
target datalayout = "e-m:e-p270: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.FACOM_run.command = private unnamed_addr constant [4 x i8] c"410\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FACOM_run(i8 noundef zeroext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.FACOM_run.command, i64 4, i1 false)
%6 = load i8, ptr %3, align 1
%7 = zext i8 %6 to i32
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
store i8 49, ptr %10, align 1
br label %11
11: ; preds = %9, %1
%12 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @FACOM_write(ptr noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %2, align 4
br label %20
18: ; preds = %11
%19 = call i32 (...) @FACOM_checkForErrors()
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %18, %16
%21 = load i32, ptr %2, align 4
ret i32 %21
}
; 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 @FACOM_write(ptr noundef) #2
declare i32 @FACOM_checkForErrors(...) #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/tmpbzbs2x3h.c'
source_filename = "/tmp/tmpbzbs2x3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %11, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %14, align 8
store i32 0, ptr %10, align 4
br label %20
20: ; preds = %38, %4
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %41
24: ; preds = %20
%25 = load ptr, ptr %14, align 8
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i8, ptr %6, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %30, %32
br i1 %33, label %34, label %37
34: ; preds = %24
%35 = load i32, ptr %11, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %11, align 4
br label %37
37: ; preds = %34, %24
br label %38
38: ; preds = %37
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %20, !llvm.loop !6
41: ; preds = %20
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load i32, ptr %11, align 4
store i32 %45, ptr %13, align 4
br label %60
46: ; preds = %41
%47 = load i32, ptr %7, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
store i32 1, ptr %13, align 4
br label %59
50: ; preds = %46
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = load i32, ptr %11, align 4
store i32 %55, ptr %13, align 4
br label %58
56: ; preds = %50
%57 = load i32, ptr %7, align 4
store i32 %57, ptr %13, align 4
br label %58
58: ; preds = %56, %54
br label %59
59: ; preds = %58, %49
br label %60
60: ; preds = %59, %44
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = mul i64 8, %62
%64 = trunc i64 %63 to i32
%65 = call ptr @malloc(i32 noundef %64)
store ptr %65, ptr %12, align 8
store i32 0, ptr %15, align 4
%66 = load ptr, ptr %14, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 0
%68 = load ptr, ptr %12, align 8
%69 = load i32, ptr %15, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %15, align 4
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds ptr, ptr %68, i64 %71
store ptr %67, ptr %72, align 8
store i32 0, ptr %10, align 4
br label %73
73: ; preds = %108, %60
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %9, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %111
77: ; preds = %73
%78 = load i32, ptr %15, align 4
%79 = load i32, ptr %13, align 4
%80 = icmp sge i32 %78, %79
br i1 %80, label %81, label %82
81: ; preds = %77
br label %111
82: ; preds = %77
%83 = load ptr, ptr %14, align 8
%84 = load i32, ptr %10, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = load i8, ptr %6, align 1
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %88, %90
br i1 %91, label %92, label %107
92: ; preds = %82
%93 = load ptr, ptr %14, align 8
%94 = load i32, ptr %10, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
store i8 0, ptr %96, align 1
%97 = load ptr, ptr %14, align 8
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %97, i64 %100
%102 = load ptr, ptr %12, align 8
%103 = load i32, ptr %15, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %15, align 4
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds ptr, ptr %102, i64 %105
store ptr %101, ptr %106, align 8
br label %107
107: ; preds = %92, %82
br label %108
108: ; preds = %107
%109 = load i32, ptr %10, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %10, align 4
br label %73, !llvm.loop !8
111: ; preds = %81, %73
%112 = load i32, ptr %13, align 4
%113 = load ptr, ptr %8, align 8
store i32 %112, ptr %113, align 4
%114 = load ptr, ptr %12, align 8
ret ptr %114
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbzbs2x3h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i8 %1, ptr %6, align 1
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
store i32 1, ptr %11, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %14, align 8
store i32 0, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %43
.lr.ph: ; preds = %4
br label %23
23: ; preds = %.lr.ph, %37
%24 = load ptr, ptr %14, align 8
%25 = load i32, ptr %10, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = load i8, ptr %6, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %29, %31
br i1 %32, label %33, label %36
33: ; preds = %23
%34 = load i32, ptr %11, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %11, align 4
br label %36
36: ; preds = %33, %23
br label %37
37: ; preds = %36
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %9, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %4
%44 = load i32, ptr %7, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = load i32, ptr %11, align 4
store i32 %47, ptr %13, align 4
br label %62
48: ; preds = %43
%49 = load i32, ptr %7, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
store i32 1, ptr %13, align 4
br label %61
52: ; preds = %48
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = load i32, ptr %11, align 4
store i32 %57, ptr %13, align 4
br label %60
58: ; preds = %52
%59 = load i32, ptr %7, align 4
store i32 %59, ptr %13, align 4
br label %60
60: ; preds = %58, %56
br label %61
61: ; preds = %60, %51
br label %62
62: ; preds = %61, %46
%63 = load i32, ptr %13, align 4
%64 = sext i32 %63 to i64
%65 = mul i64 8, %64
%66 = trunc i64 %65 to i32
%67 = call ptr @malloc(i32 noundef %66)
store ptr %67, ptr %12, align 8
store i32 0, ptr %15, align 4
%68 = load ptr, ptr %14, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 0
%70 = load ptr, ptr %12, align 8
%71 = load i32, ptr %15, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %15, align 4
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds ptr, ptr %70, i64 %73
store ptr %69, ptr %74, align 8
store i32 0, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %62
br label %78
78: ; preds = %.lr.ph2, %109
%79 = load i32, ptr %15, align 4
%80 = load i32, ptr %13, align 4
%81 = icmp sge i32 %79, %80
br i1 %81, label %82, label %83
82: ; preds = %78
br label %115
83: ; preds = %78
%84 = load ptr, ptr %14, align 8
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = load i8, ptr %6, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %89, %91
br i1 %92, label %93, label %108
93: ; preds = %83
%94 = load ptr, ptr %14, align 8
%95 = load i32, ptr %10, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %94, i64 %96
store i8 0, ptr %97, align 1
%98 = load ptr, ptr %14, align 8
%99 = load i32, ptr %10, align 4
%100 = add nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %98, i64 %101
%103 = load ptr, ptr %12, align 8
%104 = load i32, ptr %15, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %15, align 4
%106 = sext i32 %104 to i64
%107 = getelementptr inbounds ptr, ptr %103, i64 %106
store ptr %102, ptr %107, align 8
br label %108
108: ; preds = %93, %83
br label %109
109: ; preds = %108
%110 = load i32, ptr %10, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %10, align 4
%112 = load i32, ptr %10, align 4
%113 = load i32, ptr %9, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %78, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %109
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %62
br label %115
115: ; preds = %.loopexit, %82
%116 = load i32, ptr %13, align 4
%117 = load ptr, ptr %8, align 8
store i32 %116, ptr %117, align 4
%118 = load ptr, ptr %12, align 8
ret ptr %118
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8ry3moqa.c'
source_filename = "/tmp/tmp8ry3moqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert2gb(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i64, ptr %4, align 8
%10 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%11 = udiv i64 %9, %10
%12 = uitofp i64 %11 to double
store double %12, ptr %5, align 8
br label %22
13: ; preds = %2
%14 = load i64, ptr %3, align 8
%15 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%16 = udiv i64 %14, %15
%17 = load i64, ptr %4, align 8
%18 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%19 = udiv i64 %17, %18
%20 = sub i64 %16, %19
%21 = uitofp i64 %20 to double
store double %21, ptr %5, align 8
br label %22
22: ; preds = %13, %8
%23 = load double, ptr %5, align 8
ret double %23
}
declare i64 @pow(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/tmp8ry3moqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert2gb(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca double, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i64, ptr %4, align 8
%10 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%11 = udiv i64 %9, %10
%12 = uitofp i64 %11 to double
store double %12, ptr %5, align 8
br label %22
13: ; preds = %2
%14 = load i64, ptr %3, align 8
%15 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%16 = udiv i64 %14, %15
%17 = load i64, ptr %4, align 8
%18 = call i64 @pow(i32 noundef 2, i32 noundef 30)
%19 = udiv i64 %17, %18
%20 = sub i64 %16, %19
%21 = uitofp i64 %20 to double
store double %21, ptr %5, align 8
br label %22
22: ; preds = %13, %8
%23 = load double, ptr %5, align 8
ret double %23
}
declare i64 @pow(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/tmpvhyi2sew.c'
source_filename = "/tmp/tmpvhyi2sew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strndup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call i64 @strnlen(ptr noundef %8, i64 noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = add i64 %11, 1
%13 = call ptr @malloc(i64 noundef %12)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %26
17: ; preds = %2
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %5, align 8
%21 = call i32 @strncpy(ptr noundef %18, ptr noundef %19, i64 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %7, align 8
store ptr %25, ptr %3, align 8
br label %26
26: ; preds = %17, %16
%27 = load ptr, ptr %3, align 8
ret ptr %27
}
declare i64 @strnlen(ptr noundef, i64 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strncpy(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/tmpvhyi2sew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strndup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call i64 @strnlen(ptr noundef %8, i64 noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = add i64 %11, 1
%13 = call ptr @malloc(i64 noundef %12)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %26
17: ; preds = %2
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %5, align 8
%21 = call i32 @strncpy(ptr noundef %18, ptr noundef %19, i64 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
store i8 0, ptr %24, align 1
%25 = load ptr, ptr %7, align 8
store ptr %25, ptr %3, align 8
br label %26
26: ; preds = %17, %16
%27 = load ptr, ptr %3, align 8
ret ptr %27
}
declare i64 @strnlen(ptr noundef, i64 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strncpy(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/tmpd52k0mr_.c'
source_filename = "/tmp/tmpd52k0mr_.c"
target datalayout = "e-m:e-p270: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/tmpd52k0mr_.c"
target datalayout = "e-m:e-p270: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/tmp2r5sie04.c'
source_filename = "/tmp/tmp2r5sie04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%Ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%Lu\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%Lx\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%Ls\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printf_longlong(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %5)
%7 = load i64, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %7)
%9 = load i64, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %9)
%11 = load i64, ptr %3, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %11)
%13 = load i64, ptr %3, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %13)
%15 = load i64, ptr %3, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
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/tmp2r5sie04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%Ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%Lu\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%Lx\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%Ls\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printf_longlong(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %5)
%7 = load i64, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %7)
%9 = load i64, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %9)
%11 = load i64, ptr %3, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %11)
%13 = load i64, ptr %3, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %13)
%15 = load i64, ptr %3, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
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/tmp7a6wj5ja.c'
source_filename = "/tmp/tmp7a6wj5ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myatoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 43, ptr %6, align 4
br label %8
8: ; preds = %20, %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %13, %8
%19 = phi i1 [ false, %8 ], [ %17, %13 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %8, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %33, label %28
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 43
br i1 %32, label %33, label %38
33: ; preds = %28, %23
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %4, align 8
%36 = load i8, ptr %34, align 1
%37 = sext i8 %36 to i32
br label %39
38: ; preds = %28
br label %39
39: ; preds = %38, %33
%40 = phi i32 [ %37, %33 ], [ 43, %38 ]
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %82, %39
%42 = load ptr, ptr %4, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %85
45: ; preds = %41
%46 = load ptr, ptr %4, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp slt i32 %48, 48
br i1 %49, label %55, label %50
50: ; preds = %45
%51 = load ptr, ptr %4, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp sgt i32 %53, 57
br i1 %54, label %55, label %56
55: ; preds = %50, %45
br label %86
56: ; preds = %50
%57 = load i32, ptr %5, align 4
%58 = mul nsw i32 %57, 10
%59 = load ptr, ptr %4, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = sub nsw i32 %61, 48
%63 = add nsw i32 %58, %62
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %6, align 4
%65 = icmp eq i32 %64, 43
br i1 %65, label %66, label %72
66: ; preds = %56
%67 = load i32, ptr %5, align 4
%68 = load i32, ptr @INT_MAX, align 4
%69 = icmp sge i32 %67, %68
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = load i32, ptr @INT_MAX, align 4
store i32 %71, ptr %2, align 4
br label %96
72: ; preds = %66, %56
%73 = load i32, ptr %6, align 4
%74 = icmp eq i32 %73, 45
br i1 %74, label %75, label %82
75: ; preds = %72
%76 = load i32, ptr %5, align 4
%77 = load i32, ptr @INT_MIN, align 4
%78 = sub nsw i32 0, %77
%79 = icmp sge i32 %76, %78
br i1 %79, label %80, label %82
80: ; preds = %75
%81 = load i32, ptr @INT_MIN, align 4
store i32 %81, ptr %2, align 4
br label %96
82: ; preds = %75, %72
%83 = load ptr, ptr %4, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %4, align 8
br label %41, !llvm.loop !8
85: ; preds = %41
br label %86
86: ; preds = %85, %55
%87 = load i32, ptr %6, align 4
%88 = icmp eq i32 %87, 45
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load i32, ptr %5, align 4
%91 = sub nsw i32 0, %90
br label %94
92: ; preds = %86
%93 = load i32, ptr %5, align 4
br label %94
94: ; preds = %92, %89
%95 = phi i32 [ %91, %89 ], [ %93, %92 ]
store i32 %95, ptr %2, align 4
br label %96
96: ; preds = %94, %80, %70
%97 = load i32, ptr %2, align 4
ret i32 %97
}
declare i64 @isspace(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/tmp7a6wj5ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myatoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 43, ptr %6, align 4
br label %8
8: ; preds = %20, %1
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %13, %8
%19 = phi i1 [ false, %8 ], [ %17, %13 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %8, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 45
br i1 %27, label %33, label %28
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 43
br i1 %32, label %33, label %38
33: ; preds = %28, %23
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %4, align 8
%36 = load i8, ptr %34, align 1
%37 = sext i8 %36 to i32
br label %39
38: ; preds = %28
br label %39
39: ; preds = %38, %33
%40 = phi i32 [ %37, %33 ], [ 43, %38 ]
store i32 %40, ptr %6, align 4
%41 = load ptr, ptr %4, align 8
%42 = load i8, ptr %41, align 1
%43 = icmp ne i8 %42, 0
br i1 %43, label %.lr.ph, label %87
.lr.ph: ; preds = %39
br label %44
44: ; preds = %.lr.ph, %81
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp slt i32 %47, 48
br i1 %48, label %54, label %49
49: ; preds = %44
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp sgt i32 %52, 57
br i1 %53, label %54, label %55
54: ; preds = %49, %44
br label %88
55: ; preds = %49
%56 = load i32, ptr %5, align 4
%57 = mul nsw i32 %56, 10
%58 = load ptr, ptr %4, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = sub nsw i32 %60, 48
%62 = add nsw i32 %57, %61
store i32 %62, ptr %5, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp eq i32 %63, 43
br i1 %64, label %65, label %71
65: ; preds = %55
%66 = load i32, ptr %5, align 4
%67 = load i32, ptr @INT_MAX, align 4
%68 = icmp sge i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %65
%70 = load i32, ptr @INT_MAX, align 4
store i32 %70, ptr %2, align 4
br label %98
71: ; preds = %65, %55
%72 = load i32, ptr %6, align 4
%73 = icmp eq i32 %72, 45
br i1 %73, label %74, label %81
74: ; preds = %71
%75 = load i32, ptr %5, align 4
%76 = load i32, ptr @INT_MIN, align 4
%77 = sub nsw i32 0, %76
%78 = icmp sge i32 %75, %77
br i1 %78, label %79, label %81
79: ; preds = %74
%80 = load i32, ptr @INT_MIN, align 4
store i32 %80, ptr %2, align 4
br label %98
81: ; preds = %74, %71
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds i8, ptr %82, i32 1
store ptr %83, ptr %4, align 8
%84 = load ptr, ptr %4, align 8
%85 = load i8, ptr %84, align 1
%86 = icmp ne i8 %85, 0
br i1 %86, label %44, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %81
br label %87
87: ; preds = %._crit_edge, %39
br label %88
88: ; preds = %87, %54
%89 = load i32, ptr %6, align 4
%90 = icmp eq i32 %89, 45
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = load i32, ptr %5, align 4
%93 = sub nsw i32 0, %92
br label %96
94: ; preds = %88
%95 = load i32, ptr %5, align 4
br label %96
96: ; preds = %94, %91
%97 = phi i32 [ %93, %91 ], [ %95, %94 ]
store i32 %97, ptr %2, align 4
br label %98
98: ; preds = %96, %79, %69
%99 = load i32, ptr %2, align 4
ret i32 %99
}
declare i64 @isspace(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/tmpx95pij_d.c'
source_filename = "/tmp/tmpx95pij_d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx95pij_d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr5m610zp.c'
source_filename = "/tmp/tmpr5m610zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETLKW = dso_local global i32 0, align 4
@F_WRLCK = dso_local global i32 0, align 4
@SEEK_SET = 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/tmpr5m610zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETLKW = dso_local global i32 0, align 4
@F_WRLCK = dso_local global i32 0, align 4
@SEEK_SET = 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/tmp4f5txl3o.c'
source_filename = "/tmp/tmp4f5txl3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [732 x i8] c"Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\0AWrites to the specified MTD device.\0A\0A -a, --autoplace\09Use auto oob layout\0A -j, --jffs2\09\09force jffs2 oob layout (legacy support)\0A -y, --yaffs\09\09force yaffs oob layout (legacy support)\0A -f, --forcelegacy\09force legacy support on autoplacement enabled mtd device\0A -m, --markbad\09\09mark blocks bad if write fails\0A -n, --noecc\09\09write without ecc\0A -o, --oob\09\09image contains oob data\0A -s addr, --start=addr set start address (default is 0)\0A -p, --pad pad to page size\0A -b, --blockalign=1|2|4 set multiple of eraseblocks to align to\0A -q, --quiet\09\09don't display progress messages\0A --help\09\09display this help and exit\0A --version\09\09output version information and exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4f5txl3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [732 x i8] c"Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\0AWrites to the specified MTD device.\0A\0A -a, --autoplace\09Use auto oob layout\0A -j, --jffs2\09\09force jffs2 oob layout (legacy support)\0A -y, --yaffs\09\09force yaffs oob layout (legacy support)\0A -f, --forcelegacy\09force legacy support on autoplacement enabled mtd device\0A -m, --markbad\09\09mark blocks bad if write fails\0A -n, --noecc\09\09write without ecc\0A -o, --oob\09\09image contains oob data\0A -s addr, --start=addr set start address (default is 0)\0A -p, --pad pad to page size\0A -b, --blockalign=1|2|4 set multiple of eraseblocks to align to\0A -q, --quiet\09\09don't display progress messages\0A --help\09\09display this help and exit\0A --version\09\09output version information and exit\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl0rcee_w.c'
source_filename = "/tmp/tmpl0rcee_w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"</modsCollection>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @modsout_writefooter(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 @fprintf(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fflush(ptr noundef %5)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0rcee_w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"</modsCollection>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @modsout_writefooter(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 @fprintf(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fflush(ptr noundef %5)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef) #1
declare i32 @fflush(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt_tg4jzo.c'
source_filename = "/tmp/tmpt_tg4jzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x i8], align 1
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 4, ptr noundef %5)
%7 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%8 = load i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = shl i32 %9, 24
%11 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = shl i32 %13, 16
%15 = or i32 %10, %14
%16 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = or i32 %15, %19
%21 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = shl i32 %23, 0
%25 = or i32 %20, %24
ret i32 %25
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt_tg4jzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4 x i8], align 1
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fread(ptr noundef %4, i32 noundef 1, i32 noundef 4, ptr noundef %5)
%7 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%8 = load i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = shl i32 %9, 24
%11 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = shl i32 %13, 16
%15 = or i32 %10, %14
%16 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = or i32 %15, %19
%21 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = shl i32 %23, 0
%25 = or i32 %20, %24
ret i32 %25
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwyaefixu.c'
source_filename = "/tmp/tmpwyaefixu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checker3(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 = icmp ne ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %11
7: ; preds = %1
%8 = call i64 @malloc(i32 noundef 4)
%9 = inttoptr i64 %8 to ptr
%10 = load ptr, ptr %2, align 8
store ptr %9, ptr %10, align 8
br label %11
11: ; preds = %6, %7
ret void
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwyaefixu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checker3(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 = icmp ne ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %11
7: ; preds = %1
%8 = call i64 @malloc(i32 noundef 4)
%9 = inttoptr i64 %8 to ptr
%10 = load ptr, ptr %2, align 8
store ptr %9, ptr %10, align 8
br label %11
11: ; preds = %7, %6
ret void
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8qvkm1dq.c'
source_filename = "/tmp/tmp8qvkm1dq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_num_pld(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 %0, ptr %2, align 4
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = load i32, ptr %2, align 4
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 100, ptr noundef @.str, i32 noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @is_pld(ptr noundef %7)
ret i32 %8
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @is_pld(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8qvkm1dq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_num_pld(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [100 x i8], align 16
store i32 %0, ptr %2, align 4
%4 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%5 = load i32, ptr %2, align 4
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 100, ptr noundef @.str, i32 noundef %5)
%7 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @is_pld(ptr noundef %7)
ret i32 %8
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @is_pld(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpawqu4bab.c'
source_filename = "/tmp/tmpawqu4bab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isBalanced(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @newDynArr(i32 noundef 2)
store ptr %6, ptr %5, align 8
br label %7
7: ; preds = %84, %1
%8 = load ptr, ptr %3, align 8
%9 = call signext i8 @nextChar(ptr noundef %8)
store i8 %9, ptr %4, align 1
%10 = load i8, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 123
br i1 %12, label %21, label %13
13: ; preds = %7
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 91
br i1 %16, label %21, label %17
17: ; preds = %13
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 40
br i1 %20, label %21, label %25
21: ; preds = %17, %13, %7
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %4, align 1
%24 = call i32 @pushDynArr(ptr noundef %22, i8 noundef signext %23)
br label %25
25: ; preds = %21, %17
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 125
br i1 %28, label %37, label %29
29: ; preds = %25
%30 = load i8, ptr %4, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 93
br i1 %32, label %37, label %33
33: ; preds = %29
%34 = load i8, ptr %4, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 41
br i1 %36, label %37, label %83
37: ; preds = %33, %29, %25
%38 = load ptr, ptr %5, align 8
%39 = call i64 @sizeDynArr(ptr noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, ptr %2, align 4
br label %94
42: ; preds = %37
%43 = load i8, ptr %4, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 125
br i1 %45, label %46, label %55
46: ; preds = %42
%47 = load ptr, ptr %5, align 8
%48 = call signext i8 @topDynArr(ptr noundef %47)
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 123
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load ptr, ptr %5, align 8
%53 = call i32 @popDynArr(ptr noundef %52)
br label %54
54: ; preds = %51, %46
br label %55
55: ; preds = %54, %42
%56 = load i8, ptr %4, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 93
br i1 %58, label %59, label %68
59: ; preds = %55
%60 = load ptr, ptr %5, align 8
%61 = call signext i8 @topDynArr(ptr noundef %60)
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 91
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load ptr, ptr %5, align 8
%66 = call i32 @popDynArr(ptr noundef %65)
br label %67
67: ; preds = %64, %59
br label %68
68: ; preds = %67, %55
%69 = load i8, ptr %4, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 41
br i1 %71, label %72, label %81
72: ; preds = %68
%73 = load ptr, ptr %5, align 8
%74 = call signext i8 @topDynArr(ptr noundef %73)
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 40
br i1 %76, label %77, label %80
77: ; preds = %72
%78 = load ptr, ptr %5, align 8
%79 = call i32 @popDynArr(ptr noundef %78)
br label %80
80: ; preds = %77, %72
br label %81
81: ; preds = %80, %68
br label %82
82: ; preds = %81
br label %83
83: ; preds = %82, %33
br label %84
84: ; preds = %83
%85 = load i8, ptr %4, align 1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 0
br i1 %87, label %7, label %88, !llvm.loop !6
88: ; preds = %84
%89 = load ptr, ptr %5, align 8
%90 = call i64 @sizeDynArr(ptr noundef %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 1, ptr %2, align 4
br label %94
93: ; preds = %88
store i32 0, ptr %2, align 4
br label %94
94: ; preds = %93, %92, %41
%95 = load i32, ptr %2, align 4
ret i32 %95
}
declare ptr @newDynArr(i32 noundef) #1
declare signext i8 @nextChar(ptr noundef) #1
declare i32 @pushDynArr(ptr noundef, i8 noundef signext) #1
declare i64 @sizeDynArr(ptr noundef) #1
declare signext i8 @topDynArr(ptr noundef) #1
declare i32 @popDynArr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpawqu4bab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isBalanced(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @newDynArr(i32 noundef 2)
store ptr %6, ptr %5, align 8
br label %7
7: ; preds = %84, %1
%8 = load ptr, ptr %3, align 8
%9 = call signext i8 @nextChar(ptr noundef %8)
store i8 %9, ptr %4, align 1
%10 = load i8, ptr %4, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 123
br i1 %12, label %21, label %13
13: ; preds = %7
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 91
br i1 %16, label %21, label %17
17: ; preds = %13
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 40
br i1 %20, label %21, label %25
21: ; preds = %17, %13, %7
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %4, align 1
%24 = call i32 @pushDynArr(ptr noundef %22, i8 noundef signext %23)
br label %25
25: ; preds = %21, %17
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 125
br i1 %28, label %37, label %29
29: ; preds = %25
%30 = load i8, ptr %4, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 93
br i1 %32, label %37, label %33
33: ; preds = %29
%34 = load i8, ptr %4, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 41
br i1 %36, label %37, label %83
37: ; preds = %33, %29, %25
%38 = load ptr, ptr %5, align 8
%39 = call i64 @sizeDynArr(ptr noundef %38)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, ptr %2, align 4
br label %94
42: ; preds = %37
%43 = load i8, ptr %4, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 125
br i1 %45, label %46, label %55
46: ; preds = %42
%47 = load ptr, ptr %5, align 8
%48 = call signext i8 @topDynArr(ptr noundef %47)
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 123
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load ptr, ptr %5, align 8
%53 = call i32 @popDynArr(ptr noundef %52)
br label %54
54: ; preds = %51, %46
br label %55
55: ; preds = %54, %42
%56 = load i8, ptr %4, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 93
br i1 %58, label %59, label %68
59: ; preds = %55
%60 = load ptr, ptr %5, align 8
%61 = call signext i8 @topDynArr(ptr noundef %60)
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 91
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load ptr, ptr %5, align 8
%66 = call i32 @popDynArr(ptr noundef %65)
br label %67
67: ; preds = %64, %59
br label %68
68: ; preds = %67, %55
%69 = load i8, ptr %4, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 41
br i1 %71, label %72, label %81
72: ; preds = %68
%73 = load ptr, ptr %5, align 8
%74 = call signext i8 @topDynArr(ptr noundef %73)
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 40
br i1 %76, label %77, label %80
77: ; preds = %72
%78 = load ptr, ptr %5, align 8
%79 = call i32 @popDynArr(ptr noundef %78)
br label %80
80: ; preds = %77, %72
br label %81
81: ; preds = %80, %68
br label %82
82: ; preds = %81
br label %83
83: ; preds = %82, %33
br label %84
84: ; preds = %83
%85 = load i8, ptr %4, align 1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 0
br i1 %87, label %7, label %88, !llvm.loop !6
88: ; preds = %84
%89 = load ptr, ptr %5, align 8
%90 = call i64 @sizeDynArr(ptr noundef %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 1, ptr %2, align 4
br label %94
93: ; preds = %88
store i32 0, ptr %2, align 4
br label %94
94: ; preds = %93, %92, %41
%95 = load i32, ptr %2, align 4
ret i32 %95
}
declare ptr @newDynArr(i32 noundef) #1
declare signext i8 @nextChar(ptr noundef) #1
declare i32 @pushDynArr(ptr noundef, i8 noundef signext) #1
declare i64 @sizeDynArr(ptr noundef) #1
declare signext i8 @topDynArr(ptr noundef) #1
declare i32 @popDynArr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpp_fxne7t.c'
source_filename = "/tmp/tmpp_fxne7t.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Sys_Minute(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.tm, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
ret i32 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp_fxne7t.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Sys_Minute(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.tm, ptr %3, i32 0, i32 0
%5 = load i32, ptr %4, align 4
ret i32 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5lgllqiy.c'
source_filename = "/tmp/tmp5lgllqiy.c"
target datalayout = "e-m:e-p270: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/tmp5lgllqiy.c"
target datalayout = "e-m:e-p270: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/tmps4cw6ggs.c'
source_filename = "/tmp/tmps4cw6ggs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"op1=\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"op2=\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"op2=%u is not power of 2\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"multiplying\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"op1 * op2 = %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"dividing\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"op1 / op2 = %u\0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"modulo\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"op1 %% op2 = %u\0A\00", align 1
@.str.10 = private unnamed_addr constant [45 x i8] c"binary value of number 2^%u in binary is %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %3, align 4
%9 = call i32 @is_power_of_two(i32 noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
store i32 -1, ptr %1, align 4
br label %37
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @get_power_of_two(i32 noundef %17)
%19 = shl i32 %16, %18
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = call i32 @get_power_of_two(i32 noundef %23)
%25 = lshr i32 %22, %24
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sub i32 %29, 1
%31 = and i32 %28, %30
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %31)
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = call ptr @power_of_two_binary(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %33, ptr noundef %35)
store i32 0, ptr %1, align 4
br label %37
37: ; preds = %14, %11
%38 = load i32, ptr %1, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @is_power_of_two(i32 noundef) #1
declare i32 @get_power_of_two(i32 noundef) #1
declare ptr @power_of_two_binary(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/tmps4cw6ggs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"op1=\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"op2=\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"op2=%u is not power of 2\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"multiplying\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"op1 * op2 = %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"dividing\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"op1 / op2 = %u\0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"modulo\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"op1 %% op2 = %u\0A\00", align 1
@.str.10 = private unnamed_addr constant [45 x i8] c"binary value of number 2^%u in binary is %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load i32, ptr %3, align 4
%9 = call i32 @is_power_of_two(i32 noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %12)
store i32 -1, ptr %1, align 4
br label %37
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @get_power_of_two(i32 noundef %17)
%19 = shl i32 %16, %18
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = call i32 @get_power_of_two(i32 noundef %23)
%25 = lshr i32 %22, %24
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sub i32 %29, 1
%31 = and i32 %28, %30
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %31)
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = call ptr @power_of_two_binary(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %33, ptr noundef %35)
store i32 0, ptr %1, align 4
br label %37
37: ; preds = %14, %11
%38 = load i32, ptr %1, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @is_power_of_two(i32 noundef) #1
declare i32 @get_power_of_two(i32 noundef) #1
declare ptr @power_of_two_binary(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/tmpaonuehf2.c'
source_filename = "/tmp/tmpaonuehf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @average_find(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%9 = load float, ptr %5, align 4
%10 = load float, ptr %6, align 4
%11 = fadd float %9, %10
%12 = load float, ptr %7, align 4
%13 = fadd float %11, %12
%14 = fdiv float %13, 3.000000e+00
store float %14, ptr %8, align 4
%15 = load float, ptr %8, align 4
%16 = call i32 @printf(ptr noundef @.str, float noundef %15)
%17 = load float, ptr %4, align 4
ret float %17
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaonuehf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @average_find(float noundef %0, float noundef %1, float noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
store float %0, ptr %5, align 4
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
%9 = load float, ptr %5, align 4
%10 = load float, ptr %6, align 4
%11 = fadd float %9, %10
%12 = load float, ptr %7, align 4
%13 = fadd float %11, %12
%14 = fdiv float %13, 3.000000e+00
store float %14, ptr %8, align 4
%15 = load float, ptr %8, align 4
%16 = call i32 @printf(ptr noundef @.str, float noundef %15)
%17 = load float, ptr %4, align 4
ret float %17
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph0phikhk.c'
source_filename = "/tmp/tmph0phikhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Reverse of %d is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%17 = load i32, ptr %2, align 4
store i32 %17, ptr %13, align 4
store i32 100, ptr %4, align 4
br label %18
18: ; preds = %21, %0
%19 = load i32, ptr %4, align 4
%20 = icmp sge i32 %19, 1
br i1 %20, label %21, label %29
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %5, align 4
%24 = sdiv i32 %22, %23
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %5, align 4
%26 = mul nsw i32 %25, 10
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %9, align 4
br label %18, !llvm.loop !6
29: ; preds = %18
%30 = load i32, ptr %9, align 4
store i32 %30, ptr %12, align 4
store i32 1, ptr %10, align 4
br label %31
31: ; preds = %53, %29
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %56
35: ; preds = %31
%36 = load i32, ptr %2, align 4
%37 = srem i32 %36, 10
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = sub nsw i32 %38, %39
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = sdiv i32 %41, 10
store i32 %42, ptr %2, align 4
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr %12, align 4
%45 = call double @pow(i32 noundef %43, i32 noundef %44)
store double %45, ptr %14, align 8
%46 = load i32, ptr %11, align 4
%47 = sitofp i32 %46 to double
%48 = load double, ptr %14, align 8
%49 = fadd double %47, %48
%50 = fptosi double %49 to i32
store i32 %50, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = sub nsw i32 %51, 1
store i32 %52, ptr %12, align 4
br label %53
53: ; preds = %35
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
br label %31, !llvm.loop !8
56: ; preds = %31
%57 = load i32, ptr %13, align 4
%58 = load i32, ptr %11, align 4
%59 = call i32 @printf(ptr noundef @.str.1, i32 noundef %57, i32 noundef %58)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph0phikhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Reverse of %d is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%17 = load i32, ptr %2, align 4
store i32 %17, ptr %13, align 4
store i32 100, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sge i32 %18, 1
br i1 %19, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %5, align 4
%23 = sdiv i32 %21, %22
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = mul nsw i32 %24, 10
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %9, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sge i32 %28, 1
br i1 %29, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %30
30: ; preds = %._crit_edge, %0
%31 = load i32, ptr %9, align 4
store i32 %31, ptr %12, align 4
store i32 1, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %.lr.ph2, label %59
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %53
%36 = load i32, ptr %2, align 4
%37 = srem i32 %36, 10
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = sub nsw i32 %38, %39
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = sdiv i32 %41, 10
store i32 %42, ptr %2, align 4
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr %12, align 4
%45 = call double @pow(i32 noundef %43, i32 noundef %44)
store double %45, ptr %14, align 8
%46 = load i32, ptr %11, align 4
%47 = sitofp i32 %46 to double
%48 = load double, ptr %14, align 8
%49 = fadd double %47, %48
%50 = fptosi double %49 to i32
store i32 %50, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = sub nsw i32 %51, 1
store i32 %52, ptr %12, align 4
br label %53
53: ; preds = %35
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %9, align 4
%58 = icmp sle i32 %56, %57
br i1 %58, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %59
59: ; preds = %._crit_edge3, %30
%60 = load i32, ptr %13, align 4
%61 = load i32, ptr %11, align 4
%62 = call i32 @printf(ptr noundef @.str.1, i32 noundef %60, i32 noundef %61)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpuw39ocrh.c'
source_filename = "/tmp/tmpuw39ocrh.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"=== ASSERTION FAILED ===\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"==> %s:%d '%s' is not true\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_serverAssert(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.1, ptr noundef %10, i32 noundef %11, ptr noundef %12)
store i8 120, ptr inttoptr (i64 -1 to ptr), align 1
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/tmpuw39ocrh.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"=== ASSERTION FAILED ===\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"==> %s:%d '%s' is not true\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_serverAssert(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.1, ptr noundef %10, i32 noundef %11, ptr noundef %12)
store i8 120, ptr inttoptr (i64 -1 to ptr), align 1
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/tmpg88zl7nk.c'
source_filename = "/tmp/tmpg88zl7nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_passed_pawns_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @b_passed_pawns(i32 noundef 8192, i32 noundef 0)
%4 = call i32 @assert_int_equal(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @assert_int_equal(i32 noundef, i32 noundef) #1
declare i32 @b_passed_pawns(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/tmpg88zl7nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_passed_pawns_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @b_passed_pawns(i32 noundef 8192, i32 noundef 0)
%4 = call i32 @assert_int_equal(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @assert_int_equal(i32 noundef, i32 noundef) #1
declare i32 @b_passed_pawns(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0qygm2h.c'
source_filename = "/tmp/tmp_0qygm2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gasdev.iset = internal global i32 0, align 4
@gasdev.gset = internal global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gasdev(ptr noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store ptr %0, ptr %3, align 8
%8 = load i32, ptr @gasdev.iset, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %52
10: ; preds = %1
br label %11
11: ; preds = %36, %10
%12 = load ptr, ptr %3, align 8
%13 = call float @ran1(ptr noundef %12)
%14 = fpext float %13 to double
%15 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %14, double -1.000000e+00)
%16 = fptrunc double %15 to float
store float %16, ptr %6, align 4
%17 = load ptr, ptr %3, align 8
%18 = call float @ran1(ptr noundef %17)
%19 = fpext float %18 to double
%20 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %19, double -1.000000e+00)
%21 = fptrunc double %20 to float
store float %21, ptr %7, align 4
%22 = load float, ptr %6, align 4
%23 = load float, ptr %6, align 4
%24 = load float, ptr %7, align 4
%25 = load float, ptr %7, align 4
%26 = fmul float %24, %25
%27 = call float @llvm.fmuladd.f32(float %22, float %23, float %26)
store float %27, ptr %5, align 4
br label %28
28: ; preds = %11
%29 = load float, ptr %5, align 4
%30 = fpext float %29 to double
%31 = fcmp oge double %30, 1.000000e+00
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load float, ptr %5, align 4
%34 = fpext float %33 to double
%35 = fcmp oeq double %34, 0.000000e+00
br label %36
36: ; preds = %32, %28
%37 = phi i1 [ true, %28 ], [ %35, %32 ]
br i1 %37, label %11, label %38, !llvm.loop !6
38: ; preds = %36
%39 = load float, ptr %5, align 4
%40 = call double @log(float noundef %39)
%41 = fmul double -2.000000e+00, %40
%42 = load float, ptr %5, align 4
%43 = fpext float %42 to double
%44 = fdiv double %41, %43
%45 = call float @sqrt(double noundef %44)
store float %45, ptr %4, align 4
%46 = load float, ptr %6, align 4
%47 = load float, ptr %4, align 4
%48 = fmul float %46, %47
store float %48, ptr @gasdev.gset, align 4
store i32 1, ptr @gasdev.iset, align 4
%49 = load float, ptr %7, align 4
%50 = load float, ptr %4, align 4
%51 = fmul float %49, %50
store float %51, ptr %2, align 4
br label %54
52: ; preds = %1
store i32 0, ptr @gasdev.iset, align 4
%53 = load float, ptr @gasdev.gset, align 4
store float %53, ptr %2, align 4
br label %54
54: ; preds = %52, %38
%55 = load float, ptr %2, align 4
ret float %55
}
declare float @ran1(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @sqrt(double noundef) #1
declare double @log(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0qygm2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gasdev.iset = internal global i32 0, align 4
@gasdev.gset = internal global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @gasdev(ptr noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store ptr %0, ptr %3, align 8
%8 = load i32, ptr @gasdev.iset, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %52
10: ; preds = %1
br label %11
11: ; preds = %36, %10
%12 = load ptr, ptr %3, align 8
%13 = call float @ran1(ptr noundef %12)
%14 = fpext float %13 to double
%15 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %14, double -1.000000e+00)
%16 = fptrunc double %15 to float
store float %16, ptr %6, align 4
%17 = load ptr, ptr %3, align 8
%18 = call float @ran1(ptr noundef %17)
%19 = fpext float %18 to double
%20 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %19, double -1.000000e+00)
%21 = fptrunc double %20 to float
store float %21, ptr %7, align 4
%22 = load float, ptr %6, align 4
%23 = load float, ptr %6, align 4
%24 = load float, ptr %7, align 4
%25 = load float, ptr %7, align 4
%26 = fmul float %24, %25
%27 = call float @llvm.fmuladd.f32(float %22, float %23, float %26)
store float %27, ptr %5, align 4
br label %28
28: ; preds = %11
%29 = load float, ptr %5, align 4
%30 = fpext float %29 to double
%31 = fcmp oge double %30, 1.000000e+00
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load float, ptr %5, align 4
%34 = fpext float %33 to double
%35 = fcmp oeq double %34, 0.000000e+00
br label %36
36: ; preds = %32, %28
%37 = phi i1 [ true, %28 ], [ %35, %32 ]
br i1 %37, label %11, label %38, !llvm.loop !6
38: ; preds = %36
%39 = load float, ptr %5, align 4
%40 = call double @log(float noundef %39)
%41 = fmul double -2.000000e+00, %40
%42 = load float, ptr %5, align 4
%43 = fpext float %42 to double
%44 = fdiv double %41, %43
%45 = call float @sqrt(double noundef %44)
store float %45, ptr %4, align 4
%46 = load float, ptr %6, align 4
%47 = load float, ptr %4, align 4
%48 = fmul float %46, %47
store float %48, ptr @gasdev.gset, align 4
store i32 1, ptr @gasdev.iset, align 4
%49 = load float, ptr %7, align 4
%50 = load float, ptr %4, align 4
%51 = fmul float %49, %50
store float %51, ptr %2, align 4
br label %54
52: ; preds = %1
store i32 0, ptr @gasdev.iset, align 4
%53 = load float, ptr @gasdev.gset, align 4
store float %53, ptr %2, align 4
br label %54
54: ; preds = %52, %38
%55 = load float, ptr %2, align 4
ret float %55
}
declare float @ran1(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @sqrt(double noundef) #1
declare double @log(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpadw3qxms.c'
source_filename = "/tmp/tmpadw3qxms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"TRUE\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FALSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_moreequal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @Equalize(ptr noundef %8, ptr noundef %9, ptr noundef %6, ptr noundef %7)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i64 @strcmp(ptr noundef %11, ptr noundef %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
%17 = call i32 @free(ptr noundef %16)
%18 = load ptr, ptr %7, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = call ptr @my_strdup(ptr noundef @.str)
store ptr %20, ptr %3, align 8
br label %27
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load ptr, ptr %7, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = call ptr @my_strdup(ptr noundef @.str.1)
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %21, %15
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @Equalize(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @my_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadw3qxms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"TRUE\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"FALSE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_moreequal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i32 @Equalize(ptr noundef %8, ptr noundef %9, ptr noundef %6, ptr noundef %7)
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i64 @strcmp(ptr noundef %11, ptr noundef %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
%17 = call i32 @free(ptr noundef %16)
%18 = load ptr, ptr %7, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = call ptr @my_strdup(ptr noundef @.str)
store ptr %20, ptr %3, align 8
br label %27
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = load ptr, ptr %7, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = call ptr @my_strdup(ptr noundef @.str.1)
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %21, %15
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @Equalize(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @my_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi5q20b48.c'
source_filename = "/tmp/tmpi5q20b48.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GenPrintInstrNoOperand(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 @GenPrintInstr(i32 noundef %3, i32 noundef 0)
%5 = call i32 (...) @GenPrintNewLine()
ret void
}
declare i32 @GenPrintInstr(i32 noundef, i32 noundef) #1
declare i32 @GenPrintNewLine(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi5q20b48.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GenPrintInstrNoOperand(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 @GenPrintInstr(i32 noundef %3, i32 noundef 0)
%5 = call i32 (...) @GenPrintNewLine()
ret void
}
declare i32 @GenPrintInstr(i32 noundef, i32 noundef) #1
declare i32 @GenPrintNewLine(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbmp3dtu_.c'
source_filename = "/tmp/tmpbmp3dtu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_QUADS = dso_local global i32 0, align 4
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makeSphere(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store double %0, ptr %2, align 8
store float 1.000000e+02, ptr %3, align 4
%6 = load i32, ptr @GL_QUADS, align 4
%7 = call i32 @glBegin(i32 noundef %6)
store float 0.000000e+00, ptr %5, align 4
br label %8
8: ; preds = %224, %1
%9 = load float, ptr %5, align 4
%10 = fcmp olt float %9, 1.000000e+02
br i1 %10, label %11, label %229
11: ; preds = %8
store float 0.000000e+00, ptr %4, align 4
br label %12
12: ; preds = %218, %11
%13 = load float, ptr %4, align 4
%14 = fcmp olt float %13, 1.000000e+02
br i1 %14, label %15, label %223
15: ; preds = %12
%16 = load float, ptr %5, align 4
%17 = fdiv float %16, 3.000000e+02
%18 = call double @sin(float noundef %17)
%19 = fmul double %18, 2.000000e+00
%20 = load i32, ptr @M_PI, align 4
%21 = sitofp i32 %20 to double
%22 = fmul double %19, %21
%23 = fptosi double %22 to i32
%24 = load float, ptr %4, align 4
%25 = fdiv float %24, 1.000000e+01
%26 = fmul float %25, 2.000000e+00
%27 = load i32, ptr @M_PI, align 4
%28 = sitofp i32 %27 to float
%29 = fmul float %26, %28
%30 = call double @sin(float noundef %29)
%31 = call i32 @glColor3f(i32 noundef %23, double noundef 5.000000e-01, double noundef %30)
%32 = load double, ptr %2, align 8
%33 = load float, ptr %5, align 4
%34 = fdiv float %33, 2.000000e+02
%35 = fmul float %34, 2.000000e+00
%36 = load i32, ptr @M_PI, align 4
%37 = sitofp i32 %36 to float
%38 = fmul float %35, %37
%39 = call double @sin(float noundef %38)
%40 = fmul double %32, %39
%41 = load float, ptr %4, align 4
%42 = fdiv float %41, 1.000000e+02
%43 = fmul float %42, 2.000000e+00
%44 = load i32, ptr @M_PI, align 4
%45 = sitofp i32 %44 to float
%46 = fmul float %43, %45
%47 = call double @cos(float noundef %46)
%48 = fmul double %40, %47
%49 = load double, ptr %2, align 8
%50 = load float, ptr %5, align 4
%51 = fdiv float %50, 2.000000e+02
%52 = fmul float %51, 2.000000e+00
%53 = load i32, ptr @M_PI, align 4
%54 = sitofp i32 %53 to float
%55 = fmul float %52, %54
%56 = call double @sin(float noundef %55)
%57 = fmul double %49, %56
%58 = load float, ptr %4, align 4
%59 = fdiv float %58, 1.000000e+02
%60 = fmul float %59, 2.000000e+00
%61 = load i32, ptr @M_PI, align 4
%62 = sitofp i32 %61 to float
%63 = fmul float %60, %62
%64 = call double @sin(float noundef %63)
%65 = fmul double %57, %64
%66 = load double, ptr %2, align 8
%67 = load float, ptr %5, align 4
%68 = fdiv float %67, 2.000000e+02
%69 = fmul float %68, 2.000000e+00
%70 = load i32, ptr @M_PI, align 4
%71 = sitofp i32 %70 to float
%72 = fmul float %69, %71
%73 = call double @cos(float noundef %72)
%74 = fmul double %66, %73
%75 = call i32 @glVertex3f(double noundef %48, double noundef %65, double noundef %74)
%76 = load double, ptr %2, align 8
%77 = load float, ptr %5, align 4
%78 = fdiv float %77, 2.000000e+02
%79 = fmul float %78, 2.000000e+00
%80 = load i32, ptr @M_PI, align 4
%81 = sitofp i32 %80 to float
%82 = fmul float %79, %81
%83 = call double @sin(float noundef %82)
%84 = fmul double %76, %83
%85 = load float, ptr %4, align 4
%86 = fadd float %85, 1.000000e+00
%87 = fdiv float %86, 1.000000e+02
%88 = fmul float %87, 2.000000e+00
%89 = load i32, ptr @M_PI, align 4
%90 = sitofp i32 %89 to float
%91 = fmul float %88, %90
%92 = call double @cos(float noundef %91)
%93 = fmul double %84, %92
%94 = load double, ptr %2, align 8
%95 = load float, ptr %5, align 4
%96 = fdiv float %95, 2.000000e+02
%97 = fmul float %96, 2.000000e+00
%98 = load i32, ptr @M_PI, align 4
%99 = sitofp i32 %98 to float
%100 = fmul float %97, %99
%101 = call double @sin(float noundef %100)
%102 = fmul double %94, %101
%103 = load float, ptr %4, align 4
%104 = fadd float %103, 1.000000e+00
%105 = fdiv float %104, 1.000000e+02
%106 = fmul float %105, 2.000000e+00
%107 = load i32, ptr @M_PI, align 4
%108 = sitofp i32 %107 to float
%109 = fmul float %106, %108
%110 = call double @sin(float noundef %109)
%111 = fmul double %102, %110
%112 = load double, ptr %2, align 8
%113 = load float, ptr %5, align 4
%114 = fdiv float %113, 2.000000e+02
%115 = fmul float %114, 2.000000e+00
%116 = load i32, ptr @M_PI, align 4
%117 = sitofp i32 %116 to float
%118 = fmul float %115, %117
%119 = call double @cos(float noundef %118)
%120 = fmul double %112, %119
%121 = call i32 @glVertex3f(double noundef %93, double noundef %111, double noundef %120)
%122 = load double, ptr %2, align 8
%123 = load float, ptr %5, align 4
%124 = fadd float %123, 1.000000e+00
%125 = fdiv float %124, 2.000000e+02
%126 = fmul float %125, 2.000000e+00
%127 = load i32, ptr @M_PI, align 4
%128 = sitofp i32 %127 to float
%129 = fmul float %126, %128
%130 = call double @sin(float noundef %129)
%131 = fmul double %122, %130
%132 = load float, ptr %4, align 4
%133 = fadd float %132, 1.000000e+00
%134 = fdiv float %133, 1.000000e+02
%135 = fmul float %134, 2.000000e+00
%136 = load i32, ptr @M_PI, align 4
%137 = sitofp i32 %136 to float
%138 = fmul float %135, %137
%139 = call double @cos(float noundef %138)
%140 = fmul double %131, %139
%141 = load double, ptr %2, align 8
%142 = load float, ptr %5, align 4
%143 = fadd float %142, 1.000000e+00
%144 = fdiv float %143, 2.000000e+02
%145 = fmul float %144, 2.000000e+00
%146 = load i32, ptr @M_PI, align 4
%147 = sitofp i32 %146 to float
%148 = fmul float %145, %147
%149 = call double @sin(float noundef %148)
%150 = fmul double %141, %149
%151 = load float, ptr %4, align 4
%152 = fadd float %151, 1.000000e+00
%153 = fdiv float %152, 1.000000e+02
%154 = fmul float %153, 2.000000e+00
%155 = load i32, ptr @M_PI, align 4
%156 = sitofp i32 %155 to float
%157 = fmul float %154, %156
%158 = call double @sin(float noundef %157)
%159 = fmul double %150, %158
%160 = load double, ptr %2, align 8
%161 = load float, ptr %5, align 4
%162 = fadd float %161, 1.000000e+00
%163 = fdiv float %162, 2.000000e+02
%164 = fmul float %163, 2.000000e+00
%165 = load i32, ptr @M_PI, align 4
%166 = sitofp i32 %165 to float
%167 = fmul float %164, %166
%168 = call double @cos(float noundef %167)
%169 = fmul double %160, %168
%170 = call i32 @glVertex3f(double noundef %140, double noundef %159, double noundef %169)
%171 = load double, ptr %2, align 8
%172 = load float, ptr %5, align 4
%173 = fadd float %172, 1.000000e+00
%174 = fdiv float %173, 2.000000e+02
%175 = fmul float %174, 2.000000e+00
%176 = load i32, ptr @M_PI, align 4
%177 = sitofp i32 %176 to float
%178 = fmul float %175, %177
%179 = call double @sin(float noundef %178)
%180 = fmul double %171, %179
%181 = load float, ptr %4, align 4
%182 = fdiv float %181, 1.000000e+02
%183 = fmul float %182, 2.000000e+00
%184 = load i32, ptr @M_PI, align 4
%185 = sitofp i32 %184 to float
%186 = fmul float %183, %185
%187 = call double @cos(float noundef %186)
%188 = fmul double %180, %187
%189 = load double, ptr %2, align 8
%190 = load float, ptr %5, align 4
%191 = fadd float %190, 1.000000e+00
%192 = fdiv float %191, 2.000000e+02
%193 = fmul float %192, 2.000000e+00
%194 = load i32, ptr @M_PI, align 4
%195 = sitofp i32 %194 to float
%196 = fmul float %193, %195
%197 = call double @sin(float noundef %196)
%198 = fmul double %189, %197
%199 = load float, ptr %4, align 4
%200 = fdiv float %199, 1.000000e+02
%201 = fmul float %200, 2.000000e+00
%202 = load i32, ptr @M_PI, align 4
%203 = sitofp i32 %202 to float
%204 = fmul float %201, %203
%205 = call double @sin(float noundef %204)
%206 = fmul double %198, %205
%207 = load double, ptr %2, align 8
%208 = load float, ptr %5, align 4
%209 = fadd float %208, 1.000000e+00
%210 = fdiv float %209, 2.000000e+02
%211 = fmul float %210, 2.000000e+00
%212 = load i32, ptr @M_PI, align 4
%213 = sitofp i32 %212 to float
%214 = fmul float %211, %213
%215 = call double @cos(float noundef %214)
%216 = fmul double %207, %215
%217 = call i32 @glVertex3f(double noundef %188, double noundef %206, double noundef %216)
br label %218
218: ; preds = %15
%219 = load float, ptr %4, align 4
%220 = fpext float %219 to double
%221 = fadd double %220, 1.000000e+00
%222 = fptrunc double %221 to float
store float %222, ptr %4, align 4
br label %12, !llvm.loop !6
223: ; preds = %12
br label %224
224: ; preds = %223
%225 = load float, ptr %5, align 4
%226 = fpext float %225 to double
%227 = fadd double %226, 1.000000e+00
%228 = fptrunc double %227 to float
store float %228, ptr %5, align 4
br label %8, !llvm.loop !8
229: ; preds = %8
%230 = call i32 (...) @glEnd()
ret void
}
declare i32 @glBegin(i32 noundef) #1
declare i32 @glColor3f(i32 noundef, double noundef, double noundef) #1
declare double @sin(float noundef) #1
declare i32 @glVertex3f(double noundef, double noundef, double noundef) #1
declare double @cos(float noundef) #1
declare i32 @glEnd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpbmp3dtu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_QUADS = dso_local global i32 0, align 4
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makeSphere(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store double %0, ptr %2, align 8
store float 1.000000e+02, ptr %3, align 4
%6 = load i32, ptr @GL_QUADS, align 4
%7 = call i32 @glBegin(i32 noundef %6)
store float 0.000000e+00, ptr %5, align 4
%8 = load float, ptr %5, align 4
%9 = fcmp olt float %8, 1.000000e+02
br i1 %9, label %.lr.ph2, label %231
.lr.ph2: ; preds = %1
br label %10
10: ; preds = %.lr.ph2, %224
store float 0.000000e+00, ptr %4, align 4
%11 = load float, ptr %4, align 4
%12 = fcmp olt float %11, 1.000000e+02
br i1 %12, label %.lr.ph, label %223
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %216
%14 = load float, ptr %5, align 4
%15 = fdiv float %14, 3.000000e+02
%16 = call double @sin(float noundef %15)
%17 = fmul double %16, 2.000000e+00
%18 = load i32, ptr @M_PI, align 4
%19 = sitofp i32 %18 to double
%20 = fmul double %17, %19
%21 = fptosi double %20 to i32
%22 = load float, ptr %4, align 4
%23 = fdiv float %22, 1.000000e+01
%24 = fmul float %23, 2.000000e+00
%25 = load i32, ptr @M_PI, align 4
%26 = sitofp i32 %25 to float
%27 = fmul float %24, %26
%28 = call double @sin(float noundef %27)
%29 = call i32 @glColor3f(i32 noundef %21, double noundef 5.000000e-01, double noundef %28)
%30 = load double, ptr %2, align 8
%31 = load float, ptr %5, align 4
%32 = fdiv float %31, 2.000000e+02
%33 = fmul float %32, 2.000000e+00
%34 = load i32, ptr @M_PI, align 4
%35 = sitofp i32 %34 to float
%36 = fmul float %33, %35
%37 = call double @sin(float noundef %36)
%38 = fmul double %30, %37
%39 = load float, ptr %4, align 4
%40 = fdiv float %39, 1.000000e+02
%41 = fmul float %40, 2.000000e+00
%42 = load i32, ptr @M_PI, align 4
%43 = sitofp i32 %42 to float
%44 = fmul float %41, %43
%45 = call double @cos(float noundef %44)
%46 = fmul double %38, %45
%47 = load double, ptr %2, align 8
%48 = load float, ptr %5, align 4
%49 = fdiv float %48, 2.000000e+02
%50 = fmul float %49, 2.000000e+00
%51 = load i32, ptr @M_PI, align 4
%52 = sitofp i32 %51 to float
%53 = fmul float %50, %52
%54 = call double @sin(float noundef %53)
%55 = fmul double %47, %54
%56 = load float, ptr %4, align 4
%57 = fdiv float %56, 1.000000e+02
%58 = fmul float %57, 2.000000e+00
%59 = load i32, ptr @M_PI, align 4
%60 = sitofp i32 %59 to float
%61 = fmul float %58, %60
%62 = call double @sin(float noundef %61)
%63 = fmul double %55, %62
%64 = load double, ptr %2, align 8
%65 = load float, ptr %5, align 4
%66 = fdiv float %65, 2.000000e+02
%67 = fmul float %66, 2.000000e+00
%68 = load i32, ptr @M_PI, align 4
%69 = sitofp i32 %68 to float
%70 = fmul float %67, %69
%71 = call double @cos(float noundef %70)
%72 = fmul double %64, %71
%73 = call i32 @glVertex3f(double noundef %46, double noundef %63, double noundef %72)
%74 = load double, ptr %2, align 8
%75 = load float, ptr %5, align 4
%76 = fdiv float %75, 2.000000e+02
%77 = fmul float %76, 2.000000e+00
%78 = load i32, ptr @M_PI, align 4
%79 = sitofp i32 %78 to float
%80 = fmul float %77, %79
%81 = call double @sin(float noundef %80)
%82 = fmul double %74, %81
%83 = load float, ptr %4, align 4
%84 = fadd float %83, 1.000000e+00
%85 = fdiv float %84, 1.000000e+02
%86 = fmul float %85, 2.000000e+00
%87 = load i32, ptr @M_PI, align 4
%88 = sitofp i32 %87 to float
%89 = fmul float %86, %88
%90 = call double @cos(float noundef %89)
%91 = fmul double %82, %90
%92 = load double, ptr %2, align 8
%93 = load float, ptr %5, align 4
%94 = fdiv float %93, 2.000000e+02
%95 = fmul float %94, 2.000000e+00
%96 = load i32, ptr @M_PI, align 4
%97 = sitofp i32 %96 to float
%98 = fmul float %95, %97
%99 = call double @sin(float noundef %98)
%100 = fmul double %92, %99
%101 = load float, ptr %4, align 4
%102 = fadd float %101, 1.000000e+00
%103 = fdiv float %102, 1.000000e+02
%104 = fmul float %103, 2.000000e+00
%105 = load i32, ptr @M_PI, align 4
%106 = sitofp i32 %105 to float
%107 = fmul float %104, %106
%108 = call double @sin(float noundef %107)
%109 = fmul double %100, %108
%110 = load double, ptr %2, align 8
%111 = load float, ptr %5, align 4
%112 = fdiv float %111, 2.000000e+02
%113 = fmul float %112, 2.000000e+00
%114 = load i32, ptr @M_PI, align 4
%115 = sitofp i32 %114 to float
%116 = fmul float %113, %115
%117 = call double @cos(float noundef %116)
%118 = fmul double %110, %117
%119 = call i32 @glVertex3f(double noundef %91, double noundef %109, double noundef %118)
%120 = load double, ptr %2, align 8
%121 = load float, ptr %5, align 4
%122 = fadd float %121, 1.000000e+00
%123 = fdiv float %122, 2.000000e+02
%124 = fmul float %123, 2.000000e+00
%125 = load i32, ptr @M_PI, align 4
%126 = sitofp i32 %125 to float
%127 = fmul float %124, %126
%128 = call double @sin(float noundef %127)
%129 = fmul double %120, %128
%130 = load float, ptr %4, align 4
%131 = fadd float %130, 1.000000e+00
%132 = fdiv float %131, 1.000000e+02
%133 = fmul float %132, 2.000000e+00
%134 = load i32, ptr @M_PI, align 4
%135 = sitofp i32 %134 to float
%136 = fmul float %133, %135
%137 = call double @cos(float noundef %136)
%138 = fmul double %129, %137
%139 = load double, ptr %2, align 8
%140 = load float, ptr %5, align 4
%141 = fadd float %140, 1.000000e+00
%142 = fdiv float %141, 2.000000e+02
%143 = fmul float %142, 2.000000e+00
%144 = load i32, ptr @M_PI, align 4
%145 = sitofp i32 %144 to float
%146 = fmul float %143, %145
%147 = call double @sin(float noundef %146)
%148 = fmul double %139, %147
%149 = load float, ptr %4, align 4
%150 = fadd float %149, 1.000000e+00
%151 = fdiv float %150, 1.000000e+02
%152 = fmul float %151, 2.000000e+00
%153 = load i32, ptr @M_PI, align 4
%154 = sitofp i32 %153 to float
%155 = fmul float %152, %154
%156 = call double @sin(float noundef %155)
%157 = fmul double %148, %156
%158 = load double, ptr %2, align 8
%159 = load float, ptr %5, align 4
%160 = fadd float %159, 1.000000e+00
%161 = fdiv float %160, 2.000000e+02
%162 = fmul float %161, 2.000000e+00
%163 = load i32, ptr @M_PI, align 4
%164 = sitofp i32 %163 to float
%165 = fmul float %162, %164
%166 = call double @cos(float noundef %165)
%167 = fmul double %158, %166
%168 = call i32 @glVertex3f(double noundef %138, double noundef %157, double noundef %167)
%169 = load double, ptr %2, align 8
%170 = load float, ptr %5, align 4
%171 = fadd float %170, 1.000000e+00
%172 = fdiv float %171, 2.000000e+02
%173 = fmul float %172, 2.000000e+00
%174 = load i32, ptr @M_PI, align 4
%175 = sitofp i32 %174 to float
%176 = fmul float %173, %175
%177 = call double @sin(float noundef %176)
%178 = fmul double %169, %177
%179 = load float, ptr %4, align 4
%180 = fdiv float %179, 1.000000e+02
%181 = fmul float %180, 2.000000e+00
%182 = load i32, ptr @M_PI, align 4
%183 = sitofp i32 %182 to float
%184 = fmul float %181, %183
%185 = call double @cos(float noundef %184)
%186 = fmul double %178, %185
%187 = load double, ptr %2, align 8
%188 = load float, ptr %5, align 4
%189 = fadd float %188, 1.000000e+00
%190 = fdiv float %189, 2.000000e+02
%191 = fmul float %190, 2.000000e+00
%192 = load i32, ptr @M_PI, align 4
%193 = sitofp i32 %192 to float
%194 = fmul float %191, %193
%195 = call double @sin(float noundef %194)
%196 = fmul double %187, %195
%197 = load float, ptr %4, align 4
%198 = fdiv float %197, 1.000000e+02
%199 = fmul float %198, 2.000000e+00
%200 = load i32, ptr @M_PI, align 4
%201 = sitofp i32 %200 to float
%202 = fmul float %199, %201
%203 = call double @sin(float noundef %202)
%204 = fmul double %196, %203
%205 = load double, ptr %2, align 8
%206 = load float, ptr %5, align 4
%207 = fadd float %206, 1.000000e+00
%208 = fdiv float %207, 2.000000e+02
%209 = fmul float %208, 2.000000e+00
%210 = load i32, ptr @M_PI, align 4
%211 = sitofp i32 %210 to float
%212 = fmul float %209, %211
%213 = call double @cos(float noundef %212)
%214 = fmul double %205, %213
%215 = call i32 @glVertex3f(double noundef %186, double noundef %204, double noundef %214)
br label %216
216: ; preds = %13
%217 = load float, ptr %4, align 4
%218 = fpext float %217 to double
%219 = fadd double %218, 1.000000e+00
%220 = fptrunc double %219 to float
store float %220, ptr %4, align 4
%221 = load float, ptr %4, align 4
%222 = fcmp olt float %221, 1.000000e+02
br i1 %222, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %216
br label %223
223: ; preds = %._crit_edge, %10
br label %224
224: ; preds = %223
%225 = load float, ptr %5, align 4
%226 = fpext float %225 to double
%227 = fadd double %226, 1.000000e+00
%228 = fptrunc double %227 to float
store float %228, ptr %5, align 4
%229 = load float, ptr %5, align 4
%230 = fcmp olt float %229, 1.000000e+02
br i1 %230, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %224
br label %231
231: ; preds = %._crit_edge3, %1
%232 = call i32 (...) @glEnd()
ret void
}
declare i32 @glBegin(i32 noundef) #1
declare i32 @glColor3f(i32 noundef, double noundef, double noundef) #1
declare double @sin(float noundef) #1
declare i32 @glVertex3f(double noundef, double noundef, double noundef) #1
declare double @cos(float noundef) #1
declare i32 @glEnd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpd1zf96s5.c'
source_filename = "/tmp/tmpd1zf96s5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @GPIO4_Combined_16_31_IRQHandler() #0 {
%1 = call i32 (...) @GPIO4_Combined_16_31_DriverIRQHandler()
ret void
}
declare i32 @GPIO4_Combined_16_31_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd1zf96s5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @GPIO4_Combined_16_31_IRQHandler() #0 {
%1 = call i32 (...) @GPIO4_Combined_16_31_DriverIRQHandler()
ret void
}
declare i32 @GPIO4_Combined_16_31_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeye6kvwm.c'
source_filename = "/tmp/tmpeye6kvwm.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Invalid unit for forecast time: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_factor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
switch i32 %4, label %13 [
i32 0, label %5
i32 1, label %6
i32 2, label %7
i32 10, label %8
i32 11, label %9
i32 12, label %10
i32 50, label %11
i32 254, label %12
]
5: ; preds = %1
store i32 60, ptr %3, align 4
br label %17
6: ; preds = %1
store i32 3600, ptr %3, align 4
br label %17
7: ; preds = %1
store i32 86400, ptr %3, align 4
br label %17
8: ; preds = %1
store i32 10800, ptr %3, align 4
br label %17
9: ; preds = %1
store i32 10800, ptr %3, align 4
br label %17
10: ; preds = %1
store i32 43200, ptr %3, align 4
br label %17
11: ; preds = %1
store i32 300, ptr %3, align 4
br label %17
12: ; preds = %1
store i32 1, ptr %3, align 4
br label %17
13: ; preds = %1
%14 = load i32, ptr @stderr, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %15)
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %13, %12, %11, %10, %9, %8, %7, %6, %5
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeye6kvwm.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Invalid unit for forecast time: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_factor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
switch i32 %4, label %13 [
i32 0, label %5
i32 1, label %6
i32 2, label %7
i32 10, label %8
i32 11, label %9
i32 12, label %10
i32 50, label %11
i32 254, label %12
]
5: ; preds = %1
store i32 60, ptr %3, align 4
br label %17
6: ; preds = %1
store i32 3600, ptr %3, align 4
br label %17
7: ; preds = %1
store i32 86400, ptr %3, align 4
br label %17
8: ; preds = %1
store i32 10800, ptr %3, align 4
br label %17
9: ; preds = %1
store i32 10800, ptr %3, align 4
br label %17
10: ; preds = %1
store i32 43200, ptr %3, align 4
br label %17
11: ; preds = %1
store i32 300, ptr %3, align 4
br label %17
12: ; preds = %1
store i32 1, ptr %3, align 4
br label %17
13: ; preds = %1
%14 = load i32, ptr @stderr, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %15)
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %13, %12, %11, %10, %9, %8, %7, %6, %5
%18 = load i32, ptr %3, align 4
ret i32 %18
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt56vpcpm.c'
source_filename = "/tmp/tmpt56vpcpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inode_from_host(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @inode_toggle_endianness(i32 noundef 0, i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @inode_toggle_endianness(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt56vpcpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inode_from_host(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @inode_toggle_endianness(i32 noundef 0, i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @inode_toggle_endianness(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbiybru_4.c'
source_filename = "/tmp/tmpbiybru_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Matrix %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%8s\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_path_matrix(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %50, %3
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %53
15: ; preds = %11
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %45, %15
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %48
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = mul nsw i32 %22, %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %21, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %42
31: ; preds = %20
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %5, align 4
%35 = mul nsw i32 %33, %34
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %35, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %32, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %40)
br label %44
42: ; preds = %20
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2)
br label %44
44: ; preds = %42, %31
br label %45
45: ; preds = %44
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
br label %16, !llvm.loop !6
48: ; preds = %16
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %50
50: ; preds = %48
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %11, !llvm.loop !8
53: ; preds = %11
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/tmpbiybru_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Matrix %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%8s\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_path_matrix(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph2, label %57
.lr.ph2: ; preds = %3
br label %14
14: ; preds = %.lr.ph2, %51
store i32 0, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %49
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %43
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %19, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %40
29: ; preds = %18
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %5, align 4
%33 = mul nsw i32 %31, %32
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %30, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %38)
br label %42
40: ; preds = %18
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2)
br label %42
42: ; preds = %40, %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %5, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %14
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %51
51: ; preds = %49
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %57
57: ; preds = %._crit_edge3, %3
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/tmp5ffe1zcl.c'
source_filename = "/tmp/tmp5ffe1zcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CTxFIFOFlush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 3844
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = or i32 %7, 16384
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ffe1zcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CTxFIFOFlush(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 3844
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = or i32 %7, 16384
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpojfcp9i7.c'
source_filename = "/tmp/tmpojfcp9i7.c"
target datalayout = "e-m:e-p270: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/tmpojfcp9i7.c"
target datalayout = "e-m:e-p270: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/tmpsp585hwy.c'
source_filename = "/tmp/tmpsp585hwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%08x%08x%08x%08x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @CRC(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %4
br label %21
19: ; preds = %4
%20 = load i32, ptr %6, align 4
br label %21
21: ; preds = %19, %18
%22 = phi i32 [ 0, %18 ], [ %20, %19 ]
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %15, i64 %23
store ptr %24, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 -2128831035, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %25
25: ; preds = %29, %21
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %9, align 8
%28 = icmp ne ptr %26, %27
br i1 %28, label %29, label %68
29: ; preds = %25
%30 = load i32, ptr %10, align 4
%31 = mul i32 %30, 33
%32 = load ptr, ptr %5, align 8
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = add i32 %31, %34
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %11, align 4
%37 = mul i32 %36, 16777619
%38 = load ptr, ptr %5, align 8
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = xor i32 %37, %40
store i32 %41, ptr %11, align 4
%42 = load ptr, ptr %5, align 8
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = load i32, ptr %12, align 4
%46 = add i32 %45, %44
store i32 %46, ptr %12, align 4
%47 = load i32, ptr %12, align 4
%48 = shl i32 %47, 10
%49 = load i32, ptr %12, align 4
%50 = add i32 %49, %48
store i32 %50, ptr %12, align 4
%51 = load i32, ptr %12, align 4
%52 = lshr i32 %51, 6
%53 = load i32, ptr %12, align 4
%54 = xor i32 %53, %52
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %13, align 4
%56 = shl i32 %55, 5
%57 = load i32, ptr %13, align 4
%58 = lshr i32 %57, 2
%59 = add i32 %56, %58
%60 = load ptr, ptr %5, align 8
%61 = load i8, ptr %60, align 1
%62 = zext i8 %61 to i32
%63 = add i32 %59, %62
%64 = load i32, ptr %13, align 4
%65 = xor i32 %64, %63
store i32 %65, ptr %13, align 4
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %5, align 8
br label %25, !llvm.loop !6
68: ; preds = %25
%69 = load i32, ptr %12, align 4
%70 = shl i32 %69, 3
%71 = load i32, ptr %12, align 4
%72 = add i32 %71, %70
store i32 %72, ptr %12, align 4
%73 = load i32, ptr %12, align 4
%74 = lshr i32 %73, 11
%75 = load i32, ptr %12, align 4
%76 = xor i32 %75, %74
store i32 %76, ptr %12, align 4
%77 = load i32, ptr %12, align 4
%78 = shl i32 %77, 15
%79 = load i32, ptr %12, align 4
%80 = add i32 %79, %78
store i32 %80, ptr %12, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp sgt i32 %81, 0
br i1 %82, label %83, label %97
83: ; preds = %68
store ptr @.str, ptr %14, align 8
store ptr @.str.1, ptr %14, align 8
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %8, align 4
%86 = load ptr, ptr %14, align 8
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %11, align 4
%89 = load i32, ptr %12, align 4
%90 = load i32, ptr %13, align 4
%91 = call i32 @snprintf(ptr noundef %84, i32 noundef %85, ptr noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90)
%92 = load ptr, ptr %7, align 8
%93 = load i32, ptr %8, align 4
%94 = sub nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %92, i64 %95
store i8 0, ptr %96, align 1
br label %97
97: ; preds = %83, %68
%98 = load ptr, ptr %7, align 8
ret ptr %98
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsp585hwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%08x%08x%08x%08x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @CRC(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %4
br label %21
19: ; preds = %4
%20 = load i32, ptr %6, align 4
br label %21
21: ; preds = %19, %18
%22 = phi i32 [ 0, %18 ], [ %20, %19 ]
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %15, i64 %23
store ptr %24, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 -2128831035, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %9, align 8
%27 = icmp ne ptr %25, %26
br i1 %27, label %.lr.ph, label %70
.lr.ph: ; preds = %21
br label %28
28: ; preds = %.lr.ph, %28
%29 = load i32, ptr %10, align 4
%30 = mul i32 %29, 33
%31 = load ptr, ptr %5, align 8
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = add i32 %30, %33
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %11, align 4
%36 = mul i32 %35, 16777619
%37 = load ptr, ptr %5, align 8
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = xor i32 %36, %39
store i32 %40, ptr %11, align 4
%41 = load ptr, ptr %5, align 8
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = load i32, ptr %12, align 4
%45 = add i32 %44, %43
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %12, align 4
%47 = shl i32 %46, 10
%48 = load i32, ptr %12, align 4
%49 = add i32 %48, %47
store i32 %49, ptr %12, align 4
%50 = load i32, ptr %12, align 4
%51 = lshr i32 %50, 6
%52 = load i32, ptr %12, align 4
%53 = xor i32 %52, %51
store i32 %53, ptr %12, align 4
%54 = load i32, ptr %13, align 4
%55 = shl i32 %54, 5
%56 = load i32, ptr %13, align 4
%57 = lshr i32 %56, 2
%58 = add i32 %55, %57
%59 = load ptr, ptr %5, align 8
%60 = load i8, ptr %59, align 1
%61 = zext i8 %60 to i32
%62 = add i32 %58, %61
%63 = load i32, ptr %13, align 4
%64 = xor i32 %63, %62
store i32 %64, ptr %13, align 4
%65 = load ptr, ptr %5, align 8
%66 = getelementptr inbounds i8, ptr %65, i32 1
store ptr %66, ptr %5, align 8
%67 = load ptr, ptr %5, align 8
%68 = load ptr, ptr %9, align 8
%69 = icmp ne ptr %67, %68
br i1 %69, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %70
70: ; preds = %._crit_edge, %21
%71 = load i32, ptr %12, align 4
%72 = shl i32 %71, 3
%73 = load i32, ptr %12, align 4
%74 = add i32 %73, %72
store i32 %74, ptr %12, align 4
%75 = load i32, ptr %12, align 4
%76 = lshr i32 %75, 11
%77 = load i32, ptr %12, align 4
%78 = xor i32 %77, %76
store i32 %78, ptr %12, align 4
%79 = load i32, ptr %12, align 4
%80 = shl i32 %79, 15
%81 = load i32, ptr %12, align 4
%82 = add i32 %81, %80
store i32 %82, ptr %12, align 4
%83 = load i32, ptr %8, align 4
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %99
85: ; preds = %70
store ptr @.str, ptr %14, align 8
store ptr @.str.1, ptr %14, align 8
%86 = load ptr, ptr %7, align 8
%87 = load i32, ptr %8, align 4
%88 = load ptr, ptr %14, align 8
%89 = load i32, ptr %10, align 4
%90 = load i32, ptr %11, align 4
%91 = load i32, ptr %12, align 4
%92 = load i32, ptr %13, align 4
%93 = call i32 @snprintf(ptr noundef %86, i32 noundef %87, ptr noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91, i32 noundef %92)
%94 = load ptr, ptr %7, align 8
%95 = load i32, ptr %8, align 4
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %94, i64 %97
store i8 0, ptr %98, align 1
br label %99
99: ; preds = %85, %70
%100 = load ptr, ptr %7, align 8
ret ptr %100
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfd12coup.c'
source_filename = "/tmp/tmpfd12coup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"\0Arealloc failed: %s\0A\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_Realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr @errno, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i64, ptr %4, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr @errno, align 8
%17 = call ptr @strerror(i64 noundef %16)
%18 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #5
unreachable
21: ; preds = %11, %2
%22 = load ptr, ptr %5, align 8
ret ptr %22
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(i64 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { allocsize(1) }
attributes #5 = { 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/tmpfd12coup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"\0Arealloc failed: %s\0A\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @util_Realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr @errno, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i64, ptr %4, align 8
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, ptr @stderr, align 4
%16 = load i64, ptr @errno, align 8
%17 = call ptr @strerror(i64 noundef %16)
%18 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %17)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #5
unreachable
21: ; preds = %11, %2
%22 = load ptr, ptr %5, align 8
ret ptr %22
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
declare ptr @strerror(i64 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { allocsize(1) }
attributes #5 = { 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/tmp1u89e0r9.c'
source_filename = "/tmp/tmp1u89e0r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VIM_JPEG_ToolYuv2Rgb(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 = call zeroext i16 @VIM_JPEG_ToolYuv2R(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i16, ptr %7, i64 2
store i16 %6, ptr %8, align 2
%9 = load ptr, ptr %3, align 8
%10 = call zeroext i16 @VIM_JPEG_ToolYuv2G(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i16, ptr %11, i64 1
store i16 %10, ptr %12, align 2
%13 = load ptr, ptr %3, align 8
%14 = call zeroext i16 @VIM_JPEG_ToolYuv2B(ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i16, ptr %15, i64 0
store i16 %14, ptr %16, align 2
ret void
}
declare zeroext i16 @VIM_JPEG_ToolYuv2R(ptr noundef) #1
declare zeroext i16 @VIM_JPEG_ToolYuv2G(ptr noundef) #1
declare zeroext i16 @VIM_JPEG_ToolYuv2B(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1u89e0r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VIM_JPEG_ToolYuv2Rgb(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 = call zeroext i16 @VIM_JPEG_ToolYuv2R(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds i16, ptr %7, i64 2
store i16 %6, ptr %8, align 2
%9 = load ptr, ptr %3, align 8
%10 = call zeroext i16 @VIM_JPEG_ToolYuv2G(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i16, ptr %11, i64 1
store i16 %10, ptr %12, align 2
%13 = load ptr, ptr %3, align 8
%14 = call zeroext i16 @VIM_JPEG_ToolYuv2B(ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds i16, ptr %15, i64 0
store i16 %14, ptr %16, align 2
ret void
}
declare zeroext i16 @VIM_JPEG_ToolYuv2R(ptr noundef) #1
declare zeroext i16 @VIM_JPEG_ToolYuv2G(ptr noundef) #1
declare zeroext i16 @VIM_JPEG_ToolYuv2B(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvx70bzko.c'
source_filename = "/tmp/tmpvx70bzko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bin/DMG_ROM.bin\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"bin/DMG_ROM.mif\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %10, ptr %6, align 8
%11 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call zeroext i8 @fgetc(ptr noundef %12)
store i8 %13, ptr %8, align 1
br label %14
14: ; preds = %38, %2
%15 = load ptr, ptr %6, align 8
%16 = call i32 @feof(ptr noundef %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %43
19: ; preds = %14
store i32 7, ptr %9, align 4
br label %20
20: ; preds = %35, %19
%21 = load i32, ptr %9, align 4
%22 = icmp sge i32 %21, 0
br i1 %22, label %23, label %38
23: ; preds = %20
%24 = load i8, ptr %8, align 1
%25 = zext i8 %24 to i32
%26 = load i32, ptr %9, align 4
%27 = ashr i32 %25, %26
%28 = and i32 %27, 1
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 49, i32 48
%32 = trunc i32 %31 to i8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @fputc(i8 noundef signext %32, ptr noundef %33)
br label %35
35: ; preds = %23
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %9, align 4
br label %20, !llvm.loop !6
38: ; preds = %20
%39 = load ptr, ptr %7, align 8
%40 = call i32 @fputc(i8 noundef signext 10, ptr noundef %39)
%41 = load ptr, ptr %6, align 8
%42 = call zeroext i8 @fgetc(ptr noundef %41)
store i8 %42, ptr %8, align 1
br label %14, !llvm.loop !8
43: ; preds = %14
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvx70bzko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bin/DMG_ROM.bin\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"bin/DMG_ROM.mif\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %10, ptr %6, align 8
%11 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = call zeroext i8 @fgetc(ptr noundef %12)
store i8 %13, ptr %8, align 1
%14 = load ptr, ptr %6, align 8
%15 = call i32 @feof(ptr noundef %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %.lr.ph2, label %47
.lr.ph2: ; preds = %2
br label %18
18: ; preds = %.lr.ph2, %38
store i32 7, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp sge i32 %19, 0
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %33
%22 = load i8, ptr %8, align 1
%23 = zext i8 %22 to i32
%24 = load i32, ptr %9, align 4
%25 = ashr i32 %23, %24
%26 = and i32 %25, 1
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 49, i32 48
%30 = trunc i32 %29 to i8
%31 = load ptr, ptr %7, align 8
%32 = call i32 @fputc(i8 noundef signext %30, ptr noundef %31)
br label %33
33: ; preds = %21
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %18
%39 = load ptr, ptr %7, align 8
%40 = call i32 @fputc(i8 noundef signext 10, ptr noundef %39)
%41 = load ptr, ptr %6, align 8
%42 = call zeroext i8 @fgetc(ptr noundef %41)
store i8 %42, ptr %8, align 1
%43 = load ptr, ptr %6, align 8
%44 = call i32 @feof(ptr noundef %43)
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
br i1 %46, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %47
47: ; preds = %._crit_edge3, %2
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppzc91qbs.c'
source_filename = "/tmp/tmppzc91qbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0AUsage: ./forkJoin2 [numThreads]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @processCommandLine(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i64 @strtoul(ptr noundef %11, i32 noundef 0, i32 noundef 10)
store i64 %12, ptr %3, align 8
br label %21
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %13
store i64 1, ptr %3, align 8
br label %21
17: ; preds = %13
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %16, %8
%22 = load i64, ptr %3, align 8
ret i64 %22
}
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppzc91qbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0AUsage: ./forkJoin2 [numThreads]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @processCommandLine(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
%12 = call i64 @strtoul(ptr noundef %11, i32 noundef 0, i32 noundef 10)
store i64 %12, ptr %3, align 8
br label %21
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %13
store i64 1, ptr %3, align 8
br label %21
17: ; preds = %13
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %16, %8
%22 = load i64, ptr %3, align 8
ret i64 %22
}
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwg2xe2ah.c'
source_filename = "/tmp/tmpwg2xe2ah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Digite a nota do aluno %d, na prova %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"\0AM\C3\A9dia do aluno %d: %.2f\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0AAluno %d APROVADO!!!\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"\0AAluno %d REPROVADO!!!\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"\0AO total de alunos aprovados foi: %d, e de reprovados foi: %d.\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [40 x [4 x float]], align 16
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %65, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 40
br i1 %11, label %12, label %68
12: ; preds = %9
store float 0.000000e+00, ptr %8, align 4
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %38, %12
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 4
br i1 %15, label %16, label %41
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
%21 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %18, i32 noundef %20)
%22 = load i32, ptr %2, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [40 x [4 x float]], ptr %6, i64 0, i64 %23
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [4 x float], ptr %24, i64 0, i64 %26
%28 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %27)
%29 = load float, ptr %8, align 4
%30 = load i32, ptr %2, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [40 x [4 x float]], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4 x float], ptr %32, i64 0, i64 %34
%36 = load float, ptr %35, align 4
%37 = fadd float %29, %36
store float %37, ptr %8, align 4
br label %38
38: ; preds = %16
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %13, !llvm.loop !6
41: ; preds = %13
%42 = load float, ptr %8, align 4
%43 = fdiv float %42, 4.000000e+00
store float %43, ptr %7, align 4
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, 1
%46 = load float, ptr %7, align 4
%47 = fpext float %46 to double
%48 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %45, double noundef %47)
%49 = load float, ptr %7, align 4
%50 = fpext float %49 to double
%51 = fcmp oge double %50, 6.000000e+00
br i1 %51, label %52, label %58
52: ; preds = %41
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, 1
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
br label %64
58: ; preds = %41
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %59, 1
%61 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %60)
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
br label %64
64: ; preds = %58, %52
br label %65
65: ; preds = %64
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %2, align 4
br label %9, !llvm.loop !8
68: ; preds = %9
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %5, align 4
%71 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %69, i32 noundef %70)
%72 = call i32 @system(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwg2xe2ah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Digite a nota do aluno %d, na prova %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"\0AM\C3\A9dia do aluno %d: %.2f\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0AAluno %d APROVADO!!!\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"\0AAluno %d REPROVADO!!!\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [65 x i8] c"\0AO total de alunos aprovados foi: %d, e de reprovados foi: %d.\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [40 x [4 x float]], align 16
%7 = alloca float, align 4
%8 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 40
br i1 %10, label %.lr.ph2, label %70
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %65
store float 0.000000e+00, ptr %8, align 4
store i32 0, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %.lr.ph, label %41
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %36
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %16, i32 noundef %18)
%20 = load i32, ptr %2, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [40 x [4 x float]], ptr %6, i64 0, i64 %21
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 %24
%26 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %25)
%27 = load float, ptr %8, align 4
%28 = load i32, ptr %2, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [40 x [4 x float]], ptr %6, i64 0, i64 %29
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [4 x float], ptr %30, i64 0, i64 %32
%34 = load float, ptr %33, align 4
%35 = fadd float %27, %34
store float %35, ptr %8, align 4
br label %36
36: ; preds = %14
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp slt i32 %39, 4
br i1 %40, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %11
%42 = load float, ptr %8, align 4
%43 = fdiv float %42, 4.000000e+00
store float %43, ptr %7, align 4
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, 1
%46 = load float, ptr %7, align 4
%47 = fpext float %46 to double
%48 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %45, double noundef %47)
%49 = load float, ptr %7, align 4
%50 = fpext float %49 to double
%51 = fcmp oge double %50, 6.000000e+00
br i1 %51, label %52, label %58
52: ; preds = %41
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, 1
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
br label %64
58: ; preds = %41
%59 = load i32, ptr %2, align 4
%60 = add nsw i32 %59, 1
%61 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %60)
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
br label %64
64: ; preds = %58, %52
br label %65
65: ; preds = %64
%66 = load i32, ptr %2, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %2, align 4
%68 = load i32, ptr %2, align 4
%69 = icmp slt i32 %68, 40
br i1 %69, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %70
70: ; preds = %._crit_edge3, %0
%71 = load i32, ptr %4, align 4
%72 = load i32, ptr %5, align 4
%73 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %71, i32 noundef %72)
%74 = call i32 @system(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppkbdyqj1.c'
source_filename = "/tmp/tmppkbdyqj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"name\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"type\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @kv_attr(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 = call i32 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp ne i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %12, %4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @kv_end(ptr noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %8, align 8
%21 = call i32 @kv_start(ptr noundef %19, ptr noundef %20, ptr noundef null)
br label %31
22: ; preds = %12
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @kv_start(ptr noundef %23, ptr noundef %24, ptr noundef null)
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i32 @kv_data(ptr noundef %26, ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = call i32 @kv_end(ptr noundef %29)
br label %31
31: ; preds = %22, %16
ret void
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @kv_end(ptr noundef) #1
declare i32 @kv_start(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @kv_data(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/tmppkbdyqj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"name\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"type\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @kv_attr(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 = call i32 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp ne i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %12, %4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @kv_end(ptr noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %8, align 8
%21 = call i32 @kv_start(ptr noundef %19, ptr noundef %20, ptr noundef null)
br label %31
22: ; preds = %12
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @kv_start(ptr noundef %23, ptr noundef %24, ptr noundef null)
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i32 @kv_data(ptr noundef %26, ptr noundef %27)
%29 = load ptr, ptr %5, align 8
%30 = call i32 @kv_end(ptr noundef %29)
br label %31
31: ; preds = %22, %16
ret void
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @kv_end(ptr noundef) #1
declare i32 @kv_start(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @kv_data(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/tmpl4hqqlzi.c'
source_filename = "/tmp/tmpl4hqqlzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @str_len_05(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
br label %8
8: ; preds = %24, %1
%9 = load ptr, ptr %5, align 8
%10 = ptrtoint ptr %9 to i64
%11 = and i64 %10, 7
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %27
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = load i8, ptr %14, align 1
%16 = icmp ne i8 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = ptrtoint ptr %18 to i64
%21 = ptrtoint ptr %19 to i64
%22 = sub i64 %20, %21
store i64 %22, ptr %2, align 8
br label %74
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %5, align 8
br label %8, !llvm.loop !6
27: ; preds = %8
%28 = load ptr, ptr %5, align 8
%29 = load ptr, ptr %3, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, %32
store i64 %34, ptr %4, align 8
%35 = load ptr, ptr %5, align 8
store ptr %35, ptr %6, align 8
br label %36
36: ; preds = %69, %27
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %37, align 4
%39 = and i32 %38, 255
%40 = icmp ne i32 %39, 0
br i1 %40, label %42, label %41
41: ; preds = %36
br label %72
42: ; preds = %36
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %43, align 4
%45 = and i32 %44, 65280
%46 = icmp ne i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %42
%48 = load i64, ptr %4, align 8
%49 = add i64 %48, 1
store i64 %49, ptr %4, align 8
br label %72
50: ; preds = %42
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %51, align 4
%53 = and i32 %52, 16711680
%54 = icmp ne i32 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %50
%56 = load i64, ptr %4, align 8
%57 = add i64 %56, 2
store i64 %57, ptr %4, align 8
br label %72
58: ; preds = %50
%59 = load ptr, ptr %6, align 8
%60 = load i32, ptr %59, align 4
%61 = and i32 %60, -16777216
%62 = icmp ne i32 %61, 0
br i1 %62, label %66, label %63
63: ; preds = %58
%64 = load i64, ptr %4, align 8
%65 = add i64 %64, 3
store i64 %65, ptr %4, align 8
br label %72
66: ; preds = %58
%67 = load i64, ptr %4, align 8
%68 = add i64 %67, 4
store i64 %68, ptr %4, align 8
br label %69
69: ; preds = %66
%70 = load ptr, ptr %6, align 8
%71 = getelementptr inbounds i32, ptr %70, i32 1
store ptr %71, ptr %6, align 8
br label %36
72: ; preds = %63, %55, %47, %41
%73 = load i64, ptr %4, align 8
store i64 %73, ptr %2, align 8
br label %74
74: ; preds = %72, %17
%75 = load i64, ptr %2, align 8
ret i64 %75
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpl4hqqlzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @str_len_05(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = ptrtoint ptr %8 to i64
%10 = and i64 %9, 7
%11 = icmp ne i64 %10, 0
br i1 %11, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
%19 = ptrtoint ptr %17 to i64
%20 = ptrtoint ptr %18 to i64
%21 = sub i64 %19, %20
store i64 %21, ptr %2, align 8
br label %80
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
%26 = load ptr, ptr %5, align 8
%27 = ptrtoint ptr %26 to i64
%28 = and i64 %27, 7
%29 = icmp ne i64 %28, 0
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %30
30: ; preds = %._crit_edge, %1
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %3, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = load i64, ptr %4, align 8
%37 = add i64 %36, %35
store i64 %37, ptr %4, align 8
%38 = load ptr, ptr %5, align 8
store ptr %38, ptr %6, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %39, align 4
%41 = and i32 %40, 255
%42 = icmp ne i32 %41, 0
br i1 %42, label %.lr.ph2, label %43
.lr.ph2: ; preds = %30
br label %44
._crit_edge3: ; preds = %71
br label %43
43: ; preds = %._crit_edge3, %30
br label %78
44: ; preds = %.lr.ph2, %71
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %45, align 4
%47 = and i32 %46, 65280
%48 = icmp ne i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %44
%50 = load i64, ptr %4, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %4, align 8
br label %78
52: ; preds = %44
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %53, align 4
%55 = and i32 %54, 16711680
%56 = icmp ne i32 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %52
%58 = load i64, ptr %4, align 8
%59 = add i64 %58, 2
store i64 %59, ptr %4, align 8
br label %78
60: ; preds = %52
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %61, align 4
%63 = and i32 %62, -16777216
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %60
%66 = load i64, ptr %4, align 8
%67 = add i64 %66, 3
store i64 %67, ptr %4, align 8
br label %78
68: ; preds = %60
%69 = load i64, ptr %4, align 8
%70 = add i64 %69, 4
store i64 %70, ptr %4, align 8
br label %71
71: ; preds = %68
%72 = load ptr, ptr %6, align 8
%73 = getelementptr inbounds i32, ptr %72, i32 1
store ptr %73, ptr %6, align 8
%74 = load ptr, ptr %6, align 8
%75 = load i32, ptr %74, align 4
%76 = and i32 %75, 255
%77 = icmp ne i32 %76, 0
br i1 %77, label %44, label %._crit_edge3
78: ; preds = %65, %57, %49, %43
%79 = load i64, ptr %4, align 8
store i64 %79, ptr %2, align 8
br label %80
80: ; preds = %78, %16
%81 = load i64, ptr %2, align 8
ret i64 %81
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpymzo71bd.c'
source_filename = "/tmp/tmpymzo71bd.c"
target datalayout = "e-m:e-p270: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/tmpymzo71bd.c"
target datalayout = "e-m:e-p270: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/tmp2hwatwu5.c'
source_filename = "/tmp/tmp2hwatwu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @int2str(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = sdiv i32 %8, 10
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %4, align 8
call void @int2str(i32 noundef %13, ptr noundef %14)
br label %18
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 0
store i8 0, ptr %17, align 1
br label %18
18: ; preds = %15, %12
%19 = load i32, ptr %3, align 4
%20 = srem i32 %19, 10
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 48, %23
%25 = trunc i32 %24 to i8
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 %25, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %30, i64 %33
store i8 0, ptr %34, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2hwatwu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @int2str(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = sdiv i32 %8, 10
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %4, align 8
call void @int2str(i32 noundef %13, ptr noundef %14)
br label %18
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 0
store i8 0, ptr %17, align 1
br label %18
18: ; preds = %15, %12
%19 = load i32, ptr %3, align 4
%20 = srem i32 %19, 10
store i32 %20, ptr %6, align 4
%21 = load ptr, ptr %4, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 48, %23
%25 = trunc i32 %24 to i8
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 %25, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %30, i64 %33
store i8 0, ptr %34, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpva8dic1v.c'
source_filename = "/tmp/tmpva8dic1v.c"
target datalayout = "e-m:e-p270: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/tmpva8dic1v.c"
target datalayout = "e-m:e-p270: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/tmpaag1g4gs.c'
source_filename = "/tmp/tmpaag1g4gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [41 x ptr], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca [10 x [80 x i8]], align 16
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 80, i1 false)
store i32 1, ptr %5, align 4
br label %6
6: ; preds = %0, %6
%7 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [10 x [80 x i8]], ptr %4, i64 0, i64 0
%9 = load i32, ptr %5, align 4
%10 = call i32 @getInput(ptr noundef %7, ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%12 = getelementptr inbounds [41 x ptr], ptr %2, i64 0, i64 0
%13 = call i32 @parseInput(ptr noundef %11, ptr noundef %12)
%14 = getelementptr inbounds [41 x ptr], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [10 x [80 x i8]], ptr %4, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @forkIt(ptr noundef %14, ptr noundef %15, i32 noundef %17)
br label %6
}
; 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 @getInput(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @parseInput(ptr noundef, ptr noundef) #2
declare i32 @forkIt(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaag1g4gs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [41 x ptr], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca [10 x [80 x i8]], align 16
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 80, i1 false)
store i32 1, ptr %5, align 4
br label %6
6: ; preds = %6, %0
%7 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%8 = getelementptr inbounds [10 x [80 x i8]], ptr %4, i64 0, i64 0
%9 = load i32, ptr %5, align 4
%10 = call i32 @getInput(ptr noundef %7, ptr noundef %8, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%12 = getelementptr inbounds [41 x ptr], ptr %2, i64 0, i64 0
%13 = call i32 @parseInput(ptr noundef %11, ptr noundef %12)
%14 = getelementptr inbounds [41 x ptr], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [10 x [80 x i8]], ptr %4, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @forkIt(ptr noundef %14, ptr noundef %15, i32 noundef %17)
br label %6
}
; 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 @getInput(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @parseInput(ptr noundef, ptr noundef) #2
declare i32 @forkIt(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf0pp8itq.c'
source_filename = "/tmp/tmpf0pp8itq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"usage: %s <options>\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"\09where options can be:\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\09--file <file>\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\09--sleep <ms>\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"\09--bs <kb>\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"\09--seed <int>\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"\09--seek <kb>\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"\09--random\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"\09--linear\0A\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"\09--writeonly\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf0pp8itq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"usage: %s <options>\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"\09where options can be:\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\09--file <file>\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"\09--sleep <ms>\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"\09--bs <kb>\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"\09--seed <int>\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"\09--seek <kb>\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"\09--random\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"\09--linear\0A\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"\09--writeonly\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(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 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_mq8zoi8.c'
source_filename = "/tmp/tmp_mq8zoi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @Cyc_string_rec(ptr noundef %4, i32 noundef 4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @Cyc_string_rec(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/tmp_mq8zoi8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @Cyc_string_rec(ptr noundef %4, i32 noundef 4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @Cyc_string_rec(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/tmpxwu9ixym.c'
source_filename = "/tmp/tmpxwu9ixym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test__blcs_u64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__blcs_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__blcs_u64(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/tmpxwu9ixym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test__blcs_u64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__blcs_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__blcs_u64(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/tmp86oirhk5.c'
source_filename = "/tmp/tmp86oirhk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__fpclassifyl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @__fpclassifyd(x86_fp80 noundef %3)
ret i32 %4
}
declare i32 @__fpclassifyd(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86oirhk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__fpclassifyl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @__fpclassifyd(x86_fp80 noundef %3)
ret i32 %4
}
declare i32 @__fpclassifyd(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3io_zq2e.c'
source_filename = "/tmp/tmp3io_zq2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio68/value\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Couldn't open GPIO value file!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getVal() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %21
9: ; preds = %0
%10 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 256, ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fclose(ptr noundef %13)
%15 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%16 = load i8, ptr %15, align 16
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 48
br i1 %18, label %19, label %20
19: ; preds = %9
store i32 0, ptr %1, align 4
br label %21
20: ; preds = %9
store i32 1, ptr %1, align 4
br label %21
21: ; preds = %20, %19, %7
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3io_zq2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio68/value\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Couldn't open GPIO value file!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getVal() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %21
9: ; preds = %0
%10 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%11 = load ptr, ptr %2, align 8
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 256, ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fclose(ptr noundef %13)
%15 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%16 = load i8, ptr %15, align 16
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 48
br i1 %18, label %19, label %20
19: ; preds = %9
store i32 0, ptr %1, align 4
br label %21
20: ; preds = %9
store i32 1, ptr %1, align 4
br label %21
21: ; preds = %20, %19, %7
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn_ele5nw.c'
source_filename = "/tmp/tmpn_ele5nw.c"
target datalayout = "e-m:e-p270: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/tmpn_ele5nw.c"
target datalayout = "e-m:e-p270: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/tmpoyr96vk5.c'
source_filename = "/tmp/tmpoyr96vk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getout(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
store i64 0, ptr %9, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = call ptr @scan(i32 noundef %10, ptr noundef %11, i8 noundef signext 111, ptr noundef @.str)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %4, align 8
br label %26
20: ; preds = %3
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i64 @lopt(i32 noundef %21, ptr noundef %22, i8 noundef signext 111)
%24 = load ptr, ptr %7, align 8
store i64 %23, ptr %24, align 8
%25 = load ptr, ptr %8, align 8
store ptr %25, ptr %4, align 8
br label %26
26: ; preds = %20, %18
%27 = load ptr, ptr %4, align 8
ret ptr %27
}
declare ptr @scan(i32 noundef, ptr noundef, i8 noundef signext, ptr noundef) #1
declare i64 @lopt(i32 noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoyr96vk5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getout(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
store i64 0, ptr %9, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = call ptr @scan(i32 noundef %10, ptr noundef %11, i8 noundef signext 111, ptr noundef @.str)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %4, align 8
br label %26
20: ; preds = %3
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = call i64 @lopt(i32 noundef %21, ptr noundef %22, i8 noundef signext 111)
%24 = load ptr, ptr %7, align 8
store i64 %23, ptr %24, align 8
%25 = load ptr, ptr %8, align 8
store ptr %25, ptr %4, align 8
br label %26
26: ; preds = %20, %18
%27 = load ptr, ptr %4, align 8
ret ptr %27
}
declare ptr @scan(i32 noundef, ptr noundef, i8 noundef signext, ptr noundef) #1
declare i64 @lopt(i32 noundef, ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphvajz6qp.c'
source_filename = "/tmp/tmphvajz6qp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = load i64, ptr %2, align 8
%7 = call i64 @__builtin_crypto_vshasigmad(i64 noundef %6, i32 noundef 1, i32 noundef 255)
store i64 %7, ptr %3, align 8
ret i32 0
}
declare i64 @__builtin_crypto_vshasigmad(i64 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/tmphvajz6qp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = load i64, ptr %2, align 8
%7 = call i64 @__builtin_crypto_vshasigmad(i64 noundef %6, i32 noundef 1, i32 noundef 255)
store i64 %7, ptr %3, align 8
ret i32 0
}
declare i64 @__builtin_crypto_vshasigmad(i64 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/tmpity7b4t3.c'
source_filename = "/tmp/tmpity7b4t3.c"
target datalayout = "e-m:e-p270: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 [57 x i8] c"wiringPiI2CSetup: Unable to determine Pi board revision\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"/dev/i2c-0\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wiringPiI2CSetup(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%7 = call i32 (...) @piBoardRev()
store i32 %7, ptr %4, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %13
store ptr @.str.1, ptr %6, align 8
br label %18
17: ; preds = %13
store ptr @.str.2, ptr %6, align 8
br label %18
18: ; preds = %17, %16
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %5, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %2, align 4
br label %32
24: ; preds = %18
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %3, align 4
%27 = call i64 @ioctl(i32 noundef %25, i32 noundef 1795, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 -1, ptr %2, align 4
br label %32
30: ; preds = %24
%31 = load i32, ptr %5, align 4
store i32 %31, ptr %2, align 4
br label %32
32: ; preds = %30, %29, %23
%33 = load i32, ptr %2, align 4
ret i32 %33
}
declare i32 @piBoardRev(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @ioctl(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/tmpity7b4t3.c"
target datalayout = "e-m:e-p270: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 [57 x i8] c"wiringPiI2CSetup: Unable to determine Pi board revision\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"/dev/i2c-0\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @wiringPiI2CSetup(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%7 = call i32 (...) @piBoardRev()
store i32 %7, ptr %4, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %17
16: ; preds = %13
store ptr @.str.1, ptr %6, align 8
br label %18
17: ; preds = %13
store ptr @.str.2, ptr %6, align 8
br label %18
18: ; preds = %17, %16
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %5, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %2, align 4
br label %32
24: ; preds = %18
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %3, align 4
%27 = call i64 @ioctl(i32 noundef %25, i32 noundef 1795, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 -1, ptr %2, align 4
br label %32
30: ; preds = %24
%31 = load i32, ptr %5, align 4
store i32 %31, ptr %2, align 4
br label %32
32: ; preds = %30, %29, %23
%33 = load i32, ptr %2, align 4
ret i32 %33
}
declare i32 @piBoardRev(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @ioctl(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/tmpq7e6uz4w.c'
source_filename = "/tmp/tmpq7e6uz4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aFree_(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%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
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @free(ptr noundef %12)
br label %14
14: ; preds = %11, %4
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/tmpq7e6uz4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aFree_(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%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
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %4
%12 = load ptr, ptr %5, align 8
%13 = call i32 @free(ptr noundef %12)
br label %14
14: ; preds = %11, %4
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/tmpsb98cooi.c'
source_filename = "/tmp/tmpsb98cooi.c"
target datalayout = "e-m:e-p270: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/tmpsb98cooi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_bkdqkfy.c'
source_filename = "/tmp/tmp_bkdqkfy.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"Log: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testing_log_callback(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bkdqkfy.c"
target datalayout = "e-m:e-p270: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 [9 x i8] c"Log: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testing_log_callback(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2rqd_0q8.c'
source_filename = "/tmp/tmp2rqd_0q8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2rqd_0q8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpotde4516.c'
source_filename = "/tmp/tmpotde4516.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readlines(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [1000 x i8], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
br label %12
12: ; preds = %49, %3
%13 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%14 = call i32 @getline(ptr noundef %13, i32 noundef 1000)
store i32 %14, ptr %9, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %50
16: ; preds = %12
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp sge i32 %17, %18
br i1 %19, label %25, label %20
20: ; preds = %16
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %9, align 4
%23 = add nsw i32 %21, %22
%24 = icmp sgt i32 %23, 100000
br i1 %24, label %25, label %26
25: ; preds = %20, %16
store i32 -1, ptr %4, align 4
br label %52
26: ; preds = %20
%27 = load i32, ptr %9, align 4
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 %29
store i8 0, ptr %30, align 1
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%36 = call i32 @strcpy(ptr noundef %34, ptr noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds ptr, ptr %41, i64 %44
store ptr %40, ptr %45, align 8
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, %46
store i32 %48, ptr %8, align 4
br label %49
49: ; preds = %26
br label %12, !llvm.loop !6
50: ; preds = %12
%51 = load i32, ptr %10, align 4
store i32 %51, ptr %4, align 4
br label %52
52: ; preds = %50, %25
%53 = load i32, ptr %4, align 4
ret i32 %53
}
declare i32 @getline(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpotde4516.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readlines(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [1000 x i8], align 16
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
%12 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%13 = call i32 @getline(ptr noundef %12, i32 noundef 1000)
store i32 %13, ptr %9, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %.lr.ph, label %51
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %48
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp sge i32 %16, %17
br i1 %18, label %24, label %19
19: ; preds = %15
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %9, align 4
%22 = add nsw i32 %20, %21
%23 = icmp sgt i32 %22, 100000
br i1 %23, label %24, label %25
24: ; preds = %19, %15
store i32 -1, ptr %4, align 4
br label %53
25: ; preds = %19
%26 = load i32, ptr %9, align 4
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%35 = call i32 @strcpy(ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %10, align 4
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds ptr, ptr %40, i64 %43
store ptr %39, ptr %44, align 8
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %8, align 4
br label %48
48: ; preds = %25
%49 = call i32 @getline(ptr noundef %12, i32 noundef 1000)
store i32 %49, ptr %9, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %51
51: ; preds = %._crit_edge, %3
%52 = load i32, ptr %10, align 4
store i32 %52, ptr %4, align 4
br label %53
53: ; preds = %51, %24
%54 = load i32, ptr %4, align 4
ret i32 %54
}
declare i32 @getline(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjlgndypq.c'
source_filename = "/tmp/tmpjlgndypq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @func1()
ret i32 0
}
declare i32 @func1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjlgndypq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @func1()
ret i32 0
}
declare i32 @func1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjc3bndjj.c'
source_filename = "/tmp/tmpjc3bndjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjc3bndjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw2c069ta.c'
source_filename = "/tmp/tmpw2c069ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Missing user\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mode_add(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = call i32 @logprintf(i32 noundef 0, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %18
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @sqlite_add_popd(ptr noundef %13, ptr noundef %16)
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %12, %10
%19 = load i32, ptr %4, align 4
ret i32 %19
}
declare i32 @logprintf(i32 noundef, ptr noundef) #1
declare i32 @sqlite_add_popd(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/tmpw2c069ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Missing user\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mode_add(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = call i32 @logprintf(i32 noundef 0, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %18
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @sqlite_add_popd(ptr noundef %13, ptr noundef %16)
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %12, %10
%19 = load i32, ptr %4, align 4
ret i32 %19
}
declare i32 @logprintf(i32 noundef, ptr noundef) #1
declare i32 @sqlite_add_popd(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/tmp7pj3f665.c'
source_filename = "/tmp/tmp7pj3f665.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"%d %d %d %d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"%Lf %Lf %Lf %Lf %Lf %Lf %Lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%Lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ldcmp(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 = fcmp oeq x86_fp80 %5, %6
%8 = zext i1 %7 to i32
%9 = sitofp i32 %8 to x86_fp80
%10 = load x86_fp80, ptr %3, align 16
%11 = load x86_fp80, ptr %4, align 16
%12 = fcmp une x86_fp80 %10, %11
%13 = zext i1 %12 to i32
%14 = load x86_fp80, ptr %3, align 16
%15 = load x86_fp80, ptr %4, align 16
%16 = fcmp olt x86_fp80 %14, %15
%17 = zext i1 %16 to i32
%18 = load x86_fp80, ptr %3, align 16
%19 = load x86_fp80, ptr %4, align 16
%20 = fcmp ogt x86_fp80 %18, %19
%21 = zext i1 %20 to i32
%22 = load x86_fp80, ptr %3, align 16
%23 = load x86_fp80, ptr %4, align 16
%24 = fcmp oge x86_fp80 %22, %23
%25 = zext i1 %24 to i32
%26 = load x86_fp80, ptr %3, align 16
%27 = load x86_fp80, ptr %4, align 16
%28 = fcmp ole x86_fp80 %26, %27
%29 = zext i1 %28 to i32
%30 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str, x86_fp80 noundef %9, i32 noundef %13, i32 noundef %17, i32 noundef %21, i32 noundef %25, i32 noundef %29)
%31 = load x86_fp80, ptr %3, align 16
%32 = load x86_fp80, ptr %4, align 16
%33 = load x86_fp80, ptr %3, align 16
%34 = load x86_fp80, ptr %4, align 16
%35 = fadd x86_fp80 %33, %34
%36 = load x86_fp80, ptr %3, align 16
%37 = load x86_fp80, ptr %4, align 16
%38 = fsub x86_fp80 %36, %37
%39 = load x86_fp80, ptr %3, align 16
%40 = load x86_fp80, ptr %4, align 16
%41 = fmul x86_fp80 %39, %40
%42 = load x86_fp80, ptr %3, align 16
%43 = load x86_fp80, ptr %4, align 16
%44 = fdiv x86_fp80 %42, %43
%45 = load x86_fp80, ptr %3, align 16
%46 = fneg x86_fp80 %45
%47 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.1, x86_fp80 noundef %31, x86_fp80 noundef %32, x86_fp80 noundef %35, x86_fp80 noundef %38, x86_fp80 noundef %41, x86_fp80 noundef %44, x86_fp80 noundef %46)
%48 = load x86_fp80, ptr %3, align 16
%49 = fadd x86_fp80 %48, 0xK3FFF8000000000000000
store x86_fp80 %49, ptr %3, align 16
%50 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %49)
%51 = load x86_fp80, ptr %3, align 16
%52 = fadd x86_fp80 %51, 0xK3FFF8000000000000000
store x86_fp80 %52, ptr %3, align 16
%53 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %51)
%54 = load x86_fp80, ptr %3, align 16
%55 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %54)
ret void
}
declare i32 @printf(ptr noundef, x86_fp80 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7pj3f665.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"%d %d %d %d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"%Lf %Lf %Lf %Lf %Lf %Lf %Lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%Lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ldcmp(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 = fcmp oeq x86_fp80 %5, %6
%8 = zext i1 %7 to i32
%9 = sitofp i32 %8 to x86_fp80
%10 = load x86_fp80, ptr %3, align 16
%11 = load x86_fp80, ptr %4, align 16
%12 = fcmp une x86_fp80 %10, %11
%13 = zext i1 %12 to i32
%14 = load x86_fp80, ptr %3, align 16
%15 = load x86_fp80, ptr %4, align 16
%16 = fcmp olt x86_fp80 %14, %15
%17 = zext i1 %16 to i32
%18 = load x86_fp80, ptr %3, align 16
%19 = load x86_fp80, ptr %4, align 16
%20 = fcmp ogt x86_fp80 %18, %19
%21 = zext i1 %20 to i32
%22 = load x86_fp80, ptr %3, align 16
%23 = load x86_fp80, ptr %4, align 16
%24 = fcmp oge x86_fp80 %22, %23
%25 = zext i1 %24 to i32
%26 = load x86_fp80, ptr %3, align 16
%27 = load x86_fp80, ptr %4, align 16
%28 = fcmp ole x86_fp80 %26, %27
%29 = zext i1 %28 to i32
%30 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str, x86_fp80 noundef %9, i32 noundef %13, i32 noundef %17, i32 noundef %21, i32 noundef %25, i32 noundef %29)
%31 = load x86_fp80, ptr %3, align 16
%32 = load x86_fp80, ptr %4, align 16
%33 = load x86_fp80, ptr %3, align 16
%34 = load x86_fp80, ptr %4, align 16
%35 = fadd x86_fp80 %33, %34
%36 = load x86_fp80, ptr %3, align 16
%37 = load x86_fp80, ptr %4, align 16
%38 = fsub x86_fp80 %36, %37
%39 = load x86_fp80, ptr %3, align 16
%40 = load x86_fp80, ptr %4, align 16
%41 = fmul x86_fp80 %39, %40
%42 = load x86_fp80, ptr %3, align 16
%43 = load x86_fp80, ptr %4, align 16
%44 = fdiv x86_fp80 %42, %43
%45 = load x86_fp80, ptr %3, align 16
%46 = fneg x86_fp80 %45
%47 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.1, x86_fp80 noundef %31, x86_fp80 noundef %32, x86_fp80 noundef %35, x86_fp80 noundef %38, x86_fp80 noundef %41, x86_fp80 noundef %44, x86_fp80 noundef %46)
%48 = load x86_fp80, ptr %3, align 16
%49 = fadd x86_fp80 %48, 0xK3FFF8000000000000000
store x86_fp80 %49, ptr %3, align 16
%50 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %49)
%51 = load x86_fp80, ptr %3, align 16
%52 = fadd x86_fp80 %51, 0xK3FFF8000000000000000
store x86_fp80 %52, ptr %3, align 16
%53 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %51)
%54 = load x86_fp80, ptr %3, align 16
%55 = call i32 (ptr, x86_fp80, ...) @printf(ptr noundef @.str.2, x86_fp80 noundef %54)
ret void
}
declare i32 @printf(ptr noundef, x86_fp80 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg4ba2k8v.c'
source_filename = "/tmp/tmpg4ba2k8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"es igual a 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"es igual a 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Valor no esperado\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
switch i32 %2, label %7 [
i32 0, label %3
i32 1, label %5
]
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %9
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %5, %3
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/tmpg4ba2k8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"es igual a 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"es igual a 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Valor no esperado\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
switch i32 %2, label %7 [
i32 0, label %3
i32 1, label %5
]
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
br label %9
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.1)
br label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %5, %3
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/tmpwlekdvg8.c'
source_filename = "/tmp/tmpwlekdvg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"The size of dynamicArr is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dynamicArray() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 80)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
store i32 10, ptr %3, align 4
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i32, ptr %4, i64 1
store i32 100, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%7 = load ptr, ptr %1, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(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/tmpwlekdvg8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"The size of dynamicArr is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dynamicArray() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 80)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
store i32 10, ptr %3, align 4
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i32, ptr %4, i64 1
store i32 100, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%7 = load ptr, ptr %1, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(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/tmp99mkdaa1.c'
source_filename = "/tmp/tmp99mkdaa1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"%8.5f %8.5f 1.0\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%8.5f %8.5f 0.0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printSet(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double %1, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 96, %11
store i32 %12, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %60, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %63
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = sitofp i32 %18 to double
%20 = fmul double %19, 3.141600e+00
%21 = load i32, ptr %3, align 4
%22 = sitofp i32 %21 to double
%23 = fmul double 1.600000e+01, %22
%24 = fdiv double %20, %23
store double %24, ptr %9, align 8
%25 = load double, ptr %4, align 8
%26 = load i32, ptr %3, align 4
%27 = mul nsw i32 104, %26
%28 = load i32, ptr %6, align 4
%29 = sub nsw i32 %27, %28
%30 = sitofp i32 %29 to double
%31 = fmul double %25, %30
%32 = load i32, ptr %3, align 4
%33 = mul nsw i32 104, %32
%34 = sitofp i32 %33 to double
%35 = fdiv double %31, %34
store double %35, ptr %10, align 8
%36 = load double, ptr %10, align 8
%37 = load double, ptr %9, align 8
%38 = call double @cos(double noundef %37) #3
%39 = fmul double %36, %38
store double %39, ptr %7, align 8
%40 = load double, ptr %10, align 8
%41 = load double, ptr %9, align 8
%42 = call double @sin(double noundef %41) #3
%43 = fmul double %40, %42
store double %43, ptr %8, align 8
%44 = load double, ptr %7, align 8
%45 = fadd double %44, 6.500000e+00
%46 = fdiv double %45, 1.300000e+01
%47 = load double, ptr %8, align 8
%48 = fadd double %47, 6.000000e+00
%49 = fdiv double %48, 1.200000e+01
%50 = call i32 @printf(ptr noundef @.str, double noundef %46, double noundef %49)
%51 = load double, ptr %7, align 8
%52 = fneg double %51
%53 = fadd double %52, 6.500000e+00
%54 = fdiv double %53, 1.300000e+01
%55 = load double, ptr %8, align 8
%56 = fneg double %55
%57 = fadd double %56, 6.000000e+00
%58 = fdiv double %57, 1.200000e+01
%59 = call i32 @printf(ptr noundef @.str.1, double noundef %54, double noundef %58)
br label %60
60: ; preds = %17
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
br label %13, !llvm.loop !6
63: ; preds = %13
ret void
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp99mkdaa1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"%8.5f %8.5f 1.0\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"%8.5f %8.5f 0.0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printSet(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double %1, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 96, %11
store i32 %12, ptr %5, align 4
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %65
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %59
%17 = load i32, ptr %6, align 4
%18 = sitofp i32 %17 to double
%19 = fmul double %18, 3.141600e+00
%20 = load i32, ptr %3, align 4
%21 = sitofp i32 %20 to double
%22 = fmul double 1.600000e+01, %21
%23 = fdiv double %19, %22
store double %23, ptr %9, align 8
%24 = load double, ptr %4, align 8
%25 = load i32, ptr %3, align 4
%26 = mul nsw i32 104, %25
%27 = load i32, ptr %6, align 4
%28 = sub nsw i32 %26, %27
%29 = sitofp i32 %28 to double
%30 = fmul double %24, %29
%31 = load i32, ptr %3, align 4
%32 = mul nsw i32 104, %31
%33 = sitofp i32 %32 to double
%34 = fdiv double %30, %33
store double %34, ptr %10, align 8
%35 = load double, ptr %10, align 8
%36 = load double, ptr %9, align 8
%37 = call double @cos(double noundef %36) #3
%38 = fmul double %35, %37
store double %38, ptr %7, align 8
%39 = load double, ptr %10, align 8
%40 = load double, ptr %9, align 8
%41 = call double @sin(double noundef %40) #3
%42 = fmul double %39, %41
store double %42, ptr %8, align 8
%43 = load double, ptr %7, align 8
%44 = fadd double %43, 6.500000e+00
%45 = fdiv double %44, 1.300000e+01
%46 = load double, ptr %8, align 8
%47 = fadd double %46, 6.000000e+00
%48 = fdiv double %47, 1.200000e+01
%49 = call i32 @printf(ptr noundef @.str, double noundef %45, double noundef %48)
%50 = load double, ptr %7, align 8
%51 = fneg double %50
%52 = fadd double %51, 6.500000e+00
%53 = fdiv double %52, 1.300000e+01
%54 = load double, ptr %8, align 8
%55 = fneg double %54
%56 = fadd double %55, 6.000000e+00
%57 = fdiv double %56, 1.200000e+01
%58 = call i32 @printf(ptr noundef @.str.1, double noundef %53, double noundef %57)
br label %59
59: ; preds = %16
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %5, align 4
%64 = icmp sle i32 %62, %63
br i1 %64, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %2
ret void
}
; Function Attrs: nounwind
declare double @cos(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjjjaskji.c'
source_filename = "/tmp/tmpjjjaskji.c"
target datalayout = "e-m:e-p270: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/tmpjjjaskji.c"
target datalayout = "e-m:e-p270: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/tmpz4cdmudd.c'
source_filename = "/tmp/tmpz4cdmudd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libqq_cleanup() #0 {
%1 = call i32 (...) @config_end()
%2 = call i32 (...) @qqsocket_end()
ret void
}
declare i32 @config_end(...) #1
declare i32 @qqsocket_end(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz4cdmudd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libqq_cleanup() #0 {
%1 = call i32 (...) @config_end()
%2 = call i32 (...) @qqsocket_end()
ret void
}
declare i32 @config_end(...) #1
declare i32 @qqsocket_end(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmlned25p.c'
source_filename = "/tmp/tmpmlned25p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%1023s\00", align 1
@EOF = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Error: Unexpected end of file.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"Error: Expected \22=\22, found \22%s\22.\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" %1023[^\0A]\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Error: Unknown data type: \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @config_read() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
store ptr null, ptr %2, align 8
%7 = call i32 @config_open(ptr noundef %2, ptr noundef @.str)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %118
10: ; preds = %0
%11 = load ptr, ptr %2, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 0, ptr %1, align 4
br label %118
14: ; preds = %10
br label %15
15: ; preds = %114, %14
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%18 = call i64 @fscanf(ptr noundef %16, ptr noundef @.str.1, ptr noundef %17)
%19 = load i64, ptr @EOF, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %115
21: ; preds = %15
%22 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%25 = load i8, ptr %24, align 16
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 91
br i1 %27, label %28, label %44
28: ; preds = %21
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 93
br i1 %35, label %36, label %44
36: ; preds = %28
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %39
store i8 0, ptr %40, align 1
%41 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%42 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 1
%43 = call i32 @strcpy(ptr noundef %41, ptr noundef %42)
br label %114
44: ; preds = %28, %21
%45 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%46 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%47 = call i32 @strcpy(ptr noundef %45, ptr noundef %46)
%48 = load ptr, ptr %2, align 8
%49 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%50 = call i64 @fscanf(ptr noundef %48, ptr noundef @.str.1, ptr noundef %49)
%51 = load i64, ptr @EOF, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %56
53: ; preds = %44
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %118
56: ; preds = %44
%57 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%58 = call i64 @strcmp(ptr noundef %57, ptr noundef @.str.3)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i32, ptr @stderr, align 4
%62 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %61, ptr noundef @.str.4, ptr noundef %62)
store i32 -1, ptr %1, align 4
br label %118
64: ; preds = %56
%65 = load ptr, ptr %2, align 8
%66 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%67 = call i64 @fscanf(ptr noundef %65, ptr noundef @.str.5, ptr noundef %66)
%68 = load i64, ptr @EOF, align 8
%69 = icmp eq i64 %67, %68
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = load i32, ptr @stderr, align 4
%72 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %118
73: ; preds = %64
%74 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%75 = call i32 @strlen(ptr noundef %74)
store i32 %75, ptr %6, align 4
%76 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%77 = load i8, ptr %76, align 16
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 34
br i1 %79, label %80, label %97
80: ; preds = %73
%81 = load i32, ptr %6, align 4
%82 = sub nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 34
br i1 %87, label %88, label %97
88: ; preds = %80
%89 = load i32, ptr %6, align 4
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %91
store i8 0, ptr %92, align 1
%93 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%94 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%95 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 1
%96 = call i32 @config_string_set(ptr noundef %93, ptr noundef %94, ptr noundef %95)
br label %113
97: ; preds = %80, %73
%98 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%99 = load i8, ptr %98, align 16
%100 = call i64 @isdigit(i8 noundef signext %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %97
%103 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%104 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%105 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%106 = call i32 @strtoul(ptr noundef %105, ptr noundef null, i32 noundef 0)
%107 = call i32 @config_uint_set(ptr noundef %103, ptr noundef %104, i32 noundef %106)
br label %112
108: ; preds = %97
%109 = load i32, ptr @stderr, align 4
%110 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%111 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %109, ptr noundef @.str.6, ptr noundef %110)
store i32 -1, ptr %1, align 4
br label %118
112: ; preds = %102
br label %113
113: ; preds = %112, %88
br label %114
114: ; preds = %113, %36
br label %15, !llvm.loop !6
115: ; preds = %15
%116 = load ptr, ptr %2, align 8
%117 = call i32 @fclose(ptr noundef %116)
store i32 0, ptr %1, align 4
br label %118
118: ; preds = %115, %108, %70, %60, %53, %13, %9
%119 = load i32, ptr %1, align 4
ret i32 %119
}
declare i32 @config_open(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @config_string_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @config_uint_set(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpmlned25p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%1023s\00", align 1
@EOF = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Error: Unexpected end of file.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"Error: Expected \22=\22, found \22%s\22.\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" %1023[^\0A]\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"Error: Unknown data type: \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @config_read() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
store ptr null, ptr %2, align 8
%7 = call i32 @config_open(ptr noundef %2, ptr noundef @.str)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %121
10: ; preds = %0
%11 = load ptr, ptr %2, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 0, ptr %1, align 4
br label %121
14: ; preds = %10
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%17 = call i64 @fscanf(ptr noundef %15, ptr noundef @.str.1, ptr noundef %16)
%18 = load i64, ptr @EOF, align 8
%19 = icmp ne i64 %17, %18
br i1 %19, label %.lr.ph, label %118
.lr.ph: ; preds = %14
br label %20
20: ; preds = %.lr.ph, %113
%21 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %6, align 4
%23 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%24 = load i8, ptr %23, align 16
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 91
br i1 %26, label %27, label %43
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 93
br i1 %34, label %35, label %43
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %38
store i8 0, ptr %39, align 1
%40 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%41 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 1
%42 = call i32 @strcpy(ptr noundef %40, ptr noundef %41)
br label %113
43: ; preds = %27, %20
%44 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%45 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%46 = call i32 @strcpy(ptr noundef %44, ptr noundef %45)
%47 = load ptr, ptr %2, align 8
%48 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%49 = call i64 @fscanf(ptr noundef %47, ptr noundef @.str.1, ptr noundef %48)
%50 = load i64, ptr @EOF, align 8
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %55
52: ; preds = %43
%53 = load i32, ptr @stderr, align 4
%54 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %53, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %121
55: ; preds = %43
%56 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%57 = call i64 @strcmp(ptr noundef %56, ptr noundef @.str.3)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %55
%60 = load i32, ptr @stderr, align 4
%61 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%62 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %60, ptr noundef @.str.4, ptr noundef %61)
store i32 -1, ptr %1, align 4
br label %121
63: ; preds = %55
%64 = load ptr, ptr %2, align 8
%65 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%66 = call i64 @fscanf(ptr noundef %64, ptr noundef @.str.5, ptr noundef %65)
%67 = load i64, ptr @EOF, align 8
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %63
%70 = load i32, ptr @stderr, align 4
%71 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %70, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %121
72: ; preds = %63
%73 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%74 = call i32 @strlen(ptr noundef %73)
store i32 %74, ptr %6, align 4
%75 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%76 = load i8, ptr %75, align 16
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 34
br i1 %78, label %79, label %96
79: ; preds = %72
%80 = load i32, ptr %6, align 4
%81 = sub nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 34
br i1 %86, label %87, label %96
87: ; preds = %79
%88 = load i32, ptr %6, align 4
%89 = sub nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 %90
store i8 0, ptr %91, align 1
%92 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%93 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%94 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 1
%95 = call i32 @config_string_set(ptr noundef %92, ptr noundef %93, ptr noundef %94)
br label %112
96: ; preds = %79, %72
%97 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%98 = load i8, ptr %97, align 16
%99 = call i64 @isdigit(i8 noundef signext %98)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %96
%102 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%103 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
%104 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%105 = call i32 @strtoul(ptr noundef %104, ptr noundef null, i32 noundef 0)
%106 = call i32 @config_uint_set(ptr noundef %102, ptr noundef %103, i32 noundef %105)
br label %111
107: ; preds = %96
%108 = load i32, ptr @stderr, align 4
%109 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%110 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %108, ptr noundef @.str.6, ptr noundef %109)
store i32 -1, ptr %1, align 4
br label %121
111: ; preds = %101
br label %112
112: ; preds = %111, %87
br label %113
113: ; preds = %112, %35
%114 = load ptr, ptr %2, align 8
%115 = call i64 @fscanf(ptr noundef %114, ptr noundef @.str.1, ptr noundef %16)
%116 = load i64, ptr @EOF, align 8
%117 = icmp ne i64 %115, %116
br i1 %117, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %113
br label %118
118: ; preds = %._crit_edge, %14
%119 = load ptr, ptr %2, align 8
%120 = call i32 @fclose(ptr noundef %119)
store i32 0, ptr %1, align 4
br label %121
121: ; preds = %118, %107, %69, %59, %52, %13, %9
%122 = load i32, ptr %1, align 4
ret i32 %122
}
declare i32 @config_open(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @config_string_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @config_uint_set(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpb6zk2v50.c'
source_filename = "/tmp/tmpb6zk2v50.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"USB link timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cc_usb_sync(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @_cc_usb_sync(ptr noundef %3, i32 noundef 0, i32 noundef 5000)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
ret void
}
declare i64 @_cc_usb_sync(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb6zk2v50.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"USB link timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cc_usb_sync(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @_cc_usb_sync(ptr noundef %3, i32 noundef 0, i32 noundef 5000)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
ret void
}
declare i64 @_cc_usb_sync(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp37azhuuu.c'
source_filename = "/tmp/tmp37azhuuu.c"
target datalayout = "e-m:e-p270: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/tmp37azhuuu.c"
target datalayout = "e-m:e-p270: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/tmpwp2nmjg3.c'
source_filename = "/tmp/tmpwp2nmjg3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter first number: \00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Enter second number: \00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%g + %g = %g\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"%g - %g = %g\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"%g * %g = %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"Enter a number other than 0: \00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%g / %g = %g\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"Error\0A\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"Bye.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @get_choice()
store i32 %5, ptr %2, align 4
br label %6
6: ; preds = %64, %0
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %66
9: ; preds = %6
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call float (...) @get_flt()
store float %11, ptr %3, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call float (...) @get_flt()
store float %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
switch i32 %14, label %62 [
i32 1, label %15
i32 2, label %25
i32 3, label %35
i32 4, label %45
]
15: ; preds = %9
%16 = load float, ptr %3, align 4
%17 = fpext float %16 to double
%18 = load float, ptr %4, align 4
%19 = fpext float %18 to double
%20 = load float, ptr %3, align 4
%21 = load float, ptr %4, align 4
%22 = fadd float %20, %21
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %17, double noundef %19, double noundef %23)
br label %64
25: ; preds = %9
%26 = load float, ptr %3, align 4
%27 = fpext float %26 to double
%28 = load float, ptr %4, align 4
%29 = fpext float %28 to double
%30 = load float, ptr %3, align 4
%31 = load float, ptr %4, align 4
%32 = fsub float %30, %31
%33 = fpext float %32 to double
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %27, double noundef %29, double noundef %33)
br label %64
35: ; preds = %9
%36 = load float, ptr %3, align 4
%37 = fpext float %36 to double
%38 = load float, ptr %4, align 4
%39 = fpext float %38 to double
%40 = load float, ptr %3, align 4
%41 = load float, ptr %4, align 4
%42 = fmul float %40, %41
%43 = fpext float %42 to double
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %37, double noundef %39, double noundef %43)
br label %64
45: ; preds = %9
br label %46
46: ; preds = %49, %45
%47 = load float, ptr %4, align 4
%48 = fcmp oeq float %47, 0.000000e+00
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%51 = call float (...) @get_flt()
store float %51, ptr %4, align 4
br label %46, !llvm.loop !6
52: ; preds = %46
%53 = load float, ptr %3, align 4
%54 = fpext float %53 to double
%55 = load float, ptr %4, align 4
%56 = fpext float %55 to double
%57 = load float, ptr %3, align 4
%58 = load float, ptr %4, align 4
%59 = fdiv float %57, %58
%60 = fpext float %59 to double
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %54, double noundef %56, double noundef %60)
br label %64
62: ; preds = %9
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %64
64: ; preds = %62, %52, %35, %25, %15
%65 = call i32 (...) @get_choice()
store i32 %65, ptr %2, align 4
br label %6, !llvm.loop !8
66: ; preds = %6
%67 = call i32 @puts(ptr noundef @.str.8)
ret i32 0
}
declare i32 @get_choice(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare float @get_flt(...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwp2nmjg3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter first number: \00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Enter second number: \00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%g + %g = %g\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"%g - %g = %g\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"%g * %g = %g\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"Enter a number other than 0: \00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%g / %g = %g\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"Error\0A\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"Bye.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (...) @get_choice()
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph2, label %68
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %64
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call float (...) @get_flt()
store float %10, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call float (...) @get_flt()
store float %12, ptr %4, align 4
%13 = load i32, ptr %2, align 4
switch i32 %13, label %62 [
i32 1, label %14
i32 2, label %24
i32 3, label %34
i32 4, label %44
]
14: ; preds = %8
%15 = load float, ptr %3, align 4
%16 = fpext float %15 to double
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = load float, ptr %3, align 4
%20 = load float, ptr %4, align 4
%21 = fadd float %19, %20
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %16, double noundef %18, double noundef %22)
br label %64
24: ; preds = %8
%25 = load float, ptr %3, align 4
%26 = fpext float %25 to double
%27 = load float, ptr %4, align 4
%28 = fpext float %27 to double
%29 = load float, ptr %3, align 4
%30 = load float, ptr %4, align 4
%31 = fsub float %29, %30
%32 = fpext float %31 to double
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %26, double noundef %28, double noundef %32)
br label %64
34: ; preds = %8
%35 = load float, ptr %3, align 4
%36 = fpext float %35 to double
%37 = load float, ptr %4, align 4
%38 = fpext float %37 to double
%39 = load float, ptr %3, align 4
%40 = load float, ptr %4, align 4
%41 = fmul float %39, %40
%42 = fpext float %41 to double
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %36, double noundef %38, double noundef %42)
br label %64
44: ; preds = %8
%45 = load float, ptr %4, align 4
%46 = fcmp oeq float %45, 0.000000e+00
br i1 %46, label %.lr.ph, label %52
.lr.ph: ; preds = %44
br label %47
47: ; preds = %.lr.ph, %47
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%49 = call float (...) @get_flt()
store float %49, ptr %4, align 4
%50 = load float, ptr %4, align 4
%51 = fcmp oeq float %50, 0.000000e+00
br i1 %51, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %44
%53 = load float, ptr %3, align 4
%54 = fpext float %53 to double
%55 = load float, ptr %4, align 4
%56 = fpext float %55 to double
%57 = load float, ptr %3, align 4
%58 = load float, ptr %4, align 4
%59 = fdiv float %57, %58
%60 = fpext float %59 to double
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %54, double noundef %56, double noundef %60)
br label %64
62: ; preds = %8
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %64
64: ; preds = %62, %52, %34, %24, %14
%65 = call i32 (...) @get_choice()
store i32 %65, ptr %2, align 4
%66 = load i32, ptr %2, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %64
br label %68
68: ; preds = %._crit_edge3, %0
%69 = call i32 @puts(ptr noundef @.str.8)
ret i32 0
}
declare i32 @get_choice(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare float @get_flt(...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptp3mhre_.c'
source_filename = "/tmp/tmptp3mhre_.c"
target datalayout = "e-m:e-p270: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/tmptp3mhre_.c"
target datalayout = "e-m:e-p270: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/tmp7l5m1_44.c'
source_filename = "/tmp/tmp7l5m1_44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @FieldLength(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %4, align 8
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
br label %6
6: ; preds = %18, %1
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = call i32 @CSlim_IsCharacter(ptr noundef %11)
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i64, ptr %4, align 8
%16 = add nsw i64 %15, 1
store i64 %16, ptr %4, align 8
br label %17
17: ; preds = %14, %10
br label %18
18: ; preds = %17
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %3, align 8
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i64, ptr %4, align 8
ret i64 %22
}
declare i32 @CSlim_IsCharacter(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7l5m1_44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @FieldLength(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %4, align 8
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %17
%10 = load ptr, ptr %3, align 8
%11 = call i32 @CSlim_IsCharacter(ptr noundef %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i64, ptr %4, align 8
%15 = add nsw i64 %14, 1
store i64 %15, ptr %4, align 8
br label %16
16: ; preds = %13, %9
br label %17
17: ; preds = %16
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %1
%24 = load i64, ptr %4, align 8
ret i64 %24
}
declare i32 @CSlim_IsCharacter(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmplvsue0oi.c'
source_filename = "/tmp/tmplvsue0oi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_get_real_usec__(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 (...) @PAPI_get_real_usec()
%4 = load ptr, ptr %2, align 8
store i64 %3, ptr %4, align 8
ret void
}
declare i64 @PAPI_get_real_usec(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplvsue0oi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_get_real_usec__(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i64 (...) @PAPI_get_real_usec()
%4 = load ptr, ptr %2, align 8
store i64 %3, ptr %4, align 8
ret void
}
declare i64 @PAPI_get_real_usec(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.