llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpiumezx1g.c'
source_filename = "/tmp/tmpiumezx1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%03x \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_sector(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %71, %3
%12 = load i32, ptr %8, align 4
%13 = mul nsw i32 %12, 16
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %74
16: ; preds = %11
%17 = load i32, ptr %8, align 4
%18 = mul nsw i32 %17, 16
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %34, %16
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 16
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %8, align 4
%26 = mul nsw i32 %25, 16
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %24, i64 %29
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
br label %34
34: ; preds = %23
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %20, !llvm.loop !6
37: ; preds = %20
store i32 0, ptr %7, align 4
br label %38
38: ; preds = %66, %37
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %39, 16
br i1 %40, label %41, label %69
41: ; preds = %38
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %8, align 4
%44 = mul nsw i32 %43, 16
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %42, i64 %47
%49 = load i8, ptr %48, align 1
%50 = call i64 @isprint(i8 noundef zeroext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %63
52: ; preds = %41
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %8, align 4
%55 = mul nsw i32 %54, 16
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %53, i64 %58
%60 = load i8, ptr %59, align 1
%61 = zext i8 %60 to i32
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %61)
br label %65
63: ; preds = %41
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %65
65: ; preds = %63, %52
br label %66
66: ; preds = %65
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
br label %38, !llvm.loop !8
69: ; preds = %38
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %71
71: ; preds = %69
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %8, align 4
br label %11, !llvm.loop !9
74: ; preds = %11
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isprint(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiumezx1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%03x \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_sector(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
store i32 0, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = mul nsw i32 %11, 16
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph5, label %79
.lr.ph5: ; preds = %3
br label %15
15: ; preds = %.lr.ph5, %72
%16 = load i32, ptr %8, align 4
%17 = mul nsw i32 %16, 16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 16
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %15
br label %21
21: ; preds = %.lr.ph, %32
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = mul nsw i32 %23, 16
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %22, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %30)
br label %32
32: ; preds = %21
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 16
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %15
store i32 0, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 16
br i1 %39, label %.lr.ph2, label %70
.lr.ph2: ; preds = %37
br label %40
40: ; preds = %.lr.ph2, %65
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %8, align 4
%43 = mul nsw i32 %42, 16
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %43, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %41, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i64 @isprint(i8 noundef zeroext %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %62
51: ; preds = %40
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %8, align 4
%54 = mul nsw i32 %53, 16
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %54, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %52, i64 %57
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %60)
br label %64
62: ; preds = %40
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %64
64: ; preds = %62, %51
br label %65
65: ; preds = %64
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %7, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %68, 16
br i1 %69, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %70
70: ; preds = %._crit_edge3, %37
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %72
72: ; preds = %70
%73 = load i32, ptr %8, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %8, align 4
%75 = load i32, ptr %8, align 4
%76 = mul nsw i32 %75, 16
%77 = load i32, ptr %6, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %15, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %79
79: ; preds = %._crit_edge6, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @isprint(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp3r5dal4d.c'
source_filename = "/tmp/tmp3r5dal4d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OCSP_SINGLERESP_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OCSP_SINGLERESP_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ASN1_item_free(ptr noundef %3, ptr noundef @OCSP_SINGLERESP_it)
ret void
}
declare i32 @ASN1_item_free(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3r5dal4d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OCSP_SINGLERESP_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @OCSP_SINGLERESP_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @ASN1_item_free(ptr noundef %3, ptr noundef @OCSP_SINGLERESP_it)
ret void
}
declare i32 @ASN1_item_free(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdyrnad5s.c'
source_filename = "/tmp/tmpdyrnad5s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"\0ALowering CPU VDD Voltage by 100mV\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/system/bin/sh -c %s\00", align 1
@.str.2 = private unnamed_addr constant [70 x i8] c"'echo -100000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uv100() #0 {
%1 = alloca [256 x i8], align 16
%2 = call i32 @printf(ptr noundef @.str)
%3 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @sprintf(ptr noundef %3, ptr noundef @.str.1, ptr noundef @.str.2)
%5 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @system(ptr noundef %5)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdyrnad5s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"\0ALowering CPU VDD Voltage by 100mV\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/system/bin/sh -c %s\00", align 1
@.str.2 = private unnamed_addr constant [70 x i8] c"'echo -100000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uv100() #0 {
%1 = alloca [256 x i8], align 16
%2 = call i32 @printf(ptr noundef @.str)
%3 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @sprintf(ptr noundef %3, ptr noundef @.str.1, ptr noundef @.str.2)
%5 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @system(ptr noundef %5)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @sprintf(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp4twnox2y.c'
source_filename = "/tmp/tmp4twnox2y.c"
target datalayout = "e-m:e-p270: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, i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @side_alt_balken_display(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @clear()
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = sdiv i32 %6, 10
%8 = call i32 @print_balken(i8 noundef signext 72, i32 noundef %7, ptr noundef @.str, i32 noundef -1)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds %struct.tm, ptr %9, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = srem i32 %11, 10
%13 = call i32 @print_balken(i8 noundef signext 72, i32 noundef %12, ptr noundef @.str, i32 noundef -1)
%14 = call i32 @puts(ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds %struct.tm, ptr %15, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = sdiv i32 %17, 10
%19 = call i32 @print_balken(i8 noundef signext 77, i32 noundef %18, ptr noundef @.str, i32 noundef -1)
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %struct.tm, ptr %20, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = srem i32 %22, 10
%24 = call i32 @print_balken(i8 noundef signext 77, i32 noundef %23, ptr noundef @.str, i32 noundef -1)
%25 = call i32 @puts(ptr noundef @.str.1)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.tm, ptr %26, i32 0, i32 2
%28 = load i32, ptr %27, align 4
%29 = sdiv i32 %28, 10
%30 = call i32 @print_balken(i8 noundef signext 83, i32 noundef %29, ptr noundef @.str, i32 noundef -1)
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 2
%33 = load i32, ptr %32, align 4
%34 = srem i32 %33, 10
%35 = call i32 @print_balken(i8 noundef signext 83, i32 noundef %34, ptr noundef @.str, i32 noundef -1)
ret void
}
declare i32 @clear(...) #1
declare i32 @print_balken(i8 noundef signext, i32 noundef, ptr noundef, i32 noundef) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4twnox2y.c"
target datalayout = "e-m:e-p270: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, i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @side_alt_balken_display(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @clear()
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = sdiv i32 %6, 10
%8 = call i32 @print_balken(i8 noundef signext 72, i32 noundef %7, ptr noundef @.str, i32 noundef -1)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds %struct.tm, ptr %9, i32 0, i32 0
%11 = load i32, ptr %10, align 4
%12 = srem i32 %11, 10
%13 = call i32 @print_balken(i8 noundef signext 72, i32 noundef %12, ptr noundef @.str, i32 noundef -1)
%14 = call i32 @puts(ptr noundef @.str.1)
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds %struct.tm, ptr %15, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = sdiv i32 %17, 10
%19 = call i32 @print_balken(i8 noundef signext 77, i32 noundef %18, ptr noundef @.str, i32 noundef -1)
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %struct.tm, ptr %20, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = srem i32 %22, 10
%24 = call i32 @print_balken(i8 noundef signext 77, i32 noundef %23, ptr noundef @.str, i32 noundef -1)
%25 = call i32 @puts(ptr noundef @.str.1)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.tm, ptr %26, i32 0, i32 2
%28 = load i32, ptr %27, align 4
%29 = sdiv i32 %28, 10
%30 = call i32 @print_balken(i8 noundef signext 83, i32 noundef %29, ptr noundef @.str, i32 noundef -1)
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds %struct.tm, ptr %31, i32 0, i32 2
%33 = load i32, ptr %32, align 4
%34 = srem i32 %33, 10
%35 = call i32 @print_balken(i8 noundef signext 83, i32 noundef %34, ptr noundef @.str, i32 noundef -1)
ret void
}
declare i32 @clear(...) #1
declare i32 @print_balken(i8 noundef signext, i32 noundef, ptr noundef, i32 noundef) #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"}
|
; ModuleID = '/tmp/tmpp7hfzngo.c'
source_filename = "/tmp/tmpp7hfzngo.c"
target datalayout = "e-m:e-p270: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/tmpp7hfzngo.c"
target datalayout = "e-m:e-p270: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/tmpmvrhgyfh.c'
source_filename = "/tmp/tmpmvrhgyfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"%s e podstring na %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"%s NE e podstring na %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @gets(ptr noundef %4)
%6 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @gets(ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%10 = call i64 @podstring(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %13, ptr noundef %14)
br label %20
16: ; preds = %0
%17 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17, ptr noundef %18)
br label %20
20: ; preds = %16, %12
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i64 @podstring(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmvrhgyfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"%s e podstring na %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"%s NE e podstring na %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [100 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @gets(ptr noundef %4)
%6 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @gets(ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%10 = call i64 @podstring(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %0
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %13, ptr noundef %14)
br label %20
16: ; preds = %0
%17 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17, ptr noundef %18)
br label %20
20: ; preds = %16, %12
ret i32 0
}
declare i32 @gets(ptr noundef) #1
declare i64 @podstring(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_8645y5c.c'
source_filename = "/tmp/tmp_8645y5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_8645y5c.c"
target datalayout = "e-m:e-p270: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/tmp0ih14g4e.c'
source_filename = "/tmp/tmp0ih14g4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"SUCCESS: NHDP compiled!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ih14g4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"SUCCESS: NHDP compiled!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmp35k_gep7.c'
source_filename = "/tmp/tmp35k_gep7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stat64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @__xstat64(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @__xstat64(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/tmp35k_gep7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stat64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @__xstat64(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @__xstat64(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/tmpwlliy2fm.c'
source_filename = "/tmp/tmpwlliy2fm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = dso_local global i32 0, align 4
@TFD_NONBLOCK = 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/tmpwlliy2fm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_REALTIME = dso_local global i32 0, align 4
@TFD_NONBLOCK = 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/tmp1ms1vapp.c'
source_filename = "/tmp/tmp1ms1vapp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [560 x [32 x i32]], align 16
%7 = alloca [56 x [16 x i32]], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %29, %0
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 560
br i1 %10, label %11, label %32
11: ; preds = %8
store i32 0, ptr %3, align 4
br label %12
12: ; preds = %25, %11
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 32
br i1 %14, label %15, label %28
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %16, %17
%19 = load i32, ptr %2, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [560 x [32 x i32]], ptr %6, i64 0, i64 %20
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [32 x i32], ptr %21, i64 0, i64 %23
store i32 %18, ptr %24, align 4
br label %25
25: ; preds = %15
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %12, !llvm.loop !6
28: ; preds = %12
br label %29
29: ; preds = %28
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %8, !llvm.loop !8
32: ; preds = %8
store i32 0, ptr %2, align 4
br label %33
33: ; preds = %94, %32
%34 = load i32, ptr %2, align 4
%35 = icmp slt i32 %34, 56
br i1 %35, label %36, label %97
36: ; preds = %33
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %90, %36
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %38, 16
br i1 %39, label %40, label %93
40: ; preds = %37
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %42
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x i32], ptr %43, i64 0, i64 %45
store i32 0, ptr %46, align 4
store i32 0, ptr %4, align 4
br label %47
47: ; preds = %86, %40
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %48, 10
br i1 %49, label %50, label %89
50: ; preds = %47
store i32 0, ptr %5, align 4
br label %51
51: ; preds = %82, %50
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %52, 2
br i1 %53, label %54, label %85
54: ; preds = %51
%55 = load i32, ptr %2, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %56
%58 = load i32, ptr %3, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [16 x i32], ptr %57, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load i32, ptr %2, align 4
%63 = mul nsw i32 %62, 10
%64 = load i32, ptr %4, align 4
%65 = add nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [560 x [32 x i32]], ptr %6, i64 0, i64 %66
%68 = load i32, ptr %3, align 4
%69 = mul nsw i32 %68, 2
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [32 x i32], ptr %67, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = add nsw i32 %61, %74
%76 = load i32, ptr %2, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %77
%79 = load i32, ptr %3, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [16 x i32], ptr %78, i64 0, i64 %80
store i32 %75, ptr %81, align 4
br label %82
82: ; preds = %54
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %5, align 4
br label %51, !llvm.loop !9
85: ; preds = %51
br label %86
86: ; preds = %85
%87 = load i32, ptr %4, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %4, align 4
br label %47, !llvm.loop !10
89: ; preds = %47
br label %90
90: ; preds = %89
%91 = load i32, ptr %3, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %3, align 4
br label %37, !llvm.loop !11
93: ; preds = %37
br label %94
94: ; preds = %93
%95 = load i32, ptr %2, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %2, align 4
br label %33, !llvm.loop !12
97: ; preds = %33
%98 = load i32, ptr @stdout, align 4
%99 = call i32 @fflush(i32 noundef %98)
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ms1vapp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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 [560 x [32 x i32]], align 16
%7 = alloca [56 x [16 x i32]], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 560
br i1 %9, label %.lr.ph2, label %34
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %29
store i32 0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %11, 32
br i1 %12, label %.lr.ph, label %28
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %23
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %14, %15
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [560 x [32 x i32]], ptr %6, i64 0, i64 %18
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [32 x i32], ptr %19, i64 0, i64 %21
store i32 %16, ptr %22, align 4
br label %23
23: ; preds = %13
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 32
br i1 %27, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %10
br label %29
29: ; preds = %28
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 560
br i1 %33, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %0
store i32 0, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp slt i32 %35, 56
br i1 %36, label %.lr.ph14, label %103
.lr.ph14: ; preds = %34
br label %37
37: ; preds = %.lr.ph14, %98
store i32 0, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %38, 16
br i1 %39, label %.lr.ph11, label %97
.lr.ph11: ; preds = %37
br label %40
40: ; preds = %.lr.ph11, %92
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %42
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x i32], ptr %43, i64 0, i64 %45
store i32 0, ptr %46, align 4
store i32 0, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = icmp slt i32 %47, 10
br i1 %48, label %.lr.ph8, label %91
.lr.ph8: ; preds = %40
br label %49
49: ; preds = %.lr.ph8, %86
store i32 0, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = icmp slt i32 %50, 2
br i1 %51, label %.lr.ph5, label %85
.lr.ph5: ; preds = %49
br label %52
52: ; preds = %.lr.ph5, %80
%53 = load i32, ptr %2, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %54
%56 = load i32, ptr %3, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [16 x i32], ptr %55, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %2, align 4
%61 = mul nsw i32 %60, 10
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [560 x [32 x i32]], ptr %6, i64 0, i64 %64
%66 = load i32, ptr %3, align 4
%67 = mul nsw i32 %66, 2
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [32 x i32], ptr %65, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = add nsw i32 %59, %72
%74 = load i32, ptr %2, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [56 x [16 x i32]], ptr %7, i64 0, i64 %75
%77 = load i32, ptr %3, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [16 x i32], ptr %76, i64 0, i64 %78
store i32 %73, ptr %79, align 4
br label %80
80: ; preds = %52
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
%83 = load i32, ptr %5, align 4
%84 = icmp slt i32 %83, 2
br i1 %84, label %52, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %80
br label %85
85: ; preds = %._crit_edge6, %49
br label %86
86: ; preds = %85
%87 = load i32, ptr %4, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %4, align 4
%89 = load i32, ptr %4, align 4
%90 = icmp slt i32 %89, 10
br i1 %90, label %49, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %86
br label %91
91: ; preds = %._crit_edge9, %40
br label %92
92: ; preds = %91
%93 = load i32, ptr %3, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %3, align 4
%95 = load i32, ptr %3, align 4
%96 = icmp slt i32 %95, 16
br i1 %96, label %40, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %92
br label %97
97: ; preds = %._crit_edge12, %37
br label %98
98: ; preds = %97
%99 = load i32, ptr %2, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %2, align 4
%101 = load i32, ptr %2, align 4
%102 = icmp slt i32 %101, 56
br i1 %102, label %37, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %98
br label %103
103: ; preds = %._crit_edge15, %34
%104 = load i32, ptr @stdout, align 4
%105 = call i32 @fflush(i32 noundef %104)
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpoinfg5kj.c'
source_filename = "/tmp/tmpoinfg5kj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"2\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"3\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
store i32 0, ptr %2, align 4
store i32 2, ptr %3, align 4
br label %4
4: ; preds = %39, %28, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %9, 2
%11 = icmp ne i32 %8, %10
br label %12
12: ; preds = %7, %4
%13 = phi i1 [ false, %4 ], [ %11, %7 ]
br i1 %13, label %14, label %44
14: ; preds = %12
%15 = call i32 @printf(ptr noundef @.str)
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 8
br i1 %17, label %18, label %39
18: ; preds = %14
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 4
br i1 %21, label %22, label %28
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 10, %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, %24
store i32 %26, ptr %3, align 4
%27 = call i32 @printf(ptr noundef @.str.1)
br label %19, !llvm.loop !6
28: ; preds = %19
%29 = load i32, ptr %2, align 4
%30 = mul nsw i32 2, %29
%31 = load i32, ptr %2, align 4
%32 = mul nsw i32 %31, 3
%33 = add nsw i32 %30, %32
%34 = load i32, ptr %2, align 4
%35 = mul nsw i32 %34, 4
%36 = add nsw i32 %33, %35
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, %36
store i32 %38, ptr %3, align 4
br label %4, !llvm.loop !8
39: ; preds = %14
%40 = load i32, ptr %2, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %2, align 4
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %3, align 4
br label %4, !llvm.loop !8
44: ; preds = %12
%45 = call i32 @printf(ptr noundef @.str.2)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoinfg5kj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"2\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"3\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
store i32 0, ptr %2, align 4
store i32 2, ptr %3, align 4
br label %4
4: ; preds = %.backedge, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 %9, 2
%11 = icmp ne i32 %8, %10
br label %12
12: ; preds = %7, %4
%13 = phi i1 [ false, %4 ], [ %11, %7 ]
br i1 %13, label %14, label %45
14: ; preds = %12
%15 = call i32 @printf(ptr noundef @.str)
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 8
br i1 %17, label %18, label %40
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 4
br i1 %20, label %.lr.ph, label %29
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 10, %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str.1)
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %29
29: ; preds = %._crit_edge, %18
%30 = load i32, ptr %2, align 4
%31 = mul nsw i32 2, %30
%32 = load i32, ptr %2, align 4
%33 = mul nsw i32 %32, 3
%34 = add nsw i32 %31, %33
%35 = load i32, ptr %2, align 4
%36 = mul nsw i32 %35, 4
%37 = add nsw i32 %34, %36
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, %37
store i32 %39, ptr %3, align 4
br label %.backedge
.backedge: ; preds = %29, %40
br label %4, !llvm.loop !8
40: ; preds = %14
%41 = load i32, ptr %2, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %2, align 4
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
br label %.backedge
45: ; preds = %12
%46 = call i32 @printf(ptr noundef @.str.2)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpk201348b.c'
source_filename = "/tmp/tmpk201348b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigcrash(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 @exit(i32 noundef %3) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmpk201348b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigcrash(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 @exit(i32 noundef %3) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmputpzt2zf.c'
source_filename = "/tmp/tmputpzt2zf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @USBSTK5515_LED_init() #0 {
%1 = call signext i16 @USBSTK5515_LED_off(i32 noundef 0)
ret i16 %1
}
declare signext i16 @USBSTK5515_LED_off(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/tmputpzt2zf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @USBSTK5515_LED_init() #0 {
%1 = call signext i16 @USBSTK5515_LED_off(i32 noundef 0)
ret i16 %1
}
declare signext i16 @USBSTK5515_LED_off(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_n2cmnsz.c'
source_filename = "/tmp/tmp_n2cmnsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Write @fd %d failed:\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"write@pipe_send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ltr_int_fifo_send(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 -1, ptr %4, align 4
br label %26
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = call i64 @write(i32 noundef %13, ptr noundef %14, i64 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %12
%19 = load i32, ptr %5, align 4
%20 = call i32 @ltr_int_log_message(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %8, align 4
%22 = call i32 @ltr_int_my_perror(ptr noundef @.str.1)
%23 = load i32, ptr %8, align 4
%24 = sub nsw i32 0, %23
store i32 %24, ptr %4, align 4
br label %26
25: ; preds = %12
store i32 0, ptr %4, align 4
br label %26
26: ; preds = %25, %18, %11
%27 = load i32, ptr %4, align 4
ret i32 %27
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @ltr_int_log_message(ptr noundef, i32 noundef) #1
declare i32 @ltr_int_my_perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_n2cmnsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Write @fd %d failed:\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"write@pipe_send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ltr_int_fifo_send(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp sle i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 -1, ptr %4, align 4
br label %26
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = call i64 @write(i32 noundef %13, ptr noundef %14, i64 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %12
%19 = load i32, ptr %5, align 4
%20 = call i32 @ltr_int_log_message(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr @errno, align 4
store i32 %21, ptr %8, align 4
%22 = call i32 @ltr_int_my_perror(ptr noundef @.str.1)
%23 = load i32, ptr %8, align 4
%24 = sub nsw i32 0, %23
store i32 %24, ptr %4, align 4
br label %26
25: ; preds = %12
store i32 0, ptr %4, align 4
br label %26
26: ; preds = %25, %18, %11
%27 = load i32, ptr %4, align 4
ret i32 %27
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @ltr_int_log_message(ptr noundef, i32 noundef) #1
declare i32 @ltr_int_my_perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxfojupr3.c'
source_filename = "/tmp/tmpxfojupr3.c"
target datalayout = "e-m:e-p270: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.serial_struct = type { ptr }
@.str = private unnamed_addr constant [8 x i8] c"Usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%s TTYNAME TTYNUM\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"/dev/%s%d\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@TIOCGSERIAL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [24 x i8] c"Cannot get serial info\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"%s is RS232\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"%s is RS422/485\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [80 x i8], align 16
%10 = alloca %struct.serial_struct, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %81
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %24
24: ; preds = %77, %19
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %80
28: ; preds = %24
%29 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %6, align 4
%34 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.2, ptr noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%36 = load i32, ptr @O_RDWR, align 4
%37 = load i32, ptr @O_NDELAY, align 4
%38 = or i32 %36, %37
%39 = call i32 @open(ptr noundef %35, i32 noundef %38)
store i32 %39, ptr %8, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %42
41: ; preds = %28
br label %80
42: ; preds = %28
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%45 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%46 = call i32 @strlen(ptr noundef %45)
%47 = call i32 @write(i32 noundef %43, ptr noundef %44, i32 noundef %46)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %50
49: ; preds = %42
br label %80
50: ; preds = %42
%51 = getelementptr inbounds %struct.serial_struct, ptr %10, i32 0, i32 0
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i64, ptr %52, i64 0
store i64 0, ptr %53, align 8
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr @TIOCGSERIAL, align 4
%56 = call i64 @ioctl(i32 noundef %54, i32 noundef %55, ptr noundef %10)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %50
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%60 = load i32, ptr %8, align 4
%61 = call i32 @close(i32 noundef %60)
store i32 2, ptr %3, align 4
br label %81
62: ; preds = %50
%63 = getelementptr inbounds %struct.serial_struct, ptr %10, i32 0, i32 0
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds i64, ptr %64, i64 0
%66 = load i64, ptr %65, align 8
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %62
%69 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %69)
br label %74
71: ; preds = %62
%72 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %72)
br label %74
74: ; preds = %71, %68
%75 = load i32, ptr %8, align 4
%76 = call i32 @close(i32 noundef %75)
br label %77
77: ; preds = %74
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %6, align 4
br label %24, !llvm.loop !6
80: ; preds = %49, %41, %24
store i32 0, ptr %3, align 4
br label %81
81: ; preds = %80, %58, %13
%82 = load i32, ptr %3, align 4
ret i32 %82
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpxfojupr3.c"
target datalayout = "e-m:e-p270: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.serial_struct = type { ptr }
@.str = private unnamed_addr constant [8 x i8] c"Usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%s TTYNAME TTYNUM\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"/dev/%s%d\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@TIOCGSERIAL = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [24 x i8] c"Cannot get serial info\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"%s is RS232\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"%s is RS422/485\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [80 x i8], align 16
%10 = alloca %struct.serial_struct, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %83
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 2
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
store i32 0, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %19
br label %27
27: ; preds = %.lr.ph, %76
%28 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %6, align 4
%33 = call i32 @sprintf(ptr noundef %28, ptr noundef @.str.2, ptr noundef %31, i32 noundef %32)
%34 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%35 = load i32, ptr @O_RDWR, align 4
%36 = load i32, ptr @O_NDELAY, align 4
%37 = or i32 %35, %36
%38 = call i32 @open(ptr noundef %34, i32 noundef %37)
store i32 %38, ptr %8, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %41
40: ; preds = %27
br label %82
41: ; preds = %27
%42 = load i32, ptr %8, align 4
%43 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%44 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @strlen(ptr noundef %44)
%46 = call i32 @write(i32 noundef %42, ptr noundef %43, i32 noundef %45)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %49
48: ; preds = %41
br label %82
49: ; preds = %41
%50 = getelementptr inbounds %struct.serial_struct, ptr %10, i32 0, i32 0
%51 = load ptr, ptr %50, align 8
%52 = getelementptr inbounds i64, ptr %51, i64 0
store i64 0, ptr %52, align 8
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr @TIOCGSERIAL, align 4
%55 = call i64 @ioctl(i32 noundef %53, i32 noundef %54, ptr noundef %10)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %49
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%59 = load i32, ptr %8, align 4
%60 = call i32 @close(i32 noundef %59)
store i32 2, ptr %3, align 4
br label %83
61: ; preds = %49
%62 = getelementptr inbounds %struct.serial_struct, ptr %10, i32 0, i32 0
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds i64, ptr %63, i64 0
%65 = load i64, ptr %64, align 8
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %61
%68 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %68)
br label %73
70: ; preds = %61
%71 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %71)
br label %73
73: ; preds = %70, %67
%74 = load i32, ptr %8, align 4
%75 = call i32 @close(i32 noundef %74)
br label %76
76: ; preds = %73
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %6, align 4
%79 = load i32, ptr %6, align 4
%80 = load i32, ptr %7, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %27, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %76
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %19
br label %82
82: ; preds = %.loopexit, %48, %40
store i32 0, ptr %3, align 4
br label %83
83: ; preds = %82, %57, %13
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmps6867d8v.c'
source_filename = "/tmp/tmps6867d8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"JXTermLib Debug Screen\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Inverse Video\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Bold \00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Underline\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Black \00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"Red \00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"Green \00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"Yellow \00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Blue \00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"Magenta \00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c"Cyan \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Lt Grey\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Dk Grey\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"White \00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"Lt Gray\00", align 1
@.str.15 = private unnamed_addr constant [18 x i8] c"New Size: %d x %d\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @jx_term_debug() #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 = call i32 @jx_term_init(i32 noundef 1)
%7 = call i32 @jx_term_move_to(i32 noundef 1, i32 noundef 1)
%8 = call i32 @jx_term_putstr(ptr noundef @.str)
%9 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 2)
%10 = call i32 @jx_term_set_attr(i32 noundef 1, i32 noundef 1)
%11 = call i32 @jx_term_putstr(ptr noundef @.str.1)
%12 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 3)
%13 = call i32 @jx_term_set_attr(i32 noundef 1, i32 noundef 0)
%14 = call i32 @jx_term_set_attr(i32 noundef 2, i32 noundef 1)
%15 = call i32 @jx_term_putstr(ptr noundef @.str.2)
%16 = call i32 @jx_term_set_attr(i32 noundef 2, i32 noundef 0)
%17 = call i32 @jx_term_set_attr(i32 noundef 4, i32 noundef 1)
%18 = call i32 @jx_term_putstr(ptr noundef @.str.3)
%19 = call i32 @jx_term_set_attr(i32 noundef 4, i32 noundef 0)
%20 = call i32 @jx_term_show_cursor(i32 noundef 0)
%21 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 5)
%22 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 0)
%23 = call i32 @jx_term_putstr(ptr noundef @.str.4)
%24 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 1)
%25 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%26 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 2)
%27 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%28 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 3)
%29 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%30 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 4)
%31 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%32 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 5)
%33 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%34 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 6)
%35 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%36 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 7)
%37 = call i32 @jx_term_putstr(ptr noundef @.str.11)
%38 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 6)
%39 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 8)
%40 = call i32 @jx_term_putstr(ptr noundef @.str.12)
%41 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 9)
%42 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%43 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 10)
%44 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%45 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 11)
%46 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%47 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 12)
%48 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%49 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 13)
%50 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%51 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 14)
%52 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%53 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 15)
%54 = call i32 @jx_term_putstr(ptr noundef @.str.13)
%55 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef -1)
%56 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 7)
%57 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 0)
%58 = call i32 @jx_term_putstr(ptr noundef @.str.4)
%59 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 1)
%60 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%61 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 2)
%62 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%63 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 3)
%64 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%65 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 4)
%66 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%67 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 5)
%68 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%69 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 6)
%70 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%71 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 7)
%72 = call i32 @jx_term_putstr(ptr noundef @.str.14)
%73 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 8)
%74 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 8)
%75 = call i32 @jx_term_putstr(ptr noundef @.str.12)
%76 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 9)
%77 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%78 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 10)
%79 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%80 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 11)
%81 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%82 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 12)
%83 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%84 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 13)
%85 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%86 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 14)
%87 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%88 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 15)
%89 = call i32 @jx_term_putstr(ptr noundef @.str.13)
%90 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef -1)
%91 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 10)
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%92 = call i32 (...) @jx_term_flush()
br label %93
93: ; preds = %143, %0
%94 = call i32 (...) @jx_term_getchar()
store i32 %94, ptr %3, align 4
%95 = load i32, ptr %3, align 4
%96 = icmp sge i32 %95, 0
br i1 %96, label %100, label %97
97: ; preds = %93
%98 = load i32, ptr %3, align 4
%99 = icmp slt i32 %98, -1
br i1 %99, label %100, label %115
100: ; preds = %97, %93
%101 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 10)
%102 = load i32, ptr %3, align 4
%103 = icmp eq i32 %102, -2
br i1 %103, label %104, label %109
104: ; preds = %100
%105 = call i32 @jx_term_get_size(ptr noundef %4, ptr noundef %5)
%106 = load i32, ptr %4, align 4
%107 = load i32, ptr %5, align 4
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %106, i32 noundef %107)
br label %113
109: ; preds = %100
%110 = call i32 (...) @jx_term_erase_to_line_end()
%111 = load i32, ptr %3, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %111)
br label %113
113: ; preds = %109, %104
%114 = call i32 (...) @jx_term_flush()
br label %115
115: ; preds = %113, %97
%116 = load i32, ptr %3, align 4
%117 = icmp eq i32 %116, 113
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = load i32, ptr %3, align 4
%120 = icmp eq i32 %119, 81
br i1 %120, label %121, label %122
121: ; preds = %118, %115
br label %145
122: ; preds = %118
%123 = load i32, ptr %1, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %1, align 4
%125 = load i32, ptr %1, align 4
%126 = icmp eq i32 %125, 1000
br i1 %126, label %127, label %143
127: ; preds = %122
%128 = load i32, ptr %2, align 4
%129 = add nsw i32 4, %128
%130 = call i32 @jx_term_move_to(i32 noundef %129, i32 noundef 12)
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%132 = call i32 @jx_term_move_to(i32 noundef 10, i32 noundef 10)
%133 = call i32 (...) @jx_term_flush()
store i32 0, ptr %1, align 4
%134 = load i32, ptr %2, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %2, align 4
%136 = load i32, ptr %2, align 4
%137 = icmp sgt i32 %136, 20
br i1 %137, label %138, label %142
138: ; preds = %127
%139 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 12)
%140 = call i32 (...) @jx_term_erase_to_line_end()
store i32 0, ptr %2, align 4
%141 = call i32 (...) @jx_term_flush()
br label %142
142: ; preds = %138, %127
br label %143
143: ; preds = %142, %122
%144 = call i32 @usleep(i32 noundef 200)
br label %93
145: ; preds = %121
ret void
}
declare i32 @jx_term_init(i32 noundef) #1
declare i32 @jx_term_move_to(i32 noundef, i32 noundef) #1
declare i32 @jx_term_putstr(ptr noundef) #1
declare i32 @jx_term_set_attr(i32 noundef, i32 noundef) #1
declare i32 @jx_term_show_cursor(i32 noundef) #1
declare i32 @jx_term_flush(...) #1
declare i32 @jx_term_getchar(...) #1
declare i32 @jx_term_get_size(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @jx_term_erase_to_line_end(...) #1
declare i32 @usleep(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/tmps6867d8v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"JXTermLib Debug Screen\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Inverse Video\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Bold \00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Underline\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Black \00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"Red \00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"Green \00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"Yellow \00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"Blue \00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"Magenta \00", align 1
@.str.10 = private unnamed_addr constant [7 x i8] c"Cyan \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Lt Grey\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Dk Grey\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"White \00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"Lt Gray\00", align 1
@.str.15 = private unnamed_addr constant [18 x i8] c"New Size: %d x %d\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @jx_term_debug() #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 = call i32 @jx_term_init(i32 noundef 1)
%7 = call i32 @jx_term_move_to(i32 noundef 1, i32 noundef 1)
%8 = call i32 @jx_term_putstr(ptr noundef @.str)
%9 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 2)
%10 = call i32 @jx_term_set_attr(i32 noundef 1, i32 noundef 1)
%11 = call i32 @jx_term_putstr(ptr noundef @.str.1)
%12 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 3)
%13 = call i32 @jx_term_set_attr(i32 noundef 1, i32 noundef 0)
%14 = call i32 @jx_term_set_attr(i32 noundef 2, i32 noundef 1)
%15 = call i32 @jx_term_putstr(ptr noundef @.str.2)
%16 = call i32 @jx_term_set_attr(i32 noundef 2, i32 noundef 0)
%17 = call i32 @jx_term_set_attr(i32 noundef 4, i32 noundef 1)
%18 = call i32 @jx_term_putstr(ptr noundef @.str.3)
%19 = call i32 @jx_term_set_attr(i32 noundef 4, i32 noundef 0)
%20 = call i32 @jx_term_show_cursor(i32 noundef 0)
%21 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 5)
%22 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 0)
%23 = call i32 @jx_term_putstr(ptr noundef @.str.4)
%24 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 1)
%25 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%26 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 2)
%27 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%28 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 3)
%29 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%30 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 4)
%31 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%32 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 5)
%33 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%34 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 6)
%35 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%36 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 7)
%37 = call i32 @jx_term_putstr(ptr noundef @.str.11)
%38 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 6)
%39 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 8)
%40 = call i32 @jx_term_putstr(ptr noundef @.str.12)
%41 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 9)
%42 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%43 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 10)
%44 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%45 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 11)
%46 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%47 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 12)
%48 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%49 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 13)
%50 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%51 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 14)
%52 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%53 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef 15)
%54 = call i32 @jx_term_putstr(ptr noundef @.str.13)
%55 = call i32 @jx_term_set_attr(i32 noundef 10, i32 noundef -1)
%56 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 7)
%57 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 0)
%58 = call i32 @jx_term_putstr(ptr noundef @.str.4)
%59 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 1)
%60 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%61 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 2)
%62 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%63 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 3)
%64 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%65 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 4)
%66 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%67 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 5)
%68 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%69 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 6)
%70 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%71 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 7)
%72 = call i32 @jx_term_putstr(ptr noundef @.str.14)
%73 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 8)
%74 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 8)
%75 = call i32 @jx_term_putstr(ptr noundef @.str.12)
%76 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 9)
%77 = call i32 @jx_term_putstr(ptr noundef @.str.5)
%78 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 10)
%79 = call i32 @jx_term_putstr(ptr noundef @.str.6)
%80 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 11)
%81 = call i32 @jx_term_putstr(ptr noundef @.str.7)
%82 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 12)
%83 = call i32 @jx_term_putstr(ptr noundef @.str.8)
%84 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 13)
%85 = call i32 @jx_term_putstr(ptr noundef @.str.9)
%86 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 14)
%87 = call i32 @jx_term_putstr(ptr noundef @.str.10)
%88 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef 15)
%89 = call i32 @jx_term_putstr(ptr noundef @.str.13)
%90 = call i32 @jx_term_set_attr(i32 noundef 11, i32 noundef -1)
%91 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 10)
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%92 = call i32 (...) @jx_term_flush()
br label %93
93: ; preds = %143, %0
%94 = call i32 (...) @jx_term_getchar()
store i32 %94, ptr %3, align 4
%95 = load i32, ptr %3, align 4
%96 = icmp sge i32 %95, 0
br i1 %96, label %100, label %97
97: ; preds = %93
%98 = load i32, ptr %3, align 4
%99 = icmp slt i32 %98, -1
br i1 %99, label %100, label %115
100: ; preds = %97, %93
%101 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 10)
%102 = load i32, ptr %3, align 4
%103 = icmp eq i32 %102, -2
br i1 %103, label %104, label %109
104: ; preds = %100
%105 = call i32 @jx_term_get_size(ptr noundef %4, ptr noundef %5)
%106 = load i32, ptr %4, align 4
%107 = load i32, ptr %5, align 4
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %106, i32 noundef %107)
br label %113
109: ; preds = %100
%110 = call i32 (...) @jx_term_erase_to_line_end()
%111 = load i32, ptr %3, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %111)
br label %113
113: ; preds = %109, %104
%114 = call i32 (...) @jx_term_flush()
br label %115
115: ; preds = %113, %97
%116 = load i32, ptr %3, align 4
%117 = icmp eq i32 %116, 113
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = load i32, ptr %3, align 4
%120 = icmp eq i32 %119, 81
br i1 %120, label %121, label %122
121: ; preds = %118, %115
br label %145
122: ; preds = %118
%123 = load i32, ptr %1, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %1, align 4
%125 = load i32, ptr %1, align 4
%126 = icmp eq i32 %125, 1000
br i1 %126, label %127, label %143
127: ; preds = %122
%128 = load i32, ptr %2, align 4
%129 = add nsw i32 4, %128
%130 = call i32 @jx_term_move_to(i32 noundef %129, i32 noundef 12)
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%132 = call i32 @jx_term_move_to(i32 noundef 10, i32 noundef 10)
%133 = call i32 (...) @jx_term_flush()
store i32 0, ptr %1, align 4
%134 = load i32, ptr %2, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %2, align 4
%136 = load i32, ptr %2, align 4
%137 = icmp sgt i32 %136, 20
br i1 %137, label %138, label %142
138: ; preds = %127
%139 = call i32 @jx_term_move_to(i32 noundef 4, i32 noundef 12)
%140 = call i32 (...) @jx_term_erase_to_line_end()
store i32 0, ptr %2, align 4
%141 = call i32 (...) @jx_term_flush()
br label %142
142: ; preds = %138, %127
br label %143
143: ; preds = %142, %122
%144 = call i32 @usleep(i32 noundef 200)
br label %93
145: ; preds = %121
ret void
}
declare i32 @jx_term_init(i32 noundef) #1
declare i32 @jx_term_move_to(i32 noundef, i32 noundef) #1
declare i32 @jx_term_putstr(ptr noundef) #1
declare i32 @jx_term_set_attr(i32 noundef, i32 noundef) #1
declare i32 @jx_term_show_cursor(i32 noundef) #1
declare i32 @jx_term_flush(...) #1
declare i32 @jx_term_getchar(...) #1
declare i32 @jx_term_get_size(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @jx_term_erase_to_line_end(...) #1
declare i32 @usleep(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/tmpa9_jgj98.c'
source_filename = "/tmp/tmpa9_jgj98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OPEN\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"[handleCommand] Ricevuta richiesta OPEN\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"CLOS\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"[handleCommand] Ricevuta richiesta CLOSE\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"READ\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"[handleCommand] Ricevuta richiesta READ\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"[handleCommand] Comando sconosciuto.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handleCommand(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strncmp(ptr noundef @.str, ptr noundef %5, i32 noundef 3)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = call i32 @logM(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @handleOpenCommand(ptr noundef %10, i32 noundef %11)
br label %35
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %14, i32 noundef 3)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = call i32 @logM(ptr noundef @.str.3)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = call i32 @handleCloseCommand(ptr noundef %19, i32 noundef %20)
br label %34
22: ; preds = %13
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %23, i32 noundef 3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = call i32 @logM(ptr noundef @.str.5)
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %4, align 4
%30 = call i32 @handleREADCommand(ptr noundef %28, i32 noundef %29)
br label %33
31: ; preds = %22
%32 = call i32 @logM(ptr noundef @.str.6)
br label %33
33: ; preds = %31, %26
br label %34
34: ; preds = %33, %17
br label %35
35: ; preds = %34, %8
ret void
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @logM(ptr noundef) #1
declare i32 @handleOpenCommand(ptr noundef, i32 noundef) #1
declare i32 @handleCloseCommand(ptr noundef, i32 noundef) #1
declare i32 @handleREADCommand(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/tmpa9_jgj98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OPEN\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"[handleCommand] Ricevuta richiesta OPEN\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"CLOS\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"[handleCommand] Ricevuta richiesta CLOSE\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"READ\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"[handleCommand] Ricevuta richiesta READ\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"[handleCommand] Comando sconosciuto.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handleCommand(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i64 @strncmp(ptr noundef @.str, ptr noundef %5, i32 noundef 3)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = call i32 @logM(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @handleOpenCommand(ptr noundef %10, i32 noundef %11)
br label %35
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %14, i32 noundef 3)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %13
%18 = call i32 @logM(ptr noundef @.str.3)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = call i32 @handleCloseCommand(ptr noundef %19, i32 noundef %20)
br label %34
22: ; preds = %13
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %23, i32 noundef 3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = call i32 @logM(ptr noundef @.str.5)
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %4, align 4
%30 = call i32 @handleREADCommand(ptr noundef %28, i32 noundef %29)
br label %33
31: ; preds = %22
%32 = call i32 @logM(ptr noundef @.str.6)
br label %33
33: ; preds = %31, %26
br label %34
34: ; preds = %33, %17
br label %35
35: ; preds = %34, %8
ret void
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @logM(ptr noundef) #1
declare i32 @handleOpenCommand(ptr noundef, i32 noundef) #1
declare i32 @handleCloseCommand(ptr noundef, i32 noundef) #1
declare i32 @handleREADCommand(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/tmpqg52cgzy.c'
source_filename = "/tmp/tmpqg52cgzy.c"
target datalayout = "e-m:e-p270: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/tmpqg52cgzy.c"
target datalayout = "e-m:e-p270: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/tmpj9yn59mm.c'
source_filename = "/tmp/tmpj9yn59mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIDataPutNonBlocking(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @SSIBaseValid(i64 noundef %6)
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = add i64 %10, 0
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, 15
%15 = trunc i64 %14 to i32
%16 = shl i32 -2, %15
%17 = zext i32 %16 to i64
%18 = and i64 %9, %17
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @DEBUG_ASSERT(i32 noundef %20)
%22 = load i64, ptr %4, align 8
%23 = add i64 %22, 12
%24 = inttoptr i64 %23 to ptr
%25 = load volatile i64, ptr %24, align 8
%26 = and i64 %25, 2
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %2
%29 = load i64, ptr %5, align 8
%30 = load i64, ptr %4, align 8
%31 = add i64 %30, 8
%32 = inttoptr i64 %31 to ptr
store volatile i64 %29, ptr %32, align 8
store i64 1, ptr %3, align 8
br label %34
33: ; preds = %2
store i64 0, ptr %3, align 8
br label %34
34: ; preds = %33, %28
%35 = load i64, ptr %3, align 8
ret i64 %35
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @SSIBaseValid(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/tmpj9yn59mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIDataPutNonBlocking(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = call i32 @SSIBaseValid(i64 noundef %6)
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = add i64 %10, 0
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, 15
%15 = trunc i64 %14 to i32
%16 = shl i32 -2, %15
%17 = zext i32 %16 to i64
%18 = and i64 %9, %17
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @DEBUG_ASSERT(i32 noundef %20)
%22 = load i64, ptr %4, align 8
%23 = add i64 %22, 12
%24 = inttoptr i64 %23 to ptr
%25 = load volatile i64, ptr %24, align 8
%26 = and i64 %25, 2
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %2
%29 = load i64, ptr %5, align 8
%30 = load i64, ptr %4, align 8
%31 = add i64 %30, 8
%32 = inttoptr i64 %31 to ptr
store volatile i64 %29, ptr %32, align 8
store i64 1, ptr %3, align 8
br label %34
33: ; preds = %2
store i64 0, ptr %3, align 8
br label %34
34: ; preds = %33, %28
%35 = load i64, ptr %3, align 8
ret i64 %35
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @SSIBaseValid(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/tmpsy9ie59s.c'
source_filename = "/tmp/tmpsy9ie59s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @anagram(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp ne i64 %7, %9
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, ptr %3, align 4
br label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i32 @sort(ptr noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @sort(ptr noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i64 @strlen(ptr noundef %19)
%21 = call i32 @strncmp(ptr noundef %17, ptr noundef %18, i64 noundef %20)
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
%24 = zext i1 %23 to i32
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %12, %11
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @strlen(ptr noundef) #1
declare i32 @sort(ptr noundef) #1
declare i32 @strncmp(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/tmpsy9ie59s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @anagram(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp ne i64 %7, %9
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, ptr %3, align 4
br label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i32 @sort(ptr noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @sort(ptr noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i64 @strlen(ptr noundef %19)
%21 = call i32 @strncmp(ptr noundef %17, ptr noundef %18, i64 noundef %20)
%22 = icmp ne i32 %21, 0
%23 = xor i1 %22, true
%24 = zext i1 %23 to i32
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %12, %11
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @strlen(ptr noundef) #1
declare i32 @sort(ptr noundef) #1
declare i32 @strncmp(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/tmp4ay0pnt1.c'
source_filename = "/tmp/tmp4ay0pnt1.c"
target datalayout = "e-m:e-p270: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/tmp4ay0pnt1.c"
target datalayout = "e-m:e-p270: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/tmpncwk6k_a.c'
source_filename = "/tmp/tmpncwk6k_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dist_double(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store i64 0, ptr %9, align 8
br label %10
10: ; preds = %28, %3
%11 = load i64, ptr %9, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %31
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %9, align 8
%17 = getelementptr inbounds double, ptr %15, i64 %16
%18 = load double, ptr %17, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %9, align 8
%21 = getelementptr inbounds double, ptr %19, i64 %20
%22 = load double, ptr %21, align 8
%23 = fsub double %18, %22
store double %23, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = load double, ptr %8, align 8
%26 = load double, ptr %7, align 8
%27 = call double @llvm.fmuladd.f64(double %24, double %25, double %26)
store double %27, ptr %7, align 8
br label %28
28: ; preds = %14
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %9, align 8
br label %10, !llvm.loop !6
31: ; preds = %10
%32 = load double, ptr %7, align 8
ret double %32
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpncwk6k_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dist_double(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store i64 0, ptr %9, align 8
%10 = load i64, ptr %9, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %27
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds double, ptr %14, i64 %15
%17 = load double, ptr %16, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %9, align 8
%20 = getelementptr inbounds double, ptr %18, i64 %19
%21 = load double, ptr %20, align 8
%22 = fsub double %17, %21
store double %22, ptr %8, align 8
%23 = load double, ptr %8, align 8
%24 = load double, ptr %8, align 8
%25 = load double, ptr %7, align 8
%26 = call double @llvm.fmuladd.f64(double %23, double %24, double %25)
store double %26, ptr %7, align 8
br label %27
27: ; preds = %13
%28 = load i64, ptr %9, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i64, ptr %6, align 8
%32 = icmp ult i64 %30, %31
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %3
%34 = load double, ptr %7, align 8
ret double %34
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpr5rfw0kw.c'
source_filename = "/tmp/tmpr5rfw0kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init() #0 {
%1 = call i32 (...) @getch()
%2 = call i32 (...) @skip_white()
ret void
}
declare i32 @getch(...) #1
declare i32 @skip_white(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr5rfw0kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init() #0 {
%1 = call i32 (...) @getch()
%2 = call i32 (...) @skip_white()
ret void
}
declare i32 @getch(...) #1
declare i32 @skip_white(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoi81ruxs.c'
source_filename = "/tmp/tmpoi81ruxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = call i32 @write(i32 noundef -2, ptr noundef %8, i32 noundef 1)
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %2, align 8
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = call i32 (...) @newline()
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpoi81ruxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puts(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 i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = call i32 @write(i32 noundef -2, ptr noundef %7, i32 noundef 1)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %2, align 8
%11 = load ptr, ptr %2, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %14
14: ; preds = %._crit_edge, %1
%15 = call i32 (...) @newline()
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpt61334t6.c'
source_filename = "/tmp/tmpt61334t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %10, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ult i64 %12, 12
br i1 %13, label %14, label %29
14: ; preds = %3
store i64 0, ptr %8, align 8
br label %15
15: ; preds = %24, %14
%16 = load i64, ptr %8, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load i32, ptr %6, align 4
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %10, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %10, align 8
store i8 %21, ptr %22, align 1
br label %24
24: ; preds = %19
%25 = load i64, ptr %8, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %8, align 8
br label %15, !llvm.loop !6
27: ; preds = %15
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %4, align 8
br label %98
29: ; preds = %3
%30 = load ptr, ptr %10, align 8
%31 = ptrtoint ptr %30 to i32
%32 = sext i32 %31 to i64
%33 = and i64 %32, 3
store i64 %33, ptr %9, align 8
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %54
35: ; preds = %29
%36 = load i64, ptr %9, align 8
%37 = sub i64 4, %36
store i64 %37, ptr %9, align 8
%38 = load i64, ptr %9, align 8
%39 = load i64, ptr %7, align 8
%40 = sub i64 %39, %38
store i64 %40, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %41
41: ; preds = %50, %35
%42 = load i64, ptr %8, align 8
%43 = load i64, ptr %9, align 8
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %53
45: ; preds = %41
%46 = load i32, ptr %6, align 4
%47 = trunc i32 %46 to i8
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %10, align 8
store i8 %47, ptr %48, align 1
br label %50
50: ; preds = %45
%51 = load i64, ptr %8, align 8
%52 = add i64 %51, 1
store i64 %52, ptr %8, align 8
br label %41, !llvm.loop !8
53: ; preds = %41
br label %54
54: ; preds = %53, %29
%55 = load i32, ptr %6, align 4
%56 = shl i32 %55, 8
%57 = load i32, ptr %6, align 4
%58 = or i32 %56, %57
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = shl i32 %59, 16
%61 = load i32, ptr %6, align 4
%62 = or i32 %60, %61
store i32 %62, ptr %6, align 4
%63 = load i64, ptr %7, align 8
%64 = udiv i64 %63, 4
store i64 %64, ptr %9, align 8
store i64 0, ptr %8, align 8
br label %65
65: ; preds = %74, %54
%66 = load i64, ptr %8, align 8
%67 = load i64, ptr %9, align 8
%68 = icmp ult i64 %66, %67
br i1 %68, label %69, label %77
69: ; preds = %65
%70 = load i32, ptr %6, align 4
%71 = load ptr, ptr %10, align 8
store i32 %70, ptr %71, align 4
%72 = load ptr, ptr %10, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 4
store ptr %73, ptr %10, align 8
br label %74
74: ; preds = %69
%75 = load i64, ptr %8, align 8
%76 = add i64 %75, 1
store i64 %76, ptr %8, align 8
br label %65, !llvm.loop !9
77: ; preds = %65
%78 = load i64, ptr %7, align 8
%79 = and i64 %78, 3
store i64 %79, ptr %9, align 8
%80 = load i64, ptr %9, align 8
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %96
82: ; preds = %77
store i64 0, ptr %8, align 8
br label %83
83: ; preds = %92, %82
%84 = load i64, ptr %8, align 8
%85 = load i64, ptr %9, align 8
%86 = icmp ult i64 %84, %85
br i1 %86, label %87, label %95
87: ; preds = %83
%88 = load i32, ptr %6, align 4
%89 = trunc i32 %88 to i8
%90 = load ptr, ptr %10, align 8
%91 = getelementptr inbounds i8, ptr %90, i32 1
store ptr %91, ptr %10, align 8
store i8 %89, ptr %90, align 1
br label %92
92: ; preds = %87
%93 = load i64, ptr %8, align 8
%94 = add i64 %93, 1
store i64 %94, ptr %8, align 8
br label %83, !llvm.loop !10
95: ; preds = %83
br label %96
96: ; preds = %95, %77
%97 = load ptr, ptr %5, align 8
store ptr %97, ptr %4, align 8
br label %98
98: ; preds = %96, %27
%99 = load ptr, ptr %4, align 8
ret ptr %99
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt61334t6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %10, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ult i64 %12, 12
br i1 %13, label %14, label %31
14: ; preds = %3
store i64 0, ptr %8, align 8
%15 = load i64, ptr %8, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %.lr.ph8, label %29
.lr.ph8: ; preds = %14
br label %18
18: ; preds = %.lr.ph8, %23
%19 = load i32, ptr %6, align 4
%20 = trunc i32 %19 to i8
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %10, align 8
store i8 %20, ptr %21, align 1
br label %23
23: ; preds = %18
%24 = load i64, ptr %8, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %8, align 8
%26 = load i64, ptr %8, align 8
%27 = load i64, ptr %7, align 8
%28 = icmp ult i64 %26, %27
br i1 %28, label %18, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %23
br label %29
29: ; preds = %._crit_edge9, %14
%30 = load ptr, ptr %5, align 8
store ptr %30, ptr %4, align 8
br label %106
31: ; preds = %3
%32 = load ptr, ptr %10, align 8
%33 = ptrtoint ptr %32 to i32
%34 = sext i32 %33 to i64
%35 = and i64 %34, 3
store i64 %35, ptr %9, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %58
37: ; preds = %31
%38 = load i64, ptr %9, align 8
%39 = sub i64 4, %38
store i64 %39, ptr %9, align 8
%40 = load i64, ptr %9, align 8
%41 = load i64, ptr %7, align 8
%42 = sub i64 %41, %40
store i64 %42, ptr %7, align 8
store i64 0, ptr %8, align 8
%43 = load i64, ptr %8, align 8
%44 = load i64, ptr %9, align 8
%45 = icmp ult i64 %43, %44
br i1 %45, label %.lr.ph, label %57
.lr.ph: ; preds = %37
br label %46
46: ; preds = %.lr.ph, %51
%47 = load i32, ptr %6, align 4
%48 = trunc i32 %47 to i8
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %10, align 8
store i8 %48, ptr %49, align 1
br label %51
51: ; preds = %46
%52 = load i64, ptr %8, align 8
%53 = add i64 %52, 1
store i64 %53, ptr %8, align 8
%54 = load i64, ptr %8, align 8
%55 = load i64, ptr %9, align 8
%56 = icmp ult i64 %54, %55
br i1 %56, label %46, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %37
br label %58
58: ; preds = %57, %31
%59 = load i32, ptr %6, align 4
%60 = shl i32 %59, 8
%61 = load i32, ptr %6, align 4
%62 = or i32 %60, %61
store i32 %62, ptr %6, align 4
%63 = load i32, ptr %6, align 4
%64 = shl i32 %63, 16
%65 = load i32, ptr %6, align 4
%66 = or i32 %64, %65
store i32 %66, ptr %6, align 4
%67 = load i64, ptr %7, align 8
%68 = udiv i64 %67, 4
store i64 %68, ptr %9, align 8
store i64 0, ptr %8, align 8
%69 = load i64, ptr %8, align 8
%70 = load i64, ptr %9, align 8
%71 = icmp ult i64 %69, %70
br i1 %71, label %.lr.ph2, label %83
.lr.ph2: ; preds = %58
br label %72
72: ; preds = %.lr.ph2, %77
%73 = load i32, ptr %6, align 4
%74 = load ptr, ptr %10, align 8
store i32 %73, ptr %74, align 4
%75 = load ptr, ptr %10, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 4
store ptr %76, ptr %10, align 8
br label %77
77: ; preds = %72
%78 = load i64, ptr %8, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %8, align 8
%80 = load i64, ptr %8, align 8
%81 = load i64, ptr %9, align 8
%82 = icmp ult i64 %80, %81
br i1 %82, label %72, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %77
br label %83
83: ; preds = %._crit_edge3, %58
%84 = load i64, ptr %7, align 8
%85 = and i64 %84, 3
store i64 %85, ptr %9, align 8
%86 = load i64, ptr %9, align 8
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %104
88: ; preds = %83
store i64 0, ptr %8, align 8
%89 = load i64, ptr %8, align 8
%90 = load i64, ptr %9, align 8
%91 = icmp ult i64 %89, %90
br i1 %91, label %.lr.ph5, label %103
.lr.ph5: ; preds = %88
br label %92
92: ; preds = %.lr.ph5, %97
%93 = load i32, ptr %6, align 4
%94 = trunc i32 %93 to i8
%95 = load ptr, ptr %10, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 1
store ptr %96, ptr %10, align 8
store i8 %94, ptr %95, align 1
br label %97
97: ; preds = %92
%98 = load i64, ptr %8, align 8
%99 = add i64 %98, 1
store i64 %99, ptr %8, align 8
%100 = load i64, ptr %8, align 8
%101 = load i64, ptr %9, align 8
%102 = icmp ult i64 %100, %101
br i1 %102, label %92, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %97
br label %103
103: ; preds = %._crit_edge6, %88
br label %104
104: ; preds = %103, %83
%105 = load ptr, ptr %5, align 8
store ptr %105, ptr %4, align 8
br label %106
106: ; preds = %104, %29
%107 = load ptr, ptr %4, align 8
ret ptr %107
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpikm1nq1e.c'
source_filename = "/tmp/tmpikm1nq1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readArgs(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %8, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %13, ptr %10, align 4
br label %14
14: ; preds = %64, %3
%15 = load i32, ptr %10, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %66
17: ; preds = %14
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %22, %17
%19 = load i8, ptr %11, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = load i8, ptr %11, align 1
%24 = sext i8 %23 to i32
%25 = sub nsw i32 %24, 48
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [102 x i32], ptr %26, i64 %28
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %9, align 4
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds [102 x i32], ptr %29, i64 0, i64 %32
store i32 %25, ptr %33, align 4
%34 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %34, ptr %10, align 4
br label %18, !llvm.loop !6
35: ; preds = %18
%36 = load i32, ptr %9, align 4
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 %36, ptr %40, align 4
%41 = load i32, ptr %9, align 4
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %42, align 4
%44 = icmp sgt i32 %41, %43
br i1 %44, label %45, label %48
45: ; preds = %35
%46 = load i32, ptr %9, align 4
%47 = load ptr, ptr %7, align 8
store i32 %46, ptr %47, align 4
br label %48
48: ; preds = %45, %35
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %9, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %64
53: ; preds = %48
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %8, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [102 x i32], ptr %54, i64 %57
%59 = getelementptr inbounds [102 x i32], ptr %58, i64 0, i64 0
%60 = load i32, ptr %59, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %53
%63 = load i32, ptr %8, align 4
store i32 %63, ptr %4, align 4
br label %68
64: ; preds = %53, %48
%65 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %65, ptr %10, align 4
br label %14, !llvm.loop !8
66: ; preds = %14
%67 = load i32, ptr %8, align 4
store i32 %67, ptr %4, align 4
br label %68
68: ; preds = %66, %62
%69 = load i32, ptr %4, align 4
ret i32 %69
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpikm1nq1e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readArgs(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %8, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %10, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %.lr.ph2, label %69
.lr.ph2: ; preds = %3
br label %16
16: ; preds = %.lr.ph2, %65
store i32 0, ptr %9, align 4
%17 = load i8, ptr %11, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 10
br i1 %19, label %.lr.ph, label %36
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i8, ptr %11, align 1
%22 = sext i8 %21 to i32
%23 = sub nsw i32 %22, 48
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [102 x i32], ptr %24, i64 %26
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds [102 x i32], ptr %27, i64 0, i64 %30
store i32 %23, ptr %31, align 4
%32 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %32, ptr %10, align 4
%33 = load i8, ptr %11, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 10
br i1 %35, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %36
36: ; preds = %._crit_edge, %16
%37 = load i32, ptr %9, align 4
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %8, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
store i32 %37, ptr %41, align 4
%42 = load i32, ptr %9, align 4
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %43, align 4
%45 = icmp sgt i32 %42, %44
br i1 %45, label %46, label %49
46: ; preds = %36
%47 = load i32, ptr %9, align 4
%48 = load ptr, ptr %7, align 8
store i32 %47, ptr %48, align 4
br label %49
49: ; preds = %46, %36
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %65
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %8, align 4
%57 = sub nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [102 x i32], ptr %55, i64 %58
%60 = getelementptr inbounds [102 x i32], ptr %59, i64 0, i64 0
%61 = load i32, ptr %60, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %54
%64 = load i32, ptr %8, align 4
store i32 %64, ptr %4, align 4
br label %71
65: ; preds = %54, %49
%66 = call i32 @scanf(ptr noundef @.str, ptr noundef %11)
store i32 %66, ptr %10, align 4
%67 = load i32, ptr %10, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %69
69: ; preds = %._crit_edge3, %3
%70 = load i32, ptr %8, align 4
store i32 %70, ptr %4, align 4
br label %71
71: ; preds = %69, %63
%72 = load i32, ptr %4, align 4
ret i32 %72
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkoj1weql.c'
source_filename = "/tmp/tmpkoj1weql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @waitmillisec(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 1000
%5 = call i32 @waitmicrosec(i32 noundef %4)
ret void
}
declare i32 @waitmicrosec(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/tmpkoj1weql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @waitmillisec(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = mul nsw i32 %3, 1000
%5 = call i32 @waitmicrosec(i32 noundef %4)
ret void
}
declare i32 @waitmicrosec(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/tmpkpzax3kx.c'
source_filename = "/tmp/tmpkpzax3kx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter the order of the matrix (m n): \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Enter the matrix:\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Sparse Matrix:\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x [10 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %43, %0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %46
14: ; preds = %10
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %39, %14
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %42
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %21
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x i32], ptr %22, i64 0, i64 %24
%26 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %25)
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %28
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %29, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %19
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %38
38: ; preds = %35, %19
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
br label %15, !llvm.loop !6
42: ; preds = %15
br label %43
43: ; preds = %42
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %4, align 4
br label %10, !llvm.loop !8
46: ; preds = %10
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%48 = load i32, ptr %2, align 4
%49 = load i32, ptr %3, align 4
%50 = load i32, ptr %6, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %48, i32 noundef %49, i32 noundef %50)
store i32 0, ptr %4, align 4
br label %52
52: ; preds = %86, %46
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %89
56: ; preds = %52
store i32 0, ptr %5, align 4
br label %57
57: ; preds = %82, %56
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %3, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %85
61: ; preds = %57
%62 = load i32, ptr %4, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %63
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x i32], ptr %64, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %81
70: ; preds = %61
%71 = load i32, ptr %4, align 4
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %4, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %74
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x i32], ptr %75, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %71, i32 noundef %72, i32 noundef %79)
br label %81
81: ; preds = %70, %61
br label %82
82: ; preds = %81
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %5, align 4
br label %57, !llvm.loop !9
85: ; preds = %57
br label %86
86: ; preds = %85
%87 = load i32, ptr %4, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %4, align 4
br label %52, !llvm.loop !10
89: ; preds = %52
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkpzax3kx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"Enter the order of the matrix (m n): \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Enter the matrix:\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Sparse Matrix:\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x [10 x i32]], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %50
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %44
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %43
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %37
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %19
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], ptr %20, i64 0, i64 %22
%24 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %23)
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %26
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %27, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %17
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %36
36: ; preds = %33, %17
br label %37
37: ; preds = %36
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %13
br label %44
44: ; preds = %43
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %50
50: ; preds = %._crit_edge3, %0
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%52 = load i32, ptr %2, align 4
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr %6, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %52, i32 noundef %53, i32 noundef %54)
store i32 0, ptr %4, align 4
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph8, label %97
.lr.ph8: ; preds = %50
br label %59
59: ; preds = %.lr.ph8, %91
store i32 0, ptr %5, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph5, label %90
.lr.ph5: ; preds = %59
br label %63
63: ; preds = %.lr.ph5, %84
%64 = load i32, ptr %4, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %65
%67 = load i32, ptr %5, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i32], ptr %66, i64 0, i64 %68
%70 = load i32, ptr %69, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %83
72: ; preds = %63
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %4, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x [10 x i32]], ptr %1, i64 0, i64 %76
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [10 x i32], ptr %77, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73, i32 noundef %74, i32 noundef %81)
br label %83
83: ; preds = %72, %63
br label %84
84: ; preds = %83
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %5, align 4
%87 = load i32, ptr %5, align 4
%88 = load i32, ptr %3, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %63, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %84
br label %90
90: ; preds = %._crit_edge6, %59
br label %91
91: ; preds = %90
%92 = load i32, ptr %4, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %4, align 4
%94 = load i32, ptr %4, align 4
%95 = load i32, ptr %2, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %59, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %91
br label %97
97: ; preds = %._crit_edge9, %50
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpo1whj4su.c'
source_filename = "/tmp/tmpo1whj4su.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { i32, ptr, i32, i32 }
@ASN1_R_STRING_TOO_SHORT = dso_local global i32 0, align 4
@ASN1_R_INVALID_BIT_STRING_BITS_LEFT = dso_local global i32 0, align 4
@ASN1_STRING_FLAG_BITS_LEFT = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@V_ASN1_BIT_STRING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @c2i_ASN1_BIT_STRING(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr null, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp slt i64 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %3
%15 = load i32, ptr @ASN1_R_STRING_TOO_SHORT, align 4
%16 = call i32 @ASN1error(i32 noundef %15)
br label %112
17: ; preds = %3
%18 = load ptr, ptr %5, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %24, label %20
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %21, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %20, %17
%25 = call ptr (...) @ASN1_BIT_STRING_new()
store ptr %25, ptr %8, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %28
27: ; preds = %24
store ptr null, ptr %4, align 8
br label %124
28: ; preds = %24
br label %32
29: ; preds = %20
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %8, align 8
br label %32
32: ; preds = %29, %28
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %33, align 8
store ptr %34, ptr %9, align 8
%35 = load ptr, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %9, align 8
%37 = load i8, ptr %35, align 1
%38 = zext i8 %37 to i32
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = icmp sgt i32 %39, 7
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load i32, ptr @ASN1_R_INVALID_BIT_STRING_BITS_LEFT, align 4
%43 = call i32 @ASN1error(i32 noundef %42)
br label %112
44: ; preds = %32
%45 = load i32, ptr @ASN1_STRING_FLAG_BITS_LEFT, align 4
%46 = or i32 %45, 7
%47 = xor i32 %46, -1
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds %struct.TYPE_6__, ptr %48, i32 0, i32 0
%50 = load i32, ptr %49, align 8
%51 = and i32 %50, %47
store i32 %51, ptr %49, align 8
%52 = load i32, ptr @ASN1_STRING_FLAG_BITS_LEFT, align 4
%53 = load i32, ptr %11, align 4
%54 = or i32 %52, %53
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds %struct.TYPE_6__, ptr %55, i32 0, i32 0
%57 = load i32, ptr %56, align 8
%58 = or i32 %57, %54
store i32 %58, ptr %56, align 8
%59 = load i64, ptr %7, align 8
%60 = add nsw i64 %59, -1
store i64 %60, ptr %7, align 8
%61 = icmp sgt i64 %59, 1
br i1 %61, label %62, label %87
62: ; preds = %44
%63 = load i64, ptr %7, align 8
%64 = call ptr @malloc(i64 noundef %63)
store ptr %64, ptr %10, align 8
%65 = icmp eq ptr %64, null
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%68 = call i32 @ASN1error(i32 noundef %67)
br label %112
69: ; preds = %62
%70 = load ptr, ptr %10, align 8
%71 = load ptr, ptr %9, align 8
%72 = load i64, ptr %7, align 8
%73 = call i32 @memcpy(ptr noundef %70, ptr noundef %71, i64 noundef %72)
%74 = load i32, ptr %11, align 4
%75 = shl i32 255, %74
%76 = load ptr, ptr %10, align 8
%77 = load i64, ptr %7, align 8
%78 = sub nsw i64 %77, 1
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load i8, ptr %79, align 1
%81 = zext i8 %80 to i32
%82 = and i32 %81, %75
%83 = trunc i32 %82 to i8
store i8 %83, ptr %79, align 1
%84 = load i64, ptr %7, align 8
%85 = load ptr, ptr %9, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 %84
store ptr %86, ptr %9, align 8
br label %88
87: ; preds = %44
store ptr null, ptr %10, align 8
br label %88
88: ; preds = %87, %69
%89 = load ptr, ptr %8, align 8
%90 = getelementptr inbounds %struct.TYPE_6__, ptr %89, i32 0, i32 1
%91 = load ptr, ptr %90, align 8
%92 = call i32 @free(ptr noundef %91)
%93 = load ptr, ptr %10, align 8
%94 = load ptr, ptr %8, align 8
%95 = getelementptr inbounds %struct.TYPE_6__, ptr %94, i32 0, i32 1
store ptr %93, ptr %95, align 8
%96 = load i64, ptr %7, align 8
%97 = trunc i64 %96 to i32
%98 = load ptr, ptr %8, align 8
%99 = getelementptr inbounds %struct.TYPE_6__, ptr %98, i32 0, i32 2
store i32 %97, ptr %99, align 8
%100 = load i32, ptr @V_ASN1_BIT_STRING, align 4
%101 = load ptr, ptr %8, align 8
%102 = getelementptr inbounds %struct.TYPE_6__, ptr %101, i32 0, i32 3
store i32 %100, ptr %102, align 4
%103 = load ptr, ptr %5, align 8
%104 = icmp ne ptr %103, null
br i1 %104, label %105, label %108
105: ; preds = %88
%106 = load ptr, ptr %8, align 8
%107 = load ptr, ptr %5, align 8
store ptr %106, ptr %107, align 8
br label %108
108: ; preds = %105, %88
%109 = load ptr, ptr %9, align 8
%110 = load ptr, ptr %6, align 8
store ptr %109, ptr %110, align 8
%111 = load ptr, ptr %8, align 8
store ptr %111, ptr %4, align 8
br label %124
112: ; preds = %66, %41, %14
%113 = load ptr, ptr %5, align 8
%114 = icmp eq ptr %113, null
br i1 %114, label %120, label %115
115: ; preds = %112
%116 = load ptr, ptr %5, align 8
%117 = load ptr, ptr %116, align 8
%118 = load ptr, ptr %8, align 8
%119 = icmp ne ptr %117, %118
br i1 %119, label %120, label %123
120: ; preds = %115, %112
%121 = load ptr, ptr %8, align 8
%122 = call i32 @ASN1_BIT_STRING_free(ptr noundef %121)
br label %123
123: ; preds = %120, %115
store ptr null, ptr %4, align 8
br label %124
124: ; preds = %123, %108, %27
%125 = load ptr, ptr %4, align 8
ret ptr %125
}
declare i32 @ASN1error(i32 noundef) #1
declare ptr @ASN1_BIT_STRING_new(...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @ASN1_BIT_STRING_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1whj4su.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { i32, ptr, i32, i32 }
@ASN1_R_STRING_TOO_SHORT = dso_local global i32 0, align 4
@ASN1_R_INVALID_BIT_STRING_BITS_LEFT = dso_local global i32 0, align 4
@ASN1_STRING_FLAG_BITS_LEFT = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@V_ASN1_BIT_STRING = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @c2i_ASN1_BIT_STRING(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr null, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp slt i64 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %3
%15 = load i32, ptr @ASN1_R_STRING_TOO_SHORT, align 4
%16 = call i32 @ASN1error(i32 noundef %15)
br label %112
17: ; preds = %3
%18 = load ptr, ptr %5, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %24, label %20
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %21, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %20, %17
%25 = call ptr (...) @ASN1_BIT_STRING_new()
store ptr %25, ptr %8, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %28
27: ; preds = %24
store ptr null, ptr %4, align 8
br label %124
28: ; preds = %24
br label %32
29: ; preds = %20
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %8, align 8
br label %32
32: ; preds = %29, %28
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %33, align 8
store ptr %34, ptr %9, align 8
%35 = load ptr, ptr %9, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %9, align 8
%37 = load i8, ptr %35, align 1
%38 = zext i8 %37 to i32
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = icmp sgt i32 %39, 7
br i1 %40, label %41, label %44
41: ; preds = %32
%42 = load i32, ptr @ASN1_R_INVALID_BIT_STRING_BITS_LEFT, align 4
%43 = call i32 @ASN1error(i32 noundef %42)
br label %112
44: ; preds = %32
%45 = load i32, ptr @ASN1_STRING_FLAG_BITS_LEFT, align 4
%46 = or i32 %45, 7
%47 = xor i32 %46, -1
%48 = load ptr, ptr %8, align 8
%49 = getelementptr inbounds %struct.TYPE_6__, ptr %48, i32 0, i32 0
%50 = load i32, ptr %49, align 8
%51 = and i32 %50, %47
store i32 %51, ptr %49, align 8
%52 = load i32, ptr @ASN1_STRING_FLAG_BITS_LEFT, align 4
%53 = load i32, ptr %11, align 4
%54 = or i32 %52, %53
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds %struct.TYPE_6__, ptr %55, i32 0, i32 0
%57 = load i32, ptr %56, align 8
%58 = or i32 %57, %54
store i32 %58, ptr %56, align 8
%59 = load i64, ptr %7, align 8
%60 = add nsw i64 %59, -1
store i64 %60, ptr %7, align 8
%61 = icmp sgt i64 %59, 1
br i1 %61, label %62, label %87
62: ; preds = %44
%63 = load i64, ptr %7, align 8
%64 = call ptr @malloc(i64 noundef %63)
store ptr %64, ptr %10, align 8
%65 = icmp eq ptr %64, null
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%68 = call i32 @ASN1error(i32 noundef %67)
br label %112
69: ; preds = %62
%70 = load ptr, ptr %10, align 8
%71 = load ptr, ptr %9, align 8
%72 = load i64, ptr %7, align 8
%73 = call i32 @memcpy(ptr noundef %70, ptr noundef %71, i64 noundef %72)
%74 = load i32, ptr %11, align 4
%75 = shl i32 255, %74
%76 = load ptr, ptr %10, align 8
%77 = load i64, ptr %7, align 8
%78 = sub nsw i64 %77, 1
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load i8, ptr %79, align 1
%81 = zext i8 %80 to i32
%82 = and i32 %81, %75
%83 = trunc i32 %82 to i8
store i8 %83, ptr %79, align 1
%84 = load i64, ptr %7, align 8
%85 = load ptr, ptr %9, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 %84
store ptr %86, ptr %9, align 8
br label %88
87: ; preds = %44
store ptr null, ptr %10, align 8
br label %88
88: ; preds = %87, %69
%89 = load ptr, ptr %8, align 8
%90 = getelementptr inbounds %struct.TYPE_6__, ptr %89, i32 0, i32 1
%91 = load ptr, ptr %90, align 8
%92 = call i32 @free(ptr noundef %91)
%93 = load ptr, ptr %10, align 8
%94 = load ptr, ptr %8, align 8
%95 = getelementptr inbounds %struct.TYPE_6__, ptr %94, i32 0, i32 1
store ptr %93, ptr %95, align 8
%96 = load i64, ptr %7, align 8
%97 = trunc i64 %96 to i32
%98 = load ptr, ptr %8, align 8
%99 = getelementptr inbounds %struct.TYPE_6__, ptr %98, i32 0, i32 2
store i32 %97, ptr %99, align 8
%100 = load i32, ptr @V_ASN1_BIT_STRING, align 4
%101 = load ptr, ptr %8, align 8
%102 = getelementptr inbounds %struct.TYPE_6__, ptr %101, i32 0, i32 3
store i32 %100, ptr %102, align 4
%103 = load ptr, ptr %5, align 8
%104 = icmp ne ptr %103, null
br i1 %104, label %105, label %108
105: ; preds = %88
%106 = load ptr, ptr %8, align 8
%107 = load ptr, ptr %5, align 8
store ptr %106, ptr %107, align 8
br label %108
108: ; preds = %105, %88
%109 = load ptr, ptr %9, align 8
%110 = load ptr, ptr %6, align 8
store ptr %109, ptr %110, align 8
%111 = load ptr, ptr %8, align 8
store ptr %111, ptr %4, align 8
br label %124
112: ; preds = %66, %41, %14
%113 = load ptr, ptr %5, align 8
%114 = icmp eq ptr %113, null
br i1 %114, label %120, label %115
115: ; preds = %112
%116 = load ptr, ptr %5, align 8
%117 = load ptr, ptr %116, align 8
%118 = load ptr, ptr %8, align 8
%119 = icmp ne ptr %117, %118
br i1 %119, label %120, label %123
120: ; preds = %115, %112
%121 = load ptr, ptr %8, align 8
%122 = call i32 @ASN1_BIT_STRING_free(ptr noundef %121)
br label %123
123: ; preds = %120, %115
store ptr null, ptr %4, align 8
br label %124
124: ; preds = %123, %108, %27
%125 = load ptr, ptr %4, align 8
ret ptr %125
}
declare i32 @ASN1error(i32 noundef) #1
declare ptr @ASN1_BIT_STRING_new(...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @ASN1_BIT_STRING_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa1kkyv6_.c'
source_filename = "/tmp/tmpa1kkyv6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"thread_basic_test PID=%d, TID=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"thread_basic_test failed sphdeGetPID=%d, sphdeGetTID=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"thread_basic_test sphdeGetCmdLine=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"thread_basic_test failed sphdeGetCmdLine=%s != ./sphthread_t\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"thread_basic_test failed sphdeGetCmdLine=%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"thread_basic_test failed PID %d != %d, TID %d != %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"thread_basic_test fast PID=%d, TID=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [58 x i8] c"thread_basic_test fast failed PID %d != %d, TID %d != %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [61 x i8] c"thread_basic_test failed sphFastGetPID=%d, sphFastGetTID=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @thread_basic_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%11 = call i32 (...) @sphdeGetPID()
store i32 %11, ptr %4, align 4
%12 = call i32 (...) @sphdeGetTID()
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %1
%16 = load i32, ptr %7, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %7, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %24)
br label %32
26: ; preds = %18, %15, %1
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %32
32: ; preds = %26, %22
%33 = call ptr (...) @sphdeGetCmdLine()
store ptr %33, ptr %10, align 8
%34 = load ptr, ptr %10, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %54
36: ; preds = %32
%37 = load ptr, ptr %10, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %54
41: ; preds = %36
%42 = load ptr, ptr %10, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = load ptr, ptr %10, align 8
%45 = load ptr, ptr %2, align 8
%46 = call i64 @strcmp(ptr noundef %44, ptr noundef %45)
%47 = icmp ne i64 0, %46
br i1 %47, label %48, label %53
48: ; preds = %41
%49 = load ptr, ptr %10, align 8
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %49)
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %3, align 4
br label %53
53: ; preds = %48, %41
br label %59
54: ; preds = %36, %32
%55 = load ptr, ptr %10, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %55)
%57 = load i32, ptr %3, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %54, %53
%60 = call i32 (...) @sphdeGetPID()
store i32 %60, ptr %5, align 4
%61 = call i32 (...) @sphdeGetTID()
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %5, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %89
64: ; preds = %59
%65 = load i32, ptr %8, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %89
67: ; preds = %64
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp eq i32 %68, %69
br i1 %70, label %71, label %89
71: ; preds = %67
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %8, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %72, i32 noundef %73)
%75 = load i32, ptr %4, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp ne i32 %75, %76
br i1 %77, label %82, label %78
78: ; preds = %71
%79 = load i32, ptr %7, align 4
%80 = load i32, ptr %8, align 4
%81 = icmp ne i32 %79, %80
br i1 %81, label %82, label %88
82: ; preds = %78, %71
%83 = load i32, ptr %4, align 4
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %7, align 4
%86 = load i32, ptr %8, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86)
br label %88
88: ; preds = %82, %78
br label %95
89: ; preds = %67, %64, %59
%90 = load i32, ptr %5, align 4
%91 = load i32, ptr %8, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %90, i32 noundef %91)
%93 = load i32, ptr %3, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %3, align 4
br label %95
95: ; preds = %89, %88
%96 = call i32 (...) @sphFastGetPID()
store i32 %96, ptr %6, align 4
%97 = call i32 (...) @sphFastGetTID()
store i32 %97, ptr %9, align 4
%98 = load i32, ptr %6, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %125
100: ; preds = %95
%101 = load i32, ptr %9, align 4
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %125
103: ; preds = %100
%104 = load i32, ptr %6, align 4
%105 = load i32, ptr %9, align 4
%106 = icmp eq i32 %104, %105
br i1 %106, label %107, label %125
107: ; preds = %103
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %9, align 4
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %108, i32 noundef %109)
%111 = load i32, ptr %4, align 4
%112 = load i32, ptr %6, align 4
%113 = icmp ne i32 %111, %112
br i1 %113, label %118, label %114
114: ; preds = %107
%115 = load i32, ptr %7, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp ne i32 %115, %116
br i1 %117, label %118, label %124
118: ; preds = %114, %107
%119 = load i32, ptr %4, align 4
%120 = load i32, ptr %6, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr %9, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %122)
br label %124
124: ; preds = %118, %114
br label %131
125: ; preds = %103, %100, %95
%126 = load i32, ptr %6, align 4
%127 = load i32, ptr %9, align 4
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %126, i32 noundef %127)
%129 = load i32, ptr %3, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %3, align 4
br label %131
131: ; preds = %125, %124
%132 = load i32, ptr %3, align 4
ret i32 %132
}
declare i32 @sphdeGetPID(...) #1
declare i32 @sphdeGetTID(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sphdeGetCmdLine(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sphFastGetPID(...) #1
declare i32 @sphFastGetTID(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa1kkyv6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"thread_basic_test PID=%d, TID=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"thread_basic_test failed sphdeGetPID=%d, sphdeGetTID=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"thread_basic_test sphdeGetCmdLine=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"thread_basic_test failed sphdeGetCmdLine=%s != ./sphthread_t\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"thread_basic_test failed sphdeGetCmdLine=%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"thread_basic_test failed PID %d != %d, TID %d != %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"thread_basic_test fast PID=%d, TID=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [58 x i8] c"thread_basic_test fast failed PID %d != %d, TID %d != %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [61 x i8] c"thread_basic_test failed sphFastGetPID=%d, sphFastGetTID=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @thread_basic_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%11 = call i32 (...) @sphdeGetPID()
store i32 %11, ptr %4, align 4
%12 = call i32 (...) @sphdeGetTID()
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %1
%16 = load i32, ptr %7, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %7, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %24)
br label %32
26: ; preds = %18, %15, %1
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %32
32: ; preds = %26, %22
%33 = call ptr (...) @sphdeGetCmdLine()
store ptr %33, ptr %10, align 8
%34 = load ptr, ptr %10, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %54
36: ; preds = %32
%37 = load ptr, ptr %10, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %54
41: ; preds = %36
%42 = load ptr, ptr %10, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %42)
%44 = load ptr, ptr %10, align 8
%45 = load ptr, ptr %2, align 8
%46 = call i64 @strcmp(ptr noundef %44, ptr noundef %45)
%47 = icmp ne i64 0, %46
br i1 %47, label %48, label %53
48: ; preds = %41
%49 = load ptr, ptr %10, align 8
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %49)
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %3, align 4
br label %53
53: ; preds = %48, %41
br label %59
54: ; preds = %36, %32
%55 = load ptr, ptr %10, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %55)
%57 = load i32, ptr %3, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %54, %53
%60 = call i32 (...) @sphdeGetPID()
store i32 %60, ptr %5, align 4
%61 = call i32 (...) @sphdeGetTID()
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %5, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %89
64: ; preds = %59
%65 = load i32, ptr %8, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %89
67: ; preds = %64
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp eq i32 %68, %69
br i1 %70, label %71, label %89
71: ; preds = %67
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %8, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %72, i32 noundef %73)
%75 = load i32, ptr %4, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp ne i32 %75, %76
br i1 %77, label %82, label %78
78: ; preds = %71
%79 = load i32, ptr %7, align 4
%80 = load i32, ptr %8, align 4
%81 = icmp ne i32 %79, %80
br i1 %81, label %82, label %88
82: ; preds = %78, %71
%83 = load i32, ptr %4, align 4
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr %7, align 4
%86 = load i32, ptr %8, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86)
br label %88
88: ; preds = %82, %78
br label %95
89: ; preds = %67, %64, %59
%90 = load i32, ptr %5, align 4
%91 = load i32, ptr %8, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %90, i32 noundef %91)
%93 = load i32, ptr %3, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %3, align 4
br label %95
95: ; preds = %89, %88
%96 = call i32 (...) @sphFastGetPID()
store i32 %96, ptr %6, align 4
%97 = call i32 (...) @sphFastGetTID()
store i32 %97, ptr %9, align 4
%98 = load i32, ptr %6, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %125
100: ; preds = %95
%101 = load i32, ptr %9, align 4
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %125
103: ; preds = %100
%104 = load i32, ptr %6, align 4
%105 = load i32, ptr %9, align 4
%106 = icmp eq i32 %104, %105
br i1 %106, label %107, label %125
107: ; preds = %103
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %9, align 4
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %108, i32 noundef %109)
%111 = load i32, ptr %4, align 4
%112 = load i32, ptr %6, align 4
%113 = icmp ne i32 %111, %112
br i1 %113, label %118, label %114
114: ; preds = %107
%115 = load i32, ptr %7, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp ne i32 %115, %116
br i1 %117, label %118, label %124
118: ; preds = %114, %107
%119 = load i32, ptr %4, align 4
%120 = load i32, ptr %6, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr %9, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %122)
br label %124
124: ; preds = %118, %114
br label %131
125: ; preds = %103, %100, %95
%126 = load i32, ptr %6, align 4
%127 = load i32, ptr %9, align 4
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %126, i32 noundef %127)
%129 = load i32, ptr %3, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %3, align 4
br label %131
131: ; preds = %125, %124
%132 = load i32, ptr %3, align 4
ret i32 %132
}
declare i32 @sphdeGetPID(...) #1
declare i32 @sphdeGetTID(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sphdeGetCmdLine(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sphFastGetPID(...) #1
declare i32 @sphFastGetTID(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4dj7ko6m.c'
source_filename = "/tmp/tmp4dj7ko6m.c"
target datalayout = "e-m:e-p270: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/tmp4dj7ko6m.c"
target datalayout = "e-m:e-p270: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/tmpmc0wv_8j.c'
source_filename = "/tmp/tmpmc0wv_8j.c"
target datalayout = "e-m:e-p270: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/tmpmc0wv_8j.c"
target datalayout = "e-m:e-p270: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/tmppxxfkra1.c'
source_filename = "/tmp/tmppxxfkra1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linear_search(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
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
br label %9
9: ; preds = %25, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %28
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = load i32, ptr %8, align 4
store i32 %23, ptr %4, align 4
br label %29
24: ; preds = %13
br label %25
25: ; preds = %24
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %9, !llvm.loop !6
28: ; preds = %9
store i32 -1, ptr %4, align 4
br label %29
29: ; preds = %28, %22
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppxxfkra1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linear_search(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
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
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %24
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %7, align 8
%19 = call i64 @strcmp(ptr noundef %17, ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %12
%22 = load i32, ptr %8, align 4
store i32 %22, ptr %4, align 4
br label %31
23: ; preds = %12
br label %24
24: ; preds = %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %3
store i32 -1, ptr %4, align 4
br label %31
31: ; preds = %30, %21
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg5xskib_.c'
source_filename = "/tmp/tmpg5xskib_.c"
target datalayout = "e-m:e-p270: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 [796 x i8] c"usage: rsgtutil [options]\0AUse \22man rsgtutil\22 for more details.\0A\0A\09-h, --help \09\09\09 Show this help.\0A\09-D, --dump \09\09\09 dump operations mode.\0A\09-t, --verify \09\09\09 Verify operations mode.\0A\09-e, --extend \09\09\09 Extends the RFC3161 signatures.\0A\09-B, --show-sigblock-params \09 Show signature block parameters.\0A\09-T, --detect-file-type \09 Show Type of signature file.\0A\09-c, --convert \09\09\09 Convert Signature Format Version 10 to 11.\0A\09-V, --Version \09\09\09 Print utility version\0A\09\09Optional parameters\0A\09-a <GT|KSI>, --api <GT|KSI> \09 Set which API to use.\0A\09\09GT = Guardtime Client Library\0A\09\09KSI = Guardtime KSI Library\0A\09-s, --show-verified \09\09 Also show correctly verified blocks.\0A\09-P <URL>, --publications-server <URL> \09 Sets the publications server.\0A\09-v, --verbose \09\09\09 Verbose output.\0A\09-d, --debug \09\09\09 Debug (developer) output.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rsgtutil_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
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/tmpg5xskib_.c"
target datalayout = "e-m:e-p270: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 [796 x i8] c"usage: rsgtutil [options]\0AUse \22man rsgtutil\22 for more details.\0A\0A\09-h, --help \09\09\09 Show this help.\0A\09-D, --dump \09\09\09 dump operations mode.\0A\09-t, --verify \09\09\09 Verify operations mode.\0A\09-e, --extend \09\09\09 Extends the RFC3161 signatures.\0A\09-B, --show-sigblock-params \09 Show signature block parameters.\0A\09-T, --detect-file-type \09 Show Type of signature file.\0A\09-c, --convert \09\09\09 Convert Signature Format Version 10 to 11.\0A\09-V, --Version \09\09\09 Print utility version\0A\09\09Optional parameters\0A\09-a <GT|KSI>, --api <GT|KSI> \09 Set which API to use.\0A\09\09GT = Guardtime Client Library\0A\09\09KSI = Guardtime KSI Library\0A\09-s, --show-verified \09\09 Also show correctly verified blocks.\0A\09-P <URL>, --publications-server <URL> \09 Sets the publications server.\0A\09-v, --verbose \09\09\09 Verbose output.\0A\09-d, --debug \09\09\09 Debug (developer) output.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rsgtutil_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
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/tmpwrd096yx.c'
source_filename = "/tmp/tmpwrd096yx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NF_PageRead(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = call i32 (...) @select_ship()
%7 = call i32 (...) @clean_RnB()
%8 = call i32 @nand_cmd(i32 noundef 0)
%9 = call i32 @nand_addr(i64 noundef 0)
%10 = call i32 @nand_addr(i64 noundef 0)
%11 = load i64, ptr %3, align 8
%12 = and i64 %11, 255
%13 = call i32 @nand_addr(i64 noundef %12)
%14 = load i64, ptr %3, align 8
%15 = lshr i64 %14, 8
%16 = and i64 %15, 255
%17 = call i32 @nand_addr(i64 noundef %16)
%18 = load i64, ptr %3, align 8
%19 = lshr i64 %18, 16
%20 = and i64 %19, 255
%21 = call i32 @nand_addr(i64 noundef %20)
%22 = call i32 @nand_cmd(i32 noundef 48)
%23 = call i32 (...) @wait_RnB()
store i32 0, ptr %5, align 4
br label %24
24: ; preds = %33, %2
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 4096
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load volatile i8, ptr inttoptr (i64 1881145360 to ptr), align 1
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 %28, ptr %32, align 1
br label %33
33: ; preds = %27
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %24, !llvm.loop !6
36: ; preds = %24
%37 = call i32 (...) @delselect_ship()
ret void
}
declare i32 @select_ship(...) #1
declare i32 @clean_RnB(...) #1
declare i32 @nand_cmd(i32 noundef) #1
declare i32 @nand_addr(i64 noundef) #1
declare i32 @wait_RnB(...) #1
declare i32 @delselect_ship(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwrd096yx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NF_PageRead(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = call i32 (...) @select_ship()
%7 = call i32 (...) @clean_RnB()
%8 = call i32 @nand_cmd(i32 noundef 0)
%9 = call i32 @nand_addr(i64 noundef 0)
%10 = call i32 @nand_addr(i64 noundef 0)
%11 = load i64, ptr %3, align 8
%12 = and i64 %11, 255
%13 = call i32 @nand_addr(i64 noundef %12)
%14 = load i64, ptr %3, align 8
%15 = lshr i64 %14, 8
%16 = and i64 %15, 255
%17 = call i32 @nand_addr(i64 noundef %16)
%18 = load i64, ptr %3, align 8
%19 = lshr i64 %18, 16
%20 = and i64 %19, 255
%21 = call i32 @nand_addr(i64 noundef %20)
%22 = call i32 @nand_cmd(i32 noundef 48)
%23 = call i32 (...) @wait_RnB()
store i32 0, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %24, 4096
br i1 %25, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %26
26: ; preds = %.lr.ph, %32
%27 = load volatile i8, ptr inttoptr (i64 1881145360 to ptr), align 1
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
store i8 %27, ptr %31, align 1
br label %32
32: ; preds = %26
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp slt i32 %35, 4096
br i1 %36, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %2
%38 = call i32 (...) @delselect_ship()
ret void
}
declare i32 @select_ship(...) #1
declare i32 @clean_RnB(...) #1
declare i32 @nand_cmd(i32 noundef) #1
declare i32 @nand_addr(i64 noundef) #1
declare i32 @wait_RnB(...) #1
declare i32 @delselect_ship(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_orbaxmx.c'
source_filename = "/tmp/tmp_orbaxmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32, ptr, i64 }
@MD5_CBLOCK = dso_local global i64 0, align 8
@MD5_LBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MD5_Update(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%15 = load ptr, ptr %6, align 8
store ptr %15, ptr %8, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 1, ptr %4, align 4
br label %420
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %20, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = load i64, ptr %7, align 8
%24 = trunc i64 %23 to i32
%25 = shl i32 %24, 3
%26 = add nsw i32 %22, %25
%27 = sext i32 %26 to i64
%28 = and i64 %27, 4294967295
%29 = trunc i64 %28 to i32
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = icmp slt i32 %30, %33
br i1 %34, label %35, label %40
35: ; preds = %19
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds %struct.TYPE_4__, ptr %36, i32 0, i32 3
%38 = load i64, ptr %37, align 8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %37, align 8
br label %40
40: ; preds = %35, %19
%41 = load i64, ptr %7, align 8
%42 = lshr i64 %41, 29
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.TYPE_4__, ptr %43, i32 0, i32 3
%45 = load i64, ptr %44, align 8
%46 = add i64 %45, %42
store i64 %46, ptr %44, align 8
%47 = load i32, ptr %10, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds %struct.TYPE_4__, ptr %48, i32 0, i32 0
store i32 %47, ptr %49, align 8
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds %struct.TYPE_4__, ptr %50, i32 0, i32 1
%52 = load i32, ptr %51, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %334
54: ; preds = %40
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds %struct.TYPE_4__, ptr %55, i32 0, i32 2
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %9, align 8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds %struct.TYPE_4__, ptr %58, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = ashr i32 %60, 2
%62 = sext i32 %61 to i64
store i64 %62, ptr %11, align 8
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds %struct.TYPE_4__, ptr %63, i32 0, i32 1
%65 = load i32, ptr %64, align 4
%66 = and i32 %65, 3
%67 = sext i32 %66 to i64
store i64 %67, ptr %12, align 8
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds %struct.TYPE_4__, ptr %68, i32 0, i32 1
%70 = load i32, ptr %69, align 4
%71 = sext i32 %70 to i64
%72 = load i64, ptr %7, align 8
%73 = add i64 %71, %72
%74 = load i64, ptr @MD5_CBLOCK, align 8
%75 = icmp uge i64 %73, %74
br i1 %75, label %76, label %155
76: ; preds = %54
%77 = load ptr, ptr %9, align 8
%78 = load i64, ptr %11, align 8
%79 = getelementptr inbounds i32, ptr %77, i64 %78
%80 = load i32, ptr %79, align 4
store i32 %80, ptr %10, align 4
%81 = load i64, ptr %12, align 8
switch i64 %81, label %118 [
i64 0, label %82
i64 1, label %88
i64 2, label %98
i64 3, label %108
]
82: ; preds = %76
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %8, align 8
%85 = load i8, ptr %83, align 1
%86 = zext i8 %85 to i64
%87 = trunc i64 %86 to i32
store i32 %87, ptr %10, align 4
br label %88
88: ; preds = %76, %82
%89 = load ptr, ptr %8, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %8, align 8
%91 = load i8, ptr %89, align 1
%92 = zext i8 %91 to i64
%93 = shl i64 %92, 8
%94 = load i32, ptr %10, align 4
%95 = sext i32 %94 to i64
%96 = or i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, ptr %10, align 4
br label %98
98: ; preds = %76, %88
%99 = load ptr, ptr %8, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %8, align 8
%101 = load i8, ptr %99, align 1
%102 = zext i8 %101 to i64
%103 = shl i64 %102, 16
%104 = load i32, ptr %10, align 4
%105 = sext i32 %104 to i64
%106 = or i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, ptr %10, align 4
br label %108
108: ; preds = %76, %98
%109 = load ptr, ptr %8, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %8, align 8
%111 = load i8, ptr %109, align 1
%112 = zext i8 %111 to i64
%113 = shl i64 %112, 24
%114 = load i32, ptr %10, align 4
%115 = sext i32 %114 to i64
%116 = or i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, ptr %10, align 4
br label %118
118: ; preds = %108, %76
%119 = load i32, ptr %10, align 4
%120 = load ptr, ptr %9, align 8
%121 = load i64, ptr %11, align 8
%122 = add i64 %121, 1
store i64 %122, ptr %11, align 8
%123 = getelementptr inbounds i32, ptr %120, i64 %121
store i32 %119, ptr %123, align 4
br label %124
124: ; preds = %138, %118
%125 = load i64, ptr %11, align 8
%126 = load i64, ptr @MD5_LBLOCK, align 8
%127 = icmp ult i64 %125, %126
br i1 %127, label %128, label %141
128: ; preds = %124
%129 = load ptr, ptr %8, align 8
%130 = load i32, ptr %129, align 4
store i32 %130, ptr %10, align 4
%131 = load ptr, ptr %8, align 8
%132 = getelementptr inbounds i8, ptr %131, i64 4
store ptr %132, ptr %8, align 8
%133 = load i32, ptr %10, align 4
%134 = load i32, ptr %10, align 4
%135 = load ptr, ptr %9, align 8
%136 = load i64, ptr %11, align 8
%137 = getelementptr inbounds i32, ptr %135, i64 %136
store i32 %134, ptr %137, align 4
br label %138
138: ; preds = %128
%139 = load i64, ptr %11, align 8
%140 = add i64 %139, 1
store i64 %140, ptr %11, align 8
br label %124, !llvm.loop !6
141: ; preds = %124
%142 = load ptr, ptr %5, align 8
%143 = load ptr, ptr %9, align 8
%144 = call i32 (ptr, ...) @md5_block_host_order(ptr noundef %142, ptr noundef %143, i32 noundef 1)
%145 = load i64, ptr @MD5_CBLOCK, align 8
%146 = load ptr, ptr %5, align 8
%147 = getelementptr inbounds %struct.TYPE_4__, ptr %146, i32 0, i32 1
%148 = load i32, ptr %147, align 4
%149 = sext i32 %148 to i64
%150 = sub i64 %145, %149
%151 = load i64, ptr %7, align 8
%152 = sub i64 %151, %150
store i64 %152, ptr %7, align 8
%153 = load ptr, ptr %5, align 8
%154 = getelementptr inbounds %struct.TYPE_4__, ptr %153, i32 0, i32 1
store i32 0, ptr %154, align 4
br label %333
155: ; preds = %54
%156 = load i64, ptr %7, align 8
%157 = trunc i64 %156 to i32
%158 = load ptr, ptr %5, align 8
%159 = getelementptr inbounds %struct.TYPE_4__, ptr %158, i32 0, i32 1
%160 = load i32, ptr %159, align 4
%161 = add i32 %160, %157
store i32 %161, ptr %159, align 4
%162 = load i64, ptr %12, align 8
%163 = load i64, ptr %7, align 8
%164 = add i64 %162, %163
%165 = icmp ult i64 %164, 4
br i1 %165, label %166, label %213
166: ; preds = %155
%167 = load ptr, ptr %9, align 8
%168 = load i64, ptr %11, align 8
%169 = getelementptr inbounds i32, ptr %167, i64 %168
%170 = load i32, ptr %169, align 4
store i32 %170, ptr %10, align 4
%171 = load i64, ptr %12, align 8
switch i64 %171, label %208 [
i64 0, label %172
i64 1, label %183
i64 2, label %198
]
172: ; preds = %166
%173 = load ptr, ptr %8, align 8
%174 = getelementptr inbounds i8, ptr %173, i32 1
store ptr %174, ptr %8, align 8
%175 = load i8, ptr %173, align 1
%176 = zext i8 %175 to i64
%177 = trunc i64 %176 to i32
store i32 %177, ptr %10, align 4
%178 = load i64, ptr %7, align 8
%179 = add i64 %178, -1
store i64 %179, ptr %7, align 8
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %182
181: ; preds = %172
br label %208
182: ; preds = %172
br label %183
183: ; preds = %166, %182
%184 = load ptr, ptr %8, align 8
%185 = getelementptr inbounds i8, ptr %184, i32 1
store ptr %185, ptr %8, align 8
%186 = load i8, ptr %184, align 1
%187 = zext i8 %186 to i64
%188 = shl i64 %187, 8
%189 = load i32, ptr %10, align 4
%190 = sext i32 %189 to i64
%191 = or i64 %190, %188
%192 = trunc i64 %191 to i32
store i32 %192, ptr %10, align 4
%193 = load i64, ptr %7, align 8
%194 = add i64 %193, -1
store i64 %194, ptr %7, align 8
%195 = icmp eq i64 %194, 0
br i1 %195, label %196, label %197
196: ; preds = %183
br label %208
197: ; preds = %183
br label %198
198: ; preds = %166, %197
%199 = load ptr, ptr %8, align 8
%200 = getelementptr inbounds i8, ptr %199, i32 1
store ptr %200, ptr %8, align 8
%201 = load i8, ptr %199, align 1
%202 = zext i8 %201 to i64
%203 = shl i64 %202, 16
%204 = load i32, ptr %10, align 4
%205 = sext i32 %204 to i64
%206 = or i64 %205, %203
%207 = trunc i64 %206 to i32
store i32 %207, ptr %10, align 4
br label %208
208: ; preds = %198, %166, %196, %181
%209 = load i32, ptr %10, align 4
%210 = load ptr, ptr %9, align 8
%211 = load i64, ptr %11, align 8
%212 = getelementptr inbounds i32, ptr %210, i64 %211
store i32 %209, ptr %212, align 4
br label %332
213: ; preds = %155
%214 = load ptr, ptr %5, align 8
%215 = getelementptr inbounds %struct.TYPE_4__, ptr %214, i32 0, i32 1
%216 = load i32, ptr %215, align 4
%217 = ashr i32 %216, 2
%218 = sext i32 %217 to i64
store i64 %218, ptr %13, align 8
%219 = load ptr, ptr %5, align 8
%220 = getelementptr inbounds %struct.TYPE_4__, ptr %219, i32 0, i32 1
%221 = load i32, ptr %220, align 4
%222 = and i32 %221, 3
%223 = sext i32 %222 to i64
store i64 %223, ptr %14, align 8
%224 = load i64, ptr %12, align 8
%225 = icmp ne i64 %224, 0
br i1 %225, label %226, label %231
226: ; preds = %213
%227 = load ptr, ptr %9, align 8
%228 = load i64, ptr %11, align 8
%229 = getelementptr inbounds i32, ptr %227, i64 %228
%230 = load i32, ptr %229, align 4
store i32 %230, ptr %10, align 4
br label %231
231: ; preds = %226, %213
%232 = load i64, ptr %12, align 8
switch i64 %232, label %269 [
i64 0, label %233
i64 1, label %239
i64 2, label %249
i64 3, label %259
]
233: ; preds = %231
%234 = load ptr, ptr %8, align 8
%235 = getelementptr inbounds i8, ptr %234, i32 1
store ptr %235, ptr %8, align 8
%236 = load i8, ptr %234, align 1
%237 = zext i8 %236 to i64
%238 = trunc i64 %237 to i32
store i32 %238, ptr %10, align 4
br label %239
239: ; preds = %231, %233
%240 = load ptr, ptr %8, align 8
%241 = getelementptr inbounds i8, ptr %240, i32 1
store ptr %241, ptr %8, align 8
%242 = load i8, ptr %240, align 1
%243 = zext i8 %242 to i64
%244 = shl i64 %243, 8
%245 = load i32, ptr %10, align 4
%246 = sext i32 %245 to i64
%247 = or i64 %246, %244
%248 = trunc i64 %247 to i32
store i32 %248, ptr %10, align 4
br label %249
249: ; preds = %231, %239
%250 = load ptr, ptr %8, align 8
%251 = getelementptr inbounds i8, ptr %250, i32 1
store ptr %251, ptr %8, align 8
%252 = load i8, ptr %250, align 1
%253 = zext i8 %252 to i64
%254 = shl i64 %253, 16
%255 = load i32, ptr %10, align 4
%256 = sext i32 %255 to i64
%257 = or i64 %256, %254
%258 = trunc i64 %257 to i32
store i32 %258, ptr %10, align 4
br label %259
259: ; preds = %231, %249
%260 = load ptr, ptr %8, align 8
%261 = getelementptr inbounds i8, ptr %260, i32 1
store ptr %261, ptr %8, align 8
%262 = load i8, ptr %260, align 1
%263 = zext i8 %262 to i64
%264 = shl i64 %263, 24
%265 = load i32, ptr %10, align 4
%266 = sext i32 %265 to i64
%267 = or i64 %266, %264
%268 = trunc i64 %267 to i32
store i32 %268, ptr %10, align 4
br label %269
269: ; preds = %259, %231
%270 = load i32, ptr %10, align 4
%271 = load ptr, ptr %9, align 8
%272 = load i64, ptr %11, align 8
%273 = add i64 %272, 1
store i64 %273, ptr %11, align 8
%274 = getelementptr inbounds i32, ptr %271, i64 %272
store i32 %270, ptr %274, align 4
br label %275
275: ; preds = %289, %269
%276 = load i64, ptr %11, align 8
%277 = load i64, ptr %13, align 8
%278 = icmp ult i64 %276, %277
br i1 %278, label %279, label %292
279: ; preds = %275
%280 = load ptr, ptr %8, align 8
%281 = load i32, ptr %280, align 4
store i32 %281, ptr %10, align 4
%282 = load ptr, ptr %8, align 8
%283 = getelementptr inbounds i8, ptr %282, i64 4
store ptr %283, ptr %8, align 8
%284 = load i32, ptr %10, align 4
%285 = load i32, ptr %10, align 4
%286 = load ptr, ptr %9, align 8
%287 = load i64, ptr %11, align 8
%288 = getelementptr inbounds i32, ptr %286, i64 %287
store i32 %285, ptr %288, align 4
br label %289
289: ; preds = %279
%290 = load i64, ptr %11, align 8
%291 = add i64 %290, 1
store i64 %291, ptr %11, align 8
br label %275, !llvm.loop !8
292: ; preds = %275
%293 = load i64, ptr %14, align 8
%294 = icmp ne i64 %293, 0
br i1 %294, label %295, label %331
295: ; preds = %292
store i32 0, ptr %10, align 4
%296 = load i64, ptr %14, align 8
%297 = load ptr, ptr %8, align 8
%298 = getelementptr inbounds i8, ptr %297, i64 %296
store ptr %298, ptr %8, align 8
%299 = load i64, ptr %14, align 8
switch i64 %299, label %326 [
i64 3, label %300
i64 2, label %307
i64 1, label %317
]
300: ; preds = %295
%301 = load ptr, ptr %8, align 8
%302 = getelementptr inbounds i8, ptr %301, i32 -1
store ptr %302, ptr %8, align 8
%303 = load i8, ptr %302, align 1
%304 = zext i8 %303 to i64
%305 = shl i64 %304, 16
%306 = trunc i64 %305 to i32
store i32 %306, ptr %10, align 4
br label %307
307: ; preds = %295, %300
%308 = load ptr, ptr %8, align 8
%309 = getelementptr inbounds i8, ptr %308, i32 -1
store ptr %309, ptr %8, align 8
%310 = load i8, ptr %309, align 1
%311 = zext i8 %310 to i64
%312 = shl i64 %311, 8
%313 = load i32, ptr %10, align 4
%314 = sext i32 %313 to i64
%315 = or i64 %314, %312
%316 = trunc i64 %315 to i32
store i32 %316, ptr %10, align 4
br label %317
317: ; preds = %295, %307
%318 = load ptr, ptr %8, align 8
%319 = getelementptr inbounds i8, ptr %318, i32 -1
store ptr %319, ptr %8, align 8
%320 = load i8, ptr %319, align 1
%321 = zext i8 %320 to i64
%322 = load i32, ptr %10, align 4
%323 = sext i32 %322 to i64
%324 = or i64 %323, %321
%325 = trunc i64 %324 to i32
store i32 %325, ptr %10, align 4
br label %326
326: ; preds = %317, %295
%327 = load i32, ptr %10, align 4
%328 = load ptr, ptr %9, align 8
%329 = load i64, ptr %11, align 8
%330 = getelementptr inbounds i32, ptr %328, i64 %329
store i32 %327, ptr %330, align 4
br label %331
331: ; preds = %326, %292
br label %332
332: ; preds = %331, %208
store i32 1, ptr %4, align 4
br label %420
333: ; preds = %141
br label %334
334: ; preds = %333, %40
%335 = load i64, ptr %7, align 8
%336 = load i64, ptr @MD5_CBLOCK, align 8
%337 = udiv i64 %335, %336
store i64 %337, ptr %11, align 8
%338 = load i64, ptr %11, align 8
%339 = icmp ugt i64 %338, 0
br i1 %339, label %340, label %354
340: ; preds = %334
%341 = load ptr, ptr %5, align 8
%342 = load ptr, ptr %8, align 8
%343 = load i64, ptr %11, align 8
%344 = call i32 (ptr, ...) @md5_block_host_order(ptr noundef %341, ptr noundef %342, i64 noundef %343)
%345 = load i64, ptr @MD5_CBLOCK, align 8
%346 = load i64, ptr %11, align 8
%347 = mul i64 %346, %345
store i64 %347, ptr %11, align 8
%348 = load i64, ptr %11, align 8
%349 = load ptr, ptr %8, align 8
%350 = getelementptr inbounds i8, ptr %349, i64 %348
store ptr %350, ptr %8, align 8
%351 = load i64, ptr %11, align 8
%352 = load i64, ptr %7, align 8
%353 = sub i64 %352, %351
store i64 %353, ptr %7, align 8
br label %354
354: ; preds = %340, %334
%355 = load i64, ptr %7, align 8
%356 = icmp ne i64 %355, 0
br i1 %356, label %357, label %419
357: ; preds = %354
%358 = load ptr, ptr %5, align 8
%359 = getelementptr inbounds %struct.TYPE_4__, ptr %358, i32 0, i32 2
%360 = load ptr, ptr %359, align 8
store ptr %360, ptr %9, align 8
%361 = load i64, ptr %7, align 8
%362 = trunc i64 %361 to i32
%363 = load ptr, ptr %5, align 8
%364 = getelementptr inbounds %struct.TYPE_4__, ptr %363, i32 0, i32 1
store i32 %362, ptr %364, align 4
%365 = load i64, ptr %7, align 8
%366 = lshr i64 %365, 2
store i64 %366, ptr %13, align 8
%367 = load i64, ptr %7, align 8
%368 = and i64 %367, 3
store i64 %368, ptr %14, align 8
br label %369
369: ; preds = %380, %357
%370 = load i64, ptr %13, align 8
%371 = icmp ne i64 %370, 0
br i1 %371, label %372, label %385
372: ; preds = %369
%373 = load ptr, ptr %8, align 8
%374 = load i32, ptr %373, align 4
store i32 %374, ptr %10, align 4
%375 = load ptr, ptr %8, align 8
%376 = getelementptr inbounds i8, ptr %375, i64 4
store ptr %376, ptr %8, align 8
%377 = load i32, ptr %10, align 4
%378 = load i32, ptr %10, align 4
%379 = load ptr, ptr %9, align 8
store i32 %378, ptr %379, align 4
br label %380
380: ; preds = %372
%381 = load i64, ptr %13, align 8
%382 = add i64 %381, -1
store i64 %382, ptr %13, align 8
%383 = load ptr, ptr %9, align 8
%384 = getelementptr inbounds i32, ptr %383, i32 1
store ptr %384, ptr %9, align 8
br label %369, !llvm.loop !9
385: ; preds = %369
store i32 0, ptr %10, align 4
%386 = load i64, ptr %14, align 8
%387 = load ptr, ptr %8, align 8
%388 = getelementptr inbounds i8, ptr %387, i64 %386
store ptr %388, ptr %8, align 8
%389 = load i64, ptr %14, align 8
switch i64 %389, label %416 [
i64 3, label %390
i64 2, label %397
i64 1, label %407
]
390: ; preds = %385
%391 = load ptr, ptr %8, align 8
%392 = getelementptr inbounds i8, ptr %391, i32 -1
store ptr %392, ptr %8, align 8
%393 = load i8, ptr %392, align 1
%394 = zext i8 %393 to i64
%395 = shl i64 %394, 16
%396 = trunc i64 %395 to i32
store i32 %396, ptr %10, align 4
br label %397
397: ; preds = %385, %390
%398 = load ptr, ptr %8, align 8
%399 = getelementptr inbounds i8, ptr %398, i32 -1
store ptr %399, ptr %8, align 8
%400 = load i8, ptr %399, align 1
%401 = zext i8 %400 to i64
%402 = shl i64 %401, 8
%403 = load i32, ptr %10, align 4
%404 = sext i32 %403 to i64
%405 = or i64 %404, %402
%406 = trunc i64 %405 to i32
store i32 %406, ptr %10, align 4
br label %407
407: ; preds = %385, %397
%408 = load ptr, ptr %8, align 8
%409 = getelementptr inbounds i8, ptr %408, i32 -1
store ptr %409, ptr %8, align 8
%410 = load i8, ptr %409, align 1
%411 = zext i8 %410 to i64
%412 = load i32, ptr %10, align 4
%413 = sext i32 %412 to i64
%414 = or i64 %413, %411
%415 = trunc i64 %414 to i32
store i32 %415, ptr %10, align 4
br label %416
416: ; preds = %407, %385
%417 = load i32, ptr %10, align 4
%418 = load ptr, ptr %9, align 8
store i32 %417, ptr %418, align 4
br label %419
419: ; preds = %416, %354
store i32 1, ptr %4, align 4
br label %420
420: ; preds = %419, %332, %18
%421 = load i32, ptr %4, align 4
ret i32 %421
}
declare i32 @md5_block_host_order(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_orbaxmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32, ptr, i64 }
@MD5_CBLOCK = dso_local global i64 0, align 8
@MD5_LBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MD5_Update(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%15 = load ptr, ptr %6, align 8
store ptr %15, ptr %8, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 1, ptr %4, align 4
br label %425
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %20, i32 0, i32 0
%22 = load i32, ptr %21, align 8
%23 = load i64, ptr %7, align 8
%24 = trunc i64 %23 to i32
%25 = shl i32 %24, 3
%26 = add nsw i32 %22, %25
%27 = sext i32 %26 to i64
%28 = and i64 %27, 4294967295
%29 = trunc i64 %28 to i32
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = icmp slt i32 %30, %33
br i1 %34, label %35, label %40
35: ; preds = %19
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds %struct.TYPE_4__, ptr %36, i32 0, i32 3
%38 = load i64, ptr %37, align 8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %37, align 8
br label %40
40: ; preds = %35, %19
%41 = load i64, ptr %7, align 8
%42 = lshr i64 %41, 29
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.TYPE_4__, ptr %43, i32 0, i32 3
%45 = load i64, ptr %44, align 8
%46 = add i64 %45, %42
store i64 %46, ptr %44, align 8
%47 = load i32, ptr %10, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds %struct.TYPE_4__, ptr %48, i32 0, i32 0
store i32 %47, ptr %49, align 8
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds %struct.TYPE_4__, ptr %50, i32 0, i32 1
%52 = load i32, ptr %51, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %338
54: ; preds = %40
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds %struct.TYPE_4__, ptr %55, i32 0, i32 2
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %9, align 8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds %struct.TYPE_4__, ptr %58, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = ashr i32 %60, 2
%62 = sext i32 %61 to i64
store i64 %62, ptr %11, align 8
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds %struct.TYPE_4__, ptr %63, i32 0, i32 1
%65 = load i32, ptr %64, align 4
%66 = and i32 %65, 3
%67 = sext i32 %66 to i64
store i64 %67, ptr %12, align 8
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds %struct.TYPE_4__, ptr %68, i32 0, i32 1
%70 = load i32, ptr %69, align 4
%71 = sext i32 %70 to i64
%72 = load i64, ptr %7, align 8
%73 = add i64 %71, %72
%74 = load i64, ptr @MD5_CBLOCK, align 8
%75 = icmp uge i64 %73, %74
br i1 %75, label %76, label %157
76: ; preds = %54
%77 = load ptr, ptr %9, align 8
%78 = load i64, ptr %11, align 8
%79 = getelementptr inbounds i32, ptr %77, i64 %78
%80 = load i32, ptr %79, align 4
store i32 %80, ptr %10, align 4
%81 = load i64, ptr %12, align 8
switch i64 %81, label %118 [
i64 0, label %82
i64 1, label %88
i64 2, label %98
i64 3, label %108
]
82: ; preds = %76
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %8, align 8
%85 = load i8, ptr %83, align 1
%86 = zext i8 %85 to i64
%87 = trunc i64 %86 to i32
store i32 %87, ptr %10, align 4
br label %88
88: ; preds = %82, %76
%89 = load ptr, ptr %8, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %8, align 8
%91 = load i8, ptr %89, align 1
%92 = zext i8 %91 to i64
%93 = shl i64 %92, 8
%94 = load i32, ptr %10, align 4
%95 = sext i32 %94 to i64
%96 = or i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, ptr %10, align 4
br label %98
98: ; preds = %88, %76
%99 = load ptr, ptr %8, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %8, align 8
%101 = load i8, ptr %99, align 1
%102 = zext i8 %101 to i64
%103 = shl i64 %102, 16
%104 = load i32, ptr %10, align 4
%105 = sext i32 %104 to i64
%106 = or i64 %105, %103
%107 = trunc i64 %106 to i32
store i32 %107, ptr %10, align 4
br label %108
108: ; preds = %98, %76
%109 = load ptr, ptr %8, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %8, align 8
%111 = load i8, ptr %109, align 1
%112 = zext i8 %111 to i64
%113 = shl i64 %112, 24
%114 = load i32, ptr %10, align 4
%115 = sext i32 %114 to i64
%116 = or i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, ptr %10, align 4
br label %118
118: ; preds = %108, %76
%119 = load i32, ptr %10, align 4
%120 = load ptr, ptr %9, align 8
%121 = load i64, ptr %11, align 8
%122 = add i64 %121, 1
store i64 %122, ptr %11, align 8
%123 = getelementptr inbounds i32, ptr %120, i64 %121
store i32 %119, ptr %123, align 4
%124 = load i64, ptr %11, align 8
%125 = load i64, ptr @MD5_LBLOCK, align 8
%126 = icmp ult i64 %124, %125
br i1 %126, label %.lr.ph2, label %143
.lr.ph2: ; preds = %118
br label %127
127: ; preds = %.lr.ph2, %137
%128 = load ptr, ptr %8, align 8
%129 = load i32, ptr %128, align 4
store i32 %129, ptr %10, align 4
%130 = load ptr, ptr %8, align 8
%131 = getelementptr inbounds i8, ptr %130, i64 4
store ptr %131, ptr %8, align 8
%132 = load i32, ptr %10, align 4
%133 = load i32, ptr %10, align 4
%134 = load ptr, ptr %9, align 8
%135 = load i64, ptr %11, align 8
%136 = getelementptr inbounds i32, ptr %134, i64 %135
store i32 %133, ptr %136, align 4
br label %137
137: ; preds = %127
%138 = load i64, ptr %11, align 8
%139 = add i64 %138, 1
store i64 %139, ptr %11, align 8
%140 = load i64, ptr %11, align 8
%141 = load i64, ptr @MD5_LBLOCK, align 8
%142 = icmp ult i64 %140, %141
br i1 %142, label %127, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %137
br label %143
143: ; preds = %._crit_edge3, %118
%144 = load ptr, ptr %5, align 8
%145 = load ptr, ptr %9, align 8
%146 = call i32 (ptr, ...) @md5_block_host_order(ptr noundef %144, ptr noundef %145, i32 noundef 1)
%147 = load i64, ptr @MD5_CBLOCK, align 8
%148 = load ptr, ptr %5, align 8
%149 = getelementptr inbounds %struct.TYPE_4__, ptr %148, i32 0, i32 1
%150 = load i32, ptr %149, align 4
%151 = sext i32 %150 to i64
%152 = sub i64 %147, %151
%153 = load i64, ptr %7, align 8
%154 = sub i64 %153, %152
store i64 %154, ptr %7, align 8
%155 = load ptr, ptr %5, align 8
%156 = getelementptr inbounds %struct.TYPE_4__, ptr %155, i32 0, i32 1
store i32 0, ptr %156, align 4
br label %337
157: ; preds = %54
%158 = load i64, ptr %7, align 8
%159 = trunc i64 %158 to i32
%160 = load ptr, ptr %5, align 8
%161 = getelementptr inbounds %struct.TYPE_4__, ptr %160, i32 0, i32 1
%162 = load i32, ptr %161, align 4
%163 = add i32 %162, %159
store i32 %163, ptr %161, align 4
%164 = load i64, ptr %12, align 8
%165 = load i64, ptr %7, align 8
%166 = add i64 %164, %165
%167 = icmp ult i64 %166, 4
br i1 %167, label %168, label %215
168: ; preds = %157
%169 = load ptr, ptr %9, align 8
%170 = load i64, ptr %11, align 8
%171 = getelementptr inbounds i32, ptr %169, i64 %170
%172 = load i32, ptr %171, align 4
store i32 %172, ptr %10, align 4
%173 = load i64, ptr %12, align 8
switch i64 %173, label %210 [
i64 0, label %174
i64 1, label %185
i64 2, label %200
]
174: ; preds = %168
%175 = load ptr, ptr %8, align 8
%176 = getelementptr inbounds i8, ptr %175, i32 1
store ptr %176, ptr %8, align 8
%177 = load i8, ptr %175, align 1
%178 = zext i8 %177 to i64
%179 = trunc i64 %178 to i32
store i32 %179, ptr %10, align 4
%180 = load i64, ptr %7, align 8
%181 = add i64 %180, -1
store i64 %181, ptr %7, align 8
%182 = icmp eq i64 %181, 0
br i1 %182, label %183, label %184
183: ; preds = %174
br label %210
184: ; preds = %174
br label %185
185: ; preds = %184, %168
%186 = load ptr, ptr %8, align 8
%187 = getelementptr inbounds i8, ptr %186, i32 1
store ptr %187, ptr %8, align 8
%188 = load i8, ptr %186, align 1
%189 = zext i8 %188 to i64
%190 = shl i64 %189, 8
%191 = load i32, ptr %10, align 4
%192 = sext i32 %191 to i64
%193 = or i64 %192, %190
%194 = trunc i64 %193 to i32
store i32 %194, ptr %10, align 4
%195 = load i64, ptr %7, align 8
%196 = add i64 %195, -1
store i64 %196, ptr %7, align 8
%197 = icmp eq i64 %196, 0
br i1 %197, label %198, label %199
198: ; preds = %185
br label %210
199: ; preds = %185
br label %200
200: ; preds = %199, %168
%201 = load ptr, ptr %8, align 8
%202 = getelementptr inbounds i8, ptr %201, i32 1
store ptr %202, ptr %8, align 8
%203 = load i8, ptr %201, align 1
%204 = zext i8 %203 to i64
%205 = shl i64 %204, 16
%206 = load i32, ptr %10, align 4
%207 = sext i32 %206 to i64
%208 = or i64 %207, %205
%209 = trunc i64 %208 to i32
store i32 %209, ptr %10, align 4
br label %210
210: ; preds = %200, %198, %183, %168
%211 = load i32, ptr %10, align 4
%212 = load ptr, ptr %9, align 8
%213 = load i64, ptr %11, align 8
%214 = getelementptr inbounds i32, ptr %212, i64 %213
store i32 %211, ptr %214, align 4
br label %336
215: ; preds = %157
%216 = load ptr, ptr %5, align 8
%217 = getelementptr inbounds %struct.TYPE_4__, ptr %216, i32 0, i32 1
%218 = load i32, ptr %217, align 4
%219 = ashr i32 %218, 2
%220 = sext i32 %219 to i64
store i64 %220, ptr %13, align 8
%221 = load ptr, ptr %5, align 8
%222 = getelementptr inbounds %struct.TYPE_4__, ptr %221, i32 0, i32 1
%223 = load i32, ptr %222, align 4
%224 = and i32 %223, 3
%225 = sext i32 %224 to i64
store i64 %225, ptr %14, align 8
%226 = load i64, ptr %12, align 8
%227 = icmp ne i64 %226, 0
br i1 %227, label %228, label %233
228: ; preds = %215
%229 = load ptr, ptr %9, align 8
%230 = load i64, ptr %11, align 8
%231 = getelementptr inbounds i32, ptr %229, i64 %230
%232 = load i32, ptr %231, align 4
store i32 %232, ptr %10, align 4
br label %233
233: ; preds = %228, %215
%234 = load i64, ptr %12, align 8
switch i64 %234, label %271 [
i64 0, label %235
i64 1, label %241
i64 2, label %251
i64 3, label %261
]
235: ; preds = %233
%236 = load ptr, ptr %8, align 8
%237 = getelementptr inbounds i8, ptr %236, i32 1
store ptr %237, ptr %8, align 8
%238 = load i8, ptr %236, align 1
%239 = zext i8 %238 to i64
%240 = trunc i64 %239 to i32
store i32 %240, ptr %10, align 4
br label %241
241: ; preds = %235, %233
%242 = load ptr, ptr %8, align 8
%243 = getelementptr inbounds i8, ptr %242, i32 1
store ptr %243, ptr %8, align 8
%244 = load i8, ptr %242, align 1
%245 = zext i8 %244 to i64
%246 = shl i64 %245, 8
%247 = load i32, ptr %10, align 4
%248 = sext i32 %247 to i64
%249 = or i64 %248, %246
%250 = trunc i64 %249 to i32
store i32 %250, ptr %10, align 4
br label %251
251: ; preds = %241, %233
%252 = load ptr, ptr %8, align 8
%253 = getelementptr inbounds i8, ptr %252, i32 1
store ptr %253, ptr %8, align 8
%254 = load i8, ptr %252, align 1
%255 = zext i8 %254 to i64
%256 = shl i64 %255, 16
%257 = load i32, ptr %10, align 4
%258 = sext i32 %257 to i64
%259 = or i64 %258, %256
%260 = trunc i64 %259 to i32
store i32 %260, ptr %10, align 4
br label %261
261: ; preds = %251, %233
%262 = load ptr, ptr %8, align 8
%263 = getelementptr inbounds i8, ptr %262, i32 1
store ptr %263, ptr %8, align 8
%264 = load i8, ptr %262, align 1
%265 = zext i8 %264 to i64
%266 = shl i64 %265, 24
%267 = load i32, ptr %10, align 4
%268 = sext i32 %267 to i64
%269 = or i64 %268, %266
%270 = trunc i64 %269 to i32
store i32 %270, ptr %10, align 4
br label %271
271: ; preds = %261, %233
%272 = load i32, ptr %10, align 4
%273 = load ptr, ptr %9, align 8
%274 = load i64, ptr %11, align 8
%275 = add i64 %274, 1
store i64 %275, ptr %11, align 8
%276 = getelementptr inbounds i32, ptr %273, i64 %274
store i32 %272, ptr %276, align 4
%277 = load i64, ptr %11, align 8
%278 = load i64, ptr %13, align 8
%279 = icmp ult i64 %277, %278
br i1 %279, label %.lr.ph, label %296
.lr.ph: ; preds = %271
br label %280
280: ; preds = %.lr.ph, %290
%281 = load ptr, ptr %8, align 8
%282 = load i32, ptr %281, align 4
store i32 %282, ptr %10, align 4
%283 = load ptr, ptr %8, align 8
%284 = getelementptr inbounds i8, ptr %283, i64 4
store ptr %284, ptr %8, align 8
%285 = load i32, ptr %10, align 4
%286 = load i32, ptr %10, align 4
%287 = load ptr, ptr %9, align 8
%288 = load i64, ptr %11, align 8
%289 = getelementptr inbounds i32, ptr %287, i64 %288
store i32 %286, ptr %289, align 4
br label %290
290: ; preds = %280
%291 = load i64, ptr %11, align 8
%292 = add i64 %291, 1
store i64 %292, ptr %11, align 8
%293 = load i64, ptr %11, align 8
%294 = load i64, ptr %13, align 8
%295 = icmp ult i64 %293, %294
br i1 %295, label %280, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %290
br label %296
296: ; preds = %._crit_edge, %271
%297 = load i64, ptr %14, align 8
%298 = icmp ne i64 %297, 0
br i1 %298, label %299, label %335
299: ; preds = %296
store i32 0, ptr %10, align 4
%300 = load i64, ptr %14, align 8
%301 = load ptr, ptr %8, align 8
%302 = getelementptr inbounds i8, ptr %301, i64 %300
store ptr %302, ptr %8, align 8
%303 = load i64, ptr %14, align 8
switch i64 %303, label %330 [
i64 3, label %304
i64 2, label %311
i64 1, label %321
]
304: ; preds = %299
%305 = load ptr, ptr %8, align 8
%306 = getelementptr inbounds i8, ptr %305, i32 -1
store ptr %306, ptr %8, align 8
%307 = load i8, ptr %306, align 1
%308 = zext i8 %307 to i64
%309 = shl i64 %308, 16
%310 = trunc i64 %309 to i32
store i32 %310, ptr %10, align 4
br label %311
311: ; preds = %304, %299
%312 = load ptr, ptr %8, align 8
%313 = getelementptr inbounds i8, ptr %312, i32 -1
store ptr %313, ptr %8, align 8
%314 = load i8, ptr %313, align 1
%315 = zext i8 %314 to i64
%316 = shl i64 %315, 8
%317 = load i32, ptr %10, align 4
%318 = sext i32 %317 to i64
%319 = or i64 %318, %316
%320 = trunc i64 %319 to i32
store i32 %320, ptr %10, align 4
br label %321
321: ; preds = %311, %299
%322 = load ptr, ptr %8, align 8
%323 = getelementptr inbounds i8, ptr %322, i32 -1
store ptr %323, ptr %8, align 8
%324 = load i8, ptr %323, align 1
%325 = zext i8 %324 to i64
%326 = load i32, ptr %10, align 4
%327 = sext i32 %326 to i64
%328 = or i64 %327, %325
%329 = trunc i64 %328 to i32
store i32 %329, ptr %10, align 4
br label %330
330: ; preds = %321, %299
%331 = load i32, ptr %10, align 4
%332 = load ptr, ptr %9, align 8
%333 = load i64, ptr %11, align 8
%334 = getelementptr inbounds i32, ptr %332, i64 %333
store i32 %331, ptr %334, align 4
br label %335
335: ; preds = %330, %296
br label %336
336: ; preds = %335, %210
store i32 1, ptr %4, align 4
br label %425
337: ; preds = %143
br label %338
338: ; preds = %337, %40
%339 = load i64, ptr %7, align 8
%340 = load i64, ptr @MD5_CBLOCK, align 8
%341 = udiv i64 %339, %340
store i64 %341, ptr %11, align 8
%342 = load i64, ptr %11, align 8
%343 = icmp ugt i64 %342, 0
br i1 %343, label %344, label %358
344: ; preds = %338
%345 = load ptr, ptr %5, align 8
%346 = load ptr, ptr %8, align 8
%347 = load i64, ptr %11, align 8
%348 = call i32 (ptr, ...) @md5_block_host_order(ptr noundef %345, ptr noundef %346, i64 noundef %347)
%349 = load i64, ptr @MD5_CBLOCK, align 8
%350 = load i64, ptr %11, align 8
%351 = mul i64 %350, %349
store i64 %351, ptr %11, align 8
%352 = load i64, ptr %11, align 8
%353 = load ptr, ptr %8, align 8
%354 = getelementptr inbounds i8, ptr %353, i64 %352
store ptr %354, ptr %8, align 8
%355 = load i64, ptr %11, align 8
%356 = load i64, ptr %7, align 8
%357 = sub i64 %356, %355
store i64 %357, ptr %7, align 8
br label %358
358: ; preds = %344, %338
%359 = load i64, ptr %7, align 8
%360 = icmp ne i64 %359, 0
br i1 %360, label %361, label %424
361: ; preds = %358
%362 = load ptr, ptr %5, align 8
%363 = getelementptr inbounds %struct.TYPE_4__, ptr %362, i32 0, i32 2
%364 = load ptr, ptr %363, align 8
store ptr %364, ptr %9, align 8
%365 = load i64, ptr %7, align 8
%366 = trunc i64 %365 to i32
%367 = load ptr, ptr %5, align 8
%368 = getelementptr inbounds %struct.TYPE_4__, ptr %367, i32 0, i32 1
store i32 %366, ptr %368, align 4
%369 = load i64, ptr %7, align 8
%370 = lshr i64 %369, 2
store i64 %370, ptr %13, align 8
%371 = load i64, ptr %7, align 8
%372 = and i64 %371, 3
store i64 %372, ptr %14, align 8
%373 = load i64, ptr %13, align 8
%374 = icmp ne i64 %373, 0
br i1 %374, label %.lr.ph5, label %390
.lr.ph5: ; preds = %361
br label %375
375: ; preds = %.lr.ph5, %383
%376 = load ptr, ptr %8, align 8
%377 = load i32, ptr %376, align 4
store i32 %377, ptr %10, align 4
%378 = load ptr, ptr %8, align 8
%379 = getelementptr inbounds i8, ptr %378, i64 4
store ptr %379, ptr %8, align 8
%380 = load i32, ptr %10, align 4
%381 = load i32, ptr %10, align 4
%382 = load ptr, ptr %9, align 8
store i32 %381, ptr %382, align 4
br label %383
383: ; preds = %375
%384 = load i64, ptr %13, align 8
%385 = add i64 %384, -1
store i64 %385, ptr %13, align 8
%386 = load ptr, ptr %9, align 8
%387 = getelementptr inbounds i32, ptr %386, i32 1
store ptr %387, ptr %9, align 8
%388 = load i64, ptr %13, align 8
%389 = icmp ne i64 %388, 0
br i1 %389, label %375, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %383
br label %390
390: ; preds = %._crit_edge6, %361
store i32 0, ptr %10, align 4
%391 = load i64, ptr %14, align 8
%392 = load ptr, ptr %8, align 8
%393 = getelementptr inbounds i8, ptr %392, i64 %391
store ptr %393, ptr %8, align 8
%394 = load i64, ptr %14, align 8
switch i64 %394, label %421 [
i64 3, label %395
i64 2, label %402
i64 1, label %412
]
395: ; preds = %390
%396 = load ptr, ptr %8, align 8
%397 = getelementptr inbounds i8, ptr %396, i32 -1
store ptr %397, ptr %8, align 8
%398 = load i8, ptr %397, align 1
%399 = zext i8 %398 to i64
%400 = shl i64 %399, 16
%401 = trunc i64 %400 to i32
store i32 %401, ptr %10, align 4
br label %402
402: ; preds = %395, %390
%403 = load ptr, ptr %8, align 8
%404 = getelementptr inbounds i8, ptr %403, i32 -1
store ptr %404, ptr %8, align 8
%405 = load i8, ptr %404, align 1
%406 = zext i8 %405 to i64
%407 = shl i64 %406, 8
%408 = load i32, ptr %10, align 4
%409 = sext i32 %408 to i64
%410 = or i64 %409, %407
%411 = trunc i64 %410 to i32
store i32 %411, ptr %10, align 4
br label %412
412: ; preds = %402, %390
%413 = load ptr, ptr %8, align 8
%414 = getelementptr inbounds i8, ptr %413, i32 -1
store ptr %414, ptr %8, align 8
%415 = load i8, ptr %414, align 1
%416 = zext i8 %415 to i64
%417 = load i32, ptr %10, align 4
%418 = sext i32 %417 to i64
%419 = or i64 %418, %416
%420 = trunc i64 %419 to i32
store i32 %420, ptr %10, align 4
br label %421
421: ; preds = %412, %390
%422 = load i32, ptr %10, align 4
%423 = load ptr, ptr %9, align 8
store i32 %422, ptr %423, align 4
br label %424
424: ; preds = %421, %358
store i32 1, ptr %4, align 4
br label %425
425: ; preds = %424, %336, %18
%426 = load i32, ptr %4, align 4
ret i32 %426
}
declare i32 @md5_block_host_order(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpi0lucwbg.c'
source_filename = "/tmp/tmpi0lucwbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"register driver fail\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @sl_register_linux()
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @utc_security_main(i32 noundef %13, ptr noundef %14)
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %12, %10
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @sl_register_linux(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @utc_security_main(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/tmpi0lucwbg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"register driver fail\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @sl_register_linux()
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %16
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @utc_security_main(i32 noundef %13, ptr noundef %14)
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %12, %10
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @sl_register_linux(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @utc_security_main(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/tmplo7q9z7u.c'
source_filename = "/tmp/tmplo7q9z7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cnormdist(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %5, align 8
%9 = fsub double %7, %8
%10 = load double, ptr %6, align 8
%11 = fdiv double %9, %10
%12 = fdiv double %11, 0x3FF6A09E667F3BE3
%13 = call double @erf(double noundef %12) #3
%14 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %13, double 5.000000e-01)
ret double %14
}
; Function Attrs: nounwind
declare double @erf(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmplo7q9z7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cnormdist(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %5, align 8
%9 = fsub double %7, %8
%10 = load double, ptr %6, align 8
%11 = fdiv double %9, %10
%12 = fdiv double %11, 0x3FF6A09E667F3BE3
%13 = call double @erf(double noundef %12) #3
%14 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %13, double 5.000000e-01)
ret double %14
}
; Function Attrs: nounwind
declare double @erf(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmpt_0v9344.c'
source_filename = "/tmp/tmpt_0v9344.c"
target datalayout = "e-m:e-p270: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/tmpt_0v9344.c"
target datalayout = "e-m:e-p270: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/tmpxo33xh37.c'
source_filename = "/tmp/tmpxo33xh37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Move disk 1 from rod %c to rod %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Move disk %d from rod %c to rod %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tohRecursive(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i8, ptr %6, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr %7, align 1
%15 = call i32 (ptr, i32, i8, ...) @printf(ptr noundef @.str, i32 noundef %13, i8 noundef signext %14)
br label %32
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = load i8, ptr %6, align 1
%20 = load i8, ptr %8, align 1
%21 = load i8, ptr %7, align 1
call void @tohRecursive(i32 noundef %18, i8 noundef signext %19, i8 noundef signext %20, i8 noundef signext %21)
%22 = load i32, ptr %5, align 4
%23 = load i8, ptr %6, align 1
%24 = load i8, ptr %7, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, i32, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %22, i8 noundef signext %23, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = sub nsw i32 %27, 1
%29 = load i8, ptr %8, align 1
%30 = load i8, ptr %7, align 1
%31 = load i8, ptr %6, align 1
call void @tohRecursive(i32 noundef %28, i8 noundef signext %29, i8 noundef signext %30, i8 noundef signext %31)
br label %32
32: ; preds = %16, %11
ret void
}
declare i32 @printf(ptr noundef, 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/tmpxo33xh37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Move disk 1 from rod %c to rod %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Move disk %d from rod %c to rod %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tohRecursive(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store i8 %1, ptr %6, align 1
store i8 %2, ptr %7, align 1
store i8 %3, ptr %8, align 1
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i8, ptr %6, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr %7, align 1
%15 = call i32 (ptr, i32, i8, ...) @printf(ptr noundef @.str, i32 noundef %13, i8 noundef signext %14)
br label %32
16: ; preds = %4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %17, 1
%19 = load i8, ptr %6, align 1
%20 = load i8, ptr %8, align 1
%21 = load i8, ptr %7, align 1
call void @tohRecursive(i32 noundef %18, i8 noundef signext %19, i8 noundef signext %20, i8 noundef signext %21)
%22 = load i32, ptr %5, align 4
%23 = load i8, ptr %6, align 1
%24 = load i8, ptr %7, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, i32, i8, ...) @printf(ptr noundef @.str.1, i32 noundef %22, i8 noundef signext %23, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = sub nsw i32 %27, 1
%29 = load i8, ptr %8, align 1
%30 = load i8, ptr %7, align 1
%31 = load i8, ptr %6, align 1
call void @tohRecursive(i32 noundef %28, i8 noundef signext %29, i8 noundef signext %30, i8 noundef signext %31)
br label %32
32: ; preds = %16, %11
ret void
}
declare i32 @printf(ptr noundef, 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/tmp659di_x1.c'
source_filename = "/tmp/tmp659di_x1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %24
8: ; preds = %1
store i32 0, ptr %3, align 4
%9 = call i32 (...) @rand()
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = sdiv i32 %17, %18
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %13, %8
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %20
br label %27
24: ; preds = %1
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 42
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %23, %24
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp659di_x1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %24
8: ; preds = %1
store i32 0, ptr %3, align 4
%9 = call i32 (...) @rand()
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = mul nsw i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = sdiv i32 %17, %18
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %13, %8
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %20
br label %27
24: ; preds = %1
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 42
store i32 %26, ptr %2, align 4
br label %27
27: ; preds = %24, %23
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgxxci4yj.c'
source_filename = "/tmp/tmpgxxci4yj.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"usage: gen_laplace_tables <nb entries> <shift>\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"/* This file is auto-generated using \22gen_laplace_tables %d %d\22 */\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"#include \22pvq_code.h\22\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"const ogg_uint16_t exp_cdf_table[%d][16] = {\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" {\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%5d%s\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"},\0A\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"}%s\0A\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [43 x i8] c"const ogg_uint16_t laplace_offset[%d] = {\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c" %d%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [16 x float], align 16
%11 = alloca [16 x i32], align 16
%12 = alloca i32, align 4
%13 = alloca [32768 x i32], align 16
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 3
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %226
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
store i32 %27, ptr %7, align 4
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @atoi(ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %8, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %32, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
br label %39
39: ; preds = %51, %23
%40 = load i32, ptr %9, align 4
%41 = icmp slt i32 %40, 16
br i1 %41, label %42, label %54
42: ; preds = %39
%43 = load i32, ptr %9, align 4
%44 = add i32 32753, %43
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
%47 = icmp slt i32 %46, 16
%48 = zext i1 %47 to i64
%49 = select i1 %47, ptr @.str.6, ptr @.str.7
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %44, ptr noundef %49)
br label %51
51: ; preds = %42
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
br label %39, !llvm.loop !6
54: ; preds = %39
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%56 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 0
store i32 1, ptr %56, align 16
%57 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 0
store i32 0, ptr %57, align 16
store i32 1, ptr %6, align 4
br label %58
58: ; preds = %197, %54
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %200
62: ; preds = %58
%63 = load i32, ptr %6, align 4
%64 = sitofp i32 %63 to float
%65 = load i32, ptr %8, align 4
%66 = shl i32 1, %65
%67 = sitofp i32 %66 to float
%68 = fdiv float %64, %67
store float %68, ptr %14, align 4
%69 = load float, ptr %14, align 4
%70 = fsub float 1.000000e+00, %69
%71 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
store float %70, ptr %71, align 16
store i32 1, ptr %9, align 4
br label %72
72: ; preds = %86, %62
%73 = load i32, ptr %9, align 4
%74 = icmp slt i32 %73, 15
br i1 %74, label %75, label %89
75: ; preds = %72
%76 = load float, ptr %14, align 4
%77 = fsub float 1.000000e+00, %76
%78 = load float, ptr %14, align 4
%79 = load i32, ptr %9, align 4
%80 = call i32 @pow(float noundef %78, i32 noundef %79)
%81 = sitofp i32 %80 to float
%82 = fmul float %77, %81
%83 = load i32, ptr %9, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %84
store float %82, ptr %85, align 4
br label %86
86: ; preds = %75
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %9, align 4
br label %72, !llvm.loop !8
89: ; preds = %72
%90 = load float, ptr %14, align 4
%91 = call i32 @pow(float noundef %90, i32 noundef 15)
%92 = sitofp i32 %91 to float
%93 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 15
store float %92, ptr %93, align 4
%94 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
%95 = load float, ptr %94, align 16
%96 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
%97 = load float, ptr %96, align 16
%98 = load float, ptr %14, align 4
%99 = call i32 @sqrt(float noundef %98)
%100 = sitofp i32 %99 to float
%101 = fmul float %97, %100
%102 = load float, ptr %14, align 4
%103 = call i32 @sqrt(float noundef %102)
%104 = add nsw i32 1, %103
%105 = sitofp i32 %104 to float
%106 = fdiv float %101, %105
%107 = fsub float %95, %106
%108 = fmul float 3.276800e+04, %107
%109 = fptosi float %108 to i32
%110 = load i32, ptr %6, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 %111
store i32 %109, ptr %112, align 4
store i32 0, ptr %12, align 4
store float 0.000000e+00, ptr %16, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %9, align 4
br label %113
113: ; preds = %157, %89
%114 = load i32, ptr %9, align 4
%115 = icmp slt i32 %114, 16
br i1 %115, label %116, label %160
116: ; preds = %113
%117 = load i32, ptr %9, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %118
%120 = load float, ptr %119, align 4
%121 = load float, ptr %16, align 4
%122 = fcmp ogt float %120, %121
br i1 %122, label %123, label %129
123: ; preds = %116
%124 = load i32, ptr %9, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %125
%127 = load float, ptr %126, align 4
store float %127, ptr %16, align 4
%128 = load i32, ptr %9, align 4
store i32 %128, ptr %17, align 4
br label %129
129: ; preds = %123, %116
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %131
%133 = load float, ptr %132, align 4
%134 = fmul float 3.276800e+04, %133
%135 = fpext float %134 to double
%136 = fadd double 5.000000e-01, %135
%137 = call i32 @floor(double noundef %136)
%138 = load i32, ptr %9, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %139
store i32 %137, ptr %140, align 4
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %142
%144 = load i32, ptr %143, align 4
%145 = icmp eq i32 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %129
%147 = load i32, ptr %9, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %148
store i32 1, ptr %149, align 4
br label %150
150: ; preds = %146, %129
%151 = load i32, ptr %9, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = load i32, ptr %12, align 4
%156 = add nsw i32 %155, %154
store i32 %156, ptr %12, align 4
br label %157
157: ; preds = %150
%158 = load i32, ptr %9, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %9, align 4
br label %113, !llvm.loop !9
160: ; preds = %113
%161 = load i32, ptr %12, align 4
%162 = sub nsw i32 32768, %161
%163 = load i32, ptr %17, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %164
%166 = load i32, ptr %165, align 4
%167 = add nsw i32 %166, %162
store i32 %167, ptr %165, align 4
store i32 0, ptr %15, align 4
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
br label %169
169: ; preds = %186, %160
%170 = load i32, ptr %9, align 4
%171 = icmp slt i32 %170, 16
br i1 %171, label %172, label %189
172: ; preds = %169
%173 = load i32, ptr %9, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %174
%176 = load i32, ptr %175, align 4
%177 = load i32, ptr %15, align 4
%178 = add nsw i32 %177, %176
store i32 %178, ptr %15, align 4
%179 = load i32, ptr %15, align 4
%180 = load i32, ptr %9, align 4
%181 = add nsw i32 %180, 1
%182 = icmp slt i32 %181, 16
%183 = zext i1 %182 to i64
%184 = select i1 %182, ptr @.str.6, ptr @.str.7
%185 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %179, ptr noundef %184)
br label %186
186: ; preds = %172
%187 = load i32, ptr %9, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %9, align 4
br label %169, !llvm.loop !10
189: ; preds = %169
%190 = load i32, ptr %6, align 4
%191 = add nsw i32 %190, 1
%192 = load i32, ptr %7, align 4
%193 = icmp sle i32 %191, %192
%194 = zext i1 %193 to i64
%195 = select i1 %193, ptr @.str.6, ptr @.str.7
%196 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %195)
br label %197
197: ; preds = %189
%198 = load i32, ptr %6, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %6, align 4
br label %58, !llvm.loop !11
200: ; preds = %58
%201 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%202 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%203 = load i32, ptr %7, align 4
%204 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %203)
store i32 0, ptr %6, align 4
br label %205
205: ; preds = %221, %200
%206 = load i32, ptr %6, align 4
%207 = load i32, ptr %7, align 4
%208 = icmp slt i32 %206, %207
br i1 %208, label %209, label %224
209: ; preds = %205
%210 = load i32, ptr %6, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 %211
%213 = load i32, ptr %212, align 4
%214 = load i32, ptr %6, align 4
%215 = add nsw i32 %214, 1
%216 = load i32, ptr %7, align 4
%217 = icmp sle i32 %215, %216
%218 = zext i1 %217 to i64
%219 = select i1 %217, ptr @.str.6, ptr @.str.7
%220 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %213, ptr noundef %219)
br label %221
221: ; preds = %209
%222 = load i32, ptr %6, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %6, align 4
br label %205, !llvm.loop !12
224: ; preds = %205
%225 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %3, align 4
br label %226
226: ; preds = %224, %20
%227 = load i32, ptr %3, align 4
ret i32 %227
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(float noundef, i32 noundef) #1
declare i32 @sqrt(float noundef) #1
declare i32 @floor(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgxxci4yj.c"
target datalayout = "e-m:e-p270: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 [48 x i8] c"usage: gen_laplace_tables <nb entries> <shift>\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c"/* This file is auto-generated using \22gen_laplace_tables %d %d\22 */\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"#include \22pvq_code.h\22\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"const ogg_uint16_t exp_cdf_table[%d][16] = {\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" {\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%5d%s\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.7 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"},\0A\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"}%s\0A\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [43 x i8] c"const ogg_uint16_t laplace_offset[%d] = {\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c" %d%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [16 x float], align 16
%11 = alloca [16 x i32], align 16
%12 = alloca i32, align 4
%13 = alloca [32768 x i32], align 16
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 3
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %234
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @atoi(ptr noundef %26)
store i32 %27, ptr %7, align 4
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
%31 = call i32 @atoi(ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %8, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %32, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp slt i32 %39, 16
br i1 %40, label %.lr.ph, label %55
.lr.ph: ; preds = %23
br label %41
41: ; preds = %.lr.ph, %50
%42 = load i32, ptr %9, align 4
%43 = add i32 32753, %42
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
%46 = icmp slt i32 %45, 16
%47 = zext i1 %46 to i64
%48 = select i1 %46, ptr @.str.6, ptr @.str.7
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %43, ptr noundef %48)
br label %50
50: ; preds = %41
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp slt i32 %53, 16
br i1 %54, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %23
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%57 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 0
store i32 1, ptr %57, align 16
%58 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 0
store i32 0, ptr %58, align 16
store i32 1, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph11, label %206
.lr.ph11: ; preds = %55
br label %62
62: ; preds = %.lr.ph11, %200
%63 = load i32, ptr %6, align 4
%64 = sitofp i32 %63 to float
%65 = load i32, ptr %8, align 4
%66 = shl i32 1, %65
%67 = sitofp i32 %66 to float
%68 = fdiv float %64, %67
store float %68, ptr %14, align 4
%69 = load float, ptr %14, align 4
%70 = fsub float 1.000000e+00, %69
%71 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
store float %70, ptr %71, align 16
store i32 1, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = icmp slt i32 %72, 15
br i1 %73, label %.lr.ph2, label %90
.lr.ph2: ; preds = %62
br label %74
74: ; preds = %.lr.ph2, %85
%75 = load float, ptr %14, align 4
%76 = fsub float 1.000000e+00, %75
%77 = load float, ptr %14, align 4
%78 = load i32, ptr %9, align 4
%79 = call i32 @pow(float noundef %77, i32 noundef %78)
%80 = sitofp i32 %79 to float
%81 = fmul float %76, %80
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %83
store float %81, ptr %84, align 4
br label %85
85: ; preds = %74
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %9, align 4
%89 = icmp slt i32 %88, 15
br i1 %89, label %74, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %85
br label %90
90: ; preds = %._crit_edge3, %62
%91 = load float, ptr %14, align 4
%92 = call i32 @pow(float noundef %91, i32 noundef 15)
%93 = sitofp i32 %92 to float
%94 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 15
store float %93, ptr %94, align 4
%95 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
%96 = load float, ptr %95, align 16
%97 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 0
%98 = load float, ptr %97, align 16
%99 = load float, ptr %14, align 4
%100 = call i32 @sqrt(float noundef %99)
%101 = sitofp i32 %100 to float
%102 = fmul float %98, %101
%103 = load float, ptr %14, align 4
%104 = call i32 @sqrt(float noundef %103)
%105 = add nsw i32 1, %104
%106 = sitofp i32 %105 to float
%107 = fdiv float %102, %106
%108 = fsub float %96, %107
%109 = fmul float 3.276800e+04, %108
%110 = fptosi float %109 to i32
%111 = load i32, ptr %6, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 %112
store i32 %110, ptr %113, align 4
store i32 0, ptr %12, align 4
store float 0.000000e+00, ptr %16, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %9, align 4
%114 = load i32, ptr %9, align 4
%115 = icmp slt i32 %114, 16
br i1 %115, label %.lr.ph5, label %162
.lr.ph5: ; preds = %90
br label %116
116: ; preds = %.lr.ph5, %157
%117 = load i32, ptr %9, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %118
%120 = load float, ptr %119, align 4
%121 = load float, ptr %16, align 4
%122 = fcmp ogt float %120, %121
br i1 %122, label %123, label %129
123: ; preds = %116
%124 = load i32, ptr %9, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %125
%127 = load float, ptr %126, align 4
store float %127, ptr %16, align 4
%128 = load i32, ptr %9, align 4
store i32 %128, ptr %17, align 4
br label %129
129: ; preds = %123, %116
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %131
%133 = load float, ptr %132, align 4
%134 = fmul float 3.276800e+04, %133
%135 = fpext float %134 to double
%136 = fadd double 5.000000e-01, %135
%137 = call i32 @floor(double noundef %136)
%138 = load i32, ptr %9, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %139
store i32 %137, ptr %140, align 4
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %142
%144 = load i32, ptr %143, align 4
%145 = icmp eq i32 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %129
%147 = load i32, ptr %9, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %148
store i32 1, ptr %149, align 4
br label %150
150: ; preds = %146, %129
%151 = load i32, ptr %9, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = load i32, ptr %12, align 4
%156 = add nsw i32 %155, %154
store i32 %156, ptr %12, align 4
br label %157
157: ; preds = %150
%158 = load i32, ptr %9, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %9, align 4
%160 = load i32, ptr %9, align 4
%161 = icmp slt i32 %160, 16
br i1 %161, label %116, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %157
br label %162
162: ; preds = %._crit_edge6, %90
%163 = load i32, ptr %12, align 4
%164 = sub nsw i32 32768, %163
%165 = load i32, ptr %17, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %166
%168 = load i32, ptr %167, align 4
%169 = add nsw i32 %168, %164
store i32 %169, ptr %167, align 4
store i32 0, ptr %15, align 4
%170 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
%171 = load i32, ptr %9, align 4
%172 = icmp slt i32 %171, 16
br i1 %172, label %.lr.ph8, label %192
.lr.ph8: ; preds = %162
br label %173
173: ; preds = %.lr.ph8, %187
%174 = load i32, ptr %9, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [16 x i32], ptr %11, i64 0, i64 %175
%177 = load i32, ptr %176, align 4
%178 = load i32, ptr %15, align 4
%179 = add nsw i32 %178, %177
store i32 %179, ptr %15, align 4
%180 = load i32, ptr %15, align 4
%181 = load i32, ptr %9, align 4
%182 = add nsw i32 %181, 1
%183 = icmp slt i32 %182, 16
%184 = zext i1 %183 to i64
%185 = select i1 %183, ptr @.str.6, ptr @.str.7
%186 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %180, ptr noundef %185)
br label %187
187: ; preds = %173
%188 = load i32, ptr %9, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %9, align 4
%190 = load i32, ptr %9, align 4
%191 = icmp slt i32 %190, 16
br i1 %191, label %173, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %187
br label %192
192: ; preds = %._crit_edge9, %162
%193 = load i32, ptr %6, align 4
%194 = add nsw i32 %193, 1
%195 = load i32, ptr %7, align 4
%196 = icmp sle i32 %194, %195
%197 = zext i1 %196 to i64
%198 = select i1 %196, ptr @.str.6, ptr @.str.7
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %198)
br label %200
200: ; preds = %192
%201 = load i32, ptr %6, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %6, align 4
%203 = load i32, ptr %6, align 4
%204 = load i32, ptr %7, align 4
%205 = icmp slt i32 %203, %204
br i1 %205, label %62, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %200
br label %206
206: ; preds = %._crit_edge12, %55
%207 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%208 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%209 = load i32, ptr %7, align 4
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %209)
store i32 0, ptr %6, align 4
%211 = load i32, ptr %6, align 4
%212 = load i32, ptr %7, align 4
%213 = icmp slt i32 %211, %212
br i1 %213, label %.lr.ph14, label %232
.lr.ph14: ; preds = %206
br label %214
214: ; preds = %.lr.ph14, %226
%215 = load i32, ptr %6, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [32768 x i32], ptr %13, i64 0, i64 %216
%218 = load i32, ptr %217, align 4
%219 = load i32, ptr %6, align 4
%220 = add nsw i32 %219, 1
%221 = load i32, ptr %7, align 4
%222 = icmp sle i32 %220, %221
%223 = zext i1 %222 to i64
%224 = select i1 %222, ptr @.str.6, ptr @.str.7
%225 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %218, ptr noundef %224)
br label %226
226: ; preds = %214
%227 = load i32, ptr %6, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %6, align 4
%229 = load i32, ptr %6, align 4
%230 = load i32, ptr %7, align 4
%231 = icmp slt i32 %229, %230
br i1 %231, label %214, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %226
br label %232
232: ; preds = %._crit_edge15, %206
%233 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %3, align 4
br label %234
234: ; preds = %232, %20
%235 = load i32, ptr %3, align 4
ret i32 %235
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(float noundef, i32 noundef) #1
declare i32 @sqrt(float noundef) #1
declare i32 @floor(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpca_x2oo7.c'
source_filename = "/tmp/tmpca_x2oo7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"NOT IMPLEMENTED:pa_log_target_new\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_log_target_new() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpca_x2oo7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"NOT IMPLEMENTED:pa_log_target_new\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_log_target_new() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpqes31yc3.c'
source_filename = "/tmp/tmpqes31yc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Thread_unlock_mutex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqes31yc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Thread_unlock_mutex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pthread_mutex_unlock(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7fwy73ut.c'
source_filename = "/tmp/tmp7fwy73ut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tmp\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"./tmp\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"../tmp\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"tmp/one\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"/tmp/one\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"./tmp/one\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"../tmp/one\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @mkdir(ptr noundef @.str, i32 noundef 777)
%2 = call i32 @mkdir(ptr noundef @.str.1, i32 noundef 777)
%3 = call i32 @mkdir(ptr noundef @.str.2, i32 noundef 777)
%4 = call i32 @mkdir(ptr noundef @.str.3, i32 noundef 777)
%5 = call i32 @mkdir(ptr noundef @.str.4, i32 noundef 777)
%6 = call i32 @mkdir(ptr noundef @.str.5, i32 noundef 777)
%7 = call i32 @mkdir(ptr noundef @.str.6, i32 noundef 777)
%8 = call i32 @rmdir(ptr noundef @.str.3)
%9 = call i32 @rmdir(ptr noundef @.str.4)
%10 = call i32 @rmdir(ptr noundef @.str.5)
%11 = call i32 @rmdir(ptr noundef @.str.6)
%12 = call i32 @rmdir(ptr noundef @.str)
%13 = call i32 @rmdir(ptr noundef @.str.1)
%14 = call i32 @rmdir(ptr noundef @.str.2)
ret i32 0
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @rmdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7fwy73ut.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tmp\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"./tmp\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"../tmp\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"tmp/one\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"/tmp/one\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"./tmp/one\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"../tmp/one\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @mkdir(ptr noundef @.str, i32 noundef 777)
%2 = call i32 @mkdir(ptr noundef @.str.1, i32 noundef 777)
%3 = call i32 @mkdir(ptr noundef @.str.2, i32 noundef 777)
%4 = call i32 @mkdir(ptr noundef @.str.3, i32 noundef 777)
%5 = call i32 @mkdir(ptr noundef @.str.4, i32 noundef 777)
%6 = call i32 @mkdir(ptr noundef @.str.5, i32 noundef 777)
%7 = call i32 @mkdir(ptr noundef @.str.6, i32 noundef 777)
%8 = call i32 @rmdir(ptr noundef @.str.3)
%9 = call i32 @rmdir(ptr noundef @.str.4)
%10 = call i32 @rmdir(ptr noundef @.str.5)
%11 = call i32 @rmdir(ptr noundef @.str.6)
%12 = call i32 @rmdir(ptr noundef @.str)
%13 = call i32 @rmdir(ptr noundef @.str.1)
%14 = call i32 @rmdir(ptr noundef @.str.2)
ret i32 0
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @rmdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6lzp81_n.c'
source_filename = "/tmp/tmp6lzp81_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [11 x i8] c"12345.6789\00", align 1
@__const.main.b = private unnamed_addr constant [13 x i8] c"1234.567qwer\00", align 1
@__const.main.c = private unnamed_addr constant [10 x i8] c"-232.23e4\00", align 1
@.str = private unnamed_addr constant [7 x i8] c"a=%lf\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"b=%lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"endptr=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"c=%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca [11 x i8], align 1
%3 = alloca [13 x i8], align 1
%4 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 11, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 13, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.c, i64 10, i1 false)
%5 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%6 = call ptr @strtod(ptr noundef %5, ptr noundef null)
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%9 = call ptr @strtod(ptr noundef %8, ptr noundef %1)
%10 = call i32 @printf(ptr noundef @.str.1, ptr noundef %9)
%11 = load ptr, ptr %1, align 8
%12 = call i32 @printf(ptr noundef @.str.2, ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %4, i64 0, i64 0
%14 = call ptr @strtod(ptr noundef %13, ptr noundef null)
%15 = call i32 @printf(ptr noundef @.str.3, ptr noundef %14)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @strtod(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6lzp81_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [11 x i8] c"12345.6789\00", align 1
@__const.main.b = private unnamed_addr constant [13 x i8] c"1234.567qwer\00", align 1
@__const.main.c = private unnamed_addr constant [10 x i8] c"-232.23e4\00", align 1
@.str = private unnamed_addr constant [7 x i8] c"a=%lf\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"b=%lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"endptr=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"c=%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca [11 x i8], align 1
%3 = alloca [13 x i8], align 1
%4 = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 11, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 13, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.c, i64 10, i1 false)
%5 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%6 = call ptr @strtod(ptr noundef %5, ptr noundef null)
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%9 = call ptr @strtod(ptr noundef %8, ptr noundef %1)
%10 = call i32 @printf(ptr noundef @.str.1, ptr noundef %9)
%11 = load ptr, ptr %1, align 8
%12 = call i32 @printf(ptr noundef @.str.2, ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %4, i64 0, i64 0
%14 = call ptr @strtod(ptr noundef %13, ptr noundef null)
%15 = call i32 @printf(ptr noundef @.str.3, ptr noundef %14)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @strtod(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmtu3xbx0.c'
source_filename = "/tmp/tmpmtu3xbx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @faca(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %3, align 4
br label %14
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @facb(i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = mul nsw i32 %11, %12
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %7, %6
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @facb(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/tmpmtu3xbx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @faca(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %3, align 4
br label %14
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = sub nsw i32 %8, 1
%10 = call i32 @facb(i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = mul nsw i32 %11, %12
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %7, %6
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @facb(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/tmpy_1zx6zh.c'
source_filename = "/tmp/tmpy_1zx6zh.c"
target datalayout = "e-m:e-p270: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/tmpy_1zx6zh.c"
target datalayout = "e-m:e-p270: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/tmpeexo7a2n.c'
source_filename = "/tmp/tmpeexo7a2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%s:%s:%s:%s:%s:%s:%s:%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"Y\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"toc_set_dir %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @serv_set_dir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca [2048 x i8], align 16
%20 = alloca [2048 x i8], align 16
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store i32 %8, ptr %18, align 4
%21 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %12, align 8
%25 = load ptr, ptr %13, align 8
%26 = load ptr, ptr %14, align 8
%27 = load ptr, ptr %15, align 8
%28 = load ptr, ptr %16, align 8
%29 = load i32, ptr %18, align 4
%30 = icmp eq i32 %29, 1
%31 = zext i1 %30 to i64
%32 = select i1 %30, ptr @.str.1, ptr @.str.2
%33 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %21, i32 noundef 2048, ptr noundef @.str, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %32)
%34 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%35 = call i32 @escape_text(ptr noundef %34)
%36 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
%37 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%38 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %36, i32 noundef 2048, ptr noundef @.str.3, ptr noundef %37)
%39 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
%40 = call i32 @sflap_send(ptr noundef %39, i32 noundef -1, i32 noundef 2)
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @escape_text(ptr noundef) #1
declare i32 @sflap_send(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeexo7a2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%s:%s:%s:%s:%s:%s:%s:%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"Y\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"toc_set_dir %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @serv_set_dir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca [2048 x i8], align 16
%20 = alloca [2048 x i8], align 16
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store i32 %8, ptr %18, align 4
%21 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %12, align 8
%25 = load ptr, ptr %13, align 8
%26 = load ptr, ptr %14, align 8
%27 = load ptr, ptr %15, align 8
%28 = load ptr, ptr %16, align 8
%29 = load i32, ptr %18, align 4
%30 = icmp eq i32 %29, 1
%31 = zext i1 %30 to i64
%32 = select i1 %30, ptr @.str.1, ptr @.str.2
%33 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %21, i32 noundef 2048, ptr noundef @.str, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %32)
%34 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%35 = call i32 @escape_text(ptr noundef %34)
%36 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
%37 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
%38 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %36, i32 noundef 2048, ptr noundef @.str.3, ptr noundef %37)
%39 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
%40 = call i32 @sflap_send(ptr noundef %39, i32 noundef -1, i32 noundef 2)
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @escape_text(ptr noundef) #1
declare i32 @sflap_send(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp45do28le.c'
source_filename = "/tmp/tmp45do28le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"memcpy() overhead: %.1f%%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %30, %0
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %33
10: ; preds = %7
%11 = call i32 @test_memcpy(ptr noundef %5)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
br label %34
15: ; preds = %10
%16 = call i32 @test_deref(ptr noundef %6)
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
br label %34
20: ; preds = %15
%21 = load i64, ptr %5, align 8
%22 = uitofp i64 %21 to float
%23 = fmul float %22, 1.000000e+02
%24 = load i64, ptr %6, align 8
%25 = uitofp i64 %24 to float
%26 = fdiv float %23, %25
%27 = fsub float %26, 1.000000e+02
store float %27, ptr %4, align 4
%28 = load float, ptr %4, align 4
%29 = call i32 @printf(ptr noundef @.str, float noundef %28)
br label %30
30: ; preds = %20
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %7, !llvm.loop !6
33: ; preds = %7
store i32 0, ptr %1, align 4
br label %35
34: ; preds = %19, %14
store i32 -1, ptr %1, align 4
br label %35
35: ; preds = %34, %33
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare i32 @test_memcpy(ptr noundef) #1
declare i32 @test_deref(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp45do28le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"memcpy() overhead: %.1f%%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %29
%10 = call i32 @test_memcpy(ptr noundef %5)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
br label %35
14: ; preds = %9
%15 = call i32 @test_deref(ptr noundef %6)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %14
br label %35
19: ; preds = %14
%20 = load i64, ptr %5, align 8
%21 = uitofp i64 %20 to float
%22 = fmul float %21, 1.000000e+02
%23 = load i64, ptr %6, align 8
%24 = uitofp i64 %23 to float
%25 = fdiv float %22, %24
%26 = fsub float %25, 1.000000e+02
store float %26, ptr %4, align 4
%27 = load float, ptr %4, align 4
%28 = call i32 @printf(ptr noundef @.str, float noundef %27)
br label %29
29: ; preds = %19
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 3
br i1 %33, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
br label %36
35: ; preds = %18, %13
store i32 -1, ptr %1, align 4
br label %36
36: ; preds = %35, %34
%37 = load i32, ptr %1, align 4
ret i32 %37
}
declare i32 @test_memcpy(ptr noundef) #1
declare i32 @test_deref(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp66oiibd9.c'
source_filename = "/tmp/tmp66oiibd9.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"rmdir: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @report(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load i32, ptr @errno, align 4
%5 = call ptr @strerror(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = call i32 @tell(ptr noundef @.str)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @tell(ptr noundef %7)
%9 = call i32 @tell(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @tell(ptr noundef %10)
%12 = call i32 @tell(ptr noundef @.str.2)
ret void
}
declare ptr @strerror(i32 noundef) #1
declare i32 @tell(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp66oiibd9.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"rmdir: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @report(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load i32, ptr @errno, align 4
%5 = call ptr @strerror(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = call i32 @tell(ptr noundef @.str)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @tell(ptr noundef %7)
%9 = call i32 @tell(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @tell(ptr noundef %10)
%12 = call i32 @tell(ptr noundef @.str.2)
ret void
}
declare ptr @strerror(i32 noundef) #1
declare i32 @tell(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_d2rd4cr.c'
source_filename = "/tmp/tmp_d2rd4cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"root users\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_d2rd4cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"root users\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb8vag3gy.c'
source_filename = "/tmp/tmpb8vag3gy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @metersToFeetAndInchesByModf(double noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load double, ptr %4, align 8
%10 = fmul double %9, 3.281000e+00
store double %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %26
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load double, ptr %7, align 8
%18 = call double @modf(double noundef %17, ptr noundef %8) #2
%19 = load ptr, ptr %6, align 8
store double %18, ptr %19, align 8
%20 = load double, ptr %8, align 8
%21 = fptoui double %20 to i32
%22 = load ptr, ptr %5, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %6, align 8
%24 = load double, ptr %23, align 8
%25 = fmul double %24, 1.200000e+01
store double %25, ptr %23, align 8
br label %26
26: ; preds = %16, %13, %3
ret void
}
; Function Attrs: nounwind
declare double @modf(double 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8vag3gy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @metersToFeetAndInchesByModf(double noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load double, ptr %4, align 8
%10 = fmul double %9, 3.281000e+00
store double %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %26
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load double, ptr %7, align 8
%18 = call double @modf(double noundef %17, ptr noundef %8) #2
%19 = load ptr, ptr %6, align 8
store double %18, ptr %19, align 8
%20 = load double, ptr %8, align 8
%21 = fptoui double %20 to i32
%22 = load ptr, ptr %5, align 8
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %6, align 8
%24 = load double, ptr %23, align 8
%25 = fmul double %24, 1.200000e+01
store double %25, ptr %23, align 8
br label %26
26: ; preds = %16, %13, %3
ret void
}
; Function Attrs: nounwind
declare double @modf(double 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3qwar4ap.c'
source_filename = "/tmp/tmp3qwar4ap.c"
target datalayout = "e-m:e-p270: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/tmp3qwar4ap.c"
target datalayout = "e-m:e-p270: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/tmp9_z1aw2m.c'
source_filename = "/tmp/tmp9_z1aw2m.c"
target datalayout = "e-m:e-p270: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/tmp9_z1aw2m.c"
target datalayout = "e-m:e-p270: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/tmp433gzai5.c'
source_filename = "/tmp/tmp433gzai5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"nop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @delay() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %7, %0
%3 = load i32, ptr %1, align 4
%4 = icmp ult i32 %3, 20
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 @__ASM(ptr noundef @.str)
br label %7
7: ; preds = %5
%8 = load i32, ptr %1, align 4
%9 = add i32 %8, 1
store i32 %9, ptr %1, align 4
br label %2, !llvm.loop !6
10: ; preds = %2
ret void
}
declare i32 @__ASM(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp433gzai5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"nop\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @delay() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp ult i32 %2, 20
br i1 %3, label %.lr.ph, label %11
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %6
%5 = call i32 @__ASM(ptr noundef @.str)
br label %6
6: ; preds = %4
%7 = load i32, ptr %1, align 4
%8 = add i32 %7, 1
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = icmp ult i32 %9, 20
br i1 %10, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %11
11: ; preds = %._crit_edge, %0
ret void
}
declare i32 @__ASM(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4_htmkdn.c'
source_filename = "/tmp/tmp4_htmkdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_to_num(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = call ptr @str2cstr(i64 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load i64, ptr %3, align 8
%10 = call i32 @string_length(i64 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 43
br i1 %15, label %22, label %16
16: ; preds = %1
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 45
br i1 %21, label %22, label %23
22: ; preds = %16, %1
store i32 1, ptr %4, align 4
br label %24
23: ; preds = %16
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %23, %22
br label %25
25: ; preds = %53, %24
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %56
29: ; preds = %25
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 46
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = load i64, ptr %3, align 8
%39 = call i64 @string_to_f(i64 noundef %38)
store i64 %39, ptr %2, align 8
br label %59
40: ; preds = %29
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call i32 @isdigit(i8 noundef signext %45)
%47 = icmp ne i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %40
%49 = load i64, ptr %3, align 8
%50 = call i64 @string_to_i(i64 noundef %49)
store i64 %50, ptr %2, align 8
br label %59
51: ; preds = %40
br label %52
52: ; preds = %51
br label %53
53: ; preds = %52
%54 = load i32, ptr %4, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %4, align 4
br label %25, !llvm.loop !6
56: ; preds = %25
%57 = load i64, ptr %3, align 8
%58 = call i64 @string_to_i(i64 noundef %57)
store i64 %58, ptr %2, align 8
br label %59
59: ; preds = %56, %48, %37
%60 = load i64, ptr %2, align 8
ret i64 %60
}
declare ptr @str2cstr(i64 noundef) #1
declare i32 @string_length(i64 noundef) #1
declare i64 @string_to_f(i64 noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i64 @string_to_i(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4_htmkdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_to_num(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = call ptr @str2cstr(i64 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load i64, ptr %3, align 8
%10 = call i32 @string_length(i64 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 43
br i1 %15, label %22, label %16
16: ; preds = %1
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 45
br i1 %21, label %22, label %23
22: ; preds = %16, %1
store i32 1, ptr %4, align 4
br label %24
23: ; preds = %16
store i32 0, ptr %4, align 4
br label %24
24: ; preds = %23, %22
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %58
.lr.ph: ; preds = %24
br label %28
28: ; preds = %.lr.ph, %52
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 46
br i1 %35, label %36, label %39
36: ; preds = %28
%37 = load i64, ptr %3, align 8
%38 = call i64 @string_to_f(i64 noundef %37)
store i64 %38, ptr %2, align 8
br label %61
39: ; preds = %28
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = call i32 @isdigit(i8 noundef signext %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %39
%48 = load i64, ptr %3, align 8
%49 = call i64 @string_to_i(i64 noundef %48)
store i64 %49, ptr %2, align 8
br label %61
50: ; preds = %39
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %4, align 4
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %5, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %24
%59 = load i64, ptr %3, align 8
%60 = call i64 @string_to_i(i64 noundef %59)
store i64 %60, ptr %2, align 8
br label %61
61: ; preds = %58, %47, %36
%62 = load i64, ptr %2, align 8
ret i64 %62
}
declare ptr @str2cstr(i64 noundef) #1
declare i32 @string_length(i64 noundef) #1
declare i64 @string_to_f(i64 noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i64 @string_to_i(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpx3ykctzs.c'
source_filename = "/tmp/tmpx3ykctzs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XReparentEvent_x(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, 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/tmpx3ykctzs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XReparentEvent_x(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, 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/tmpmkymjwts.c'
source_filename = "/tmp/tmpmkymjwts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"K_ERROR_SYSTEM\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"K_ERROR_SYNTAX\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"K_ERROR_FILE_READ\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"K_ERROR_LOOP_RANGE\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"K_ERROR_FILE_WRITE\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"K_ERROR_ARG_COUNT\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"K_ERROR_UNKNOWN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @SakuraObj_getErrorMsg(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %5, align 4
switch i32 %8, label %45 [
i32 4352, label %9
i32 4353, label %15
i32 4354, label %21
i32 4355, label %27
i32 4356, label %33
i32 4357, label %39
]
9: ; preds = %3
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = sub nsw i32 %11, 1
%13 = call i32 @s_strlcpy(ptr noundef %10, ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %4, align 8
br label %51
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @s_strlcpy(ptr noundef %16, ptr noundef @.str.1, i32 noundef %18)
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %4, align 8
br label %51
21: ; preds = %3
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = sub nsw i32 %23, 1
%25 = call i32 @s_strlcpy(ptr noundef %22, ptr noundef @.str.2, i32 noundef %24)
%26 = load ptr, ptr %6, align 8
store ptr %26, ptr %4, align 8
br label %51
27: ; preds = %3
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %29, 1
%31 = call i32 @s_strlcpy(ptr noundef %28, ptr noundef @.str.3, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
store ptr %32, ptr %4, align 8
br label %51
33: ; preds = %3
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
%37 = call i32 @s_strlcpy(ptr noundef %34, ptr noundef @.str.4, i32 noundef %36)
%38 = load ptr, ptr %6, align 8
store ptr %38, ptr %4, align 8
br label %51
39: ; preds = %3
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = sub nsw i32 %41, 1
%43 = call i32 @s_strlcpy(ptr noundef %40, ptr noundef @.str.5, i32 noundef %42)
%44 = load ptr, ptr %6, align 8
store ptr %44, ptr %4, align 8
br label %51
45: ; preds = %3
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %7, align 4
%48 = sub nsw i32 %47, 1
%49 = call i32 @s_strlcpy(ptr noundef %46, ptr noundef @.str.6, i32 noundef %48)
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %4, align 8
br label %51
51: ; preds = %45, %39, %33, %27, %21, %15, %9
%52 = load ptr, ptr %4, align 8
ret ptr %52
}
declare i32 @s_strlcpy(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/tmpmkymjwts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"K_ERROR_SYSTEM\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"K_ERROR_SYNTAX\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"K_ERROR_FILE_READ\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"K_ERROR_LOOP_RANGE\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"K_ERROR_FILE_WRITE\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"K_ERROR_ARG_COUNT\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"K_ERROR_UNKNOWN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @SakuraObj_getErrorMsg(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %5, align 4
switch i32 %8, label %45 [
i32 4352, label %9
i32 4353, label %15
i32 4354, label %21
i32 4355, label %27
i32 4356, label %33
i32 4357, label %39
]
9: ; preds = %3
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = sub nsw i32 %11, 1
%13 = call i32 @s_strlcpy(ptr noundef %10, ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %4, align 8
br label %51
15: ; preds = %3
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @s_strlcpy(ptr noundef %16, ptr noundef @.str.1, i32 noundef %18)
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %4, align 8
br label %51
21: ; preds = %3
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = sub nsw i32 %23, 1
%25 = call i32 @s_strlcpy(ptr noundef %22, ptr noundef @.str.2, i32 noundef %24)
%26 = load ptr, ptr %6, align 8
store ptr %26, ptr %4, align 8
br label %51
27: ; preds = %3
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %29, 1
%31 = call i32 @s_strlcpy(ptr noundef %28, ptr noundef @.str.3, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
store ptr %32, ptr %4, align 8
br label %51
33: ; preds = %3
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
%37 = call i32 @s_strlcpy(ptr noundef %34, ptr noundef @.str.4, i32 noundef %36)
%38 = load ptr, ptr %6, align 8
store ptr %38, ptr %4, align 8
br label %51
39: ; preds = %3
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = sub nsw i32 %41, 1
%43 = call i32 @s_strlcpy(ptr noundef %40, ptr noundef @.str.5, i32 noundef %42)
%44 = load ptr, ptr %6, align 8
store ptr %44, ptr %4, align 8
br label %51
45: ; preds = %3
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %7, align 4
%48 = sub nsw i32 %47, 1
%49 = call i32 @s_strlcpy(ptr noundef %46, ptr noundef @.str.6, i32 noundef %48)
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %4, align 8
br label %51
51: ; preds = %45, %39, %33, %27, %21, %15, %9
%52 = load ptr, ptr %4, align 8
ret ptr %52
}
declare i32 @s_strlcpy(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/tmpaeowt3le.c'
source_filename = "/tmp/tmpaeowt3le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AND() #0 {
%1 = call i32 @ExtAccumulator(i32 noundef 4)
ret void
}
declare i32 @ExtAccumulator(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/tmpaeowt3le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AND() #0 {
%1 = call i32 @ExtAccumulator(i32 noundef 4)
ret void
}
declare i32 @ExtAccumulator(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/tmpp03rk96g.c'
source_filename = "/tmp/tmpp03rk96g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SDL_imageFilterConvolveKernel5x5ShiftRight(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i8 noundef zeroext %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i8, align 1
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i8 %5, ptr %13, align 1
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %22, label %16
16: ; preds = %6
%17 = load ptr, ptr %9, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load ptr, ptr %12, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %19, %16, %6
store i32 -1, ptr %7, align 4
br label %39
23: ; preds = %19
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %33, label %26
26: ; preds = %23
%27 = load i32, ptr %10, align 4
%28 = icmp slt i32 %27, 5
br i1 %28, label %33, label %29
29: ; preds = %26
%30 = load i8, ptr %13, align 1
%31 = zext i8 %30 to i32
%32 = icmp sgt i32 %31, 7
br i1 %32, label %33, label %34
33: ; preds = %29, %26, %23
store i32 -1, ptr %7, align 4
br label %39
34: ; preds = %29
%35 = call i64 (...) @SDL_imageFilterMMXdetect()
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 0, ptr %7, align 4
br label %39
38: ; preds = %34
store i32 -1, ptr %7, align 4
br label %39
39: ; preds = %38, %37, %33, %22
%40 = load i32, ptr %7, align 4
ret i32 %40
}
declare i64 @SDL_imageFilterMMXdetect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp03rk96g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SDL_imageFilterConvolveKernel5x5ShiftRight(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i8 noundef zeroext %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i8, align 1
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i8 %5, ptr %13, align 1
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %22, label %16
16: ; preds = %6
%17 = load ptr, ptr %9, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %22, label %19
19: ; preds = %16
%20 = load ptr, ptr %12, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %23
22: ; preds = %19, %16, %6
store i32 -1, ptr %7, align 4
br label %39
23: ; preds = %19
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 5
br i1 %25, label %33, label %26
26: ; preds = %23
%27 = load i32, ptr %10, align 4
%28 = icmp slt i32 %27, 5
br i1 %28, label %33, label %29
29: ; preds = %26
%30 = load i8, ptr %13, align 1
%31 = zext i8 %30 to i32
%32 = icmp sgt i32 %31, 7
br i1 %32, label %33, label %34
33: ; preds = %29, %26, %23
store i32 -1, ptr %7, align 4
br label %39
34: ; preds = %29
%35 = call i64 (...) @SDL_imageFilterMMXdetect()
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 0, ptr %7, align 4
br label %39
38: ; preds = %34
store i32 -1, ptr %7, align 4
br label %39
39: ; preds = %38, %37, %33, %22
%40 = load i32, ptr %7, align 4
ret i32 %40
}
declare i64 @SDL_imageFilterMMXdetect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8ux_jjun.c'
source_filename = "/tmp/tmp8ux_jjun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"libtest1: I am weak function1!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ux_jjun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"libtest1: I am weak function1!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ro3sa3s.c'
source_filename = "/tmp/tmp6ro3sa3s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local noalias ptr @generic_make_pathname(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = add nsw i32 %10, %12
%14 = add nsw i32 %13, 2
%15 = sext i32 %14 to i64
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = load i64, ptr @PATH_MAX, align 8
%18 = icmp ugt i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %2
store ptr null, ptr %3, align 8
br label %44
20: ; preds = %2
%21 = load i64, ptr %6, align 8
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %3, align 8
br label %44
26: ; preds = %20
%27 = load ptr, ptr %7, align 8
%28 = load i64, ptr %6, align 8
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @snprintf(ptr noundef %27, i64 noundef %28, ptr noundef @.str, ptr noundef %29, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %26
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %6, align 8
%38 = icmp uge i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %34, %26
%40 = load ptr, ptr %7, align 8
%41 = call i32 @free(ptr noundef %40)
store ptr null, ptr %3, align 8
br label %44
42: ; preds = %34
%43 = load ptr, ptr %7, align 8
store ptr %43, ptr %3, align 8
br label %44
44: ; preds = %42, %39, %25, %19
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ro3sa3s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local noalias ptr @generic_make_pathname(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = add nsw i32 %10, %12
%14 = add nsw i32 %13, 2
%15 = sext i32 %14 to i64
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = load i64, ptr @PATH_MAX, align 8
%18 = icmp ugt i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %2
store ptr null, ptr %3, align 8
br label %44
20: ; preds = %2
%21 = load i64, ptr %6, align 8
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %20
store ptr null, ptr %3, align 8
br label %44
26: ; preds = %20
%27 = load ptr, ptr %7, align 8
%28 = load i64, ptr %6, align 8
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @snprintf(ptr noundef %27, i64 noundef %28, ptr noundef @.str, ptr noundef %29, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %39, label %34
34: ; preds = %26
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %6, align 8
%38 = icmp uge i64 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %34, %26
%40 = load ptr, ptr %7, align 8
%41 = call i32 @free(ptr noundef %40)
store ptr null, ptr %3, align 8
br label %44
42: ; preds = %34
%43 = load ptr, ptr %7, align 8
store ptr %43, ptr %3, align 8
br label %44
44: ; preds = %42, %39, %25, %19
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9mkrfwjx.c'
source_filename = "/tmp/tmp9mkrfwjx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_cache_assoc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (...) @flush_cache()
%7 = load i32, ptr %3, align 4
%8 = call i32 @access_cache(i32 noundef %7)
br label %9
9: ; preds = %26, %1
%10 = call i32 @access_cache(i32 noundef 0)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %30
12: ; preds = %9
%13 = load i32, ptr %2, align 4
store i32 %13, ptr %3, align 4
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %18, %12
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, %19
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %3, align 4
%25 = call i32 @access_cache(i32 noundef %24)
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %4, align 4
br label %9, !llvm.loop !8
30: ; preds = %9
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @flush_cache(...) #1
declare i32 @access_cache(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/tmp9mkrfwjx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_cache_assoc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (...) @flush_cache()
%7 = load i32, ptr %3, align 4
%8 = call i32 @access_cache(i32 noundef %7)
%9 = call i32 @access_cache(i32 noundef 0)
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph2, label %33
.lr.ph2: ; preds = %1
br label %11
11: ; preds = %.lr.ph2, %27
%12 = load i32, ptr %2, align 4
store i32 %12, ptr %3, align 4
store i32 0, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %16
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, %17
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %3, align 4
%23 = call i32 @access_cache(i32 noundef %22)
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %27
27: ; preds = %._crit_edge, %11
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %4, align 4
%31 = call i32 @access_cache(i32 noundef 0)
%32 = icmp ne i32 %31, 0
br i1 %32, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %33
33: ; preds = %._crit_edge3, %1
%34 = load i32, ptr %5, align 4
ret i32 %34
}
declare i32 @flush_cache(...) #1
declare i32 @access_cache(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/tmpx9o_92v0.c'
source_filename = "/tmp/tmpx9o_92v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"The total meal cost is %d dollars.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calculateTotal(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds float, ptr %7, i64 0
%9 = load float, ptr %8, align 4
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds float, ptr %10, i64 0
%12 = load float, ptr %11, align 4
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds float, ptr %13, i64 1
%15 = load float, ptr %14, align 4
%16 = fmul float %12, %15
%17 = fdiv float %16, 1.000000e+02
%18 = fadd float %9, %17
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds float, ptr %19, i64 0
%21 = load float, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds float, ptr %22, i64 2
%24 = load float, ptr %23, align 4
%25 = fmul float %21, %24
%26 = fdiv float %25, 1.000000e+02
%27 = fadd float %18, %26
store float %27, ptr %5, align 4
%28 = load float, ptr %5, align 4
%29 = call i32 @round(float noundef %28)
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = call i32 @printf(ptr noundef @.str, i32 noundef %30)
ret void
}
declare i32 @round(float noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx9o_92v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"The total meal cost is %d dollars.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calculateTotal(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds float, ptr %7, i64 0
%9 = load float, ptr %8, align 4
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds float, ptr %10, i64 0
%12 = load float, ptr %11, align 4
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds float, ptr %13, i64 1
%15 = load float, ptr %14, align 4
%16 = fmul float %12, %15
%17 = fdiv float %16, 1.000000e+02
%18 = fadd float %9, %17
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds float, ptr %19, i64 0
%21 = load float, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds float, ptr %22, i64 2
%24 = load float, ptr %23, align 4
%25 = fmul float %21, %24
%26 = fdiv float %25, 1.000000e+02
%27 = fadd float %18, %26
store float %27, ptr %5, align 4
%28 = load float, ptr %5, align 4
%29 = call i32 @round(float noundef %28)
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = call i32 @printf(ptr noundef @.str, i32 noundef %30)
ret void
}
declare i32 @round(float noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt08un73r.c'
source_filename = "/tmp/tmpt08un73r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @send_messages()
ret i32 %2
}
declare i32 @send_messages(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt08un73r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @send_messages()
ret i32 %2
}
declare i32 @send_messages(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf35hm80z.c'
source_filename = "/tmp/tmpf35hm80z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [128 x [128 x double]], align 16
%3 = alloca [128 x [128 x double]], align 16
%4 = alloca [128 x [128 x double]], align 16
%5 = alloca [128 x [128 x double]], align 16
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%7 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%8 = call i32 @init(ptr noundef %6, ptr noundef %7, i32 noundef 128)
%9 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%11 = getelementptr inbounds [128 x [128 x double]], ptr %4, i64 0, i64 0
%12 = call i32 @work(ptr noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef 128)
%13 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%14 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%15 = getelementptr inbounds [128 x [128 x double]], ptr %5, i64 0, i64 0
%16 = call i32 @work_ref(ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef 128)
%17 = getelementptr inbounds [128 x [128 x double]], ptr %4, i64 0, i64 0
%18 = getelementptr inbounds [128 x [128 x double]], ptr %5, i64 0, i64 0
%19 = call i32 @check(ptr noundef %17, ptr noundef %18)
ret i32 0
}
declare i32 @init(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @work(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @work_ref(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @check(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/tmpf35hm80z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [128 x [128 x double]], align 16
%3 = alloca [128 x [128 x double]], align 16
%4 = alloca [128 x [128 x double]], align 16
%5 = alloca [128 x [128 x double]], align 16
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%7 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%8 = call i32 @init(ptr noundef %6, ptr noundef %7, i32 noundef 128)
%9 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%11 = getelementptr inbounds [128 x [128 x double]], ptr %4, i64 0, i64 0
%12 = call i32 @work(ptr noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef 128)
%13 = getelementptr inbounds [128 x [128 x double]], ptr %2, i64 0, i64 0
%14 = getelementptr inbounds [128 x [128 x double]], ptr %3, i64 0, i64 0
%15 = getelementptr inbounds [128 x [128 x double]], ptr %5, i64 0, i64 0
%16 = call i32 @work_ref(ptr noundef %13, ptr noundef %14, ptr noundef %15, i32 noundef 128)
%17 = getelementptr inbounds [128 x [128 x double]], ptr %4, i64 0, i64 0
%18 = getelementptr inbounds [128 x [128 x double]], ptr %5, i64 0, i64 0
%19 = call i32 @check(ptr noundef %17, ptr noundef %18)
ret i32 0
}
declare i32 @init(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @work(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @work_ref(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @check(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/tmpyc3ljyeg.c'
source_filename = "/tmp/tmpyc3ljyeg.c"
target datalayout = "e-m:e-p270: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.testing.testingSample = private unnamed_addr constant [4 x float] [float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00], align 16
@.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"DHT failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testing() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [4 x float], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 4, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.testing.testingSample, i64 16, i1 false)
%6 = load i32, ptr %2, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = call i64 @discreteHartley(i32 noundef %12, ptr noundef %13, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %55
17: ; preds = %0
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %31, %17
%19 = load i32, ptr %2, align 4
%20 = sub nsw i32 %19, 1
%21 = load i32, ptr %5, align 4
%22 = icmp sge i32 %20, %21
br i1 %22, label %23, label %34
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %24, i64 %26
%28 = load float, ptr %27, align 4
%29 = fpext float %28 to double
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %29)
br label %31
31: ; preds = %23
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %18, !llvm.loop !6
34: ; preds = %18
%35 = load i32, ptr %2, align 4
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
%38 = call i64 @discreteHartley(i32 noundef %35, ptr noundef %36, ptr noundef %37)
store i32 0, ptr %5, align 4
br label %39
39: ; preds = %51, %34
%40 = load i32, ptr %2, align 4
%41 = sub nsw i32 %40, 1
%42 = load i32, ptr %5, align 4
%43 = icmp sge i32 %41, %42
br i1 %43, label %44, label %54
44: ; preds = %39
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %46
%48 = load float, ptr %47, align 4
%49 = fpext float %48 to double
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %49)
br label %51
51: ; preds = %44
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
br label %39, !llvm.loop !8
54: ; preds = %39
br label %57
55: ; preds = %0
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %57
57: ; preds = %55, %54
%58 = load i32, ptr %1, align 4
ret i32 %58
}
; 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 i64 @malloc(i32 noundef) #2
declare i64 @discreteHartley(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyc3ljyeg.c"
target datalayout = "e-m:e-p270: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.testing.testingSample = private unnamed_addr constant [4 x float] [float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00], align 16
@.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"DHT failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testing() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [4 x float], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 4, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.testing.testingSample, i64 16, i1 false)
%6 = load i32, ptr %2, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = call i64 @discreteHartley(i32 noundef %12, ptr noundef %13, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %61
17: ; preds = %0
store i32 0, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = sub nsw i32 %18, 1
%20 = load i32, ptr %5, align 4
%21 = icmp sge i32 %19, %20
br i1 %21, label %.lr.ph, label %37
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %30
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %23, i64 %25
%27 = load float, ptr %26, align 4
%28 = fpext float %27 to double
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %28)
br label %30
30: ; preds = %22
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %2, align 4
%34 = sub nsw i32 %33, 1
%35 = load i32, ptr %5, align 4
%36 = icmp sge i32 %34, %35
br i1 %36, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %37
37: ; preds = %._crit_edge, %17
%38 = load i32, ptr %2, align 4
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
%41 = call i64 @discreteHartley(i32 noundef %38, ptr noundef %39, ptr noundef %40)
store i32 0, ptr %5, align 4
%42 = load i32, ptr %2, align 4
%43 = sub nsw i32 %42, 1
%44 = load i32, ptr %5, align 4
%45 = icmp sge i32 %43, %44
br i1 %45, label %.lr.ph2, label %60
.lr.ph2: ; preds = %37
br label %46
46: ; preds = %.lr.ph2, %53
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 %48
%50 = load float, ptr %49, align 4
%51 = fpext float %50 to double
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %51)
br label %53
53: ; preds = %46
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %2, align 4
%57 = sub nsw i32 %56, 1
%58 = load i32, ptr %5, align 4
%59 = icmp sge i32 %57, %58
br i1 %59, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %60
60: ; preds = %._crit_edge3, %37
br label %63
61: ; preds = %0
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %63
63: ; preds = %61, %60
%64 = load i32, ptr %1, align 4
ret i32 %64
}
; 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 i64 @malloc(i32 noundef) #2
declare i64 @discreteHartley(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp1xyotm8y.c'
source_filename = "/tmp/tmp1xyotm8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @butterlpf_note_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1xyotm8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @butterlpf_note_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj_8tzsqz.c'
source_filename = "/tmp/tmpj_8tzsqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 2, ptr %4, align 4
store i32 3, ptr %5, align 4
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 2
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 3
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 5
store i32 %15, ptr %5, align 4
%16 = call i32 (...) @callee()
%17 = call i32 (...) @callee()
%18 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 3
%19 = load i32, ptr %18, align 4
%20 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 4
%21 = load i32, ptr %20, align 16
%22 = sub nsw i32 %19, %21
%23 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 5
store i32 %22, ptr %23, align 4
%24 = call i32 (...) @callee()
%25 = call i32 (...) @callee()
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %26, %27
store i32 %28, ptr %4, align 4
ret i32 0
}
declare i32 @callee(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj_8tzsqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 2, ptr %4, align 4
store i32 3, ptr %5, align 4
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 2
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 3
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 5
store i32 %15, ptr %5, align 4
%16 = call i32 (...) @callee()
%17 = call i32 (...) @callee()
%18 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 3
%19 = load i32, ptr %18, align 4
%20 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 4
%21 = load i32, ptr %20, align 16
%22 = sub nsw i32 %19, %21
%23 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 5
store i32 %22, ptr %23, align 4
%24 = call i32 (...) @callee()
%25 = call i32 (...) @callee()
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %26, %27
store i32 %28, ptr %4, align 4
ret i32 0
}
declare i32 @callee(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpebdem534.c'
source_filename = "/tmp/tmpebdem534.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.name = internal global [13 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12], align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"january\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"february\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"march\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"april\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"may\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"june\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"july\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"august\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"september\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"october\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"november\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"december\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"dates1.dat\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"Data file dates1.dat not found\0A\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c"%d %*s \00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"\0A %14s %43s\0A\00", align 1
@.str.18 = private unnamed_addr constant [15 x i8] c"original date:\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"reconstructed date\00", align 1
@.str.20 = private unnamed_addr constant [31 x i8] c"%8s %5s %6s %15s %12s %5s %6s\0A\00", align 1
@.str.21 = private unnamed_addr constant [6 x i8] c"month\00", align 1
@.str.22 = private unnamed_addr constant [4 x i8] c"day\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"year\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"julian day\00", align 1
@.str.25 = private unnamed_addr constant [10 x i8] c"%d %d %d \00", align 1
@.str.26 = private unnamed_addr constant [33 x i8] c"%10s %3d %6d %13ld %16s %3d %6d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%13 = call ptr @fopen(ptr noundef @.str.13, ptr noundef @.str.14)
store ptr %13, ptr %12, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @nrerror(ptr noundef @.str.15)
br label %17
17: ; preds = %15, %0
%18 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%19 = load ptr, ptr %12, align 8
%20 = call i32 @fgets(ptr noundef %18, i32 noundef 80, ptr noundef %19)
%21 = load ptr, ptr %12, align 8
%22 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %21, ptr noundef @.str.16, ptr noundef %9)
%23 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef @.str.19)
%24 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.20, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23, ptr noundef @.str.24, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23)
store i32 1, ptr %2, align 4
br label %25
25: ; preds = %55, %17
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %58
29: ; preds = %25
%30 = load ptr, ptr %12, align 8
%31 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %30, ptr noundef @.str.25, ptr noundef %5, ptr noundef %3, ptr noundef %7)
%32 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%33 = load ptr, ptr %12, align 8
%34 = call i32 @fgets(ptr noundef %32, i32 noundef 80, ptr noundef %33)
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %7, align 4
%38 = call i64 @julday(i32 noundef %35, i32 noundef %36, i32 noundef %37)
store i64 %38, ptr %10, align 8
%39 = load i64, ptr %10, align 8
%40 = call i32 @caldat(i64 noundef %39, ptr noundef %6, ptr noundef %4, ptr noundef %8)
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [13 x ptr], ptr @main.name, i64 0, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %7, align 4
%47 = load i64, ptr %10, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [13 x ptr], ptr @main.name, i64 0, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load i32, ptr %4, align 4
%53 = load i32, ptr %8, align 4
%54 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %44, i32 noundef %45, i32 noundef %46, i64 noundef %47, ptr noundef %51, i32 noundef %52, i32 noundef %53)
br label %55
55: ; preds = %29
%56 = load i32, ptr %2, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %2, align 4
br label %25, !llvm.loop !6
58: ; preds = %25
%59 = load ptr, ptr %12, align 8
%60 = call i32 @fclose(ptr noundef %59)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i64 @julday(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @caldat(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpebdem534.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.name = internal global [13 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12], align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"january\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"february\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"march\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"april\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"may\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"june\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"july\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"august\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"september\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"october\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"november\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"december\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"dates1.dat\00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.15 = private unnamed_addr constant [32 x i8] c"Data file dates1.dat not found\0A\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c"%d %*s \00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"\0A %14s %43s\0A\00", align 1
@.str.18 = private unnamed_addr constant [15 x i8] c"original date:\00", align 1
@.str.19 = private unnamed_addr constant [19 x i8] c"reconstructed date\00", align 1
@.str.20 = private unnamed_addr constant [31 x i8] c"%8s %5s %6s %15s %12s %5s %6s\0A\00", align 1
@.str.21 = private unnamed_addr constant [6 x i8] c"month\00", align 1
@.str.22 = private unnamed_addr constant [4 x i8] c"day\00", align 1
@.str.23 = private unnamed_addr constant [5 x i8] c"year\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"julian day\00", align 1
@.str.25 = private unnamed_addr constant [10 x i8] c"%d %d %d \00", align 1
@.str.26 = private unnamed_addr constant [33 x i8] c"%10s %3d %6d %13ld %16s %3d %6d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca [80 x i8], align 16
%12 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%13 = call ptr @fopen(ptr noundef @.str.13, ptr noundef @.str.14)
store ptr %13, ptr %12, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @nrerror(ptr noundef @.str.15)
br label %17
17: ; preds = %15, %0
%18 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%19 = load ptr, ptr %12, align 8
%20 = call i32 @fgets(ptr noundef %18, i32 noundef 80, ptr noundef %19)
%21 = load ptr, ptr %12, align 8
%22 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %21, ptr noundef @.str.16, ptr noundef %9)
%23 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef @.str.19)
%24 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.20, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23, ptr noundef @.str.24, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23)
store i32 1, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %.lr.ph, label %60
.lr.ph: ; preds = %17
br label %28
28: ; preds = %.lr.ph, %54
%29 = load ptr, ptr %12, align 8
%30 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %29, ptr noundef @.str.25, ptr noundef %5, ptr noundef %3, ptr noundef %7)
%31 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%32 = load ptr, ptr %12, align 8
%33 = call i32 @fgets(ptr noundef %31, i32 noundef 80, ptr noundef %32)
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %7, align 4
%37 = call i64 @julday(i32 noundef %34, i32 noundef %35, i32 noundef %36)
store i64 %37, ptr %10, align 8
%38 = load i64, ptr %10, align 8
%39 = call i32 @caldat(i64 noundef %38, ptr noundef %6, ptr noundef %4, ptr noundef %8)
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [13 x ptr], ptr @main.name, i64 0, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %7, align 4
%46 = load i64, ptr %10, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [13 x ptr], ptr @main.name, i64 0, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %8, align 4
%53 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %43, i32 noundef %44, i32 noundef %45, i64 noundef %46, ptr noundef %50, i32 noundef %51, i32 noundef %52)
br label %54
54: ; preds = %28
%55 = load i32, ptr %2, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %2, align 4
%57 = load i32, ptr %2, align 4
%58 = load i32, ptr %9, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %17
%61 = load ptr, ptr %12, align 8
%62 = call i32 @fclose(ptr noundef %61)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i64 @julday(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @caldat(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppppldsfu.c'
source_filename = "/tmp/tmppppldsfu.c"
target datalayout = "e-m:e-p270: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/tmppppldsfu.c"
target datalayout = "e-m:e-p270: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/tmpqtqoyips.c'
source_filename = "/tmp/tmpqtqoyips.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqtqoyips.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqqhw1m3j.c'
source_filename = "/tmp/tmpqqhw1m3j.c"
target datalayout = "e-m:e-p270: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/tmpqqhw1m3j.c"
target datalayout = "e-m:e-p270: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_h3pjn_n.c'
source_filename = "/tmp/tmp_h3pjn_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.mm = private unnamed_addr constant [2 x float] [float 1.000000e+00, float 2.000000e+00], align 4
@.str = private unnamed_addr constant [4 x i8] c"c 0\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 [2 x float], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.mm, i64 8, i1 false)
%4 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 1
%5 = load float, ptr %4, align 4
%6 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
%7 = load float, ptr %6, align 4
%8 = fcmp olt float %5, %7
%9 = zext i1 %8 to i32
store i32 %9, ptr %2, align 4
%10 = call i32 @print(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = call i32 @printid(i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @print(ptr noundef) #2
declare i32 @printid(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_h3pjn_n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.mm = private unnamed_addr constant [2 x float] [float 1.000000e+00, float 2.000000e+00], align 4
@.str = private unnamed_addr constant [4 x i8] c"c 0\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 [2 x float], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.mm, i64 8, i1 false)
%4 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 1
%5 = load float, ptr %4, align 4
%6 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
%7 = load float, ptr %6, align 4
%8 = fcmp olt float %5, %7
%9 = zext i1 %8 to i32
store i32 %9, ptr %2, align 4
%10 = call i32 @print(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = call i32 @printid(i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @print(ptr noundef) #2
declare i32 @printid(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxpznwcev.c'
source_filename = "/tmp/tmpxpznwcev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"%d arti %d kactir?\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%d eksi %d kactir?\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d kere %d kactir?\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%d bolu %d kactir?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @soru_sor(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = call i32 (...) @rand()
%9 = load i32, ptr %3, align 4
%10 = call i64 @pow(i32 noundef 10, i32 noundef %9)
%11 = trunc i64 %10 to i32
%12 = srem i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = call i32 (...) @rand()
%14 = load i32, ptr %3, align 4
%15 = call i64 @pow(i32 noundef 10, i32 noundef %14)
%16 = trunc i64 %15 to i32
%17 = srem i32 %13, %16
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
switch i32 %18, label %54 [
i32 1, label %19
i32 2, label %26
i32 3, label %33
i32 4, label %40
i32 5, label %47
]
19: ; preds = %2
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %23, %24
store i32 %25, ptr %7, align 4
br label %54
26: ; preds = %2
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %30, %31
store i32 %32, ptr %7, align 4
br label %54
33: ; preds = %2
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @printf(ptr noundef @.str.2, i32 noundef %34, i32 noundef %35)
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %6, align 4
%39 = mul nsw i32 %37, %38
store i32 %39, ptr %7, align 4
br label %54
40: ; preds = %2
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @printf(ptr noundef @.str.3, i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %6, align 4
%46 = sdiv i32 %44, %45
store i32 %46, ptr %7, align 4
br label %54
47: ; preds = %2
%48 = call i32 (...) @rand()
%49 = srem i32 %48, 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
%51 = load i32, ptr %3, align 4
%52 = load i32, ptr %4, align 4
%53 = call i32 @soru_sor(i32 noundef %51, i32 noundef %52)
store i32 %53, ptr %7, align 4
br label %54
54: ; preds = %2, %47, %40, %33, %26, %19
%55 = load i32, ptr %7, align 4
ret i32 %55
}
declare i32 @rand(...) #1
declare i64 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpznwcev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"%d arti %d kactir?\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%d eksi %d kactir?\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"%d kere %d kactir?\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"%d bolu %d kactir?\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @soru_sor(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = call i32 (...) @rand()
%9 = load i32, ptr %3, align 4
%10 = call i64 @pow(i32 noundef 10, i32 noundef %9)
%11 = trunc i64 %10 to i32
%12 = srem i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = call i32 (...) @rand()
%14 = load i32, ptr %3, align 4
%15 = call i64 @pow(i32 noundef 10, i32 noundef %14)
%16 = trunc i64 %15 to i32
%17 = srem i32 %13, %16
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
switch i32 %18, label %54 [
i32 1, label %19
i32 2, label %26
i32 3, label %33
i32 4, label %40
i32 5, label %47
]
19: ; preds = %2
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %20, i32 noundef %21)
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %23, %24
store i32 %25, ptr %7, align 4
br label %54
26: ; preds = %2
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %30, %31
store i32 %32, ptr %7, align 4
br label %54
33: ; preds = %2
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 @printf(ptr noundef @.str.2, i32 noundef %34, i32 noundef %35)
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %6, align 4
%39 = mul nsw i32 %37, %38
store i32 %39, ptr %7, align 4
br label %54
40: ; preds = %2
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @printf(ptr noundef @.str.3, i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %6, align 4
%46 = sdiv i32 %44, %45
store i32 %46, ptr %7, align 4
br label %54
47: ; preds = %2
%48 = call i32 (...) @rand()
%49 = srem i32 %48, 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
%51 = load i32, ptr %3, align 4
%52 = load i32, ptr %4, align 4
%53 = call i32 @soru_sor(i32 noundef %51, i32 noundef %52)
store i32 %53, ptr %7, align 4
br label %54
54: ; preds = %47, %40, %33, %26, %19, %2
%55 = load i32, ptr %7, align 4
ret i32 %55
}
declare i32 @rand(...) #1
declare i64 @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"}
|
; ModuleID = '/tmp/tmpkui5konp.c'
source_filename = "/tmp/tmpkui5konp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_dbg_level(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @_clear_error_stack()
%4 = load i32, ptr %2, align 4
%5 = call i32 @_set_dbg_level(i32 noundef %4)
ret void
}
declare i32 @_clear_error_stack(...) #1
declare i32 @_set_dbg_level(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/tmpkui5konp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_dbg_level(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @_clear_error_stack()
%4 = load i32, ptr %2, align 4
%5 = call i32 @_set_dbg_level(i32 noundef %4)
ret void
}
declare i32 @_clear_error_stack(...) #1
declare i32 @_set_dbg_level(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/tmp8ff4647t.c'
source_filename = "/tmp/tmp8ff4647t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ./client Hostname(or ip address) Text\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"send\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 [1024 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @gethostbyname(ptr noundef %20)
store ptr %21, ptr %9, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = call i32 @exit(i32 noundef 1) #4
unreachable
26: ; preds = %17
%27 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i32 noundef 0, i32 noundef 1024)
%29 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.2, ptr noundef %32)
%34 = load i32, ptr @AF_INET, align 4
%35 = load i32, ptr @SOCK_STREAM, align 4
%36 = call i32 @socket(i32 noundef %34, i32 noundef %35, i32 noundef 0)
store i32 %36, ptr %6, align 4
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %26
%39 = call i32 @perror(ptr noundef @.str.3)
%40 = call i32 @exit(i32 noundef 1) #4
unreachable
41: ; preds = %26
%42 = load i32, ptr @AF_INET, align 4
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 3
store i32 %42, ptr %43, align 4
%44 = call i32 @htons(i32 noundef 4321)
%45 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %44, ptr %45, align 4
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%47 = load ptr, ptr %9, align 8
%48 = getelementptr inbounds %struct.hostent, ptr %47, i32 0, i32 0
%49 = load i64, ptr %48, align 8
%50 = inttoptr i64 %49 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %50, i64 4, i1 false)
%51 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%52 = call i32 @bzero(ptr noundef %51, i32 noundef 8)
%53 = load i32, ptr %6, align 4
%54 = call i32 @connect(i32 noundef %53, ptr noundef %10, i32 noundef 4)
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %59
56: ; preds = %41
%57 = call i32 @perror(ptr noundef @.str.4)
%58 = call i32 @exit(i32 noundef 1) #4
unreachable
59: ; preds = %41
%60 = load i32, ptr %6, align 4
%61 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%62 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%63 = call i32 @strlen(ptr noundef %62)
%64 = call i32 @send(i32 noundef %60, ptr noundef %61, i32 noundef %63, i32 noundef 0)
store i32 %64, ptr %7, align 4
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %69
66: ; preds = %59
%67 = call i32 @perror(ptr noundef @.str.5)
%68 = call i32 @exit(i32 noundef 1) #4
unreachable
69: ; preds = %59
%70 = load i32, ptr %6, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ff4647t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"USAGE: ./client Hostname(or ip address) Text\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"send\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 [1024 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @gethostbyname(ptr noundef %20)
store ptr %21, ptr %9, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = call i32 @perror(ptr noundef @.str.1)
%25 = call i32 @exit(i32 noundef 1) #4
unreachable
26: ; preds = %17
%27 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i32 noundef 0, i32 noundef 1024)
%29 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.2, ptr noundef %32)
%34 = load i32, ptr @AF_INET, align 4
%35 = load i32, ptr @SOCK_STREAM, align 4
%36 = call i32 @socket(i32 noundef %34, i32 noundef %35, i32 noundef 0)
store i32 %36, ptr %6, align 4
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %26
%39 = call i32 @perror(ptr noundef @.str.3)
%40 = call i32 @exit(i32 noundef 1) #4
unreachable
41: ; preds = %26
%42 = load i32, ptr @AF_INET, align 4
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 3
store i32 %42, ptr %43, align 4
%44 = call i32 @htons(i32 noundef 4321)
%45 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %44, ptr %45, align 4
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%47 = load ptr, ptr %9, align 8
%48 = getelementptr inbounds %struct.hostent, ptr %47, i32 0, i32 0
%49 = load i64, ptr %48, align 8
%50 = inttoptr i64 %49 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %50, i64 4, i1 false)
%51 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%52 = call i32 @bzero(ptr noundef %51, i32 noundef 8)
%53 = load i32, ptr %6, align 4
%54 = call i32 @connect(i32 noundef %53, ptr noundef %10, i32 noundef 4)
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %59
56: ; preds = %41
%57 = call i32 @perror(ptr noundef @.str.4)
%58 = call i32 @exit(i32 noundef 1) #4
unreachable
59: ; preds = %41
%60 = load i32, ptr %6, align 4
%61 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%62 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%63 = call i32 @strlen(ptr noundef %62)
%64 = call i32 @send(i32 noundef %60, ptr noundef %61, i32 noundef %63, i32 noundef 0)
store i32 %64, ptr %7, align 4
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %69
66: ; preds = %59
%67 = call i32 @perror(ptr noundef @.str.5)
%68 = call i32 @exit(i32 noundef 1) #4
unreachable
69: ; preds = %59
%70 = load i32, ptr %6, align 4
%71 = call i32 @close(i32 noundef %70)
%72 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp44w30lmx.c'
source_filename = "/tmp/tmp44w30lmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { ptr, ptr, i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"zeit.fu-berlin.de\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%s -> %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c" also known as %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @gethostbyname(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %41
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds %struct.hostent, ptr %8, i32 0, i32 0
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds %struct.hostent, ptr %11, i32 0, i32 2
%13 = load i64, ptr %12, align 8
%14 = inttoptr i64 %13 to ptr
%15 = getelementptr inbounds %struct.in_addr, ptr %14, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call ptr @inet_ntoa(i32 %16)
%18 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10, ptr noundef %17)
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %37, %7
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds %struct.hostent, ptr %20, i32 0, i32 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %40
28: ; preds = %19
%29 = load ptr, ptr %2, align 8
%30 = getelementptr inbounds %struct.hostent, ptr %29, i32 0, i32 1
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %35)
br label %37
37: ; preds = %28
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
br label %19, !llvm.loop !6
40: ; preds = %19
br label %42
41: ; preds = %0
store i32 1, ptr %1, align 4
br label %43
42: ; preds = %40
store i32 0, ptr %1, align 4
br label %43
43: ; preds = %42, %41
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare ptr @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp44w30lmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hostent = type { ptr, ptr, i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"zeit.fu-berlin.de\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%s -> %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c" also known as %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @gethostbyname(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %48
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds %struct.hostent, ptr %8, i32 0, i32 0
%10 = load ptr, ptr %9, align 8
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds %struct.hostent, ptr %11, i32 0, i32 2
%13 = load i64, ptr %12, align 8
%14 = inttoptr i64 %13 to ptr
%15 = getelementptr inbounds %struct.in_addr, ptr %14, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call ptr @inet_ntoa(i32 %16)
%18 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10, ptr noundef %17)
store i32 0, ptr %3, align 4
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds %struct.hostent, ptr %19, i32 0, i32 1
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %.lr.ph, label %47
.lr.ph: ; preds = %7
br label %27
27: ; preds = %.lr.ph, %36
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds %struct.hostent, ptr %28, i32 0, i32 1
%30 = load ptr, ptr %29, align 8
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %34)
br label %36
36: ; preds = %27
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
%39 = load ptr, ptr %2, align 8
%40 = getelementptr inbounds %struct.hostent, ptr %39, i32 0, i32 1
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %3, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %47
47: ; preds = %._crit_edge, %7
br label %49
48: ; preds = %0
store i32 1, ptr %1, align 4
br label %50
49: ; preds = %47
store i32 0, ptr %1, align 4
br label %50
50: ; preds = %49, %48
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare ptr @inet_ntoa(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2dfdius7.c'
source_filename = "/tmp/tmp2dfdius7.c"
target datalayout = "e-m:e-p270: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/tmp2dfdius7.c"
target datalayout = "e-m:e-p270: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/tmplbgvuwmk.c'
source_filename = "/tmp/tmplbgvuwmk.c"
target datalayout = "e-m:e-p270: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/tmplbgvuwmk.c"
target datalayout = "e-m:e-p270: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/tmpn4gw9fup.c'
source_filename = "/tmp/tmpn4gw9fup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hN:tu\00", align 1
@EOF = dso_local global i8 0, align 1
@optarg = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Unknown option for one: '%s'\0A\00", align 1
@optind = dso_local global i64 0, align 8
@RAND_MAX = dso_local global double 0.000000e+00, align 8
@.str.2 = private unnamed_addr constant [9 x i8] c"%u %.6f\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @white(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 80, ptr %5, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %35, %2
%13 = load i32, ptr %3, align 4
%14 = load ptr, ptr %4, align 8
%15 = call signext i8 @getopt(i32 noundef %13, ptr noundef %14, ptr noundef @.str)
store i8 %15, ptr %6, align 1
%16 = sext i8 %15 to i32
%17 = load i8, ptr @EOF, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %16, %18
br i1 %19, label %20, label %36
20: ; preds = %12
%21 = load i8, ptr %6, align 1
%22 = sext i8 %21 to i32
switch i32 %22, label %30 [
i32 78, label %23
i32 117, label %26
i32 116, label %27
i32 104, label %28
]
23: ; preds = %20
%24 = load ptr, ptr @optarg, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %5, align 4
br label %35
26: ; preds = %20
store i32 1, ptr %8, align 4
br label %35
27: ; preds = %20
store i32 1, ptr %7, align 4
br label %35
28: ; preds = %20
%29 = call i32 (...) @help()
br label %35
30: ; preds = %20
%31 = load i32, ptr @stderr, align 4
%32 = load ptr, ptr @optarg, align 8
%33 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.1, ptr noundef %32)
%34 = call i32 (...) @help()
br label %35
35: ; preds = %30, %28, %27, %26, %23
br label %12, !llvm.loop !6
36: ; preds = %12
%37 = load i64, ptr @optind, align 8
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = sub nsw i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, ptr %3, align 4
%42 = load i64, ptr @optind, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 %42
store ptr %44, ptr %4, align 8
store i32 0, ptr %9, align 4
br label %45
45: ; preds = %84, %36
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %5, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %87
49: ; preds = %45
%50 = call double (...) @rand()
%51 = fadd double %50, 1.000000e+00
%52 = load double, ptr @RAND_MAX, align 8
%53 = fadd double %52, 1.000000e+00
%54 = fdiv double %51, %53
store double %54, ptr %10, align 8
%55 = load i32, ptr %8, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %72
57: ; preds = %49
%58 = call double (...) @rand()
%59 = fadd double %58, 1.000000e+00
%60 = load double, ptr @RAND_MAX, align 8
%61 = fadd double %60, 1.000000e+00
%62 = fdiv double %59, %61
store double %62, ptr %11, align 8
%63 = load double, ptr %11, align 8
%64 = call i32 @log(double noundef %63)
%65 = mul nsw i32 -2, %64
%66 = call double @sqrt(i32 noundef %65)
%67 = load double, ptr %10, align 8
%68 = fmul double 0x401921FB54442D18, %67
%69 = fptosi double %68 to i32
%70 = call double @cos(i32 noundef %69)
%71 = fmul double %66, %70
store double %71, ptr %10, align 8
br label %72
72: ; preds = %57, %49
%73 = load i32, ptr %7, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load i32, ptr %9, align 4
%77 = sitofp i32 %76 to double
%78 = load double, ptr %10, align 8
%79 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %77, double noundef %78)
br label %83
80: ; preds = %72
%81 = load double, ptr %10, align 8
%82 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %81)
br label %83
83: ; preds = %80, %75
br label %84
84: ; preds = %83
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
br label %45, !llvm.loop !8
87: ; preds = %45
ret void
}
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @help(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare double @rand(...) #1
declare double @sqrt(i32 noundef) #1
declare i32 @log(double noundef) #1
declare double @cos(i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn4gw9fup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hN:tu\00", align 1
@EOF = dso_local global i8 0, align 1
@optarg = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Unknown option for one: '%s'\0A\00", align 1
@optind = dso_local global i64 0, align 8
@RAND_MAX = dso_local global double 0.000000e+00, align 8
@.str.2 = private unnamed_addr constant [9 x i8] c"%u %.6f\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%.6f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @white(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 80, ptr %5, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = call signext i8 @getopt(i32 noundef %12, ptr noundef %13, ptr noundef @.str)
store i8 %14, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr @EOF, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br i1 %18, label %.lr.ph, label %42
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %34
%20 = load i8, ptr %6, align 1
%21 = sext i8 %20 to i32
switch i32 %21, label %29 [
i32 78, label %22
i32 117, label %25
i32 116, label %26
i32 104, label %27
]
22: ; preds = %19
%23 = load ptr, ptr @optarg, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %5, align 4
br label %34
25: ; preds = %19
store i32 1, ptr %8, align 4
br label %34
26: ; preds = %19
store i32 1, ptr %7, align 4
br label %34
27: ; preds = %19
%28 = call i32 (...) @help()
br label %34
29: ; preds = %19
%30 = load i32, ptr @stderr, align 4
%31 = load ptr, ptr @optarg, align 8
%32 = call i32 @fprintf(i32 noundef %30, ptr noundef @.str.1, ptr noundef %31)
%33 = call i32 (...) @help()
br label %34
34: ; preds = %29, %27, %26, %25, %22
%35 = load i32, ptr %3, align 4
%36 = load ptr, ptr %4, align 8
%37 = call signext i8 @getopt(i32 noundef %35, ptr noundef %36, ptr noundef @.str)
store i8 %37, ptr %6, align 1
%38 = sext i8 %37 to i32
%39 = load i8, ptr @EOF, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %38, %40
br i1 %41, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %42
42: ; preds = %._crit_edge, %2
%43 = load i64, ptr @optind, align 8
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = sub nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, ptr %3, align 4
%48 = load i64, ptr @optind, align 8
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 %48
store ptr %50, ptr %4, align 8
store i32 0, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %95
.lr.ph2: ; preds = %42
br label %54
54: ; preds = %.lr.ph2, %89
%55 = call double (...) @rand()
%56 = fadd double %55, 1.000000e+00
%57 = load double, ptr @RAND_MAX, align 8
%58 = fadd double %57, 1.000000e+00
%59 = fdiv double %56, %58
store double %59, ptr %10, align 8
%60 = load i32, ptr %8, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %77
62: ; preds = %54
%63 = call double (...) @rand()
%64 = fadd double %63, 1.000000e+00
%65 = load double, ptr @RAND_MAX, align 8
%66 = fadd double %65, 1.000000e+00
%67 = fdiv double %64, %66
store double %67, ptr %11, align 8
%68 = load double, ptr %11, align 8
%69 = call i32 @log(double noundef %68)
%70 = mul nsw i32 -2, %69
%71 = call double @sqrt(i32 noundef %70)
%72 = load double, ptr %10, align 8
%73 = fmul double 0x401921FB54442D18, %72
%74 = fptosi double %73 to i32
%75 = call double @cos(i32 noundef %74)
%76 = fmul double %71, %75
store double %76, ptr %10, align 8
br label %77
77: ; preds = %62, %54
%78 = load i32, ptr %7, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, ptr %9, align 4
%82 = sitofp i32 %81 to double
%83 = load double, ptr %10, align 8
%84 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %82, double noundef %83)
br label %88
85: ; preds = %77
%86 = load double, ptr %10, align 8
%87 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %86)
br label %88
88: ; preds = %85, %80
br label %89
89: ; preds = %88
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %9, align 4
%93 = load i32, ptr %5, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %89
br label %95
95: ; preds = %._crit_edge3, %42
ret void
}
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @help(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare double @rand(...) #1
declare double @sqrt(i32 noundef) #1
declare i32 @log(double noundef) #1
declare double @cos(i32 noundef) #1
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg0c9f9ye.c'
source_filename = "/tmp/tmpg0c9f9ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testu(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @test1u(i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = call i32 @test2u(i32 noundef %12)
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 (...) @abort() #3
unreachable
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = call i32 @test3u(i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 (...) @abort() #3
unreachable
25: ; preds = %18
%26 = load i32, ptr %3, align 4
%27 = call i32 @test4u(i32 noundef %26)
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (...) @abort() #3
unreachable
32: ; preds = %25
%33 = load i32, ptr %3, align 4
%34 = call i32 @test5u(i32 noundef %33)
%35 = load i32, ptr %4, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = call i32 (...) @abort() #3
unreachable
39: ; preds = %32
%40 = load i32, ptr %3, align 4
%41 = call i32 @test6u(i32 noundef %40)
%42 = load i32, ptr %4, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %39
%45 = call i32 (...) @abort() #3
unreachable
46: ; preds = %39
ret void
}
declare i32 @test1u(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @test2u(i32 noundef) #1
declare i32 @test3u(i32 noundef) #1
declare i32 @test4u(i32 noundef) #1
declare i32 @test5u(i32 noundef) #1
declare i32 @test6u(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/tmpg0c9f9ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testu(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @test1u(i32 noundef %5)
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = call i32 @test2u(i32 noundef %12)
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 (...) @abort() #3
unreachable
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = call i32 @test3u(i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 (...) @abort() #3
unreachable
25: ; preds = %18
%26 = load i32, ptr %3, align 4
%27 = call i32 @test4u(i32 noundef %26)
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (...) @abort() #3
unreachable
32: ; preds = %25
%33 = load i32, ptr %3, align 4
%34 = call i32 @test5u(i32 noundef %33)
%35 = load i32, ptr %4, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = call i32 (...) @abort() #3
unreachable
39: ; preds = %32
%40 = load i32, ptr %3, align 4
%41 = call i32 @test6u(i32 noundef %40)
%42 = load i32, ptr %4, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %39
%45 = call i32 (...) @abort() #3
unreachable
46: ; preds = %39
ret void
}
declare i32 @test1u(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @test2u(i32 noundef) #1
declare i32 @test3u(i32 noundef) #1
declare i32 @test4u(i32 noundef) #1
declare i32 @test5u(i32 noundef) #1
declare i32 @test6u(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/tmpp5nph5ll.c'
source_filename = "/tmp/tmpp5nph5ll.c"
target datalayout = "e-m:e-p270: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/tmpp5nph5ll.c"
target datalayout = "e-m:e-p270: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/tmp7boizt4h.c'
source_filename = "/tmp/tmp7boizt4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_char(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [2 x i8], align 1
store i8 %0, ptr %2, align 1
call void @llvm.memset.p0.i64(ptr align 1 %3, i8 0, i64 2, i1 false)
%4 = load i8, ptr %2, align 1
%5 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
store i8 %4, ptr %5, align 1
%6 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @emit(ptr noundef %6)
ret void
}
; 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 @emit(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7boizt4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_char(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca [2 x i8], align 1
store i8 %0, ptr %2, align 1
call void @llvm.memset.p0.i64(ptr align 1 %3, i8 0, i64 2, i1 false)
%4 = load i8, ptr %2, align 1
%5 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
store i8 %4, ptr %5, align 1
%6 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @emit(ptr noundef %6)
ret void
}
; 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 @emit(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_5qr46dw.c'
source_filename = "/tmp/tmp_5qr46dw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_5qr46dw.c"
target datalayout = "e-m:e-p270: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/tmpn3sboplj.c'
source_filename = "/tmp/tmpn3sboplj.c"
target datalayout = "e-m:e-p270: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/tmpn3sboplj.c"
target datalayout = "e-m:e-p270: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/tmpfjud5tx2.c'
source_filename = "/tmp/tmpfjud5tx2.c"
target datalayout = "e-m:e-p270: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/tmpfjud5tx2.c"
target datalayout = "e-m:e-p270: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/tmp4y8ld8od.c'
source_filename = "/tmp/tmp4y8ld8od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i32 1, ptr %3, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i32 100000, ptr %4, align 4
%5 = call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %2)
ret i32 0
}
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4y8ld8od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 4
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
store i32 1, ptr %3, align 4
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
store i32 100000, ptr %4, align 4
%5 = call i32 @select(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %2)
ret i32 0
}
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp76p1fyn3.c'
source_filename = "/tmp/tmp76p1fyn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"Bob\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Alice\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %6
6: ; preds = %0, %40
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %6
br label %41
11: ; preds = %6
store i32 0, ptr %4, align 4
store i32 2, ptr %3, align 4
br label %12
12: ; preds = %30, %11
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 31
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = shl i32 1, %16
%18 = sub nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %15
store i32 1, ptr %4, align 4
br label %33
23: ; preds = %15
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23
br label %33
28: ; preds = %23
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %12, !llvm.loop !6
33: ; preds = %27, %22, %12
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(ptr noundef @.str.1)
br label %40
38: ; preds = %33
%39 = call i32 @printf(ptr noundef @.str.2)
br label %40
40: ; preds = %38, %36
br label %6
41: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp76p1fyn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"Bob\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Alice\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %.lr.ph1
.lr.ph1: ; preds = %0
br label %10
._crit_edge: ; preds = %40
br label %9
9: ; preds = %._crit_edge, %0
br label %44
10: ; preds = %.lr.ph1, %40
store i32 0, ptr %4, align 4
store i32 2, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %11, 31
br i1 %12, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %28
%14 = load i32, ptr %3, align 4
%15 = shl i32 1, %14
%16 = sub nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %13
store i32 1, ptr %4, align 4
br label %33
21: ; preds = %13
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21
br label %33
26: ; preds = %21
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %31, 31
br i1 %32, label %13, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %28
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %10
br label %33
33: ; preds = %.loopexit, %25, %20
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(ptr noundef @.str.1)
br label %40
38: ; preds = %33
%39 = call i32 @printf(ptr noundef @.str.2)
br label %40
40: ; preds = %38, %36
%41 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%42 = load i32, ptr %2, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %._crit_edge, label %10
44: ; preds = %9
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp06qe1bej.c'
source_filename = "/tmp/tmp06qe1bej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"forward\00", align 1
@.str.1 = private unnamed_addr constant [133 x i8] c"\0A Congrats you've gone absolutely nowhere, you are literally just standing in a basement. I'm sure you're making your parents proud\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"backward\00", align 1
@.str.3 = private unnamed_addr constant [149 x i8] c"\0AYou went throught the basement backdoor and are now outside. This is actually progress. You've done something right for once you miserable slacker\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"\0A choice unavailable\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"\0Ayou are back in the basement\0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"you die\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @game_make_choice(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %27
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.1)
br label %26
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.2)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.3)
%22 = load ptr, ptr %5, align 8
store i32 1, ptr %22, align 4
br label %25
23: ; preds = %16
%24 = call i32 @printf(ptr noundef @.str.4)
br label %25
25: ; preds = %23, %20
br label %26
26: ; preds = %25, %14
br label %48
27: ; preds = %3
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %47
31: ; preds = %27
%32 = load ptr, ptr %4, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.5)
%37 = load ptr, ptr %5, align 8
store i32 0, ptr %37, align 4
br label %46
38: ; preds = %31
%39 = load ptr, ptr %4, align 8
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.2)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = call i32 @printf(ptr noundef @.str.6)
%44 = load ptr, ptr %6, align 8
store i32 1, ptr %44, align 4
br label %45
45: ; preds = %42, %38
br label %46
46: ; preds = %45, %35
br label %47
47: ; preds = %46, %27
br label %48
48: ; preds = %47, %26
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp06qe1bej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"forward\00", align 1
@.str.1 = private unnamed_addr constant [133 x i8] c"\0A Congrats you've gone absolutely nowhere, you are literally just standing in a basement. I'm sure you're making your parents proud\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"backward\00", align 1
@.str.3 = private unnamed_addr constant [149 x i8] c"\0AYou went throught the basement backdoor and are now outside. This is actually progress. You've done something right for once you miserable slacker\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"\0A choice unavailable\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"\0Ayou are back in the basement\0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"you die\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @game_make_choice(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %27
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.1)
br label %26
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.2)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.3)
%22 = load ptr, ptr %5, align 8
store i32 1, ptr %22, align 4
br label %25
23: ; preds = %16
%24 = call i32 @printf(ptr noundef @.str.4)
br label %25
25: ; preds = %23, %20
br label %26
26: ; preds = %25, %14
br label %48
27: ; preds = %3
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %28, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %47
31: ; preds = %27
%32 = load ptr, ptr %4, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.5)
%37 = load ptr, ptr %5, align 8
store i32 0, ptr %37, align 4
br label %46
38: ; preds = %31
%39 = load ptr, ptr %4, align 8
%40 = call i64 @strcmp(ptr noundef %39, ptr noundef @.str.2)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = call i32 @printf(ptr noundef @.str.6)
%44 = load ptr, ptr %6, align 8
store i32 1, ptr %44, align 4
br label %45
45: ; preds = %42, %38
br label %46
46: ; preds = %45, %35
br label %47
47: ; preds = %46, %27
br label %48
48: ; preds = %47, %26
ret i32 0
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5a4_svyn.c'
source_filename = "/tmp/tmp5a4_svyn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"FATAL zmalloc: insufficient memory for %d bytes: %m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @zmemdupnull(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = call i64 @malloc(i32 noundef 1)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 0, ptr %13, align 1
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %3, align 8
br label %43
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %18, %15
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = call i32 @zfatal(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %25, %19
%30 = load i32, ptr %5, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %35)
br label %37
37: ; preds = %32, %29
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %37, %9
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare i64 @malloc(i32 noundef) #1
declare i32 @zfatal(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5a4_svyn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"FATAL zmalloc: insufficient memory for %d bytes: %m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @zmemdupnull(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = call i64 @malloc(i32 noundef 1)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 0, ptr %13, align 1
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %3, align 8
br label %43
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %18, %15
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = call i32 @zfatal(ptr noundef @.str, i32 noundef %27)
br label %29
29: ; preds = %25, %19
%30 = load i32, ptr %5, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %35)
br label %37
37: ; preds = %32, %29
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %37, %9
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare i64 @malloc(i32 noundef) #1
declare i32 @zfatal(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy6uiey_k.c'
source_filename = "/tmp/tmpy6uiey_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_sleep() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef null)
%3 = call i32 @srand(i32 noundef %2)
%4 = call i32 (...) @rand()
%5 = srem i32 %4, 2000
%6 = add nsw i32 500, %5
%7 = mul nsw i32 %6, 1000
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @usleep(i32 noundef %8)
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @usleep(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/tmpy6uiey_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_sleep() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef null)
%3 = call i32 @srand(i32 noundef %2)
%4 = call i32 (...) @rand()
%5 = srem i32 %4, 2000
%6 = add nsw i32 500, %5
%7 = mul nsw i32 %6, 1000
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = call i32 @usleep(i32 noundef %8)
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @usleep(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_t6sm0ag.c'
source_filename = "/tmp/tmp_t6sm0ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" sdf \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_t6sm0ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" sdf \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2uhuwz7z.c'
source_filename = "/tmp/tmp2uhuwz7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deBayerV(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
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/tmp2uhuwz7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deBayerV(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
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/tmpgxj161cc.c'
source_filename = "/tmp/tmpgxj161cc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"~/.arnold\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"Opening %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Could not open ~/.arnold\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"/etc/arnold\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Could not open /etc/arnold\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Parsing %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"Could not parse configfile\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loadConfigfile() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr @.str, ptr %3, align 8
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str.2)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %23
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str.3)
store ptr @.str.4, ptr %3, align 8
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %11
%21 = call i32 @perror(ptr noundef @.str.5)
br label %32
22: ; preds = %11
br label %23
23: ; preds = %22, %0
%24 = load i32, ptr @stderr, align 4
%25 = load ptr, ptr %3, align 8
%26 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.6, ptr noundef %25)
%27 = load ptr, ptr %2, align 8
%28 = call i64 @parseConfigFile(ptr noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %23
%31 = call i32 @perror(ptr noundef @.str.7)
br label %32
32: ; preds = %20, %30, %23
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @parseConfigFile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgxj161cc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"~/.arnold\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"Opening %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Could not open ~/.arnold\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"/etc/arnold\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Could not open /etc/arnold\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Parsing %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"Could not parse configfile\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loadConfigfile() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr @.str, ptr %3, align 8
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str.1, ptr noundef %5)
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str.2)
store ptr %8, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %23
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str.3)
store ptr @.str.4, ptr %3, align 8
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %11
%21 = call i32 @perror(ptr noundef @.str.5)
br label %32
22: ; preds = %11
br label %23
23: ; preds = %22, %0
%24 = load i32, ptr @stderr, align 4
%25 = load ptr, ptr %3, align 8
%26 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.6, ptr noundef %25)
%27 = load ptr, ptr %2, align 8
%28 = call i64 @parseConfigFile(ptr noundef %27)
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %23
%31 = call i32 @perror(ptr noundef @.str.7)
br label %32
32: ; preds = %30, %23, %20
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @parseConfigFile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr6bzak78.c'
source_filename = "/tmp/tmpr6bzak78.c"
target datalayout = "e-m:e-p270: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/tmpr6bzak78.c"
target datalayout = "e-m:e-p270: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/tmpcn0g4fwn.c'
source_filename = "/tmp/tmpcn0g4fwn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [22 x i8] c"Cannot open file %s \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_wind(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str.1, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %37, %15
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 65
br i1 %18, label %19, label %40
19: ; preds = %16
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %33, %19
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 14
br i1 %22, label %23, label %36
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [15 x float], ptr %25, i64 %27
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [15 x float], ptr %28, i64 0, i64 %30
%32 = call i32 @fscanf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %31)
br label %33
33: ; preds = %23
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %20, !llvm.loop !6
36: ; preds = %20
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %16, !llvm.loop !8
40: ; preds = %16
%41 = load ptr, ptr %5, align 8
%42 = call i32 @fclose(ptr noundef %41)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcn0g4fwn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [22 x i8] c"Cannot open file %s \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_wind(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str.1, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 0) #3
unreachable
15: ; preds = %2
store i32 0, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 65
br i1 %17, label %.lr.ph2, label %42
.lr.ph2: ; preds = %15
br label %18
18: ; preds = %.lr.ph2, %37
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 14
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %31
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [15 x float], ptr %23, i64 %25
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [15 x float], ptr %26, i64 0, i64 %28
%30 = call i32 @fscanf(ptr noundef %22, ptr noundef @.str.2, ptr noundef %29)
br label %31
31: ; preds = %21
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 14
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %18
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %40, 65
br i1 %41, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %42
42: ; preds = %._crit_edge3, %15
%43 = load ptr, ptr %5, align 8
%44 = call i32 @fclose(ptr noundef %43)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbp_s2j_2.c'
source_filename = "/tmp/tmpbp_s2j_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mySH: malloc() \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"mySH: realloc() \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parseInput(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 10, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 8
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %3, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %1
%16 = call i32 @perror(ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %1
br label %20
20: ; preds = %53, %19
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %54
25: ; preds = %20
%26 = call ptr @tokenize(ptr noundef %2)
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
store ptr %26, ptr %30, align 8
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %2, align 8
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp sge i32 %37, %38
br i1 %39, label %40, label %53
40: ; preds = %25
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 10
store i32 %43, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 8, %44
%46 = trunc i64 %45 to i32
%47 = call ptr @realloc(ptr noundef %41, i32 noundef %46)
store ptr %47, ptr %3, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %53
49: ; preds = %40
%50 = call i32 @perror(ptr noundef @.str.1)
%51 = load i32, ptr @EXIT_FAILURE, align 4
%52 = call i32 @exit(i32 noundef %51) #3
unreachable
53: ; preds = %40, %25
br label %20, !llvm.loop !6
54: ; preds = %20
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
store ptr null, ptr %58, align 8
%59 = load ptr, ptr %3, align 8
ret ptr %59
}
declare ptr @malloc(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @tokenize(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbp_s2j_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mySH: malloc() \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"mySH: realloc() \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parseInput(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 10, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 8
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %3, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %19
15: ; preds = %1
%16 = call i32 @perror(ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %1
%20 = load ptr, ptr %2, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %.lr.ph, label %57
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %52
%25 = call ptr @tokenize(ptr noundef %2)
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
store ptr %25, ptr %29, align 8
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
%34 = load ptr, ptr %2, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %2, align 8
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %8, align 4
%38 = icmp sge i32 %36, %37
br i1 %38, label %39, label %52
39: ; preds = %24
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 10
store i32 %42, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = mul i64 8, %43
%45 = trunc i64 %44 to i32
%46 = call ptr @realloc(ptr noundef %40, i32 noundef %45)
store ptr %46, ptr %3, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %52
48: ; preds = %39
%49 = call i32 @perror(ptr noundef @.str.1)
%50 = load i32, ptr @EXIT_FAILURE, align 4
%51 = call i32 @exit(i32 noundef %50) #3
unreachable
52: ; preds = %39, %24
%53 = load ptr, ptr %2, align 8
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 0
br i1 %56, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %19
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %4, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
store ptr null, ptr %61, align 8
%62 = load ptr, ptr %3, align 8
ret ptr %62
}
declare ptr @malloc(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @tokenize(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.