llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp9tilrxwo.c'
source_filename = "/tmp/tmp9tilrxwo.c"
target datalayout = "e-m:e-p270: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/tmp9tilrxwo.c"
target datalayout = "e-m:e-p270: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/tmp3bldjc3y.c'
source_filename = "/tmp/tmp3bldjc3y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\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 double @function1(double noundef 2.540000e+00)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call double @function2(double noundef 2.540000e+00)
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double @function3(double noundef 2.540000e+00)
%7 = call i32 @printf(ptr noundef @.str, double noundef %6)
%8 = call double @function4(double noundef 2.540000e+00)
%9 = call i32 @printf(ptr noundef @.str, double noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @function1(double noundef) #1
declare double @function2(double noundef) #1
declare double @function3(double noundef) #1
declare double @function4(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3bldjc3y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\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 double @function1(double noundef 2.540000e+00)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call double @function2(double noundef 2.540000e+00)
%5 = call i32 @printf(ptr noundef @.str, double noundef %4)
%6 = call double @function3(double noundef 2.540000e+00)
%7 = call i32 @printf(ptr noundef @.str, double noundef %6)
%8 = call double @function4(double noundef 2.540000e+00)
%9 = call i32 @printf(ptr noundef @.str, double noundef %8)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @function1(double noundef) #1
declare double @function2(double noundef) #1
declare double @function3(double noundef) #1
declare double @function4(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_1fplcas.c'
source_filename = "/tmp/tmp_1fplcas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"********** reset all irqs **********\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"interrupt_register 0x%X \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reset_all_irqs() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = load volatile i8, ptr inttoptr (i64 4294049795 to ptr), align 1
%5 = zext i8 %4 to i32
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_1fplcas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"********** reset all irqs **********\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"interrupt_register 0x%X \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reset_all_irqs() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = load volatile i8, ptr inttoptr (i64 4294049795 to ptr), align 1
%5 = zext i8 %4 to i32
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx_z9fm0v.c'
source_filename = "/tmp/tmpx_z9fm0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"The sorted number array is: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 @display(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx_z9fm0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"The sorted number array is: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \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 @display(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp17w2jn3.c'
source_filename = "/tmp/tmpp17w2jn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_dwt_aonconfigupload() #0 {
%1 = call i32 @dwt_write8bitoffsetreg(i32 noundef 44, i32 noundef 2, i32 noundef 4)
%2 = call i32 @dwt_write8bitoffsetreg(i32 noundef 44, i32 noundef 2, i32 noundef 0)
ret void
}
declare i32 @dwt_write8bitoffsetreg(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp17w2jn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_dwt_aonconfigupload() #0 {
%1 = call i32 @dwt_write8bitoffsetreg(i32 noundef 44, i32 noundef 2, i32 noundef 4)
%2 = call i32 @dwt_write8bitoffsetreg(i32 noundef 44, i32 noundef 2, i32 noundef 0)
ret void
}
declare i32 @dwt_write8bitoffsetreg(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2nr37unf.c'
source_filename = "/tmp/tmp2nr37unf.c"
target datalayout = "e-m:e-p270: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/tmp2nr37unf.c"
target datalayout = "e-m:e-p270: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/tmpx7xlfs22.c'
source_filename = "/tmp/tmpx7xlfs22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"\0AType in a word: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%80s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The reverse string is: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [81 x i8], align 16
%3 = alloca [81 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [81 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [81 x i8], ptr %2, i64 0, i64 0
%8 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @reverse(ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reverse(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/tmpx7xlfs22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"\0AType in a word: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%80s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The reverse string is: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [81 x i8], align 16
%3 = alloca [81 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [81 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [81 x i8], ptr %2, i64 0, i64 0
%8 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @reverse(ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reverse(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/tmpqlnq60a2.c'
source_filename = "/tmp/tmpqlnq60a2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PATH\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
store i32 0, ptr %1, align 4
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %2, align 8
ret i32 1
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqlnq60a2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"PATH\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
store i32 0, ptr %1, align 4
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %2, align 8
ret i32 1
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpko29q_yc.c'
source_filename = "/tmp/tmpko29q_yc.c"
target datalayout = "e-m:e-p270: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/tmpko29q_yc.c"
target datalayout = "e-m:e-p270: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/tmpx2fq562c.c'
source_filename = "/tmp/tmpx2fq562c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @mp_set_hex_384(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %8, %12
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = add nsw i32 %13, %17
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 3
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 %24, ptr %26, align 1
ret i8 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx2fq562c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @mp_set_hex_384(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = add nsw i32 %8, %12
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = add nsw i32 %13, %17
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 3
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = add nsw i32 %18, %22
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 %24, ptr %26, align 1
ret i8 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl_myckk4.c'
source_filename = "/tmp/tmpl_myckk4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"The parallel region is executed by thread %d\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, i32 noundef 0)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl_myckk4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"The parallel region is executed by thread %d\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, i32 noundef 0)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu__yv8b6.c'
source_filename = "/tmp/tmpu__yv8b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"islower should be 0 for J\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x4a() #0 {
%1 = call i64 @islower(i32 noundef 74)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 375, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmpu__yv8b6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"islower should be 0 for J\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x4a() #0 {
%1 = call i64 @islower(i32 noundef 74)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 375, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmpp27cyejn.c'
source_filename = "/tmp/tmpp27cyejn.c"
target datalayout = "e-m:e-p270: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/tmpp27cyejn.c"
target datalayout = "e-m:e-p270: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/tmp25b6qrwj.c'
source_filename = "/tmp/tmp25b6qrwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pii = external global double, align 8
@pi2 = external global double, align 8
@p7 = external global double, align 8
@p7two = external global double, align 8
@c22 = external global double, align 8
@s22 = external global double, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"fast: N is not an allowable power of two\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cfsst(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%11 = call i32 @atan(i32 noundef 1)
%12 = sitofp i32 %11 to double
%13 = fmul double 4.000000e+00, %12
store double %13, ptr @pii, align 8
%14 = load double, ptr @pii, align 8
%15 = fmul double %14, 2.000000e+00
store double %15, ptr @pi2, align 8
%16 = load double, ptr @pii, align 8
%17 = fdiv double %16, 8.000000e+00
%18 = fptrunc double %17 to float
store float %18, ptr %5, align 4
%19 = call i32 @sqrt(i32 noundef 2)
%20 = sitofp i32 %19 to double
%21 = fdiv double 1.000000e+00, %20
store double %21, ptr @p7, align 8
%22 = load double, ptr @p7, align 8
%23 = fmul double 2.000000e+00, %22
store double %23, ptr @p7two, align 8
%24 = load float, ptr %5, align 4
%25 = call double @cos(float noundef %24)
store double %25, ptr @c22, align 8
%26 = load float, ptr %5, align 4
%27 = call double @sin(float noundef %26)
store double %27, ptr @s22, align 8
store i64 1, ptr %8, align 8
store i64 2, ptr %9, align 8
br label %28
28: ; preds = %37, %2
%29 = load i64, ptr %8, align 8
%30 = icmp slt i64 %29, 20
br i1 %30, label %31, label %42
31: ; preds = %28
%32 = load i64, ptr %9, align 8
%33 = load i64, ptr %4, align 8
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
br label %42
36: ; preds = %31
br label %37
37: ; preds = %36
%38 = load i64, ptr %8, align 8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %8, align 8
%40 = load i64, ptr %9, align 8
%41 = mul nsw i64 %40, 2
store i64 %41, ptr %9, align 8
br label %28, !llvm.loop !6
42: ; preds = %35, %28
%43 = load i64, ptr %8, align 8
%44 = trunc i64 %43 to i32
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = icmp eq i32 %45, 20
br i1 %46, label %47, label %51
47: ; preds = %42
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fprintf(i32 noundef %48, ptr noundef @.str)
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %42
%52 = load ptr, ptr %3, align 8
%53 = load i64, ptr %4, align 8
%54 = getelementptr inbounds float, ptr %52, i64 %53
%55 = load float, ptr %54, align 4
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds float, ptr %56, i64 1
store float %55, ptr %57, align 4
store i64 3, ptr %8, align 8
br label %58
58: ; preds = %70, %51
%59 = load i64, ptr %8, align 8
%60 = load i64, ptr %4, align 8
%61 = icmp slt i64 %59, %60
br i1 %61, label %62, label %73
62: ; preds = %58
%63 = load ptr, ptr %3, align 8
%64 = load i64, ptr %8, align 8
%65 = getelementptr inbounds float, ptr %63, i64 %64
%66 = load float, ptr %65, align 4
%67 = fpext float %66 to double
%68 = fmul double %67, -1.000000e+00
%69 = fptrunc double %68 to float
store float %69, ptr %65, align 4
br label %70
70: ; preds = %62
%71 = load i64, ptr %8, align 8
%72 = add nsw i64 %71, 2
store i64 %72, ptr %8, align 8
br label %58, !llvm.loop !8
73: ; preds = %58
%74 = load i64, ptr %4, align 8
%75 = sitofp i64 %74 to double
%76 = fdiv double 1.000000e+00, %75
%77 = fptrunc double %76 to float
store float %77, ptr %6, align 4
store i64 0, ptr %8, align 8
br label %78
78: ; preds = %89, %73
%79 = load i64, ptr %8, align 8
%80 = load i64, ptr %4, align 8
%81 = icmp slt i64 %79, %80
br i1 %81, label %82, label %92
82: ; preds = %78
%83 = load float, ptr %6, align 4
%84 = load ptr, ptr %3, align 8
%85 = load i64, ptr %8, align 8
%86 = getelementptr inbounds float, ptr %84, i64 %85
%87 = load float, ptr %86, align 4
%88 = fmul float %87, %83
store float %88, ptr %86, align 4
br label %89
89: ; preds = %82
%90 = load i64, ptr %8, align 8
%91 = add nsw i64 %90, 1
store i64 %91, ptr %8, align 8
br label %78, !llvm.loop !9
92: ; preds = %78
%93 = load i32, ptr %7, align 4
%94 = load ptr, ptr %3, align 8
%95 = call i32 @cford2(i32 noundef %93, ptr noundef %94)
%96 = load i32, ptr %7, align 4
%97 = load ptr, ptr %3, align 8
%98 = call i32 @cford1(i32 noundef %96, ptr noundef %97)
%99 = load i64, ptr %4, align 8
%100 = mul nsw i64 4, %99
store i64 %100, ptr %9, align 8
%101 = load i32, ptr %7, align 4
%102 = icmp ne i32 %101, 1
br i1 %102, label %103, label %147
103: ; preds = %92
store i64 1, ptr %8, align 8
br label %104
104: ; preds = %143, %103
%105 = load i64, ptr %8, align 8
%106 = load i32, ptr %7, align 4
%107 = sdiv i32 %106, 2
%108 = sext i32 %107 to i64
%109 = icmp sle i64 %105, %108
br i1 %109, label %110, label %146
110: ; preds = %104
%111 = load i64, ptr %9, align 8
%112 = sdiv i64 %111, 4
store i64 %112, ptr %9, align 8
%113 = load i64, ptr %4, align 8
%114 = load i64, ptr %9, align 8
%115 = sdiv i64 %113, %114
store i64 %115, ptr %10, align 8
%116 = load i64, ptr %10, align 8
%117 = load i64, ptr %9, align 8
%118 = load ptr, ptr %3, align 8
%119 = load ptr, ptr %3, align 8
%120 = load i64, ptr %10, align 8
%121 = getelementptr inbounds float, ptr %119, i64 %120
%122 = load ptr, ptr %3, align 8
%123 = load i64, ptr %10, align 8
%124 = mul nsw i64 2, %123
%125 = getelementptr inbounds float, ptr %122, i64 %124
%126 = load ptr, ptr %3, align 8
%127 = load i64, ptr %10, align 8
%128 = mul nsw i64 3, %127
%129 = getelementptr inbounds float, ptr %126, i64 %128
%130 = load ptr, ptr %3, align 8
%131 = load ptr, ptr %3, align 8
%132 = load i64, ptr %10, align 8
%133 = getelementptr inbounds float, ptr %131, i64 %132
%134 = load ptr, ptr %3, align 8
%135 = load i64, ptr %10, align 8
%136 = mul nsw i64 2, %135
%137 = getelementptr inbounds float, ptr %134, i64 %136
%138 = load ptr, ptr %3, align 8
%139 = load i64, ptr %10, align 8
%140 = mul nsw i64 3, %139
%141 = getelementptr inbounds float, ptr %138, i64 %140
%142 = call i32 @cfr4syn(i64 noundef %116, i64 noundef %117, ptr noundef %118, ptr noundef %121, ptr noundef %125, ptr noundef %129, ptr noundef %130, ptr noundef %133, ptr noundef %137, ptr noundef %141)
br label %143
143: ; preds = %110
%144 = load i64, ptr %8, align 8
%145 = add nsw i64 %144, 1
store i64 %145, ptr %8, align 8
br label %104, !llvm.loop !10
146: ; preds = %104
br label %147
147: ; preds = %146, %92
%148 = load i32, ptr %7, align 4
%149 = srem i32 %148, 2
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %160
151: ; preds = %147
%152 = load i64, ptr %4, align 8
%153 = sdiv i64 %152, 2
store i64 %153, ptr %10, align 8
%154 = load i64, ptr %10, align 8
%155 = load ptr, ptr %3, align 8
%156 = load ptr, ptr %3, align 8
%157 = load i64, ptr %10, align 8
%158 = getelementptr inbounds float, ptr %156, i64 %157
%159 = call i32 @cfr2tr(i64 noundef %154, ptr noundef %155, ptr noundef %158)
br label %160
160: ; preds = %151, %147
ret void
}
declare i32 @atan(i32 noundef) #1
declare i32 @sqrt(i32 noundef) #1
declare double @cos(float noundef) #1
declare double @sin(float noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cford2(i32 noundef, ptr noundef) #1
declare i32 @cford1(i32 noundef, ptr noundef) #1
declare i32 @cfr4syn(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cfr2tr(i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25b6qrwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pii = external global double, align 8
@pi2 = external global double, align 8
@p7 = external global double, align 8
@p7two = external global double, align 8
@c22 = external global double, align 8
@s22 = external global double, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"fast: N is not an allowable power of two\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cfsst(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%11 = call i32 @atan(i32 noundef 1)
%12 = sitofp i32 %11 to double
%13 = fmul double 4.000000e+00, %12
store double %13, ptr @pii, align 8
%14 = load double, ptr @pii, align 8
%15 = fmul double %14, 2.000000e+00
store double %15, ptr @pi2, align 8
%16 = load double, ptr @pii, align 8
%17 = fdiv double %16, 8.000000e+00
%18 = fptrunc double %17 to float
store float %18, ptr %5, align 4
%19 = call i32 @sqrt(i32 noundef 2)
%20 = sitofp i32 %19 to double
%21 = fdiv double 1.000000e+00, %20
store double %21, ptr @p7, align 8
%22 = load double, ptr @p7, align 8
%23 = fmul double 2.000000e+00, %22
store double %23, ptr @p7two, align 8
%24 = load float, ptr %5, align 4
%25 = call double @cos(float noundef %24)
store double %25, ptr @c22, align 8
%26 = load float, ptr %5, align 4
%27 = call double @sin(float noundef %26)
store double %27, ptr @s22, align 8
store i64 1, ptr %8, align 8
store i64 2, ptr %9, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp slt i64 %28, 20
br i1 %29, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %30
30: ; preds = %.lr.ph, %36
%31 = load i64, ptr %9, align 8
%32 = load i64, ptr %4, align 8
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %30
br label %43
35: ; preds = %30
br label %36
36: ; preds = %35
%37 = load i64, ptr %8, align 8
%38 = add nsw i64 %37, 1
store i64 %38, ptr %8, align 8
%39 = load i64, ptr %9, align 8
%40 = mul nsw i64 %39, 2
store i64 %40, ptr %9, align 8
%41 = load i64, ptr %8, align 8
%42 = icmp slt i64 %41, 20
br i1 %42, label %30, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %36
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %43
43: ; preds = %.loopexit, %34
%44 = load i64, ptr %8, align 8
%45 = trunc i64 %44 to i32
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp eq i32 %46, 20
br i1 %47, label %48, label %52
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str)
%51 = call i32 @exit(i32 noundef 1) #3
unreachable
52: ; preds = %43
%53 = load ptr, ptr %3, align 8
%54 = load i64, ptr %4, align 8
%55 = getelementptr inbounds float, ptr %53, i64 %54
%56 = load float, ptr %55, align 4
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds float, ptr %57, i64 1
store float %56, ptr %58, align 4
store i64 3, ptr %8, align 8
%59 = load i64, ptr %8, align 8
%60 = load i64, ptr %4, align 8
%61 = icmp slt i64 %59, %60
br i1 %61, label %.lr.ph1, label %76
.lr.ph1: ; preds = %52
br label %62
62: ; preds = %.lr.ph1, %70
%63 = load ptr, ptr %3, align 8
%64 = load i64, ptr %8, align 8
%65 = getelementptr inbounds float, ptr %63, i64 %64
%66 = load float, ptr %65, align 4
%67 = fpext float %66 to double
%68 = fmul double %67, -1.000000e+00
%69 = fptrunc double %68 to float
store float %69, ptr %65, align 4
br label %70
70: ; preds = %62
%71 = load i64, ptr %8, align 8
%72 = add nsw i64 %71, 2
store i64 %72, ptr %8, align 8
%73 = load i64, ptr %8, align 8
%74 = load i64, ptr %4, align 8
%75 = icmp slt i64 %73, %74
br i1 %75, label %62, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %52
%77 = load i64, ptr %4, align 8
%78 = sitofp i64 %77 to double
%79 = fdiv double 1.000000e+00, %78
%80 = fptrunc double %79 to float
store float %80, ptr %6, align 4
store i64 0, ptr %8, align 8
%81 = load i64, ptr %8, align 8
%82 = load i64, ptr %4, align 8
%83 = icmp slt i64 %81, %82
br i1 %83, label %.lr.ph3, label %97
.lr.ph3: ; preds = %76
br label %84
84: ; preds = %.lr.ph3, %91
%85 = load float, ptr %6, align 4
%86 = load ptr, ptr %3, align 8
%87 = load i64, ptr %8, align 8
%88 = getelementptr inbounds float, ptr %86, i64 %87
%89 = load float, ptr %88, align 4
%90 = fmul float %89, %85
store float %90, ptr %88, align 4
br label %91
91: ; preds = %84
%92 = load i64, ptr %8, align 8
%93 = add nsw i64 %92, 1
store i64 %93, ptr %8, align 8
%94 = load i64, ptr %8, align 8
%95 = load i64, ptr %4, align 8
%96 = icmp slt i64 %94, %95
br i1 %96, label %84, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %91
br label %97
97: ; preds = %._crit_edge4, %76
%98 = load i32, ptr %7, align 4
%99 = load ptr, ptr %3, align 8
%100 = call i32 @cford2(i32 noundef %98, ptr noundef %99)
%101 = load i32, ptr %7, align 4
%102 = load ptr, ptr %3, align 8
%103 = call i32 @cford1(i32 noundef %101, ptr noundef %102)
%104 = load i64, ptr %4, align 8
%105 = mul nsw i64 4, %104
store i64 %105, ptr %9, align 8
%106 = load i32, ptr %7, align 4
%107 = icmp ne i32 %106, 1
br i1 %107, label %108, label %156
108: ; preds = %97
store i64 1, ptr %8, align 8
%109 = load i64, ptr %8, align 8
%110 = load i32, ptr %7, align 4
%111 = sdiv i32 %110, 2
%112 = sext i32 %111 to i64
%113 = icmp sle i64 %109, %112
br i1 %113, label %.lr.ph6, label %155
.lr.ph6: ; preds = %108
br label %114
114: ; preds = %.lr.ph6, %147
%115 = load i64, ptr %9, align 8
%116 = sdiv i64 %115, 4
store i64 %116, ptr %9, align 8
%117 = load i64, ptr %4, align 8
%118 = load i64, ptr %9, align 8
%119 = sdiv i64 %117, %118
store i64 %119, ptr %10, align 8
%120 = load i64, ptr %10, align 8
%121 = load i64, ptr %9, align 8
%122 = load ptr, ptr %3, align 8
%123 = load ptr, ptr %3, align 8
%124 = load i64, ptr %10, align 8
%125 = getelementptr inbounds float, ptr %123, i64 %124
%126 = load ptr, ptr %3, align 8
%127 = load i64, ptr %10, align 8
%128 = mul nsw i64 2, %127
%129 = getelementptr inbounds float, ptr %126, i64 %128
%130 = load ptr, ptr %3, align 8
%131 = load i64, ptr %10, align 8
%132 = mul nsw i64 3, %131
%133 = getelementptr inbounds float, ptr %130, i64 %132
%134 = load ptr, ptr %3, align 8
%135 = load ptr, ptr %3, align 8
%136 = load i64, ptr %10, align 8
%137 = getelementptr inbounds float, ptr %135, i64 %136
%138 = load ptr, ptr %3, align 8
%139 = load i64, ptr %10, align 8
%140 = mul nsw i64 2, %139
%141 = getelementptr inbounds float, ptr %138, i64 %140
%142 = load ptr, ptr %3, align 8
%143 = load i64, ptr %10, align 8
%144 = mul nsw i64 3, %143
%145 = getelementptr inbounds float, ptr %142, i64 %144
%146 = call i32 @cfr4syn(i64 noundef %120, i64 noundef %121, ptr noundef %122, ptr noundef %125, ptr noundef %129, ptr noundef %133, ptr noundef %134, ptr noundef %137, ptr noundef %141, ptr noundef %145)
br label %147
147: ; preds = %114
%148 = load i64, ptr %8, align 8
%149 = add nsw i64 %148, 1
store i64 %149, ptr %8, align 8
%150 = load i64, ptr %8, align 8
%151 = load i32, ptr %7, align 4
%152 = sdiv i32 %151, 2
%153 = sext i32 %152 to i64
%154 = icmp sle i64 %150, %153
br i1 %154, label %114, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %147
br label %155
155: ; preds = %._crit_edge7, %108
br label %156
156: ; preds = %155, %97
%157 = load i32, ptr %7, align 4
%158 = srem i32 %157, 2
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %169
160: ; preds = %156
%161 = load i64, ptr %4, align 8
%162 = sdiv i64 %161, 2
store i64 %162, ptr %10, align 8
%163 = load i64, ptr %10, align 8
%164 = load ptr, ptr %3, align 8
%165 = load ptr, ptr %3, align 8
%166 = load i64, ptr %10, align 8
%167 = getelementptr inbounds float, ptr %165, i64 %166
%168 = call i32 @cfr2tr(i64 noundef %163, ptr noundef %164, ptr noundef %167)
br label %169
169: ; preds = %160, %156
ret void
}
declare i32 @atan(i32 noundef) #1
declare i32 @sqrt(i32 noundef) #1
declare double @cos(float noundef) #1
declare double @sin(float noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cford2(i32 noundef, ptr noundef) #1
declare i32 @cford1(i32 noundef, ptr noundef) #1
declare i32 @cfr4syn(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cfr2tr(i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpdvhydnmj.c'
source_filename = "/tmp/tmpdvhydnmj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendData(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [32 x i8], align 16
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @write(i32 noundef %10, ptr noundef %11, i32 noundef %13)
store i32 %14, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %2
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 %20
store i8 0, ptr %21, align 1
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @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/tmpdvhydnmj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"ERROR writing to socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendData(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [32 x i8], align 16
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%12 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = call i32 @write(i32 noundef %10, ptr noundef %11, i32 noundef %13)
store i32 %14, ptr %5, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str.1)
br label %18
18: ; preds = %16, %2
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 %20
store i8 0, ptr %21, align 1
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @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/tmp5gc_s8up.c'
source_filename = "/tmp/tmp5gc_s8up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"which number prime to find?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d...\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"prime\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"the %d prime is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %28, %17, %0
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %12
br label %8, !llvm.loop !6
18: ; preds = %12
%19 = load i32, ptr %4, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = call i32 @check_prime(i32 noundef %21)
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %28
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %28
28: ; preds = %24, %18
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %8, !llvm.loop !6
30: ; preds = %8
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %31, i32 noundef %32)
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @check_prime(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/tmp5gc_s8up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"which number prime to find?\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d...\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"prime\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"the %d prime is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %.backedge
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %20
16: ; preds = %11
br label %.backedge
.backedge: ; preds = %16, %30
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
20: ; preds = %11
%21 = load i32, ptr %4, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %21)
%23 = load i32, ptr %4, align 4
%24 = call i32 @check_prime(i32 noundef %23)
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %30
26: ; preds = %20
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %30
30: ; preds = %26, %20
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %32
32: ; preds = %._crit_edge, %0
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %4, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %33, i32 noundef %34)
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @check_prime(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/tmp4v1r_r7z.c'
source_filename = "/tmp/tmp4v1r_r7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4v1r_r7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqu7xrscp.c'
source_filename = "/tmp/tmpqu7xrscp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rafasd\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
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef %3)
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/tmpqu7xrscp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rafasd\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
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef %3)
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/tmpj3s1lkw1.c'
source_filename = "/tmp/tmpj3s1lkw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kill(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3s1lkw1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @kill(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaub9e0l6.c'
source_filename = "/tmp/tmpaub9e0l6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [109 x i8] c"<tr><td width='100px'>%s </td><td width='100px'> \09</td><td width='400px'>source directory is rong!</td></tr>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaub9e0l6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [109 x i8] c"<tr><td width='100px'>%s </td><td width='100px'> \09</td><td width='400px'>source directory is rong!</td></tr>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb4kya4s9.c'
source_filename = "/tmp/tmpb4kya4s9.c"
target datalayout = "e-m:e-p270: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/tmpb4kya4s9.c"
target datalayout = "e-m:e-p270: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/tmpcx_0bahl.c'
source_filename = "/tmp/tmpcx_0bahl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @f29(i32 noundef %6)
ret i32 %7
}
declare i32 @f29(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/tmpcx_0bahl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @f29(i32 noundef %6)
ret i32 %7
}
declare i32 @f29(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/tmpph91zatn.c'
source_filename = "/tmp/tmpph91zatn.c"
target datalayout = "e-m:e-p270: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/tmpph91zatn.c"
target datalayout = "e-m:e-p270: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/tmpsv3txpqg.c'
source_filename = "/tmp/tmpsv3txpqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage:\0A%s FILENAME\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"fseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"File %s has length 0\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"calloc\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"/*\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c" * Non-zero %u byte strings of a disk image\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c" *\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c" * Generated with tools/file2include\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c" * SPDX-License-Identifier:\09GPL-2.0+\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c" */\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"#define EFI_ST_DISK_IMG { 0x%08zx, { \\\0A\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"\09{0x%08zx, \22\00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c"\\x%02x\00", align 1
@.str.15 = private unnamed_addr constant [8 x i8] c"\22}, /* \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.18 = private unnamed_addr constant [7 x i8] c" */ \\\0A\00", align 1
@.str.19 = private unnamed_addr constant [16 x i8] c"\09{0, NULL} } }\0A\00", align 1
@.str.20 = private unnamed_addr constant [7 x i8] c"fclose\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %3, align 4
br label %192
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %31, label %28
28: ; preds = %21
%29 = call i32 @perror(ptr noundef @.str.2)
%30 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %30, ptr %3, align 4
br label %192
31: ; preds = %21
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr @SEEK_END, align 4
%34 = call i32 @fseek(ptr noundef %32, i32 noundef 0, i32 noundef %33)
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %3, align 4
br label %192
40: ; preds = %31
%41 = load ptr, ptr %6, align 8
%42 = call i64 @ftell(ptr noundef %41)
store i64 %42, ptr %9, align 8
%43 = load i64, ptr %9, align 8
%44 = icmp ne i64 %43, 0
br i1 %44, label %52, label %45
45: ; preds = %40
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
%50 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.4, ptr noundef %49)
%51 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %51, ptr %3, align 4
br label %192
52: ; preds = %40
%53 = load ptr, ptr %6, align 8
%54 = call i32 @rewind(ptr noundef %53)
%55 = load i64, ptr %9, align 8
%56 = call ptr @malloc(i64 noundef %55)
store ptr %56, ptr %8, align 8
%57 = load ptr, ptr %8, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %62, label %59
59: ; preds = %52
%60 = call i32 @perror(ptr noundef @.str.5)
%61 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %61, ptr %3, align 4
br label %192
62: ; preds = %52
%63 = load ptr, ptr %8, align 8
%64 = load i64, ptr %9, align 8
%65 = load ptr, ptr %6, align 8
%66 = call i64 @fread(ptr noundef %63, i32 noundef 1, i64 noundef %64, ptr noundef %65)
store i64 %66, ptr %9, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 8)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%74 = load i64, ptr %9, align 8
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %74)
store i64 0, ptr %10, align 8
br label %76
76: ; preds = %176, %62
%77 = load i64, ptr %10, align 8
%78 = load i64, ptr %9, align 8
%79 = icmp ult i64 %77, %78
br i1 %79, label %80, label %179
80: ; preds = %76
store i32 0, ptr %12, align 4
%81 = load i64, ptr %10, align 8
store i64 %81, ptr %11, align 8
br label %82
82: ; preds = %101, %80
%83 = load i64, ptr %11, align 8
%84 = load i64, ptr %10, align 8
%85 = add i64 %84, 8
%86 = icmp ult i64 %83, %85
br i1 %86, label %87, label %91
87: ; preds = %82
%88 = load i64, ptr %11, align 8
%89 = load i64, ptr %9, align 8
%90 = icmp ult i64 %88, %89
br label %91
91: ; preds = %87, %82
%92 = phi i1 [ false, %82 ], [ %90, %87 ]
br i1 %92, label %93, label %104
93: ; preds = %91
%94 = load ptr, ptr %8, align 8
%95 = load i64, ptr %11, align 8
%96 = getelementptr inbounds i8, ptr %94, i64 %95
%97 = load i8, ptr %96, align 1
%98 = icmp ne i8 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %93
store i32 1, ptr %12, align 4
br label %100
100: ; preds = %99, %93
br label %101
101: ; preds = %100
%102 = load i64, ptr %11, align 8
%103 = add i64 %102, 1
store i64 %103, ptr %11, align 8
br label %82, !llvm.loop !6
104: ; preds = %91
%105 = load i32, ptr %12, align 4
%106 = icmp ne i32 %105, 0
br i1 %106, label %108, label %107
107: ; preds = %104
br label %176
108: ; preds = %104
%109 = load i64, ptr %10, align 8
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %109)
%111 = load i64, ptr %10, align 8
store i64 %111, ptr %11, align 8
br label %112
112: ; preds = %130, %108
%113 = load i64, ptr %11, align 8
%114 = load i64, ptr %10, align 8
%115 = add i64 %114, 8
%116 = icmp ult i64 %113, %115
br i1 %116, label %117, label %121
117: ; preds = %112
%118 = load i64, ptr %11, align 8
%119 = load i64, ptr %9, align 8
%120 = icmp ult i64 %118, %119
br label %121
121: ; preds = %117, %112
%122 = phi i1 [ false, %112 ], [ %120, %117 ]
br i1 %122, label %123, label %133
123: ; preds = %121
%124 = load ptr, ptr %8, align 8
%125 = load i64, ptr %11, align 8
%126 = getelementptr inbounds i8, ptr %124, i64 %125
%127 = load i8, ptr %126, align 1
%128 = zext i8 %127 to i32
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %128)
br label %130
130: ; preds = %123
%131 = load i64, ptr %11, align 8
%132 = add i64 %131, 1
store i64 %132, ptr %11, align 8
br label %112, !llvm.loop !8
133: ; preds = %121
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%135 = load i64, ptr %10, align 8
store i64 %135, ptr %11, align 8
br label %136
136: ; preds = %171, %133
%137 = load i64, ptr %11, align 8
%138 = load i64, ptr %10, align 8
%139 = add i64 %138, 8
%140 = icmp ult i64 %137, %139
br i1 %140, label %141, label %145
141: ; preds = %136
%142 = load i64, ptr %11, align 8
%143 = load i64, ptr %9, align 8
%144 = icmp ult i64 %142, %143
br label %145
145: ; preds = %141, %136
%146 = phi i1 [ false, %136 ], [ %144, %141 ]
br i1 %146, label %147, label %174
147: ; preds = %145
%148 = load ptr, ptr %8, align 8
%149 = load i64, ptr %11, align 8
%150 = getelementptr inbounds i8, ptr %148, i64 %149
%151 = load i8, ptr %150, align 1
%152 = zext i8 %151 to i32
%153 = icmp sge i32 %152, 32
br i1 %153, label %154, label %168
154: ; preds = %147
%155 = load ptr, ptr %8, align 8
%156 = load i64, ptr %11, align 8
%157 = getelementptr inbounds i8, ptr %155, i64 %156
%158 = load i8, ptr %157, align 1
%159 = zext i8 %158 to i32
%160 = icmp sle i32 %159, 126
br i1 %160, label %161, label %168
161: ; preds = %154
%162 = load ptr, ptr %8, align 8
%163 = load i64, ptr %11, align 8
%164 = getelementptr inbounds i8, ptr %162, i64 %163
%165 = load i8, ptr %164, align 1
%166 = zext i8 %165 to i32
%167 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %166)
br label %170
168: ; preds = %154, %147
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %170
170: ; preds = %168, %161
br label %171
171: ; preds = %170
%172 = load i64, ptr %11, align 8
%173 = add i64 %172, 1
store i64 %173, ptr %11, align 8
br label %136, !llvm.loop !9
174: ; preds = %145
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %176
176: ; preds = %174, %107
%177 = load i64, ptr %10, align 8
%178 = add i64 %177, 8
store i64 %178, ptr %10, align 8
br label %76, !llvm.loop !10
179: ; preds = %76
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%181 = load ptr, ptr %8, align 8
%182 = call i32 @free(ptr noundef %181)
%183 = load ptr, ptr %6, align 8
%184 = call i32 @fclose(ptr noundef %183)
store i32 %184, ptr %7, align 4
%185 = load i32, ptr %7, align 4
%186 = icmp ne i32 %185, 0
br i1 %186, label %187, label %190
187: ; preds = %179
%188 = call i32 @perror(ptr noundef @.str.20)
%189 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %189, ptr %3, align 4
br label %192
190: ; preds = %179
%191 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %191, ptr %3, align 4
br label %192
192: ; preds = %190, %187, %59, %45, %37, %28, %15
%193 = load i32, ptr %3, align 4
ret i32 %193
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @free(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsv3txpqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage:\0A%s FILENAME\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"fseek\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"File %s has length 0\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"calloc\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"/*\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c" * Non-zero %u byte strings of a disk image\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c" *\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c" * Generated with tools/file2include\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c" * SPDX-License-Identifier:\09GPL-2.0+\0A\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c" */\0A\0A\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"#define EFI_ST_DISK_IMG { 0x%08zx, { \\\0A\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"\09{0x%08zx, \22\00", align 1
@.str.14 = private unnamed_addr constant [7 x i8] c"\\x%02x\00", align 1
@.str.15 = private unnamed_addr constant [8 x i8] c"\22}, /* \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.18 = private unnamed_addr constant [7 x i8] c" */ \\\0A\00", align 1
@.str.19 = private unnamed_addr constant [16 x i8] c"\09{0, NULL} } }\0A\00", align 1
@.str.20 = private unnamed_addr constant [7 x i8] c"fclose\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %20, ptr %3, align 4
br label %194
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %31, label %28
28: ; preds = %21
%29 = call i32 @perror(ptr noundef @.str.2)
%30 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %30, ptr %3, align 4
br label %194
31: ; preds = %21
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr @SEEK_END, align 4
%34 = call i32 @fseek(ptr noundef %32, i32 noundef 0, i32 noundef %33)
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %39, ptr %3, align 4
br label %194
40: ; preds = %31
%41 = load ptr, ptr %6, align 8
%42 = call i64 @ftell(ptr noundef %41)
store i64 %42, ptr %9, align 8
%43 = load i64, ptr %9, align 8
%44 = icmp ne i64 %43, 0
br i1 %44, label %52, label %45
45: ; preds = %40
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
%50 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.4, ptr noundef %49)
%51 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %51, ptr %3, align 4
br label %194
52: ; preds = %40
%53 = load ptr, ptr %6, align 8
%54 = call i32 @rewind(ptr noundef %53)
%55 = load i64, ptr %9, align 8
%56 = call ptr @malloc(i64 noundef %55)
store ptr %56, ptr %8, align 8
%57 = load ptr, ptr %8, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %62, label %59
59: ; preds = %52
%60 = call i32 @perror(ptr noundef @.str.5)
%61 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %61, ptr %3, align 4
br label %194
62: ; preds = %52
%63 = load ptr, ptr %8, align 8
%64 = load i64, ptr %9, align 8
%65 = load ptr, ptr %6, align 8
%66 = call i64 @fread(ptr noundef %63, i32 noundef 1, i64 noundef %64, ptr noundef %65)
store i64 %66, ptr %9, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef 8)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%74 = load i64, ptr %9, align 8
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %74)
store i64 0, ptr %10, align 8
%76 = load i64, ptr %10, align 8
%77 = load i64, ptr %9, align 8
%78 = icmp ult i64 %76, %77
br i1 %78, label %.lr.ph, label %181
.lr.ph: ; preds = %62
br label %79
79: ; preds = %.lr.ph, %175
store i32 0, ptr %12, align 4
%80 = load i64, ptr %10, align 8
store i64 %80, ptr %11, align 8
br label %81
81: ; preds = %100, %79
%82 = load i64, ptr %11, align 8
%83 = load i64, ptr %10, align 8
%84 = add i64 %83, 8
%85 = icmp ult i64 %82, %84
br i1 %85, label %86, label %90
86: ; preds = %81
%87 = load i64, ptr %11, align 8
%88 = load i64, ptr %9, align 8
%89 = icmp ult i64 %87, %88
br label %90
90: ; preds = %86, %81
%91 = phi i1 [ false, %81 ], [ %89, %86 ]
br i1 %91, label %92, label %103
92: ; preds = %90
%93 = load ptr, ptr %8, align 8
%94 = load i64, ptr %11, align 8
%95 = getelementptr inbounds i8, ptr %93, i64 %94
%96 = load i8, ptr %95, align 1
%97 = icmp ne i8 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %92
store i32 1, ptr %12, align 4
br label %99
99: ; preds = %98, %92
br label %100
100: ; preds = %99
%101 = load i64, ptr %11, align 8
%102 = add i64 %101, 1
store i64 %102, ptr %11, align 8
br label %81, !llvm.loop !6
103: ; preds = %90
%104 = load i32, ptr %12, align 4
%105 = icmp ne i32 %104, 0
br i1 %105, label %107, label %106
106: ; preds = %103
br label %175
107: ; preds = %103
%108 = load i64, ptr %10, align 8
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %108)
%110 = load i64, ptr %10, align 8
store i64 %110, ptr %11, align 8
br label %111
111: ; preds = %129, %107
%112 = load i64, ptr %11, align 8
%113 = load i64, ptr %10, align 8
%114 = add i64 %113, 8
%115 = icmp ult i64 %112, %114
br i1 %115, label %116, label %120
116: ; preds = %111
%117 = load i64, ptr %11, align 8
%118 = load i64, ptr %9, align 8
%119 = icmp ult i64 %117, %118
br label %120
120: ; preds = %116, %111
%121 = phi i1 [ false, %111 ], [ %119, %116 ]
br i1 %121, label %122, label %132
122: ; preds = %120
%123 = load ptr, ptr %8, align 8
%124 = load i64, ptr %11, align 8
%125 = getelementptr inbounds i8, ptr %123, i64 %124
%126 = load i8, ptr %125, align 1
%127 = zext i8 %126 to i32
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %127)
br label %129
129: ; preds = %122
%130 = load i64, ptr %11, align 8
%131 = add i64 %130, 1
store i64 %131, ptr %11, align 8
br label %111, !llvm.loop !8
132: ; preds = %120
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%134 = load i64, ptr %10, align 8
store i64 %134, ptr %11, align 8
br label %135
135: ; preds = %170, %132
%136 = load i64, ptr %11, align 8
%137 = load i64, ptr %10, align 8
%138 = add i64 %137, 8
%139 = icmp ult i64 %136, %138
br i1 %139, label %140, label %144
140: ; preds = %135
%141 = load i64, ptr %11, align 8
%142 = load i64, ptr %9, align 8
%143 = icmp ult i64 %141, %142
br label %144
144: ; preds = %140, %135
%145 = phi i1 [ false, %135 ], [ %143, %140 ]
br i1 %145, label %146, label %173
146: ; preds = %144
%147 = load ptr, ptr %8, align 8
%148 = load i64, ptr %11, align 8
%149 = getelementptr inbounds i8, ptr %147, i64 %148
%150 = load i8, ptr %149, align 1
%151 = zext i8 %150 to i32
%152 = icmp sge i32 %151, 32
br i1 %152, label %153, label %167
153: ; preds = %146
%154 = load ptr, ptr %8, align 8
%155 = load i64, ptr %11, align 8
%156 = getelementptr inbounds i8, ptr %154, i64 %155
%157 = load i8, ptr %156, align 1
%158 = zext i8 %157 to i32
%159 = icmp sle i32 %158, 126
br i1 %159, label %160, label %167
160: ; preds = %153
%161 = load ptr, ptr %8, align 8
%162 = load i64, ptr %11, align 8
%163 = getelementptr inbounds i8, ptr %161, i64 %162
%164 = load i8, ptr %163, align 1
%165 = zext i8 %164 to i32
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %165)
br label %169
167: ; preds = %153, %146
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %169
169: ; preds = %167, %160
br label %170
170: ; preds = %169
%171 = load i64, ptr %11, align 8
%172 = add i64 %171, 1
store i64 %172, ptr %11, align 8
br label %135, !llvm.loop !9
173: ; preds = %144
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
br label %175
175: ; preds = %173, %106
%176 = load i64, ptr %10, align 8
%177 = add i64 %176, 8
store i64 %177, ptr %10, align 8
%178 = load i64, ptr %10, align 8
%179 = load i64, ptr %9, align 8
%180 = icmp ult i64 %178, %179
br i1 %180, label %79, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %175
br label %181
181: ; preds = %._crit_edge, %62
%182 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%183 = load ptr, ptr %8, align 8
%184 = call i32 @free(ptr noundef %183)
%185 = load ptr, ptr %6, align 8
%186 = call i32 @fclose(ptr noundef %185)
store i32 %186, ptr %7, align 4
%187 = load i32, ptr %7, align 4
%188 = icmp ne i32 %187, 0
br i1 %188, label %189, label %192
189: ; preds = %181
%190 = call i32 @perror(ptr noundef @.str.20)
%191 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %191, ptr %3, align 4
br label %194
192: ; preds = %181
%193 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %193, ptr %3, align 4
br label %194
194: ; preds = %192, %189, %59, %45, %37, %28, %15
%195 = load i32, ptr %3, align 4
ret i32 %195
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @free(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmppfym05z3.c'
source_filename = "/tmp/tmppfym05z3.c"
target datalayout = "e-m:e-p270: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/tmppfym05z3.c"
target datalayout = "e-m:e-p270: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/tmpjqzyfsfy.c'
source_filename = "/tmp/tmpjqzyfsfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"'%s' \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_args(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqzyfsfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"'%s' \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_args(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_256dnsv.c'
source_filename = "/tmp/tmp_256dnsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PT_LOAD = dso_local global i64 0, align 8
@SEEK_SET = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_256dnsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PT_LOAD = dso_local global i64 0, align 8
@SEEK_SET = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyz03r4oy.c'
source_filename = "/tmp/tmpyz03r4oy.c"
target datalayout = "e-m:e-p270: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/tmpyz03r4oy.c"
target datalayout = "e-m:e-p270: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/tmpmr06p5o8.c'
source_filename = "/tmp/tmpmr06p5o8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr, i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_dir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%14 = load ptr, ptr %7, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %12, align 8
%16 = load ptr, ptr %8, align 8
%17 = load i64, ptr %16, align 8
%18 = call i32 @seekdir(ptr noundef %15, i64 noundef %17)
%19 = load ptr, ptr %12, align 8
%20 = call ptr @readdir(ptr noundef %19)
store ptr %20, ptr %13, align 8
%21 = load ptr, ptr %13, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %5
store ptr null, ptr %6, align 8
br label %44
24: ; preds = %5
%25 = load ptr, ptr %13, align 8
%26 = getelementptr inbounds %struct.dirent, ptr %25, i32 0, i32 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = load ptr, ptr %10, align 8
store i32 %28, ptr %29, align 4
%30 = load ptr, ptr %13, align 8
%31 = getelementptr inbounds %struct.dirent, ptr %30, i32 0, i32 1
%32 = load i64, ptr %31, align 8
%33 = load ptr, ptr %9, align 8
store i64 %32, ptr %33, align 8
%34 = load ptr, ptr %13, align 8
%35 = getelementptr inbounds %struct.dirent, ptr %34, i32 0, i32 2
%36 = load i32, ptr %35, align 8
%37 = load ptr, ptr %11, align 8
store i32 %36, ptr %37, align 4
%38 = load ptr, ptr %12, align 8
%39 = call i64 @telldir(ptr noundef %38)
%40 = load ptr, ptr %8, align 8
store i64 %39, ptr %40, align 8
%41 = load ptr, ptr %13, align 8
%42 = getelementptr inbounds %struct.dirent, ptr %41, i32 0, i32 0
%43 = load ptr, ptr %42, align 8
store ptr %43, ptr %6, align 8
br label %44
44: ; preds = %24, %23
%45 = load ptr, ptr %6, align 8
ret ptr %45
}
declare i32 @seekdir(ptr noundef, i64 noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmr06p5o8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr, i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_dir(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%14 = load ptr, ptr %7, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %12, align 8
%16 = load ptr, ptr %8, align 8
%17 = load i64, ptr %16, align 8
%18 = call i32 @seekdir(ptr noundef %15, i64 noundef %17)
%19 = load ptr, ptr %12, align 8
%20 = call ptr @readdir(ptr noundef %19)
store ptr %20, ptr %13, align 8
%21 = load ptr, ptr %13, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %5
store ptr null, ptr %6, align 8
br label %44
24: ; preds = %5
%25 = load ptr, ptr %13, align 8
%26 = getelementptr inbounds %struct.dirent, ptr %25, i32 0, i32 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = load ptr, ptr %10, align 8
store i32 %28, ptr %29, align 4
%30 = load ptr, ptr %13, align 8
%31 = getelementptr inbounds %struct.dirent, ptr %30, i32 0, i32 1
%32 = load i64, ptr %31, align 8
%33 = load ptr, ptr %9, align 8
store i64 %32, ptr %33, align 8
%34 = load ptr, ptr %13, align 8
%35 = getelementptr inbounds %struct.dirent, ptr %34, i32 0, i32 2
%36 = load i32, ptr %35, align 8
%37 = load ptr, ptr %11, align 8
store i32 %36, ptr %37, align 4
%38 = load ptr, ptr %12, align 8
%39 = call i64 @telldir(ptr noundef %38)
%40 = load ptr, ptr %8, align 8
store i64 %39, ptr %40, align 8
%41 = load ptr, ptr %13, align 8
%42 = getelementptr inbounds %struct.dirent, ptr %41, i32 0, i32 0
%43 = load ptr, ptr %42, align 8
store ptr %43, ptr %6, align 8
br label %44
44: ; preds = %24, %23
%45 = load ptr, ptr %6, align 8
ret ptr %45
}
declare i32 @seekdir(ptr noundef, i64 noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @telldir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe3x9hx4e.c'
source_filename = "/tmp/tmpe3x9hx4e.c"
target datalayout = "e-m:e-p270: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/tmpe3x9hx4e.c"
target datalayout = "e-m:e-p270: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/tmprqr1bbad.c'
source_filename = "/tmp/tmprqr1bbad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setgroups(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %4, align 8
br i1 false, label %6, label %7
6: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
7: ; preds = %2
%8 = load i32, ptr @EINVAL, align 4
store i32 %8, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %9
9: ; preds = %7, %6
%10 = load i32, ptr %3, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprqr1bbad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setgroups(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %4, align 8
br i1 false, label %6, label %7
6: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
7: ; preds = %2
%8 = load i32, ptr @EINVAL, align 4
store i32 %8, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %9
9: ; preds = %7, %6
%10 = load i32, ptr %3, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7ki9lhsz.c'
source_filename = "/tmp/tmp7ki9lhsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Big-endian\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Little-endian\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Unknown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 258, ptr %2, align 4
%3 = load i8, ptr %2, align 4
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @puts(ptr noundef @.str)
br label %17
8: ; preds = %0
%9 = load i8, ptr %2, align 4
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @puts(ptr noundef @.str.1)
br label %16
14: ; preds = %8
%15 = call i32 @puts(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %12
br label %17
17: ; preds = %16, %6
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/tmp7ki9lhsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Big-endian\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Little-endian\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"Unknown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 258, ptr %2, align 4
%3 = load i8, ptr %2, align 4
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @puts(ptr noundef @.str)
br label %17
8: ; preds = %0
%9 = load i8, ptr %2, align 4
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @puts(ptr noundef @.str.1)
br label %16
14: ; preds = %8
%15 = call i32 @puts(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %12
br label %17
17: ; preds = %16, %6
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/tmpyx_todfl.c'
source_filename = "/tmp/tmpyx_todfl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09M\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\09D\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_descr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call ptr @strstr(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 2
%19 = call ptr @strstr(ptr noundef %18, ptr noundef @.str.1)
br label %21
20: ; preds = %4
br label %21
21: ; preds = %20, %16
%22 = phi ptr [ %19, %16 ], [ null, %20 ]
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %5, align 8
%24 = call ptr @strstr(ptr noundef %23, ptr noundef @.str.2)
store ptr %24, ptr %11, align 8
%25 = load ptr, ptr %9, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %42
27: ; preds = %21
%28 = load ptr, ptr %10, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %42
30: ; preds = %27
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %9, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = sub nsw i64 %35, 2
%37 = trunc i64 %36 to i32
%38 = load ptr, ptr %8, align 8
store i32 %37, ptr %38, align 4
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 2
%41 = load ptr, ptr %7, align 8
store ptr %40, ptr %41, align 8
br label %45
42: ; preds = %27, %21
%43 = load ptr, ptr %7, align 8
store ptr @.str.3, ptr %43, align 8
%44 = load ptr, ptr %8, align 8
store i32 0, ptr %44, align 4
br label %45
45: ; preds = %42, %30
%46 = load ptr, ptr %11, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load ptr, ptr %11, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 2
br label %53
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
br label %53
53: ; preds = %51, %48
%54 = phi ptr [ %50, %48 ], [ %52, %51 ]
%55 = load ptr, ptr %6, align 8
store ptr %54, ptr %55, align 8
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyx_todfl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09M\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\09D\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parse_descr(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = call ptr @strstr(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 2
%19 = call ptr @strstr(ptr noundef %18, ptr noundef @.str.1)
br label %21
20: ; preds = %4
br label %21
21: ; preds = %20, %16
%22 = phi ptr [ %19, %16 ], [ null, %20 ]
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %5, align 8
%24 = call ptr @strstr(ptr noundef %23, ptr noundef @.str.2)
store ptr %24, ptr %11, align 8
%25 = load ptr, ptr %9, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %42
27: ; preds = %21
%28 = load ptr, ptr %10, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %42
30: ; preds = %27
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %9, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = sub nsw i64 %35, 2
%37 = trunc i64 %36 to i32
%38 = load ptr, ptr %8, align 8
store i32 %37, ptr %38, align 4
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 2
%41 = load ptr, ptr %7, align 8
store ptr %40, ptr %41, align 8
br label %45
42: ; preds = %27, %21
%43 = load ptr, ptr %7, align 8
store ptr @.str.3, ptr %43, align 8
%44 = load ptr, ptr %8, align 8
store i32 0, ptr %44, align 4
br label %45
45: ; preds = %42, %30
%46 = load ptr, ptr %11, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load ptr, ptr %11, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 2
br label %53
51: ; preds = %45
%52 = load ptr, ptr %5, align 8
br label %53
53: ; preds = %51, %48
%54 = phi ptr [ %50, %48 ], [ %52, %51 ]
%55 = load ptr, ptr %6, align 8
store ptr %54, ptr %55, align 8
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp__5hx5n_.c'
source_filename = "/tmp/tmp__5hx5n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp__5hx5n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsfolyi68.c'
source_filename = "/tmp/tmpsfolyi68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %8, align 16
%9 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
store i32 7, ptr %9, align 4
%10 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
store i32 11, ptr %10, align 8
%11 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
store i32 15, ptr %11, align 4
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %21, %2
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
br label %21
21: ; preds = %15
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
br label %12, !llvm.loop !6
24: ; preds = %12
%25 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsfolyi68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %8, align 16
%9 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
store i32 7, ptr %9, align 4
%10 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
store i32 11, ptr %10, align 8
%11 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
store i32 15, ptr %11, align 4
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %20
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %14
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %23, 4
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
%26 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvrznghh2.c'
source_filename = "/tmp/tmpvrznghh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = call i32 (...) @listPCB()
ret i32 0
}
declare i32 @listPCB(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvrznghh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = call i32 (...) @listPCB()
ret i32 0
}
declare i32 @listPCB(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2_fi0ukv.c'
source_filename = "/tmp/tmp2_fi0ukv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_data(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %11, %3
%9 = load i32, ptr %5, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load ptr, ptr %4, align 8
%13 = ptrtoint ptr %12 to i32
%14 = sext i32 %13 to i64
%15 = load i64, ptr %6, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %15, %17
%19 = add i64 %14, %18
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = add i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %5, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
%27 = load i32, ptr %7, align 4
ret i32 %27
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2_fi0ukv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_data(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %4, align 8
%12 = ptrtoint ptr %11 to i32
%13 = sext i32 %12 to i64
%14 = load i64, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 %14, %16
%18 = add i64 %13, %17
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = add i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sge i32 %25, 0
br i1 %26, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %27
27: ; preds = %._crit_edge, %3
%28 = load i32, ptr %7, align 4
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmploey0d9a.c'
source_filename = "/tmp/tmploey0d9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_exit(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 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmploey0d9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_exit(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 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8uc_8n7j.c'
source_filename = "/tmp/tmp8uc_8n7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Error - wrong number of argumets\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Can't open input file \0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [27 x i8] c"Reading allocating memory\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"Done ;)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str, i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
store ptr null, ptr %7, align 8
%25 = load ptr, ptr %6, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.1)
store ptr %26, ptr %8, align 8
store i32 1, ptr %10, align 4
%27 = load ptr, ptr %8, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %21
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %30)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
33: ; preds = %21
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @fseek(ptr noundef %34, i32 noundef 0, i32 noundef %35)
store i64 25, ptr %11, align 8
store i64 0, ptr %13, align 8
store i64 1, ptr %14, align 8
br label %37
37: ; preds = %90, %33
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %14, align 8
%40 = call i64 @realloc(ptr noundef %38, i64 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %7, align 8
%42 = load i64, ptr %11, align 8
%43 = load i64, ptr %14, align 8
%44 = add i64 %43, %42
store i64 %44, ptr %14, align 8
%45 = load ptr, ptr %7, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %51
47: ; preds = %37
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %48)
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %37
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %13, align 8
%54 = getelementptr inbounds i8, ptr %52, i64 %53
%55 = load i64, ptr %11, align 8
%56 = load ptr, ptr %8, align 8
%57 = call i64 @fread(ptr noundef %54, i32 noundef 1, i64 noundef %55, ptr noundef %56)
store i64 %57, ptr %12, align 8
%58 = load i64, ptr %13, align 8
%59 = trunc i64 %58 to i32
store i32 %59, ptr %9, align 4
br label %60
60: ; preds = %79, %51
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = load i64, ptr %12, align 8
%64 = load i64, ptr %13, align 8
%65 = add i64 %63, %64
%66 = icmp ult i64 %62, %65
br i1 %66, label %67, label %82
67: ; preds = %60
%68 = load ptr, ptr %7, align 8
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 10
br i1 %74, label %75, label %78
75: ; preds = %67
store i32 0, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
store i64 %77, ptr %13, align 8
br label %82
78: ; preds = %67
br label %79
79: ; preds = %78
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %9, align 4
br label %60, !llvm.loop !6
82: ; preds = %75, %60
%83 = load i32, ptr %10, align 4
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %89
85: ; preds = %82
%86 = load i64, ptr %12, align 8
%87 = load i64, ptr %13, align 8
%88 = add i64 %87, %86
store i64 %88, ptr %13, align 8
br label %89
89: ; preds = %85, %82
br label %90
90: ; preds = %89
%91 = load i32, ptr %10, align 4
%92 = icmp ne i32 %91, 0
br i1 %92, label %37, label %93, !llvm.loop !8
93: ; preds = %90
%94 = load ptr, ptr %7, align 8
%95 = load i64, ptr %13, align 8
%96 = getelementptr inbounds i8, ptr %94, i64 %95
store i8 0, ptr %96, align 1
%97 = load ptr, ptr %7, align 8
%98 = call i32 @printf(ptr noundef @.str.4, ptr noundef %97)
%99 = load ptr, ptr %7, align 8
%100 = call i32 @free(ptr noundef %99)
%101 = load ptr, ptr %8, align 8
%102 = call i32 @fclose(ptr noundef %101)
%103 = call i32 @puts(ptr noundef @.str.5)
ret i32 0
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr 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" }
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/tmp8uc_8n7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Error - wrong number of argumets\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Can't open input file \0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [27 x i8] c"Reading allocating memory\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"Done ;)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str, i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
store ptr null, ptr %7, align 8
%25 = load ptr, ptr %6, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.1)
store ptr %26, ptr %8, align 8
store i32 1, ptr %10, align 4
%27 = load ptr, ptr %8, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %21
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %30)
%32 = call i32 @exit(i32 noundef 1) #3
unreachable
33: ; preds = %21
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr @SEEK_SET, align 4
%36 = call i32 @fseek(ptr noundef %34, i32 noundef 0, i32 noundef %35)
store i64 25, ptr %11, align 8
store i64 0, ptr %13, align 8
store i64 1, ptr %14, align 8
br label %37
37: ; preds = %95, %33
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %14, align 8
%40 = call i64 @realloc(ptr noundef %38, i64 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %7, align 8
%42 = load i64, ptr %11, align 8
%43 = load i64, ptr %14, align 8
%44 = add i64 %43, %42
store i64 %44, ptr %14, align 8
%45 = load ptr, ptr %7, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %51
47: ; preds = %37
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %48)
%50 = call i32 @exit(i32 noundef 1) #3
unreachable
51: ; preds = %37
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %13, align 8
%54 = getelementptr inbounds i8, ptr %52, i64 %53
%55 = load i64, ptr %11, align 8
%56 = load ptr, ptr %8, align 8
%57 = call i64 @fread(ptr noundef %54, i32 noundef 1, i64 noundef %55, ptr noundef %56)
store i64 %57, ptr %12, align 8
%58 = load i64, ptr %13, align 8
%59 = trunc i64 %58 to i32
store i32 %59, ptr %9, align 4
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = load i64, ptr %12, align 8
%63 = load i64, ptr %13, align 8
%64 = add i64 %62, %63
%65 = icmp ult i64 %61, %64
br i1 %65, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %51
br label %66
66: ; preds = %.lr.ph, %78
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 10
br i1 %73, label %74, label %77
74: ; preds = %66
store i32 0, ptr %10, align 4
%75 = load i32, ptr %9, align 4
%76 = sext i32 %75 to i64
store i64 %76, ptr %13, align 8
br label %87
77: ; preds = %66
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = sext i32 %81 to i64
%83 = load i64, ptr %12, align 8
%84 = load i64, ptr %13, align 8
%85 = add i64 %83, %84
%86 = icmp ult i64 %82, %85
br i1 %86, label %66, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %78
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %51
br label %87
87: ; preds = %.loopexit, %74
%88 = load i32, ptr %10, align 4
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %87
%91 = load i64, ptr %12, align 8
%92 = load i64, ptr %13, align 8
%93 = add i64 %92, %91
store i64 %93, ptr %13, align 8
br label %94
94: ; preds = %90, %87
br label %95
95: ; preds = %94
%96 = load i32, ptr %10, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %37, label %98, !llvm.loop !8
98: ; preds = %95
%99 = load ptr, ptr %7, align 8
%100 = load i64, ptr %13, align 8
%101 = getelementptr inbounds i8, ptr %99, i64 %100
store i8 0, ptr %101, align 1
%102 = load ptr, ptr %7, align 8
%103 = call i32 @printf(ptr noundef @.str.4, ptr noundef %102)
%104 = load ptr, ptr %7, align 8
%105 = call i32 @free(ptr noundef %104)
%106 = load ptr, ptr %8, align 8
%107 = call i32 @fclose(ptr noundef %106)
%108 = call i32 @puts(ptr noundef @.str.5)
ret i32 0
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr 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" }
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/tmpp8oszej4.c'
source_filename = "/tmp/tmpp8oszej4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Core_ufree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %9
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @GC_free(ptr noundef %7)
br label %9
9: ; preds = %5, %6
ret void
}
declare i32 @GC_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/tmpp8oszej4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Core_ufree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %9
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @GC_free(ptr noundef %7)
br label %9
9: ; preds = %6, %5
ret void
}
declare i32 @GC_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/tmpdcawpg6b.c'
source_filename = "/tmp/tmpdcawpg6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CyBtldr_GetApplicationStatus(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca [512 x i8], align 16
%10 = alloca [512 x i8], align 16
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
store i8 0, ptr %11, align 1
%13 = load i8, ptr %4, align 1
%14 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%15 = call i32 @CyBtldr_CreateGetAppStatusCmd(i8 noundef zeroext %13, ptr noundef %14, ptr noundef %7, ptr noundef %8)
store i32 %15, ptr %12, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp eq i32 0, %16
br i1 %17, label %18, label %24
18: ; preds = %3
%19 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%22 = load i64, ptr %8, align 8
%23 = call i32 @CyBtldr_TransferData(ptr noundef %19, i64 noundef %20, ptr noundef %21, i64 noundef %22)
store i32 %23, ptr %12, align 4
br label %24
24: ; preds = %18, %3
%25 = load i32, ptr %12, align 4
%26 = icmp eq i32 0, %25
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%29 = load i64, ptr %8, align 8
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = call i32 @CyBtldr_ParseGetAppStatusCmdResult(ptr noundef %28, i64 noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %11)
store i32 %32, ptr %12, align 4
br label %33
33: ; preds = %27, %24
%34 = load i32, ptr %12, align 4
%35 = icmp eq i32 0, %34
br i1 %35, label %36, label %45
36: ; preds = %33
%37 = load i8, ptr %11, align 1
%38 = zext i8 %37 to i32
%39 = icmp ne i32 0, %38
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i8, ptr %11, align 1
%42 = zext i8 %41 to i32
%43 = or i32 %42, 16384
store i32 %43, ptr %12, align 4
br label %44
44: ; preds = %40, %36
br label %45
45: ; preds = %44, %33
%46 = load i32, ptr %12, align 4
ret i32 %46
}
declare i32 @CyBtldr_CreateGetAppStatusCmd(i8 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CyBtldr_TransferData(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @CyBtldr_ParseGetAppStatusCmdResult(ptr noundef, i64 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/tmpdcawpg6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CyBtldr_GetApplicationStatus(i8 noundef zeroext %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca [512 x i8], align 16
%10 = alloca [512 x i8], align 16
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
store i8 0, ptr %11, align 1
%13 = load i8, ptr %4, align 1
%14 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%15 = call i32 @CyBtldr_CreateGetAppStatusCmd(i8 noundef zeroext %13, ptr noundef %14, ptr noundef %7, ptr noundef %8)
store i32 %15, ptr %12, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp eq i32 0, %16
br i1 %17, label %18, label %24
18: ; preds = %3
%19 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%22 = load i64, ptr %8, align 8
%23 = call i32 @CyBtldr_TransferData(ptr noundef %19, i64 noundef %20, ptr noundef %21, i64 noundef %22)
store i32 %23, ptr %12, align 4
br label %24
24: ; preds = %18, %3
%25 = load i32, ptr %12, align 4
%26 = icmp eq i32 0, %25
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = getelementptr inbounds [512 x i8], ptr %10, i64 0, i64 0
%29 = load i64, ptr %8, align 8
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = call i32 @CyBtldr_ParseGetAppStatusCmdResult(ptr noundef %28, i64 noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %11)
store i32 %32, ptr %12, align 4
br label %33
33: ; preds = %27, %24
%34 = load i32, ptr %12, align 4
%35 = icmp eq i32 0, %34
br i1 %35, label %36, label %45
36: ; preds = %33
%37 = load i8, ptr %11, align 1
%38 = zext i8 %37 to i32
%39 = icmp ne i32 0, %38
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i8, ptr %11, align 1
%42 = zext i8 %41 to i32
%43 = or i32 %42, 16384
store i32 %43, ptr %12, align 4
br label %44
44: ; preds = %40, %36
br label %45
45: ; preds = %44, %33
%46 = load i32, ptr %12, align 4
ret i32 %46
}
declare i32 @CyBtldr_CreateGetAppStatusCmd(i8 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CyBtldr_TransferData(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1
declare i32 @CyBtldr_ParseGetAppStatusCmdResult(ptr noundef, i64 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/tmp7mcjkcb5.c'
source_filename = "/tmp/tmp7mcjkcb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0x15\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x15() #0 {
%1 = call i64 @isgraph(i32 noundef 21)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 110, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmp7mcjkcb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0x15\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x15() #0 {
%1 = call i64 @isgraph(i32 noundef 21)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 110, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmpehncbezf.c'
source_filename = "/tmp/tmpehncbezf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean_args(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %127
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call ptr @removetrailingspace(ptr noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = call i64 @len(ptr noundef %13)
%15 = add nsw i64 %14, 1
%16 = call ptr @my_malloc(ptr noundef %12, i64 noundef %15)
store ptr %16, ptr %4, align 8
br label %17
17: ; preds = %120, %9
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%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 %121
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 32
br i1 %32, label %41, label %33
33: ; preds = %25
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 9
br i1 %40, label %41, label %71
41: ; preds = %33, %25
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %42, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 32
br i1 %49, label %50, label %71
50: ; preds = %41
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 9
br i1 %58, label %59, label %71
59: ; preds = %50
%60 = load ptr, ptr %3, align 8
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = load i8, ptr %63, align 1
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %5, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
store i8 %64, ptr %68, align 1
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4
br label %120
71: ; preds = %50, %41, %33
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 32
br i1 %78, label %79, label %99
79: ; preds = %71
%80 = load ptr, ptr %3, align 8
%81 = load i32, ptr %5, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp ne i32 %85, 9
br i1 %86, label %87, label %99
87: ; preds = %79
%88 = load ptr, ptr %3, align 8
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %88, i64 %90
%92 = load i8, ptr %91, align 1
%93 = load ptr, ptr %4, align 8
%94 = load i32, ptr %5, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
store i8 %92, ptr %96, align 1
%97 = load i32, ptr %5, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %5, align 4
br label %119
99: ; preds = %79, %71
%100 = load ptr, ptr %3, align 8
%101 = load i32, ptr %5, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 32
br i1 %106, label %115, label %107
107: ; preds = %99
%108 = load ptr, ptr %3, align 8
%109 = load i32, ptr %5, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 9
br i1 %114, label %115, label %118
115: ; preds = %107, %99
%116 = load ptr, ptr %3, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %3, align 8
br label %118
118: ; preds = %115, %107
br label %119
119: ; preds = %118, %87
br label %120
120: ; preds = %119, %59
br label %17, !llvm.loop !6
121: ; preds = %17
%122 = load ptr, ptr %4, align 8
%123 = load i32, ptr %5, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, ptr %122, i64 %124
store i8 0, ptr %125, align 1
%126 = load ptr, ptr %4, align 8
store ptr %126, ptr %2, align 8
br label %127
127: ; preds = %121, %8
%128 = load ptr, ptr %2, align 8
ret ptr %128
}
declare ptr @removetrailingspace(ptr noundef) #1
declare ptr @my_malloc(ptr noundef, i64 noundef) #1
declare i64 @len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpehncbezf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean_args(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %133
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call ptr @removetrailingspace(ptr noundef %10)
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = call i64 @len(ptr noundef %13)
%15 = add nsw i64 %14, 1
%16 = call ptr @my_malloc(ptr noundef %12, i64 noundef %15)
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%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 %127
.lr.ph: ; preds = %9
br label %24
24: ; preds = %.lr.ph, %119
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 32
br i1 %31, label %40, label %32
32: ; preds = %24
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %70
40: ; preds = %32, %24
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %41, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 32
br i1 %48, label %49, label %70
49: ; preds = %40
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 9
br i1 %57, label %58, label %70
58: ; preds = %49
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = load ptr, ptr %4, align 8
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 %63, ptr %67, align 1
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %5, align 4
br label %119
70: ; preds = %49, %40, %32
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %76, 32
br i1 %77, label %78, label %98
78: ; preds = %70
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %5, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 9
br i1 %85, label %86, label %98
86: ; preds = %78
%87 = load ptr, ptr %3, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %4, align 8
%93 = load i32, ptr %5, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
store i8 %91, ptr %95, align 1
%96 = load i32, ptr %5, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %5, align 4
br label %118
98: ; preds = %78, %70
%99 = load ptr, ptr %3, align 8
%100 = load i32, ptr %5, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %99, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 32
br i1 %105, label %114, label %106
106: ; preds = %98
%107 = load ptr, ptr %3, align 8
%108 = load i32, ptr %5, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
%111 = load i8, ptr %110, align 1
%112 = sext i8 %111 to i32
%113 = icmp eq i32 %112, 9
br i1 %113, label %114, label %117
114: ; preds = %106, %98
%115 = load ptr, ptr %3, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %3, align 8
br label %117
117: ; preds = %114, %106
br label %118
118: ; preds = %117, %86
br label %119
119: ; preds = %118, %58
%120 = load ptr, ptr %3, align 8
%121 = load i32, ptr %5, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = icmp ne i32 %125, 0
br i1 %126, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %119
br label %127
127: ; preds = %._crit_edge, %9
%128 = load ptr, ptr %4, align 8
%129 = load i32, ptr %5, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
store i8 0, ptr %131, align 1
%132 = load ptr, ptr %4, align 8
store ptr %132, ptr %2, align 8
br label %133
133: ; preds = %127, %8
%134 = load ptr, ptr %2, align 8
ret ptr %134
}
declare ptr @removetrailingspace(ptr noundef) #1
declare ptr @my_malloc(ptr noundef, i64 noundef) #1
declare i64 @len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpn9rgl7oa.c'
source_filename = "/tmp/tmpn9rgl7oa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"0\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%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
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %14
14: ; preds = %121, %0
%15 = load i32, ptr %2, align 4
%16 = icmp sge i32 %15, 1
br i1 %16, label %17, label %125
17: ; preds = %14
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%19 = load i32, ptr %5, align 4
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %10, align 8
%22 = alloca i32, i64 %20, align 16
store i64 %20, ptr %11, align 8
%23 = load i32, ptr %5, align 4
%24 = zext i32 %23 to i64
%25 = alloca i32, i64 %24, align 16
store i64 %24, ptr %12, align 8
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %41, %17
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %44
30: ; preds = %26
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %22, i64 %32
%34 = call i32 @scanf(ptr noundef @.str, ptr noundef %33)
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %22, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, %38
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %30
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %3, align 4
br label %26, !llvm.loop !6
44: ; preds = %26
%45 = load i32, ptr %6, align 4
%46 = load i32, ptr %5, align 4
%47 = sdiv i32 %45, %46
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %5, align 4
%50 = srem i32 %48, %49
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %78
52: ; preds = %44
store i32 0, ptr %3, align 4
br label %53
53: ; preds = %74, %52
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %77
57: ; preds = %53
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %22, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp eq i32 %58, %62
br i1 %63, label %64, label %73
64: ; preds = %57
%65 = load i32, ptr %8, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %8, align 4
%67 = load i32, ptr %3, align 4
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %25, i64 %69
store i32 %67, ptr %70, align 4
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
br label %73
73: ; preds = %64, %57
br label %74
74: ; preds = %73
%75 = load i32, ptr %3, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %3, align 4
br label %53, !llvm.loop !8
77: ; preds = %53
br label %80
78: ; preds = %44
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %9, align 4
br label %80
80: ; preds = %78, %77
%81 = load i32, ptr %8, align 4
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %88
83: ; preds = %80
%84 = load i32, ptr %9, align 4
%85 = icmp ne i32 %84, 1
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %121
88: ; preds = %83, %80
%89 = load i32, ptr %8, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %120
91: ; preds = %88
%92 = load i32, ptr %9, align 4
%93 = icmp ne i32 %92, 1
br i1 %93, label %94, label %120
94: ; preds = %91
%95 = load i32, ptr %8, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %95)
store i32 0, ptr %3, align 4
br label %97
97: ; preds = %115, %94
%98 = load i32, ptr %3, align 4
%99 = load i32, ptr %4, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %118
101: ; preds = %97
%102 = load i32, ptr %3, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %25, i64 %103
%105 = load i32, ptr %104, align 4
%106 = add nsw i32 %105, 1
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %106)
%108 = load i32, ptr %3, align 4
%109 = load i32, ptr %4, align 4
%110 = sub nsw i32 %109, 1
%111 = icmp slt i32 %108, %110
br i1 %111, label %112, label %114
112: ; preds = %101
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %114
114: ; preds = %112, %101
br label %115
115: ; preds = %114
%116 = load i32, ptr %3, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %3, align 4
br label %97, !llvm.loop !9
118: ; preds = %97
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %120
120: ; preds = %118, %91, %88
br label %121
121: ; preds = %120, %86
%122 = load i32, ptr %2, align 4
%123 = add nsw i32 %122, -1
store i32 %123, ptr %2, align 4
%124 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %124)
br label %14, !llvm.loop !10
125: ; preds = %14
%126 = load i32, ptr %1, align 4
ret i32 %126
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn9rgl7oa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"0\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%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
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 1
br i1 %15, label %.lr.ph8, label %132
.lr.ph8: ; preds = %0
br label %16
16: ; preds = %.lr.ph8, %126
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%18 = load i32, ptr %5, align 4
%19 = zext i32 %18 to i64
%20 = call ptr @llvm.stacksave()
store ptr %20, ptr %10, align 8
%21 = alloca i32, i64 %19, align 16
store i64 %19, ptr %11, align 8
%22 = load i32, ptr %5, align 4
%23 = zext i32 %22 to i64
%24 = alloca i32, i64 %23, align 16
store i64 %23, ptr %12, align 8
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %45
.lr.ph: ; preds = %16
br label %28
28: ; preds = %.lr.ph, %39
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %21, i64 %30
%32 = call i32 @scanf(ptr noundef @.str, ptr noundef %31)
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %21, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, %36
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %28
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %16
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %5, align 4
%48 = sdiv i32 %46, %47
store i32 %48, ptr %7, align 4
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr %5, align 4
%51 = srem i32 %49, %50
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %81
53: ; preds = %45
store i32 0, ptr %3, align 4
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %.lr.ph2, label %80
.lr.ph2: ; preds = %53
br label %57
57: ; preds = %.lr.ph2, %74
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %21, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp eq i32 %58, %62
br i1 %63, label %64, label %73
64: ; preds = %57
%65 = load i32, ptr %8, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %8, align 4
%67 = load i32, ptr %3, align 4
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %24, i64 %69
store i32 %67, ptr %70, align 4
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
br label %73
73: ; preds = %64, %57
br label %74
74: ; preds = %73
%75 = load i32, ptr %3, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %3, align 4
%77 = load i32, ptr %3, align 4
%78 = load i32, ptr %5, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %57, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %74
br label %80
80: ; preds = %._crit_edge3, %53
br label %83
81: ; preds = %45
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %9, align 4
br label %83
83: ; preds = %81, %80
%84 = load i32, ptr %8, align 4
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %83
%87 = load i32, ptr %9, align 4
%88 = icmp ne i32 %87, 1
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %126
91: ; preds = %86, %83
%92 = load i32, ptr %8, align 4
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %125
94: ; preds = %91
%95 = load i32, ptr %9, align 4
%96 = icmp ne i32 %95, 1
br i1 %96, label %97, label %125
97: ; preds = %94
%98 = load i32, ptr %8, align 4
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %98)
store i32 0, ptr %3, align 4
%100 = load i32, ptr %3, align 4
%101 = load i32, ptr %4, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph5, label %123
.lr.ph5: ; preds = %97
br label %103
103: ; preds = %.lr.ph5, %117
%104 = load i32, ptr %3, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %24, i64 %105
%107 = load i32, ptr %106, align 4
%108 = add nsw i32 %107, 1
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %108)
%110 = load i32, ptr %3, align 4
%111 = load i32, ptr %4, align 4
%112 = sub nsw i32 %111, 1
%113 = icmp slt i32 %110, %112
br i1 %113, label %114, label %116
114: ; preds = %103
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %116
116: ; preds = %114, %103
br label %117
117: ; preds = %116
%118 = load i32, ptr %3, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %3, align 4
%120 = load i32, ptr %3, align 4
%121 = load i32, ptr %4, align 4
%122 = icmp slt i32 %120, %121
br i1 %122, label %103, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %117
br label %123
123: ; preds = %._crit_edge6, %97
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %125
125: ; preds = %123, %94, %91
br label %126
126: ; preds = %125, %89
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %127, -1
store i32 %128, ptr %2, align 4
%129 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %129)
%130 = load i32, ptr %2, align 4
%131 = icmp sge i32 %130, 1
br i1 %131, label %16, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %126
br label %132
132: ; preds = %._crit_edge9, %0
%133 = load i32, ptr %1, align 4
ret i32 %133
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpesl72uma.c'
source_filename = "/tmp/tmpesl72uma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mtf_encode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [256 x i32], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %16, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %14
store i32 %12, ptr %15, align 4
br label %16
16: ; preds = %11
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
br label %20
20: ; preds = %58, %19
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fgetc(ptr noundef %21)
store i32 %22, ptr %5, align 4
%23 = load i32, ptr @EOF, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %63
25: ; preds = %20
store i32 0, ptr %6, align 4
br label %26
26: ; preds = %41, %25
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 256
br i1 %28, label %29, label %44
29: ; preds = %26
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %40
36: ; preds = %29
%37 = load i32, ptr %6, align 4
%38 = load ptr, ptr %4, align 8
%39 = call i32 @fputc(i32 noundef %37, ptr noundef %38)
br label %44
40: ; preds = %29
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %26, !llvm.loop !8
44: ; preds = %36, %26
br label %45
45: ; preds = %49, %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %6, align 4
%48 = icmp ne i32 %46, 0
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %56
store i32 %53, ptr %57, align 4
br label %45, !llvm.loop !9
58: ; preds = %45
%59 = load i32, ptr %5, align 4
%60 = trunc i32 %59 to i8
%61 = zext i8 %60 to i32
%62 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 0
store i32 %61, ptr %62, align 16
br label %20, !llvm.loop !10
63: ; preds = %20
ret void
}
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpesl72uma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mtf_encode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [256 x i32], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 256
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %15
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %13
store i32 %11, ptr %14, align 4
br label %15
15: ; preds = %10
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 256
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %2
%21 = load ptr, ptr %3, align 8
%22 = call i32 @fgetc(ptr noundef %21)
store i32 %22, ptr %5, align 4
%23 = load i32, ptr @EOF, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %.lr.ph7, label %70
.lr.ph7: ; preds = %20
br label %25
25: ; preds = %.lr.ph7, %61
store i32 0, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %26, 256
br i1 %27, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %25
br label %28
28: ; preds = %.lr.ph2, %40
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %39
35: ; preds = %28
%36 = load i32, ptr %6, align 4
%37 = load ptr, ptr %4, align 8
%38 = call i32 @fputc(i32 noundef %36, ptr noundef %37)
br label %45
39: ; preds = %28
br label %40
40: ; preds = %39
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %43, 256
br i1 %44, label %28, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %40
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %25
br label %45
45: ; preds = %.loopexit, %35
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %6, align 4
%48 = icmp ne i32 %46, 0
br i1 %48, label %.lr.ph4, label %61
.lr.ph4: ; preds = %45
br label %49
49: ; preds = %.lr.ph4, %49
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %56
store i32 %53, ptr %57, align 4
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %6, align 4
%60 = icmp ne i32 %58, 0
br i1 %60, label %49, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %49
br label %61
61: ; preds = %._crit_edge5, %45
%62 = load i32, ptr %5, align 4
%63 = trunc i32 %62 to i8
%64 = zext i8 %63 to i32
%65 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 0
store i32 %64, ptr %65, align 16
%66 = load ptr, ptr %3, align 8
%67 = call i32 @fgetc(ptr noundef %66)
store i32 %67, ptr %5, align 4
%68 = load i32, ptr @EOF, align 4
%69 = icmp ne i32 %67, %68
br i1 %69, label %25, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %61
br label %70
70: ; preds = %._crit_edge8, %20
ret void
}
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpuet6uhdy.c'
source_filename = "/tmp/tmpuet6uhdy.c"
target datalayout = "e-m:e-p270: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/tmpuet6uhdy.c"
target datalayout = "e-m:e-p270: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/tmp1r2pga_g.c'
source_filename = "/tmp/tmp1r2pga_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [100 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 8, ptr %7, align 4
br label %10
10: ; preds = %36, %2
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %4, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %37
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%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 %26
22: ; preds = %14
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %8, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %6, align 4
br label %36
26: ; preds = %14
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 43
br i1 %30, label %31, label %35
31: ; preds = %26
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %8, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %7, align 4
br label %35
35: ; preds = %31, %26
br label %36
36: ; preds = %35, %22
br label %10, !llvm.loop !6
37: ; preds = %10
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %7, align 4
%40 = getelementptr inbounds [100 x i32], ptr %9, i64 0, i64 0
%41 = call i32 @settab(i32 noundef %38, i32 noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [100 x i32], ptr %9, i64 0, i64 0
%43 = call i32 @entab(ptr noundef %42)
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare i32 @atoi(ptr noundef) #1
declare i32 @settab(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @entab(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1r2pga_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [100 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 8, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %4, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %.lr.ph, label %39
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %35
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i32 1
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 45
br i1 %20, label %21, label %25
21: ; preds = %13
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %8, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %6, align 4
br label %35
25: ; preds = %13
%26 = load ptr, ptr %8, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 43
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %8, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %30, %25
br label %35
35: ; preds = %34, %21
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %4, align 4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %39
39: ; preds = %._crit_edge, %2
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %7, align 4
%42 = getelementptr inbounds [100 x i32], ptr %9, i64 0, i64 0
%43 = call i32 @settab(i32 noundef %40, i32 noundef %41, ptr noundef %42)
%44 = getelementptr inbounds [100 x i32], ptr %9, i64 0, i64 0
%45 = call i32 @entab(ptr noundef %44)
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @atoi(ptr noundef) #1
declare i32 @settab(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @entab(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3wqgpzv0.c'
source_filename = "/tmp/tmp3wqgpzv0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"About to run who into a file\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"userlist\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"who\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"Done running who. results in userlist\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @fork()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
%9 = load i32, ptr @EXIT_FAILURE, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = call i32 @close(i32 noundef 1)
%16 = load i32, ptr @O_CREAT, align 4
%17 = load i32, ptr @O_WRONLY, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @O_APPEND, align 4
%20 = or i32 %18, %19
%21 = call i32 @open(ptr noundef @.str.2, i32 noundef %20, i32 noundef 420)
%22 = call i32 @execlp(ptr noundef @.str.3, ptr noundef @.str.3, ptr noundef null)
br label %23
23: ; preds = %14, %11
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 @wait(ptr noundef null)
%28 = call i32 @printf(ptr noundef @.str.4)
br label %29
29: ; preds = %26, %23
%30 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp3wqgpzv0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"About to run who into a file\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"userlist\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [4 x i8] c"who\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"Done running who. results in userlist\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 (...) @fork()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
%9 = load i32, ptr @EXIT_FAILURE, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = call i32 @close(i32 noundef 1)
%16 = load i32, ptr @O_CREAT, align 4
%17 = load i32, ptr @O_WRONLY, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @O_APPEND, align 4
%20 = or i32 %18, %19
%21 = call i32 @open(ptr noundef @.str.2, i32 noundef %20, i32 noundef 420)
%22 = call i32 @execlp(ptr noundef @.str.3, ptr noundef @.str.3, ptr noundef null)
br label %23
23: ; preds = %14, %11
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 @wait(ptr noundef null)
%28 = call i32 @printf(ptr noundef @.str.4)
br label %29
29: ; preds = %26, %23
%30 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpurt7zzec.c'
source_filename = "/tmp/tmpurt7zzec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"open %s error\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_file(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18)
store i32 -1, ptr %4, align 4
br label %50
20: ; preds = %3
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
br label %21
21: ; preds = %39, %20
%22 = load i32, ptr %11, align 4
%23 = icmp slt i32 %22, 1023
br i1 %23, label %24, label %42
24: ; preds = %21
%25 = load ptr, ptr %8, align 8
%26 = call i32 @fgetc(ptr noundef %25)
store i32 %26, ptr %10, align 4
%27 = load i32, ptr @EOF, align 4
%28 = load i32, ptr %10, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %31
30: ; preds = %24
br label %42
31: ; preds = %24
%32 = load i32, ptr %10, align 4
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %33, ptr %38, align 1
br label %39
39: ; preds = %31
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %11, align 4
br label %21, !llvm.loop !6
42: ; preds = %30, %21
%43 = load ptr, ptr %8, align 8
%44 = call i32 @fclose(ptr noundef %43)
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
store i8 0, ptr %48, align 1
%49 = load i32, ptr %9, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %42, %16
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fgetc(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/tmpurt7zzec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"open %s error\0A\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_file(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%12 = load ptr, ptr %5, align 8
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr null, %14
br i1 %15, label %16, label %20
16: ; preds = %3
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18)
store i32 -1, ptr %4, align 4
br label %51
20: ; preds = %3
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %21, 1023
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %38
%24 = load ptr, ptr %8, align 8
%25 = call i32 @fgetc(ptr noundef %24)
store i32 %25, ptr %10, align 4
%26 = load i32, ptr @EOF, align 4
%27 = load i32, ptr %10, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %23
br label %43
30: ; preds = %23
%31 = load i32, ptr %10, align 4
%32 = trunc i32 %31 to i8
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
%36 = sext i32 %34 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
store i8 %32, ptr %37, align 1
br label %38
38: ; preds = %30
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = icmp slt i32 %41, 1023
br i1 %42, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %38
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %43
43: ; preds = %.loopexit, %29
%44 = load ptr, ptr %8, align 8
%45 = call i32 @fclose(ptr noundef %44)
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 0, ptr %49, align 1
%50 = load i32, ptr %9, align 4
store i32 %50, ptr %4, align 4
br label %51
51: ; preds = %43, %16
%52 = load i32, ptr %4, align 4
ret i32 %52
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fgetc(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/tmpw4en09kf.c'
source_filename = "/tmp/tmpw4en09kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fprintf_hd(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 ptr, align 8
%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 %5, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %35, %3
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %38
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str, i32 noundef %21)
%23 = load i32, ptr %8, align 4
%24 = srem i32 %23, 4
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %34
26: ; preds = %14
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = sub nsw i32 %28, 1
%30 = icmp slt i32 %27, %29
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
%33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.1)
br label %34
34: ; preds = %31, %26, %14
br label %35
35: ; preds = %34
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4
br label %10, !llvm.loop !6
38: ; preds = %10
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw4en09kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fprintf_hd(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 ptr, align 8
%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 %5, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %40
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %34
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str, i32 noundef %20)
%22 = load i32, ptr %8, align 4
%23 = srem i32 %22, 4
%24 = icmp eq i32 %23, 3
br i1 %24, label %25, label %33
25: ; preds = %13
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %6, align 4
%28 = sub nsw i32 %27, 1
%29 = icmp slt i32 %26, %28
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load ptr, ptr %4, align 8
%32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.1)
br label %33
33: ; preds = %30, %25, %13
br label %34
34: ; preds = %33
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %3
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfwqp731c.c'
source_filename = "/tmp/tmpfwqp731c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_dupl_left(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 1
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @strncpy(ptr noundef %9, ptr noundef %10, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %5, align 8
ret ptr %17
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(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/tmpfwqp731c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_dupl_left(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 1
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %4, align 4
%12 = call i32 @strncpy(ptr noundef %9, ptr noundef %10, i32 noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %5, align 8
ret ptr %17
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(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/tmpkazylrqu.c'
source_filename = "/tmp/tmpkazylrqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"prueba.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"\0AError de apertura del archivo. \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"\0AEl contenido del archivo de prueba es \0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %22
9: ; preds = %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %11
11: ; preds = %15, %9
%12 = load ptr, ptr %2, align 8
%13 = call i64 @feof(ptr noundef %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = load ptr, ptr %2, align 8
%17 = call signext i8 @fgetc(ptr noundef %16)
store i8 %17, ptr %3, align 1
%18 = load i8, ptr %3, align 1
%19 = sext i8 %18 to i32
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %19)
br label %11, !llvm.loop !6
21: ; preds = %11
br label %22
22: ; preds = %21, %7
%23 = load ptr, ptr %2, align 8
%24 = call i32 @fclose(ptr noundef %23)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @feof(ptr noundef) #1
declare signext i8 @fgetc(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/tmpkazylrqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"prueba.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"\0AError de apertura del archivo. \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"\0AEl contenido del archivo de prueba es \0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %24
9: ; preds = %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = load ptr, ptr %2, align 8
%12 = call i64 @feof(ptr noundef %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %.lr.ph, label %23
.lr.ph: ; preds = %9
br label %14
14: ; preds = %.lr.ph, %14
%15 = load ptr, ptr %2, align 8
%16 = call signext i8 @fgetc(ptr noundef %15)
store i8 %16, ptr %3, align 1
%17 = load i8, ptr %3, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call i64 @feof(ptr noundef %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %9
br label %24
24: ; preds = %23, %7
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fclose(ptr noundef %25)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @feof(ptr noundef) #1
declare signext i8 @fgetc(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/tmpt54psc_3.c'
source_filename = "/tmp/tmpt54psc_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %4, align 4
br label %8
8: ; preds = %14, %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %16, align 8
%19 = load i8, ptr %17, align 1
%20 = call i32 @ft_putchar(i8 noundef signext %19)
br label %8, !llvm.loop !6
21: ; preds = %8
%22 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt54psc_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, -1
store i32 %7, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %8, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %14, align 8
%17 = load i8, ptr %15, align 1
%18 = call i32 @ft_putchar(i8 noundef signext %17)
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %24
24: ; preds = %._crit_edge, %2
%25 = call i32 @ft_putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsud_8z5o.c'
source_filename = "/tmp/tmpsud_8z5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matExtract2Df(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [128 x double], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = getelementptr inbounds [128 x double], ptr %11, i64 0, i64 0
%16 = call i32 @matExtract2D(ptr noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %40
19: ; preds = %4
store i32 0, ptr %10, align 4
br label %20
20: ; preds = %36, %19
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = mul nsw i32 %22, %23
%25 = icmp slt i32 %21, %24
br i1 %25, label %26, label %39
26: ; preds = %20
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [128 x double], ptr %11, i64 0, i64 %28
%30 = load double, ptr %29, align 8
%31 = fptrunc double %30 to float
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr %10, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds float, ptr %32, i64 %34
store float %31, ptr %35, align 4
br label %36
36: ; preds = %26
%37 = load i32, ptr %10, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %10, align 4
br label %20, !llvm.loop !6
39: ; preds = %20
store i32 0, ptr %5, align 4
br label %40
40: ; preds = %39, %18
%41 = load i32, ptr %5, align 4
ret i32 %41
}
declare i32 @matExtract2D(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsud_8z5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matExtract2Df(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [128 x double], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%12 = load ptr, ptr %6, align 8
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = getelementptr inbounds [128 x double], ptr %11, i64 0, i64 0
%16 = call i32 @matExtract2D(ptr noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %4
store i32 -1, ptr %5, align 4
br label %44
19: ; preds = %4
store i32 0, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %8, align 4
%23 = mul nsw i32 %21, %22
%24 = icmp slt i32 %20, %23
br i1 %24, label %.lr.ph, label %43
.lr.ph: ; preds = %19
br label %25
25: ; preds = %.lr.ph, %35
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [128 x double], ptr %11, i64 0, i64 %27
%29 = load double, ptr %28, align 8
%30 = fptrunc double %29 to float
%31 = load ptr, ptr %9, align 8
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds float, ptr %31, i64 %33
store float %30, ptr %34, align 4
br label %35
35: ; preds = %25
%36 = load i32, ptr %10, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %10, align 4
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %8, align 4
%41 = mul nsw i32 %39, %40
%42 = icmp slt i32 %38, %41
br i1 %42, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %43
43: ; preds = %._crit_edge, %19
store i32 0, ptr %5, align 4
br label %44
44: ; preds = %43, %18
%45 = load i32, ptr %5, align 4
ret i32 %45
}
declare i32 @matExtract2D(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpur80x7aj.c'
source_filename = "/tmp/tmpur80x7aj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Ceiling(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @ceil(double noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @ceil(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpur80x7aj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Ceiling(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @ceil(double noundef %3)
%5 = trunc i64 %4 to i32
ret i32 %5
}
declare i64 @ceil(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4sj47xe2.c'
source_filename = "/tmp/tmp4sj47xe2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00], align 16
@.str = private unnamed_addr constant [11 x i8] c"mean: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 64, i1 false)
store i32 4, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [8 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dmeankbn2(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @stdlib_strided_dmeankbn2(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4sj47xe2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00], align 16
@.str = private unnamed_addr constant [11 x i8] c"mean: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x double], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 64, i1 false)
store i32 4, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [8 x double], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dmeankbn2(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @stdlib_strided_dmeankbn2(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqjids_1u.c'
source_filename = "/tmp/tmpqjids_1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %13, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = call i32 (...) @f_1x()
store i32 %12, ptr %7, align 4
br label %13
13: ; preds = %11
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
br label %8, !llvm.loop !6
16: ; preds = %8
store i32 0, ptr %6, align 4
br label %17
17: ; preds = %22, %16
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = call i32 (...) @f_2x()
store i32 %21, ptr %7, align 4
br label %22
22: ; preds = %20
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %17, !llvm.loop !8
25: ; preds = %17
store i32 0, ptr %6, align 4
br label %26
26: ; preds = %31, %25
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = call i32 (...) @f_3x()
store i32 %30, ptr %7, align 4
br label %31
31: ; preds = %29
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %26, !llvm.loop !9
34: ; preds = %26
store i32 0, ptr %6, align 4
br label %35
35: ; preds = %40, %34
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %36, 103
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = call i32 (...) @f_103x()
store i32 %39, ptr %7, align 4
br label %40
40: ; preds = %38
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
br label %35, !llvm.loop !10
43: ; preds = %35
store i32 0, ptr %6, align 4
br label %44
44: ; preds = %49, %43
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 997
br i1 %46, label %47, label %52
47: ; preds = %44
%48 = call i32 (...) @f_997x()
store i32 %48, ptr %7, align 4
br label %49
49: ; preds = %47
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
br label %44, !llvm.loop !11
52: ; preds = %44
store i32 0, ptr %6, align 4
br label %53
53: ; preds = %58, %52
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %54, 65535
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = call i32 (...) @f_65535x()
store i32 %57, ptr %7, align 4
br label %58
58: ; preds = %56
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %53, !llvm.loop !12
61: ; preds = %53
ret i32 0
}
declare i32 @f_1x(...) #1
declare i32 @f_2x(...) #1
declare i32 @f_3x(...) #1
declare i32 @f_103x(...) #1
declare i32 @f_997x(...) #1
declare i32 @f_65535x(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqjids_1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 1
br i1 %9, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %12
%11 = call i32 (...) @f_1x()
store i32 %11, ptr %7, align 4
br label %12
12: ; preds = %10
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 1
br i1 %16, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %2
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %.lr.ph2, label %27
.lr.ph2: ; preds = %17
br label %20
20: ; preds = %.lr.ph2, %22
%21 = call i32 (...) @f_2x()
store i32 %21, ptr %7, align 4
br label %22
22: ; preds = %20
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 2
br i1 %26, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %22
br label %27
27: ; preds = %._crit_edge3, %17
store i32 0, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %28, 3
br i1 %29, label %.lr.ph5, label %37
.lr.ph5: ; preds = %27
br label %30
30: ; preds = %.lr.ph5, %32
%31 = call i32 (...) @f_3x()
store i32 %31, ptr %7, align 4
br label %32
32: ; preds = %30
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %35, 3
br i1 %36, label %30, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %32
br label %37
37: ; preds = %._crit_edge6, %27
store i32 0, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %38, 103
br i1 %39, label %.lr.ph8, label %47
.lr.ph8: ; preds = %37
br label %40
40: ; preds = %.lr.ph8, %42
%41 = call i32 (...) @f_103x()
store i32 %41, ptr %7, align 4
br label %42
42: ; preds = %40
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 103
br i1 %46, label %40, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %42
br label %47
47: ; preds = %._crit_edge9, %37
store i32 0, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %48, 997
br i1 %49, label %.lr.ph11, label %57
.lr.ph11: ; preds = %47
br label %50
50: ; preds = %.lr.ph11, %52
%51 = call i32 (...) @f_997x()
store i32 %51, ptr %7, align 4
br label %52
52: ; preds = %50
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %55, 997
br i1 %56, label %50, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %52
br label %57
57: ; preds = %._crit_edge12, %47
store i32 0, ptr %6, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp slt i32 %58, 65535
br i1 %59, label %.lr.ph14, label %67
.lr.ph14: ; preds = %57
br label %60
60: ; preds = %.lr.ph14, %62
%61 = call i32 (...) @f_65535x()
store i32 %61, ptr %7, align 4
br label %62
62: ; preds = %60
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = load i32, ptr %6, align 4
%66 = icmp slt i32 %65, 65535
br i1 %66, label %60, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %62
br label %67
67: ; preds = %._crit_edge15, %57
ret i32 0
}
declare i32 @f_1x(...) #1
declare i32 @f_2x(...) #1
declare i32 @f_3x(...) #1
declare i32 @f_103x(...) #1
declare i32 @f_997x(...) #1
declare i32 @f_65535x(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpbljpsecr.c'
source_filename = "/tmp/tmpbljpsecr.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"bad argument super(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @super(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sle i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
store i32 1, ptr %5, align 4
store i64 2, ptr %4, align 8
br label %14
14: ; preds = %20, %13
%15 = load i64, ptr %4, align 8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = icmp slt i64 %15, %18
br i1 %19, label %20, label %25
20: ; preds = %14
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i64, ptr %4, align 8
%24 = mul nsw i64 %23, 2
store i64 %24, ptr %4, align 8
br label %14, !llvm.loop !6
25: ; preds = %14
%26 = load i64, ptr %4, align 8
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = icmp eq i64 %26, %29
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = load i64, ptr %4, align 8
%33 = sdiv i64 %32, 2
store i64 %33, ptr %2, align 8
br label %43
34: ; preds = %25
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = load i64, ptr %4, align 8
%38 = sdiv i64 %37, 2
%39 = sub nsw i64 %36, %38
%40 = add nsw i64 %39, 1
%41 = trunc i64 %40 to i32
%42 = call i64 @super(i32 noundef %41)
store i64 %42, ptr %2, align 8
br label %43
43: ; preds = %34, %31
%44 = load i64, ptr %2, align 8
ret i64 %44
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbljpsecr.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"bad argument super(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @super(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sle i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
store i32 1, ptr %5, align 4
store i64 2, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = icmp slt i64 %14, %17
br i1 %18, label %.lr.ph, label %29
.lr.ph: ; preds = %13
br label %19
19: ; preds = %.lr.ph, %19
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i64, ptr %4, align 8
%23 = mul nsw i64 %22, 2
store i64 %23, ptr %4, align 8
%24 = load i64, ptr %4, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %24, %27
br i1 %28, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %29
29: ; preds = %._crit_edge, %13
%30 = load i64, ptr %4, align 8
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = icmp eq i64 %30, %33
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = load i64, ptr %4, align 8
%37 = sdiv i64 %36, 2
store i64 %37, ptr %2, align 8
br label %47
38: ; preds = %29
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = load i64, ptr %4, align 8
%42 = sdiv i64 %41, 2
%43 = sub nsw i64 %40, %42
%44 = add nsw i64 %43, 1
%45 = trunc i64 %44 to i32
%46 = call i64 @super(i32 noundef %45)
store i64 %46, ptr %2, align 8
br label %47
47: ; preds = %38, %35
%48 = load i64, ptr %2, align 8
ret i64 %48
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpm3dagfvg.c'
source_filename = "/tmp/tmpm3dagfvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prng_get.seed = internal global i32 170, align 4
@prng_get.a = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prng_get() #0 {
%1 = load i32, ptr @prng_get.seed, align 4
%2 = shl i32 %1, 3
%3 = load i32, ptr @prng_get.seed, align 4
%4 = xor i32 %3, %2
store i32 %4, ptr @prng_get.seed, align 4
%5 = load i32, ptr @prng_get.seed, align 4
%6 = ashr i32 %5, 5
%7 = load i32, ptr @prng_get.seed, align 4
%8 = xor i32 %7, %6
store i32 %8, ptr @prng_get.seed, align 4
%9 = load i32, ptr @prng_get.a, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr @prng_get.a, align 4
%11 = ashr i32 %9, 2
%12 = load i32, ptr @prng_get.seed, align 4
%13 = xor i32 %12, %11
store i32 %13, ptr @prng_get.seed, align 4
%14 = load i32, ptr @prng_get.seed, align 4
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm3dagfvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prng_get.seed = internal global i32 170, align 4
@prng_get.a = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prng_get() #0 {
%1 = load i32, ptr @prng_get.seed, align 4
%2 = shl i32 %1, 3
%3 = load i32, ptr @prng_get.seed, align 4
%4 = xor i32 %3, %2
store i32 %4, ptr @prng_get.seed, align 4
%5 = load i32, ptr @prng_get.seed, align 4
%6 = ashr i32 %5, 5
%7 = load i32, ptr @prng_get.seed, align 4
%8 = xor i32 %7, %6
store i32 %8, ptr @prng_get.seed, align 4
%9 = load i32, ptr @prng_get.a, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr @prng_get.a, align 4
%11 = ashr i32 %9, 2
%12 = load i32, ptr @prng_get.seed, align 4
%13 = xor i32 %12, %11
store i32 %13, ptr @prng_get.seed, align 4
%14 = load i32, ptr @prng_get.seed, align 4
ret i32 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeaznqfqd.c'
source_filename = "/tmp/tmpeaznqfqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_fast_realloc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp ult i32 %8, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
store ptr %13, ptr %4, align 8
br label %41
14: ; preds = %3
%15 = load i32, ptr %7, align 4
%16 = mul i32 17, %15
%17 = udiv i32 %16, 16
%18 = add i32 %17, 32
%19 = load i32, ptr %7, align 4
%20 = icmp ugt i32 %18, %19
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = mul i32 17, %22
%24 = udiv i32 %23, 16
%25 = add i32 %24, 32
br label %28
26: ; preds = %14
%27 = load i32, ptr %7, align 4
br label %28
28: ; preds = %26, %21
%29 = phi i32 [ %25, %21 ], [ %27, %26 ]
%30 = load ptr, ptr %6, align 8
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %32, align 4
%34 = call ptr @av_realloc(ptr noundef %31, i32 noundef %33)
store ptr %34, ptr %5, align 8
%35 = load ptr, ptr %5, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %39, label %37
37: ; preds = %28
%38 = load ptr, ptr %6, align 8
store i32 0, ptr %38, align 4
br label %39
39: ; preds = %37, %28
%40 = load ptr, ptr %5, align 8
store ptr %40, ptr %4, align 8
br label %41
41: ; preds = %39, %12
%42 = load ptr, ptr %4, align 8
ret ptr %42
}
declare ptr @av_realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeaznqfqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_fast_realloc(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp ult i32 %8, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
store ptr %13, ptr %4, align 8
br label %41
14: ; preds = %3
%15 = load i32, ptr %7, align 4
%16 = mul i32 17, %15
%17 = udiv i32 %16, 16
%18 = add i32 %17, 32
%19 = load i32, ptr %7, align 4
%20 = icmp ugt i32 %18, %19
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = mul i32 17, %22
%24 = udiv i32 %23, 16
%25 = add i32 %24, 32
br label %28
26: ; preds = %14
%27 = load i32, ptr %7, align 4
br label %28
28: ; preds = %26, %21
%29 = phi i32 [ %25, %21 ], [ %27, %26 ]
%30 = load ptr, ptr %6, align 8
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %32, align 4
%34 = call ptr @av_realloc(ptr noundef %31, i32 noundef %33)
store ptr %34, ptr %5, align 8
%35 = load ptr, ptr %5, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %39, label %37
37: ; preds = %28
%38 = load ptr, ptr %6, align 8
store i32 0, ptr %38, align 4
br label %39
39: ; preds = %37, %28
%40 = load ptr, ptr %5, align 8
store ptr %40, ptr %4, align 8
br label %41
41: ; preds = %39, %12
%42 = load ptr, ptr %4, align 8
ret ptr %42
}
declare ptr @av_realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcxdsb1ei.c'
source_filename = "/tmp/tmpcxdsb1ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter number of elements: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Error! memory not allocated.\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Enter elements of array: \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Sum = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %38, %19
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %41
25: ; preds = %21
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %29)
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %5, align 4
br label %38
38: ; preds = %25
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %21, !llvm.loop !6
41: ; preds = %21
%42 = load i32, ptr %5, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %42)
%44 = load ptr, ptr %4, align 8
%45 = call i32 @free(ptr noundef %44)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxdsb1ei.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter number of elements: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Error! memory not allocated.\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"Enter elements of array: \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Sum = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %43
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %37
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %28)
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %24
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %19
%44 = load i32, ptr %5, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %44)
%46 = load ptr, ptr %4, align 8
%47 = call i32 @free(ptr noundef %46)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpilup0vxt.c'
source_filename = "/tmp/tmpilup0vxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @differenceTimeval(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 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 1
%18 = load i64, ptr %17, align 8
%19 = sub nsw i64 %15, %18
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 1
store i64 %19, ptr %21, align 8
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %22, i32 0, i32 0
%24 = load i32, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.timeval, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = sub nsw i32 %24, %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %29, i32 0, i32 0
store i32 %28, ptr %30, align 8
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds %struct.timeval, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %57
35: ; preds = %2
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %36, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = sub nsw i64 %38, 1
store i64 %39, ptr %37, align 8
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.timeval, ptr %40, i32 0, i32 0
%42 = load i32, ptr %41, align 8
%43 = add nsw i32 %42, 1000000
store i32 %43, ptr %41, align 8
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.timeval, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 8
%47 = icmp sle i32 0, %46
br i1 %47, label %48, label %53
48: ; preds = %35
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds %struct.timeval, ptr %49, i32 0, i32 0
%51 = load i32, ptr %50, align 8
%52 = icmp slt i32 %51, 1000000
br label %53
53: ; preds = %48, %35
%54 = phi i1 [ false, %35 ], [ %52, %48 ]
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 noundef %55)
br label %57
57: ; preds = %53, %2
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpilup0vxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @differenceTimeval(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 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 1
%18 = load i64, ptr %17, align 8
%19 = sub nsw i64 %15, %18
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds %struct.timeval, ptr %20, i32 0, i32 1
store i64 %19, ptr %21, align 8
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %22, i32 0, i32 0
%24 = load i32, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.timeval, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = sub nsw i32 %24, %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %29, i32 0, i32 0
store i32 %28, ptr %30, align 8
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds %struct.timeval, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %57
35: ; preds = %2
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %36, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = sub nsw i64 %38, 1
store i64 %39, ptr %37, align 8
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.timeval, ptr %40, i32 0, i32 0
%42 = load i32, ptr %41, align 8
%43 = add nsw i32 %42, 1000000
store i32 %43, ptr %41, align 8
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.timeval, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 8
%47 = icmp sle i32 0, %46
br i1 %47, label %48, label %53
48: ; preds = %35
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds %struct.timeval, ptr %49, i32 0, i32 0
%51 = load i32, ptr %50, align 8
%52 = icmp slt i32 %51, 1000000
br label %53
53: ; preds = %48, %35
%54 = phi i1 [ false, %35 ], [ %52, %48 ]
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 noundef %55)
br label %57
57: ; preds = %53, %2
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcjln0i0r.c'
source_filename = "/tmp/tmpcjln0i0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyboard(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i8, ptr %4, align 1
%8 = zext i8 %7 to i32
%9 = icmp eq i32 %8, 113
br i1 %9, label %18, label %10
10: ; preds = %3
%11 = load i8, ptr %4, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 81
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, ptr %4, align 1
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 27
br i1 %17, label %18, label %20
18: ; preds = %14, %10, %3
%19 = call i32 @exit(i32 noundef 0) #2
unreachable
20: ; preds = %14
ret void
}
; 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/tmpcjln0i0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyboard(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i8, ptr %4, align 1
%8 = zext i8 %7 to i32
%9 = icmp eq i32 %8, 113
br i1 %9, label %18, label %10
10: ; preds = %3
%11 = load i8, ptr %4, align 1
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 81
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, ptr %4, align 1
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 27
br i1 %17, label %18, label %20
18: ; preds = %14, %10, %3
%19 = call i32 @exit(i32 noundef 0) #2
unreachable
20: ; preds = %14
ret void
}
; 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/tmphlo6yktn.c'
source_filename = "/tmp/tmphlo6yktn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Usage: prog: from to\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"prog: can't open %s\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"prog: can't create %s, mode %03o\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"prog: write error on file %s\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 [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @merror(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @merror(ptr noundef @.str.1, ptr noundef %24)
br label %26
26: ; preds = %21, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @creat(ptr noundef %29, i32 noundef 438)
store i32 %30, ptr %7, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @merror(ptr noundef @.str.2, ptr noundef %35, i32 noundef 438)
br label %37
37: ; preds = %32, %26
br label %38
38: ; preds = %55, %37
%39 = load i32, ptr %6, align 4
%40 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%41 = call i32 @read(i32 noundef %39, ptr noundef %40, i32 noundef 1024)
store i32 %41, ptr %8, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %38
%44 = load i32, ptr %7, align 4
%45 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%46 = load i32, ptr %8, align 4
%47 = call i32 @write(i32 noundef %44, ptr noundef %45, i32 noundef %46)
%48 = load i32, ptr %8, align 4
%49 = icmp ne i32 %47, %48
br i1 %49, label %50, label %55
50: ; preds = %43
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 2
%53 = load ptr, ptr %52, align 8
%54 = call i32 (ptr, ...) @merror(ptr noundef @.str.3, ptr noundef %53)
br label %55
55: ; preds = %50, %43
br label %38, !llvm.loop !6
56: ; preds = %38
ret i32 0
}
declare i32 @merror(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphlo6yktn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Usage: prog: from to\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"prog: can't open %s\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"prog: can't create %s, mode %03o\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"prog: write error on file %s\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 [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @merror(ptr noundef @.str)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr @O_RDONLY, align 4
%19 = call i32 @open(ptr noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @merror(ptr noundef @.str.1, ptr noundef %24)
br label %26
26: ; preds = %21, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @creat(ptr noundef %29, i32 noundef 438)
store i32 %30, ptr %7, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 2
%35 = load ptr, ptr %34, align 8
%36 = call i32 (ptr, ...) @merror(ptr noundef @.str.2, ptr noundef %35, i32 noundef 438)
br label %37
37: ; preds = %32, %26
%38 = load i32, ptr %6, align 4
%39 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%40 = call i32 @read(i32 noundef %38, ptr noundef %39, i32 noundef 1024)
store i32 %40, ptr %8, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %.lr.ph, label %58
.lr.ph: ; preds = %37
br label %42
42: ; preds = %.lr.ph, %54
%43 = load i32, ptr %7, align 4
%44 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%45 = load i32, ptr %8, align 4
%46 = call i32 @write(i32 noundef %43, ptr noundef %44, i32 noundef %45)
%47 = load i32, ptr %8, align 4
%48 = icmp ne i32 %46, %47
br i1 %48, label %49, label %54
49: ; preds = %42
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 2
%52 = load ptr, ptr %51, align 8
%53 = call i32 (ptr, ...) @merror(ptr noundef @.str.3, ptr noundef %52)
br label %54
54: ; preds = %49, %42
%55 = load i32, ptr %6, align 4
%56 = call i32 @read(i32 noundef %55, ptr noundef %39, i32 noundef 1024)
store i32 %56, ptr %8, align 4
%57 = icmp sgt i32 %56, 0
br i1 %57, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %58
58: ; preds = %._crit_edge, %37
ret i32 0
}
declare i32 @merror(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @creat(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb1pguj4d.c'
source_filename = "/tmp/tmpb1pguj4d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[EPK_CONF] %s parsed \00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"[EPK_CONF] Could not access %s\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"./EPIK.CONF\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"[CURDIR] %s parsed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @epk_conf() #0 {
%1 = alloca [256 x i8], align 16
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 256, i1 false)
%4 = call i32 (...) @epk_conf_set_epk_defaults()
%5 = call ptr (...) @epk_gfile()
%6 = load i32, ptr @R_OK, align 4
%7 = call i64 @access(ptr noundef %5, i32 noundef %6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %20
9: ; preds = %0
%10 = call ptr (...) @epk_gfile()
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call ptr (...) @epk_gfile()
%14 = call i32 @epk_parse_config(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fclose(ptr noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%18 = call ptr (...) @epk_gfile()
%19 = call i32 @snprintf(ptr noundef %17, i32 noundef 256, ptr noundef @.str.1, ptr noundef %18)
br label %27
20: ; preds = %0
%21 = call ptr (...) @epk_gfile()
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = call ptr (...) @epk_gfile()
%25 = call i32 (ptr, ...) @elg_cntl_msg(ptr noundef @.str.2, ptr noundef %24)
br label %26
26: ; preds = %23, %20
br label %27
27: ; preds = %26, %9
%28 = load i32, ptr @R_OK, align 4
%29 = call i64 @access(ptr noundef @.str.3, i32 noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %27
%32 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str)
store ptr %32, ptr %3, align 8
%33 = load ptr, ptr %3, align 8
%34 = call i32 @epk_parse_config(ptr noundef %33, ptr noundef @.str.3)
%35 = load ptr, ptr %3, align 8
%36 = call i32 @fclose(ptr noundef %35)
%37 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%38 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
%42 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
%44 = sub nsw i32 256, %43
%45 = call i32 @snprintf(ptr noundef %41, i32 noundef %44, ptr noundef @.str.4, ptr noundef @.str.3)
br label %46
46: ; preds = %31, %27
%47 = call i32 (...) @epk_conf_set_env()
%48 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 255
store i8 0, ptr %48, align 1
%49 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%50 = call i32 @strlen(ptr noundef %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %46
%53 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%54 = call i32 (ptr, ...) @elg_cntl_msg(ptr noundef %53)
br label %55
55: ; preds = %52, %46
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 @epk_conf_set_epk_defaults(...) #2
declare i64 @access(ptr noundef, i32 noundef) #2
declare ptr @epk_gfile(...) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @epk_parse_config(ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @elg_cntl_msg(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @epk_conf_set_env(...) #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/tmpb1pguj4d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[EPK_CONF] %s parsed \00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"[EPK_CONF] Could not access %s\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"./EPIK.CONF\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"[CURDIR] %s parsed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @epk_conf() #0 {
%1 = alloca [256 x i8], align 16
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 256, i1 false)
%4 = call i32 (...) @epk_conf_set_epk_defaults()
%5 = call ptr (...) @epk_gfile()
%6 = load i32, ptr @R_OK, align 4
%7 = call i64 @access(ptr noundef %5, i32 noundef %6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %20
9: ; preds = %0
%10 = call ptr (...) @epk_gfile()
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = call ptr (...) @epk_gfile()
%14 = call i32 @epk_parse_config(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fclose(ptr noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%18 = call ptr (...) @epk_gfile()
%19 = call i32 @snprintf(ptr noundef %17, i32 noundef 256, ptr noundef @.str.1, ptr noundef %18)
br label %27
20: ; preds = %0
%21 = call ptr (...) @epk_gfile()
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = call ptr (...) @epk_gfile()
%25 = call i32 (ptr, ...) @elg_cntl_msg(ptr noundef @.str.2, ptr noundef %24)
br label %26
26: ; preds = %23, %20
br label %27
27: ; preds = %26, %9
%28 = load i32, ptr @R_OK, align 4
%29 = call i64 @access(ptr noundef @.str.3, i32 noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %27
%32 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str)
store ptr %32, ptr %3, align 8
%33 = load ptr, ptr %3, align 8
%34 = call i32 @epk_parse_config(ptr noundef %33, ptr noundef @.str.3)
%35 = load ptr, ptr %3, align 8
%36 = call i32 @fclose(ptr noundef %35)
%37 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%38 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
%42 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
%44 = sub nsw i32 256, %43
%45 = call i32 @snprintf(ptr noundef %41, i32 noundef %44, ptr noundef @.str.4, ptr noundef @.str.3)
br label %46
46: ; preds = %31, %27
%47 = call i32 (...) @epk_conf_set_env()
%48 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 255
store i8 0, ptr %48, align 1
%49 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%50 = call i32 @strlen(ptr noundef %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %46
%53 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 0
%54 = call i32 (ptr, ...) @elg_cntl_msg(ptr noundef %53)
br label %55
55: ; preds = %52, %46
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 @epk_conf_set_epk_defaults(...) #2
declare i64 @access(ptr noundef, i32 noundef) #2
declare ptr @epk_gfile(...) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @epk_parse_config(ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @elg_cntl_msg(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @epk_conf_set_env(...) #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/tmpkhifegos.c'
source_filename = "/tmp/tmpkhifegos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"#WHILE\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"JEQ\09%s\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"JMP\09%s\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"#ENDWHILE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doWhile() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca [10 x i8], align 1
%3 = call i32 @match(i8 noundef signext 119)
%4 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @newLabel(ptr noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @newLabel(ptr noundef %6)
%8 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%9 = call i32 @postLabel(ptr noundef %8, ptr noundef @.str)
%10 = call i32 (...) @condition()
%11 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @emitln(ptr noundef @.str.1, ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @block(ptr noundef %13)
%15 = call i32 @match(i8 noundef signext 101)
%16 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%17 = call i32 @emitln(ptr noundef @.str.2, ptr noundef %16)
%18 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%19 = call i32 @postLabel(ptr noundef %18, ptr noundef @.str.3)
ret void
}
declare i32 @match(i8 noundef signext) #1
declare i32 @newLabel(ptr noundef) #1
declare i32 @postLabel(ptr noundef, ptr noundef) #1
declare i32 @condition(...) #1
declare i32 @emitln(ptr noundef, ptr noundef) #1
declare i32 @block(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkhifegos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"#WHILE\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"JEQ\09%s\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"JMP\09%s\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"#ENDWHILE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @doWhile() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca [10 x i8], align 1
%3 = call i32 @match(i8 noundef signext 119)
%4 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @newLabel(ptr noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @newLabel(ptr noundef %6)
%8 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%9 = call i32 @postLabel(ptr noundef %8, ptr noundef @.str)
%10 = call i32 (...) @condition()
%11 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @emitln(ptr noundef @.str.1, ptr noundef %11)
%13 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @block(ptr noundef %13)
%15 = call i32 @match(i8 noundef signext 101)
%16 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 0
%17 = call i32 @emitln(ptr noundef @.str.2, ptr noundef %16)
%18 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%19 = call i32 @postLabel(ptr noundef %18, ptr noundef @.str.3)
ret void
}
declare i32 @match(i8 noundef signext) #1
declare i32 @newLabel(ptr noundef) #1
declare i32 @postLabel(ptr noundef, ptr noundef) #1
declare i32 @condition(...) #1
declare i32 @emitln(ptr noundef, ptr noundef) #1
declare i32 @block(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp27m9cc3m.c'
source_filename = "/tmp/tmp27m9cc3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter your grade: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"\0A \09 You'll be good at Arts\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\0A \09 You'll be god at Commerce\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"\0A \09 You'll be good at Science\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"\0A \09Default\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (...) @clr()
%5 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i64, ptr %2, align 8
%9 = icmp sgt i64 %8, 40
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i64, ptr %2, align 8
%12 = icmp slt i64 %11, 60
br i1 %12, label %13, label %14
13: ; preds = %10
store i64 1, ptr %3, align 8
br label %30
14: ; preds = %10, %0
%15 = load i64, ptr %2, align 8
%16 = icmp sge i64 %15, 60
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i64, ptr %2, align 8
%19 = icmp sle i64 %18, 70
br i1 %19, label %20, label %21
20: ; preds = %17
store i64 2, ptr %3, align 8
br label %29
21: ; preds = %17, %14
%22 = load i64, ptr %2, align 8
%23 = icmp sgt i64 %22, 70
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load i64, ptr %2, align 8
%26 = icmp slt i64 %25, 100
br i1 %26, label %27, label %28
27: ; preds = %24
store i64 3, ptr %3, align 8
br label %28
28: ; preds = %27, %24, %21
br label %29
29: ; preds = %28, %20
br label %30
30: ; preds = %29, %13
%31 = load i64, ptr %3, align 8
switch i64 %31, label %38 [
i64 1, label %32
i64 2, label %34
i64 3, label %36
]
32: ; preds = %30
%33 = call i32 @printf(ptr noundef @.str.2)
br label %34
34: ; preds = %30, %32
%35 = call i32 @printf(ptr noundef @.str.3)
br label %36
36: ; preds = %30, %34
%37 = call i32 @printf(ptr noundef @.str.4)
br label %40
38: ; preds = %30
%39 = call i32 @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %36
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @clr(...) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp27m9cc3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter your grade: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"\0A \09 You'll be good at Arts\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\0A \09 You'll be god at Commerce\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"\0A \09 You'll be good at Science\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"\0A \09Default\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (...) @clr()
%5 = call i32 @gotoxy(i32 noundef 10, i32 noundef 10)
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i64, ptr %2, align 8
%9 = icmp sgt i64 %8, 40
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i64, ptr %2, align 8
%12 = icmp slt i64 %11, 60
br i1 %12, label %13, label %14
13: ; preds = %10
store i64 1, ptr %3, align 8
br label %30
14: ; preds = %10, %0
%15 = load i64, ptr %2, align 8
%16 = icmp sge i64 %15, 60
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load i64, ptr %2, align 8
%19 = icmp sle i64 %18, 70
br i1 %19, label %20, label %21
20: ; preds = %17
store i64 2, ptr %3, align 8
br label %29
21: ; preds = %17, %14
%22 = load i64, ptr %2, align 8
%23 = icmp sgt i64 %22, 70
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load i64, ptr %2, align 8
%26 = icmp slt i64 %25, 100
br i1 %26, label %27, label %28
27: ; preds = %24
store i64 3, ptr %3, align 8
br label %28
28: ; preds = %27, %24, %21
br label %29
29: ; preds = %28, %20
br label %30
30: ; preds = %29, %13
%31 = load i64, ptr %3, align 8
switch i64 %31, label %38 [
i64 1, label %32
i64 2, label %34
i64 3, label %36
]
32: ; preds = %30
%33 = call i32 @printf(ptr noundef @.str.2)
br label %34
34: ; preds = %32, %30
%35 = call i32 @printf(ptr noundef @.str.3)
br label %36
36: ; preds = %34, %30
%37 = call i32 @printf(ptr noundef @.str.4)
br label %40
38: ; preds = %30
%39 = call i32 @printf(ptr noundef @.str.5)
br label %40
40: ; preds = %38, %36
%41 = load i32, ptr %1, align 4
ret i32 %41
}
declare i32 @clr(...) #1
declare i32 @gotoxy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa3j36tf4.c'
source_filename = "/tmp/tmpa3j36tf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Introduce tu numero.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 10
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 10
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %6
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %6, label %16, !llvm.loop !6
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa3j36tf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Introduce tu numero.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 10
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 10
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %6
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %6, label %16, !llvm.loop !6
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphkj00q0y.c'
source_filename = "/tmp/tmphkj00q0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @endwin()
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphkj00q0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @endwin()
%4 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @endwin(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpudumjqg0.c'
source_filename = "/tmp/tmpudumjqg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@daylight = dso_local global i32 0, align 4
@timezone = dso_local global i32 0, align 4
@tzname = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpudumjqg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@daylight = dso_local global i32 0, align 4
@timezone = dso_local global i32 0, align 4
@tzname = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk4c3mkzg.c'
source_filename = "/tmp/tmpk4c3mkzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xf2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xf2() #0 {
%1 = call i64 @iscntrl(i32 noundef 242)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1215, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk4c3mkzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xf2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xf2() #0 {
%1 = call i64 @iscntrl(i32 noundef 242)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1215, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpom7_sj9c.c'
source_filename = "/tmp/tmpom7_sj9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @franf() #0 {
%1 = alloca double, align 8
%2 = call i32 (...) @rand()
%3 = and i32 %2, 32767
%4 = sitofp i32 %3 to double
store double %4, ptr %1, align 8
%5 = load double, ptr %1, align 8
%6 = fdiv double %5, 3.276700e+04
ret double %6
}
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/tmpom7_sj9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @franf() #0 {
%1 = alloca double, align 8
%2 = call i32 (...) @rand()
%3 = and i32 %2, 32767
%4 = sitofp i32 %3 to double
store double %4, ptr %1, align 8
%5 = load double, ptr %1, align 8
%6 = fdiv double %5, 3.276700e+04
ret double %6
}
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/tmpamwttp_l.c'
source_filename = "/tmp/tmpamwttp_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @dinit, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dinit() #0 {
%1 = call i32 (...) @rt_init()
ret void
}
declare i32 @rt_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpamwttp_l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @dinit, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dinit() #0 {
%1 = call i32 (...) @rt_init()
ret void
}
declare i32 @rt_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_n0ldklx.c'
source_filename = "/tmp/tmp_n0ldklx.c"
target datalayout = "e-m:e-p270: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_n0ldklx.c"
target datalayout = "e-m:e-p270: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/tmp0n1oly90.c'
source_filename = "/tmp/tmp0n1oly90.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"/tmp/kbpm.sock\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @communicate_with_server(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_un, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr @AF_UNIX, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr @AF_UNIX, align 4
%14 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i32 @strcpy(i32 noundef %16, ptr noundef @.str)
store i32 8, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = call i32 @connect(i32 noundef %18, ptr noundef %9, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
store i32 %20, ptr %21, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %26
25: ; preds = %3
br label %38
26: ; preds = %3
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %30)
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %6, align 8
%34 = call i32 @read(i32 noundef %32, ptr noundef %33, i32 noundef 40960)
%35 = load i32, ptr %7, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load ptr, ptr %5, align 8
store i32 0, ptr %37, align 4
br label %38
38: ; preds = %26, %25
ret void
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0n1oly90.c"
target datalayout = "e-m:e-p270: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_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"/tmp/kbpm.sock\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @communicate_with_server(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_un, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr @AF_UNIX, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr @AF_UNIX, align 4
%14 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i32 @strcpy(i32 noundef %16, ptr noundef @.str)
store i32 8, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = call i32 @connect(i32 noundef %18, ptr noundef %9, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
store i32 %20, ptr %21, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %26
25: ; preds = %3
br label %38
26: ; preds = %3
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %30)
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %6, align 8
%34 = call i32 @read(i32 noundef %32, ptr noundef %33, i32 noundef 40960)
%35 = load i32, ptr %7, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load ptr, ptr %5, align 8
store i32 0, ptr %37, align 4
br label %38
38: ; preds = %26, %25
ret void
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5vkcxsh8.c'
source_filename = "/tmp/tmp5vkcxsh8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"time.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"time.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"%hd:%hd:%hd\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"%02hd:%02hd:%02hd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i32 0, ptr %1, align 4
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %5)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @freopen(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %7)
%9 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load i16, ptr %4, align 2
%11 = sext i16 %10 to i32
%12 = mul nsw i32 %11, 2
%13 = trunc i32 %12 to i16
store i16 %13, ptr %4, align 2
%14 = load i16, ptr %3, align 2
%15 = sext i16 %14 to i32
%16 = mul nsw i32 %15, 2
%17 = trunc i32 %16 to i16
store i16 %17, ptr %3, align 2
%18 = load i16, ptr %2, align 2
%19 = sext i16 %18 to i32
%20 = mul nsw i32 %19, 2
%21 = trunc i32 %20 to i16
store i16 %21, ptr %2, align 2
%22 = load i16, ptr %4, align 2
%23 = sext i16 %22 to i32
%24 = icmp sgt i32 %23, 59
br i1 %24, label %25, label %34
25: ; preds = %0
%26 = load i16, ptr %3, align 2
%27 = sext i16 %26 to i32
%28 = add nsw i32 %27, 1
%29 = trunc i32 %28 to i16
store i16 %29, ptr %3, align 2
%30 = load i16, ptr %4, align 2
%31 = sext i16 %30 to i32
%32 = sub nsw i32 %31, 60
%33 = trunc i32 %32 to i16
store i16 %33, ptr %4, align 2
br label %34
34: ; preds = %25, %0
%35 = load i16, ptr %3, align 2
%36 = sext i16 %35 to i32
%37 = icmp sgt i32 %36, 59
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load i16, ptr %2, align 2
%40 = sext i16 %39 to i32
%41 = add nsw i32 %40, 1
%42 = trunc i32 %41 to i16
store i16 %42, ptr %2, align 2
%43 = load i16, ptr %3, align 2
%44 = sext i16 %43 to i32
%45 = sub nsw i32 %44, 60
%46 = trunc i32 %45 to i16
store i16 %46, ptr %3, align 2
br label %47
47: ; preds = %38, %34
%48 = load i16, ptr %2, align 2
%49 = load i16, ptr %3, align 2
%50 = load i16, ptr %4, align 2
%51 = call i32 @printf(ptr noundef @.str.5, i16 noundef signext %48, i16 noundef signext %49, i16 noundef signext %50)
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i16 noundef signext, i16 noundef signext, i16 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/tmp5vkcxsh8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"time.in\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [9 x i8] c"time.out\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [12 x i8] c"%hd:%hd:%hd\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"%02hd:%02hd:%02hd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i32 0, ptr %1, align 4
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @freopen(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %5)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @freopen(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %7)
%9 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load i16, ptr %4, align 2
%11 = sext i16 %10 to i32
%12 = mul nsw i32 %11, 2
%13 = trunc i32 %12 to i16
store i16 %13, ptr %4, align 2
%14 = load i16, ptr %3, align 2
%15 = sext i16 %14 to i32
%16 = mul nsw i32 %15, 2
%17 = trunc i32 %16 to i16
store i16 %17, ptr %3, align 2
%18 = load i16, ptr %2, align 2
%19 = sext i16 %18 to i32
%20 = mul nsw i32 %19, 2
%21 = trunc i32 %20 to i16
store i16 %21, ptr %2, align 2
%22 = load i16, ptr %4, align 2
%23 = sext i16 %22 to i32
%24 = icmp sgt i32 %23, 59
br i1 %24, label %25, label %34
25: ; preds = %0
%26 = load i16, ptr %3, align 2
%27 = sext i16 %26 to i32
%28 = add nsw i32 %27, 1
%29 = trunc i32 %28 to i16
store i16 %29, ptr %3, align 2
%30 = load i16, ptr %4, align 2
%31 = sext i16 %30 to i32
%32 = sub nsw i32 %31, 60
%33 = trunc i32 %32 to i16
store i16 %33, ptr %4, align 2
br label %34
34: ; preds = %25, %0
%35 = load i16, ptr %3, align 2
%36 = sext i16 %35 to i32
%37 = icmp sgt i32 %36, 59
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load i16, ptr %2, align 2
%40 = sext i16 %39 to i32
%41 = add nsw i32 %40, 1
%42 = trunc i32 %41 to i16
store i16 %42, ptr %2, align 2
%43 = load i16, ptr %3, align 2
%44 = sext i16 %43 to i32
%45 = sub nsw i32 %44, 60
%46 = trunc i32 %45 to i16
store i16 %46, ptr %3, align 2
br label %47
47: ; preds = %38, %34
%48 = load i16, ptr %2, align 2
%49 = load i16, ptr %3, align 2
%50 = load i16, ptr %4, align 2
%51 = call i32 @printf(ptr noundef @.str.5, i16 noundef signext %48, i16 noundef signext %49, i16 noundef signext %50)
ret i32 0
}
declare i32 @freopen(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i16 noundef signext, i16 noundef signext, i16 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/tmpssg_k012.c'
source_filename = "/tmp/tmpssg_k012.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @helper_double_8(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 @helper_double_8_recursive(ptr noundef %3, i32 noundef 8)
ret void
}
declare i32 @helper_double_8_recursive(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/tmpssg_k012.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @helper_double_8(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 @helper_double_8_recursive(ptr noundef %3, i32 noundef 8)
ret void
}
declare i32 @helper_double_8_recursive(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/tmpr7d1_mow.c'
source_filename = "/tmp/tmpr7d1_mow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"oom_score_adj\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_oom_score_adj(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @read_proc_file_integer(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret i32 %7
}
declare i32 @read_proc_file_integer(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/tmpr7d1_mow.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"oom_score_adj\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_oom_score_adj(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @read_proc_file_integer(i32 noundef %5, ptr noundef @.str, ptr noundef %6)
ret i32 %7
}
declare i32 @read_proc_file_integer(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/tmpu2tmjz37.c'
source_filename = "/tmp/tmpu2tmjz37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coordenadaX(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
store i32 22, ptr %7, align 4
%12 = load float, ptr %3, align 4
%13 = load float, ptr %4, align 4
%14 = fcmp ogt float %12, %13
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load float, ptr %4, align 4
store float %16, ptr %5, align 4
%17 = load float, ptr %3, align 4
store float %17, ptr %6, align 4
br label %26
18: ; preds = %2
%19 = load float, ptr %3, align 4
%20 = load float, ptr %4, align 4
%21 = fcmp olt float %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load float, ptr %3, align 4
store float %23, ptr %5, align 4
%24 = load float, ptr %4, align 4
store float %24, ptr %6, align 4
br label %25
25: ; preds = %22, %18
br label %26
26: ; preds = %25, %15
%27 = load float, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = sitofp i32 %28 to float
%30 = fmul float %27, %29
%31 = load float, ptr %6, align 4
%32 = load float, ptr %5, align 4
%33 = fsub float %31, %32
%34 = fdiv float %30, %33
store float %34, ptr %8, align 4
%35 = load float, ptr %5, align 4
%36 = load float, ptr %8, align 4
%37 = fdiv float %35, %36
store float %37, ptr %9, align 4
%38 = load float, ptr %8, align 4
%39 = load i32, ptr %7, align 4
%40 = sdiv i32 %39, 2
%41 = sitofp i32 %40 to float
%42 = fadd float %38, %41
store float %42, ptr %10, align 4
%43 = load float, ptr %10, align 4
%44 = load float, ptr %9, align 4
%45 = call float @cos(float noundef %44)
%46 = load float, ptr %10, align 4
%47 = fneg float %46
%48 = call float @llvm.fmuladd.f32(float %43, float %45, float %47)
store float %48, ptr %11, align 4
%49 = load float, ptr %11, align 4
%50 = fptosi float %49 to i32
ret i32 %50
}
declare float @cos(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2tmjz37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coordenadaX(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
store i32 22, ptr %7, align 4
%12 = load float, ptr %3, align 4
%13 = load float, ptr %4, align 4
%14 = fcmp ogt float %12, %13
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load float, ptr %4, align 4
store float %16, ptr %5, align 4
%17 = load float, ptr %3, align 4
store float %17, ptr %6, align 4
br label %26
18: ; preds = %2
%19 = load float, ptr %3, align 4
%20 = load float, ptr %4, align 4
%21 = fcmp olt float %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load float, ptr %3, align 4
store float %23, ptr %5, align 4
%24 = load float, ptr %4, align 4
store float %24, ptr %6, align 4
br label %25
25: ; preds = %22, %18
br label %26
26: ; preds = %25, %15
%27 = load float, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = sitofp i32 %28 to float
%30 = fmul float %27, %29
%31 = load float, ptr %6, align 4
%32 = load float, ptr %5, align 4
%33 = fsub float %31, %32
%34 = fdiv float %30, %33
store float %34, ptr %8, align 4
%35 = load float, ptr %5, align 4
%36 = load float, ptr %8, align 4
%37 = fdiv float %35, %36
store float %37, ptr %9, align 4
%38 = load float, ptr %8, align 4
%39 = load i32, ptr %7, align 4
%40 = sdiv i32 %39, 2
%41 = sitofp i32 %40 to float
%42 = fadd float %38, %41
store float %42, ptr %10, align 4
%43 = load float, ptr %10, align 4
%44 = load float, ptr %9, align 4
%45 = call float @cos(float noundef %44)
%46 = load float, ptr %10, align 4
%47 = fneg float %46
%48 = call float @llvm.fmuladd.f32(float %43, float %45, float %47)
store float %48, ptr %11, align 4
%49 = load float, ptr %11, align 4
%50 = fptosi float %49 to i32
ret i32 %50
}
declare float @cos(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi8ddsf4i.c'
source_filename = "/tmp/tmpi8ddsf4i.c"
target datalayout = "e-m:e-p270: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/tmpi8ddsf4i.c"
target datalayout = "e-m:e-p270: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/tmpo1w4dkgb.c'
source_filename = "/tmp/tmpo1w4dkgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A\07\09A fila esta cheia!\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"\0A\09Digite um valor -> \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inserir(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp eq i32 %9, 10
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 @printf(ptr noundef @.str)
br label %43
13: ; preds = %3
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %7)
%16 = load i32, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %19, %21
%23 = icmp sge i32 %22, 10
br i1 %23, label %24, label %32
24: ; preds = %13
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %27, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %27, align 4
%30 = add nsw i32 %26, %28
%31 = sub nsw i32 %30, 10
br label %39
32: ; preds = %13
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %35, align 4
%38 = add nsw i32 %34, %36
br label %39
39: ; preds = %32, %24
%40 = phi i32 [ %31, %24 ], [ %38, %32 ]
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %17, i64 %41
store i32 %16, ptr %42, align 4
br label %43
43: ; preds = %39, %11
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1w4dkgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"\0A\07\09A fila esta cheia!\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"\0A\09Digite um valor -> \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inserir(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp eq i32 %9, 10
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 @printf(ptr noundef @.str)
br label %43
13: ; preds = %3
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %7)
%16 = load i32, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %19, %21
%23 = icmp sge i32 %22, 10
br i1 %23, label %24, label %32
24: ; preds = %13
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %27, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %27, align 4
%30 = add nsw i32 %26, %28
%31 = sub nsw i32 %30, 10
br label %39
32: ; preds = %13
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %35, align 4
%38 = add nsw i32 %34, %36
br label %39
39: ; preds = %32, %24
%40 = phi i32 [ %31, %24 ], [ %38, %32 ]
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %17, i64 %41
store i32 %16, ptr %42, align 4
br label %43
43: ; preds = %39, %11
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"}
|
; ModuleID = '/tmp/tmpc1pv9tur.c'
source_filename = "/tmp/tmpc1pv9tur.c"
target datalayout = "e-m:e-p270: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 [211 x i8] c"usage: %s [read|write] [num]\0A\0A read - read [num] 4-byte ints and verify they're sequential\0A write - write [num] sequential 4-byte ints, starting from 0\0A num - how many to read/write, between 1 & %d\0A\00", align 1
@INT32_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds ptr, ptr %4, i64 0
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr @INT32_MAX, align 4
%8 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %6, i32 noundef %7)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc1pv9tur.c"
target datalayout = "e-m:e-p270: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 [211 x i8] c"usage: %s [read|write] [num]\0A\0A read - read [num] 4-byte ints and verify they're sequential\0A write - write [num] sequential 4-byte ints, starting from 0\0A num - how many to read/write, between 1 & %d\0A\00", align 1
@INT32_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds ptr, ptr %4, i64 0
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr @INT32_MAX, align 4
%8 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %6, i32 noundef %7)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ysz6roa.c'
source_filename = "/tmp/tmp6ysz6roa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawPoly4TGEx4_TW(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5, i16 noundef signext %6, i16 noundef signext %7, i16 noundef signext %8, i16 noundef signext %9, i16 noundef signext %10, i16 noundef signext %11, i16 noundef signext %12, i16 noundef signext %13, i16 noundef signext %14, i16 noundef signext %15, i16 noundef signext %16, i16 noundef signext %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21) #0 {
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i16, align 2
%28 = alloca i16, align 2
%29 = alloca i16, align 2
%30 = alloca i16, align 2
%31 = alloca i16, align 2
%32 = alloca i16, align 2
%33 = alloca i16, align 2
%34 = alloca i16, align 2
%35 = alloca i16, align 2
%36 = alloca i16, align 2
%37 = alloca i16, align 2
%38 = alloca i16, align 2
%39 = alloca i16, align 2
%40 = alloca i16, align 2
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca i32, align 4
store i16 %0, ptr %23, align 2
store i16 %1, ptr %24, align 2
store i16 %2, ptr %25, align 2
store i16 %3, ptr %26, align 2
store i16 %4, ptr %27, align 2
store i16 %5, ptr %28, align 2
store i16 %6, ptr %29, align 2
store i16 %7, ptr %30, align 2
store i16 %8, ptr %31, align 2
store i16 %9, ptr %32, align 2
store i16 %10, ptr %33, align 2
store i16 %11, ptr %34, align 2
store i16 %12, ptr %35, align 2
store i16 %13, ptr %36, align 2
store i16 %14, ptr %37, align 2
store i16 %15, ptr %38, align 2
store i16 %16, ptr %39, align 2
store i16 %17, ptr %40, align 2
store i32 %18, ptr %41, align 4
store i32 %19, ptr %42, align 4
store i32 %20, ptr %43, align 4
store i32 %21, ptr %44, align 4
%45 = load i16, ptr %25, align 2
%46 = load i16, ptr %26, align 2
%47 = load i16, ptr %27, align 2
%48 = load i16, ptr %28, align 2
%49 = load i16, ptr %29, align 2
%50 = load i16, ptr %30, align 2
%51 = load i16, ptr %33, align 2
%52 = load i16, ptr %34, align 2
%53 = load i16, ptr %35, align 2
%54 = load i16, ptr %36, align 2
%55 = load i16, ptr %37, align 2
%56 = load i16, ptr %38, align 2
%57 = load i16, ptr %39, align 2
%58 = load i16, ptr %40, align 2
%59 = load i32, ptr %42, align 4
%60 = load i32, ptr %44, align 4
%61 = load i32, ptr %43, align 4
%62 = call i32 @drawPoly3TGEx4_TW(i16 noundef signext %45, i16 noundef signext %46, i16 noundef signext %47, i16 noundef signext %48, i16 noundef signext %49, i16 noundef signext %50, i16 noundef signext %51, i16 noundef signext %52, i16 noundef signext %53, i16 noundef signext %54, i16 noundef signext %55, i16 noundef signext %56, i16 noundef signext %57, i16 noundef signext %58, i32 noundef %59, i32 noundef %60, i32 noundef %61)
%63 = load i16, ptr %23, align 2
%64 = load i16, ptr %24, align 2
%65 = load i16, ptr %25, align 2
%66 = load i16, ptr %26, align 2
%67 = load i16, ptr %29, align 2
%68 = load i16, ptr %30, align 2
%69 = load i16, ptr %31, align 2
%70 = load i16, ptr %32, align 2
%71 = load i16, ptr %33, align 2
%72 = load i16, ptr %34, align 2
%73 = load i16, ptr %37, align 2
%74 = load i16, ptr %38, align 2
%75 = load i16, ptr %39, align 2
%76 = load i16, ptr %40, align 2
%77 = load i32, ptr %41, align 4
%78 = load i32, ptr %42, align 4
%79 = load i32, ptr %43, align 4
%80 = call i32 @drawPoly3TGEx4_TW(i16 noundef signext %63, i16 noundef signext %64, i16 noundef signext %65, i16 noundef signext %66, i16 noundef signext %67, i16 noundef signext %68, i16 noundef signext %69, i16 noundef signext %70, i16 noundef signext %71, i16 noundef signext %72, i16 noundef signext %73, i16 noundef signext %74, i16 noundef signext %75, i16 noundef signext %76, i32 noundef %77, i32 noundef %78, i32 noundef %79)
ret void
}
declare i32 @drawPoly3TGEx4_TW(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ysz6roa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawPoly4TGEx4_TW(i16 noundef signext %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef signext %3, i16 noundef signext %4, i16 noundef signext %5, i16 noundef signext %6, i16 noundef signext %7, i16 noundef signext %8, i16 noundef signext %9, i16 noundef signext %10, i16 noundef signext %11, i16 noundef signext %12, i16 noundef signext %13, i16 noundef signext %14, i16 noundef signext %15, i16 noundef signext %16, i16 noundef signext %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21) #0 {
%23 = alloca i16, align 2
%24 = alloca i16, align 2
%25 = alloca i16, align 2
%26 = alloca i16, align 2
%27 = alloca i16, align 2
%28 = alloca i16, align 2
%29 = alloca i16, align 2
%30 = alloca i16, align 2
%31 = alloca i16, align 2
%32 = alloca i16, align 2
%33 = alloca i16, align 2
%34 = alloca i16, align 2
%35 = alloca i16, align 2
%36 = alloca i16, align 2
%37 = alloca i16, align 2
%38 = alloca i16, align 2
%39 = alloca i16, align 2
%40 = alloca i16, align 2
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca i32, align 4
store i16 %0, ptr %23, align 2
store i16 %1, ptr %24, align 2
store i16 %2, ptr %25, align 2
store i16 %3, ptr %26, align 2
store i16 %4, ptr %27, align 2
store i16 %5, ptr %28, align 2
store i16 %6, ptr %29, align 2
store i16 %7, ptr %30, align 2
store i16 %8, ptr %31, align 2
store i16 %9, ptr %32, align 2
store i16 %10, ptr %33, align 2
store i16 %11, ptr %34, align 2
store i16 %12, ptr %35, align 2
store i16 %13, ptr %36, align 2
store i16 %14, ptr %37, align 2
store i16 %15, ptr %38, align 2
store i16 %16, ptr %39, align 2
store i16 %17, ptr %40, align 2
store i32 %18, ptr %41, align 4
store i32 %19, ptr %42, align 4
store i32 %20, ptr %43, align 4
store i32 %21, ptr %44, align 4
%45 = load i16, ptr %25, align 2
%46 = load i16, ptr %26, align 2
%47 = load i16, ptr %27, align 2
%48 = load i16, ptr %28, align 2
%49 = load i16, ptr %29, align 2
%50 = load i16, ptr %30, align 2
%51 = load i16, ptr %33, align 2
%52 = load i16, ptr %34, align 2
%53 = load i16, ptr %35, align 2
%54 = load i16, ptr %36, align 2
%55 = load i16, ptr %37, align 2
%56 = load i16, ptr %38, align 2
%57 = load i16, ptr %39, align 2
%58 = load i16, ptr %40, align 2
%59 = load i32, ptr %42, align 4
%60 = load i32, ptr %44, align 4
%61 = load i32, ptr %43, align 4
%62 = call i32 @drawPoly3TGEx4_TW(i16 noundef signext %45, i16 noundef signext %46, i16 noundef signext %47, i16 noundef signext %48, i16 noundef signext %49, i16 noundef signext %50, i16 noundef signext %51, i16 noundef signext %52, i16 noundef signext %53, i16 noundef signext %54, i16 noundef signext %55, i16 noundef signext %56, i16 noundef signext %57, i16 noundef signext %58, i32 noundef %59, i32 noundef %60, i32 noundef %61)
%63 = load i16, ptr %23, align 2
%64 = load i16, ptr %24, align 2
%65 = load i16, ptr %25, align 2
%66 = load i16, ptr %26, align 2
%67 = load i16, ptr %29, align 2
%68 = load i16, ptr %30, align 2
%69 = load i16, ptr %31, align 2
%70 = load i16, ptr %32, align 2
%71 = load i16, ptr %33, align 2
%72 = load i16, ptr %34, align 2
%73 = load i16, ptr %37, align 2
%74 = load i16, ptr %38, align 2
%75 = load i16, ptr %39, align 2
%76 = load i16, ptr %40, align 2
%77 = load i32, ptr %41, align 4
%78 = load i32, ptr %42, align 4
%79 = load i32, ptr %43, align 4
%80 = call i32 @drawPoly3TGEx4_TW(i16 noundef signext %63, i16 noundef signext %64, i16 noundef signext %65, i16 noundef signext %66, i16 noundef signext %67, i16 noundef signext %68, i16 noundef signext %69, i16 noundef signext %70, i16 noundef signext %71, i16 noundef signext %72, i16 noundef signext %73, i16 noundef signext %74, i16 noundef signext %75, i16 noundef signext %76, i32 noundef %77, i32 noundef %78, i32 noundef %79)
ret void
}
declare i32 @drawPoly3TGEx4_TW(i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i16 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppej7jfhm.c'
source_filename = "/tmp/tmppej7jfhm.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i64, i32, i32, i32 }
%struct.sockaddr_storage = type { i32, i64, i32, i32, i32 }
@.str = private unnamed_addr constant [33 x i8] c"Usage:\09<Address> <Port> <String>\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"failed to create server\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"failed to send string\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"sent unexpected amount of data\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [23 x i8] c"sent %d bytes of data\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"string: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"failed to get string\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"connection died prematurely\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"received %d bytes of data from \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca %struct.sockaddr_storage, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 4
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @usrError(ptr noundef @.str)
br label %24
24: ; preds = %22, %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 3
%33 = load ptr, ptr %32, align 8
store ptr %33, ptr %8, align 8
%34 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%35 = load i32, ptr @AF_UNSPEC, align 4
%36 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %35, ptr %36, align 8
%37 = load i32, ptr @SOCK_DGRAM, align 4
%38 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 3
store i32 %37, ptr %38, align 4
%39 = load i32, ptr @IPPROTO_UDP, align 4
%40 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 2
store i32 %39, ptr %40, align 8
%41 = load ptr, ptr %6, align 8
%42 = load ptr, ptr %7, align 8
%43 = call i32 @getaddrinfo(ptr noundef %41, ptr noundef %42, ptr noundef %9, ptr noundef %10)
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %24
%47 = load i32, ptr %11, align 4
%48 = call ptr @gai_strerror(i32 noundef %47)
%49 = call i32 @sysError(ptr noundef %48)
br label %50
50: ; preds = %46, %24
%51 = load ptr, ptr %10, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 4
%53 = load i32, ptr %52, align 8
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 3
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 2
%59 = load i32, ptr %58, align 8
%60 = call i32 @socket(i32 noundef %53, i32 noundef %56, i32 noundef %59)
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %50
%64 = call i32 @sysError(ptr noundef @.str.1)
br label %65
65: ; preds = %63, %50
%66 = load i32, ptr %12, align 4
%67 = call i32 @getSockName(i32 noundef %66)
%68 = load ptr, ptr %8, align 8
%69 = call i64 @strlen(ptr noundef %68)
store i64 %69, ptr %13, align 8
store i64 0, ptr %14, align 8
%70 = load i32, ptr %12, align 4
%71 = load ptr, ptr %8, align 8
%72 = load i64, ptr %13, align 8
%73 = load ptr, ptr %10, align 8
%74 = getelementptr inbounds %struct.addrinfo, ptr %73, i32 0, i32 1
%75 = load i64, ptr %74, align 8
%76 = inttoptr i64 %75 to ptr
%77 = load ptr, ptr %10, align 8
%78 = getelementptr inbounds %struct.addrinfo, ptr %77, i32 0, i32 0
%79 = load i32, ptr %78, align 8
%80 = call i64 @sendto(i32 noundef %70, ptr noundef %71, i64 noundef %72, i32 noundef 0, ptr noundef %76, i32 noundef %79)
store i64 %80, ptr %14, align 8
%81 = load i64, ptr %14, align 8
%82 = icmp ult i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %65
%84 = call i32 @sysError(ptr noundef @.str.2)
br label %92
85: ; preds = %65
%86 = load i64, ptr %14, align 8
%87 = load i64, ptr %13, align 8
%88 = icmp ne i64 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = call i32 @sysError(ptr noundef @.str.3)
br label %91
91: ; preds = %89, %85
br label %92
92: ; preds = %91, %83
%93 = load i32, ptr @stdout, align 4
%94 = load i64, ptr %14, align 8
%95 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.4, i64 noundef %94)
%96 = load i32, ptr @stdout, align 4
%97 = load ptr, ptr %8, align 8
%98 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.5, ptr noundef %97)
store i32 32, ptr %16, align 4
%99 = load i32, ptr %16, align 4
%100 = call i32 @memset(ptr noundef %15, i32 noundef 0, i32 noundef %99)
%101 = load i64, ptr %13, align 8
%102 = call ptr @llvm.stacksave()
store ptr %102, ptr %17, align 8
%103 = alloca i8, i64 %101, align 16
store i64 %101, ptr %18, align 8
store i64 0, ptr %19, align 8
%104 = load i32, ptr %12, align 4
%105 = load i64, ptr %13, align 8
%106 = call i64 @recvfrom(i32 noundef %104, ptr noundef %103, i64 noundef %105, i32 noundef 0, ptr noundef %15, ptr noundef %16)
store i64 %106, ptr %19, align 8
%107 = load i64, ptr %19, align 8
%108 = icmp ult i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %92
%110 = call i32 @sysError(ptr noundef @.str.6)
br label %117
111: ; preds = %92
%112 = load i64, ptr %19, align 8
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = call i32 @sysError(ptr noundef @.str.7)
br label %116
116: ; preds = %114, %111
br label %117
117: ; preds = %116, %109
%118 = load i64, ptr %19, align 8
%119 = getelementptr inbounds i8, ptr %103, i64 %118
store i8 0, ptr %119, align 1
%120 = load i32, ptr @stdout, align 4
%121 = load i64, ptr %19, align 8
%122 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %120, ptr noundef @.str.8, i64 noundef %121)
%123 = call i32 @printSocketAddress(ptr noundef %15)
%124 = load ptr, ptr %10, align 8
%125 = call i32 @freeaddrinfo(ptr noundef %124)
%126 = load i32, ptr %12, align 4
%127 = call i32 @close(i32 noundef %126)
%128 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %128)
%129 = load i32, ptr %3, align 4
ret i32 %129
}
declare i32 @usrError(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sysError(ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getSockName(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printSocketAddress(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppej7jfhm.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i64, i32, i32, i32 }
%struct.sockaddr_storage = type { i32, i64, i32, i32, i32 }
@.str = private unnamed_addr constant [33 x i8] c"Usage:\09<Address> <Port> <String>\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@IPPROTO_UDP = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"failed to create server\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"failed to send string\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"sent unexpected amount of data\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [23 x i8] c"sent %d bytes of data\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"string: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"failed to get string\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"connection died prematurely\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"received %d bytes of data from \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca %struct.sockaddr_storage, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 4
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @usrError(ptr noundef @.str)
br label %24
24: ; preds = %22, %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 2
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 3
%33 = load ptr, ptr %32, align 8
store ptr %33, ptr %8, align 8
%34 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%35 = load i32, ptr @AF_UNSPEC, align 4
%36 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %35, ptr %36, align 8
%37 = load i32, ptr @SOCK_DGRAM, align 4
%38 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 3
store i32 %37, ptr %38, align 4
%39 = load i32, ptr @IPPROTO_UDP, align 4
%40 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 2
store i32 %39, ptr %40, align 8
%41 = load ptr, ptr %6, align 8
%42 = load ptr, ptr %7, align 8
%43 = call i32 @getaddrinfo(ptr noundef %41, ptr noundef %42, ptr noundef %9, ptr noundef %10)
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %24
%47 = load i32, ptr %11, align 4
%48 = call ptr @gai_strerror(i32 noundef %47)
%49 = call i32 @sysError(ptr noundef %48)
br label %50
50: ; preds = %46, %24
%51 = load ptr, ptr %10, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 4
%53 = load i32, ptr %52, align 8
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 3
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %10, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 2
%59 = load i32, ptr %58, align 8
%60 = call i32 @socket(i32 noundef %53, i32 noundef %56, i32 noundef %59)
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %50
%64 = call i32 @sysError(ptr noundef @.str.1)
br label %65
65: ; preds = %63, %50
%66 = load i32, ptr %12, align 4
%67 = call i32 @getSockName(i32 noundef %66)
%68 = load ptr, ptr %8, align 8
%69 = call i64 @strlen(ptr noundef %68)
store i64 %69, ptr %13, align 8
store i64 0, ptr %14, align 8
%70 = load i32, ptr %12, align 4
%71 = load ptr, ptr %8, align 8
%72 = load i64, ptr %13, align 8
%73 = load ptr, ptr %10, align 8
%74 = getelementptr inbounds %struct.addrinfo, ptr %73, i32 0, i32 1
%75 = load i64, ptr %74, align 8
%76 = inttoptr i64 %75 to ptr
%77 = load ptr, ptr %10, align 8
%78 = getelementptr inbounds %struct.addrinfo, ptr %77, i32 0, i32 0
%79 = load i32, ptr %78, align 8
%80 = call i64 @sendto(i32 noundef %70, ptr noundef %71, i64 noundef %72, i32 noundef 0, ptr noundef %76, i32 noundef %79)
store i64 %80, ptr %14, align 8
%81 = load i64, ptr %14, align 8
%82 = icmp ult i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %65
%84 = call i32 @sysError(ptr noundef @.str.2)
br label %92
85: ; preds = %65
%86 = load i64, ptr %14, align 8
%87 = load i64, ptr %13, align 8
%88 = icmp ne i64 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = call i32 @sysError(ptr noundef @.str.3)
br label %91
91: ; preds = %89, %85
br label %92
92: ; preds = %91, %83
%93 = load i32, ptr @stdout, align 4
%94 = load i64, ptr %14, align 8
%95 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.4, i64 noundef %94)
%96 = load i32, ptr @stdout, align 4
%97 = load ptr, ptr %8, align 8
%98 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %96, ptr noundef @.str.5, ptr noundef %97)
store i32 32, ptr %16, align 4
%99 = load i32, ptr %16, align 4
%100 = call i32 @memset(ptr noundef %15, i32 noundef 0, i32 noundef %99)
%101 = load i64, ptr %13, align 8
%102 = call ptr @llvm.stacksave()
store ptr %102, ptr %17, align 8
%103 = alloca i8, i64 %101, align 16
store i64 %101, ptr %18, align 8
store i64 0, ptr %19, align 8
%104 = load i32, ptr %12, align 4
%105 = load i64, ptr %13, align 8
%106 = call i64 @recvfrom(i32 noundef %104, ptr noundef %103, i64 noundef %105, i32 noundef 0, ptr noundef %15, ptr noundef %16)
store i64 %106, ptr %19, align 8
%107 = load i64, ptr %19, align 8
%108 = icmp ult i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %92
%110 = call i32 @sysError(ptr noundef @.str.6)
br label %117
111: ; preds = %92
%112 = load i64, ptr %19, align 8
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = call i32 @sysError(ptr noundef @.str.7)
br label %116
116: ; preds = %114, %111
br label %117
117: ; preds = %116, %109
%118 = load i64, ptr %19, align 8
%119 = getelementptr inbounds i8, ptr %103, i64 %118
store i8 0, ptr %119, align 1
%120 = load i32, ptr @stdout, align 4
%121 = load i64, ptr %19, align 8
%122 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %120, ptr noundef @.str.8, i64 noundef %121)
%123 = call i32 @printSocketAddress(ptr noundef %15)
%124 = load ptr, ptr %10, align 8
%125 = call i32 @freeaddrinfo(ptr noundef %124)
%126 = load i32, ptr %12, align 4
%127 = call i32 @close(i32 noundef %126)
%128 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %128)
%129 = load i32, ptr %3, align 4
ret i32 %129
}
declare i32 @usrError(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sysError(ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @getSockName(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printSocketAddress(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp__rz6d2m.c'
source_filename = "/tmp/tmp__rz6d2m.c"
target datalayout = "e-m:e-p270: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_override_redirect(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/tmp__rz6d2m.c"
target datalayout = "e-m:e-p270: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_override_redirect(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/tmpwi5jege8.c'
source_filename = "/tmp/tmpwi5jege8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"[%s]\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%s=%s\0D\0A\0D\0A\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"]\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"%s=%s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteINIString(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [80 x i8], align 16
%14 = alloca [80 x i8], align 16
%15 = alloca [80 x i8], align 16
%16 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = call ptr @fopen(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %9, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %37
21: ; preds = %4
%22 = load ptr, ptr %8, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %9, align 8
%24 = load ptr, ptr %9, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
br label %212
27: ; preds = %21
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %5, align 8
%30 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.2, ptr noundef %29)
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.3, ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %9, align 8
%36 = call i32 @fclose(ptr noundef %35)
br label %212
37: ; preds = %4
%38 = load ptr, ptr %9, align 8
%39 = call i32 @fseek(ptr noundef %38, i32 noundef 0, i32 noundef 2)
%40 = load ptr, ptr %9, align 8
%41 = call i64 @ftell(ptr noundef %40)
%42 = trunc i64 %41 to i32
store i32 %42, ptr %16, align 4
%43 = load ptr, ptr %9, align 8
%44 = call i32 @fseek(ptr noundef %43, i32 noundef 0, i32 noundef 0)
%45 = load i32, ptr %16, align 4
%46 = add nsw i32 %45, 1
%47 = call i64 @malloc(i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %10, align 8
%49 = load ptr, ptr %10, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %54
51: ; preds = %37
%52 = load ptr, ptr %9, align 8
%53 = call i32 @fclose(ptr noundef %52)
br label %212
54: ; preds = %37
%55 = load ptr, ptr %10, align 8
%56 = load i32, ptr %16, align 4
%57 = load ptr, ptr %9, align 8
%58 = call i32 @fread(ptr noundef %55, i32 noundef %56, i32 noundef 1, ptr noundef %57)
%59 = load ptr, ptr %10, align 8
%60 = load i32, ptr %16, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 0, ptr %62, align 1
%63 = load ptr, ptr %9, align 8
%64 = call i32 @fclose(ptr noundef %63)
%65 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%66 = call i32 @strcpy(ptr noundef %65, ptr noundef @.str.4)
%67 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%68 = load ptr, ptr %5, align 8
%69 = call i32 @strcat(ptr noundef %67, ptr noundef %68)
%70 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%71 = call i32 @strcat(ptr noundef %70, ptr noundef @.str.5)
%72 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%73 = load ptr, ptr %6, align 8
%74 = call i32 @strcpy(ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%76 = call i32 @strcat(ptr noundef %75, ptr noundef @.str.6)
%77 = load ptr, ptr %10, align 8
store ptr %77, ptr %11, align 8
br label %78
78: ; preds = %181, %54
%79 = load ptr, ptr %11, align 8
%80 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%81 = call ptr @sgets(ptr noundef %79, ptr noundef %80)
store ptr %81, ptr %11, align 8
%82 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%83 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%84 = call i64 @strcasecmp(ptr noundef %82, ptr noundef %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %180
86: ; preds = %78
br label %87
87: ; preds = %137, %86
%88 = load ptr, ptr %11, align 8
store ptr %88, ptr %12, align 8
%89 = load ptr, ptr %11, align 8
%90 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%91 = call ptr @sgets(ptr noundef %89, ptr noundef %90)
store ptr %91, ptr %11, align 8
%92 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%93 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%94 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%95 = call i32 @strlen(ptr noundef %94)
%96 = call i64 @strncasecmp(ptr noundef %92, ptr noundef %93, i32 noundef %95)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %136
98: ; preds = %87
%99 = load ptr, ptr %8, align 8
%100 = call ptr @fopen(ptr noundef %99, ptr noundef @.str.1)
store ptr %100, ptr %9, align 8
%101 = load ptr, ptr %9, align 8
%102 = icmp eq ptr %101, null
br i1 %102, label %103, label %106
103: ; preds = %98
%104 = load ptr, ptr %10, align 8
%105 = call i32 @free(ptr noundef %104)
br label %212
106: ; preds = %98
%107 = load ptr, ptr %10, align 8
%108 = load ptr, ptr %12, align 8
%109 = load ptr, ptr %10, align 8
%110 = ptrtoint ptr %108 to i64
%111 = ptrtoint ptr %109 to i64
%112 = sub i64 %110, %111
%113 = trunc i64 %112 to i32
%114 = load ptr, ptr %9, align 8
%115 = call i32 @fwrite(ptr noundef %107, i32 noundef %113, i32 noundef 1, ptr noundef %114)
%116 = load ptr, ptr %9, align 8
%117 = load ptr, ptr %6, align 8
%118 = load ptr, ptr %7, align 8
%119 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.7, ptr noundef %117, ptr noundef %118)
%120 = load ptr, ptr %11, align 8
%121 = load i32, ptr %16, align 4
%122 = sext i32 %121 to i64
%123 = load ptr, ptr %11, align 8
%124 = load ptr, ptr %10, align 8
%125 = ptrtoint ptr %123 to i64
%126 = ptrtoint ptr %124 to i64
%127 = sub i64 %125, %126
%128 = sub nsw i64 %122, %127
%129 = trunc i64 %128 to i32
%130 = load ptr, ptr %9, align 8
%131 = call i32 @fwrite(ptr noundef %120, i32 noundef %129, i32 noundef 1, ptr noundef %130)
%132 = load ptr, ptr %9, align 8
%133 = call i32 @fclose(ptr noundef %132)
%134 = load ptr, ptr %10, align 8
%135 = call i32 @free(ptr noundef %134)
br label %212
136: ; preds = %87
br label %137
137: ; preds = %136
%138 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%139 = load i8, ptr %138, align 16
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %87, label %142, !llvm.loop !6
142: ; preds = %137
%143 = load ptr, ptr %8, align 8
%144 = call ptr @fopen(ptr noundef %143, ptr noundef @.str.1)
store ptr %144, ptr %9, align 8
%145 = load ptr, ptr %9, align 8
%146 = icmp eq ptr %145, null
br i1 %146, label %147, label %150
147: ; preds = %142
%148 = load ptr, ptr %10, align 8
%149 = call i32 @free(ptr noundef %148)
br label %212
150: ; preds = %142
%151 = load ptr, ptr %10, align 8
%152 = load ptr, ptr %12, align 8
%153 = load ptr, ptr %10, align 8
%154 = ptrtoint ptr %152 to i64
%155 = ptrtoint ptr %153 to i64
%156 = sub i64 %154, %155
%157 = trunc i64 %156 to i32
%158 = load ptr, ptr %9, align 8
%159 = call i32 @fwrite(ptr noundef %151, i32 noundef %157, i32 noundef 1, ptr noundef %158)
%160 = load ptr, ptr %9, align 8
%161 = load ptr, ptr %6, align 8
%162 = load ptr, ptr %7, align 8
%163 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.7, ptr noundef %161, ptr noundef %162)
%164 = load ptr, ptr %12, align 8
%165 = load i32, ptr %16, align 4
%166 = sext i32 %165 to i64
%167 = load ptr, ptr %12, align 8
%168 = load ptr, ptr %10, align 8
%169 = ptrtoint ptr %167 to i64
%170 = ptrtoint ptr %168 to i64
%171 = sub i64 %169, %170
%172 = sub nsw i64 %166, %171
%173 = trunc i64 %172 to i32
%174 = load ptr, ptr %9, align 8
%175 = call i32 @fwrite(ptr noundef %164, i32 noundef %173, i32 noundef 1, ptr noundef %174)
%176 = load ptr, ptr %9, align 8
%177 = call i32 @fclose(ptr noundef %176)
%178 = load ptr, ptr %10, align 8
%179 = call i32 @free(ptr noundef %178)
br label %212
180: ; preds = %78
br label %181
181: ; preds = %180
%182 = load ptr, ptr %11, align 8
%183 = load ptr, ptr %10, align 8
%184 = load i32, ptr %16, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %183, i64 %185
%187 = icmp ult ptr %182, %186
br i1 %187, label %78, label %188, !llvm.loop !8
188: ; preds = %181
%189 = load ptr, ptr %8, align 8
%190 = call ptr @fopen(ptr noundef %189, ptr noundef @.str.1)
store ptr %190, ptr %9, align 8
%191 = load ptr, ptr %9, align 8
%192 = icmp eq ptr %191, null
br i1 %192, label %193, label %196
193: ; preds = %188
%194 = load ptr, ptr %10, align 8
%195 = call i32 @free(ptr noundef %194)
br label %212
196: ; preds = %188
%197 = load ptr, ptr %9, align 8
%198 = load ptr, ptr %5, align 8
%199 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.2, ptr noundef %198)
%200 = load ptr, ptr %9, align 8
%201 = load ptr, ptr %6, align 8
%202 = load ptr, ptr %7, align 8
%203 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.3, ptr noundef %201, ptr noundef %202)
%204 = load ptr, ptr %10, align 8
%205 = load i32, ptr %16, align 4
%206 = load ptr, ptr %9, align 8
%207 = call i32 @fwrite(ptr noundef %204, i32 noundef %205, i32 noundef 1, ptr noundef %206)
%208 = load ptr, ptr %9, align 8
%209 = call i32 @fclose(ptr noundef %208)
%210 = load ptr, ptr %10, align 8
%211 = call i32 @free(ptr noundef %210)
br label %212
212: ; preds = %196, %193, %150, %147, %106, %103, %51, %27, %26
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @sgets(ptr noundef, ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwi5jege8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"[%s]\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"%s=%s\0D\0A\0D\0A\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"]\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"%s=%s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteINIString(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [80 x i8], align 16
%14 = alloca [80 x i8], align 16
%15 = alloca [80 x i8], align 16
%16 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = call ptr @fopen(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %9, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %37
21: ; preds = %4
%22 = load ptr, ptr %8, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %9, align 8
%24 = load ptr, ptr %9, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
br label %212
27: ; preds = %21
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %5, align 8
%30 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.2, ptr noundef %29)
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.3, ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %9, align 8
%36 = call i32 @fclose(ptr noundef %35)
br label %212
37: ; preds = %4
%38 = load ptr, ptr %9, align 8
%39 = call i32 @fseek(ptr noundef %38, i32 noundef 0, i32 noundef 2)
%40 = load ptr, ptr %9, align 8
%41 = call i64 @ftell(ptr noundef %40)
%42 = trunc i64 %41 to i32
store i32 %42, ptr %16, align 4
%43 = load ptr, ptr %9, align 8
%44 = call i32 @fseek(ptr noundef %43, i32 noundef 0, i32 noundef 0)
%45 = load i32, ptr %16, align 4
%46 = add nsw i32 %45, 1
%47 = call i64 @malloc(i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %10, align 8
%49 = load ptr, ptr %10, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %54
51: ; preds = %37
%52 = load ptr, ptr %9, align 8
%53 = call i32 @fclose(ptr noundef %52)
br label %212
54: ; preds = %37
%55 = load ptr, ptr %10, align 8
%56 = load i32, ptr %16, align 4
%57 = load ptr, ptr %9, align 8
%58 = call i32 @fread(ptr noundef %55, i32 noundef %56, i32 noundef 1, ptr noundef %57)
%59 = load ptr, ptr %10, align 8
%60 = load i32, ptr %16, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 0, ptr %62, align 1
%63 = load ptr, ptr %9, align 8
%64 = call i32 @fclose(ptr noundef %63)
%65 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%66 = call i32 @strcpy(ptr noundef %65, ptr noundef @.str.4)
%67 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%68 = load ptr, ptr %5, align 8
%69 = call i32 @strcat(ptr noundef %67, ptr noundef %68)
%70 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%71 = call i32 @strcat(ptr noundef %70, ptr noundef @.str.5)
%72 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%73 = load ptr, ptr %6, align 8
%74 = call i32 @strcpy(ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%76 = call i32 @strcat(ptr noundef %75, ptr noundef @.str.6)
%77 = load ptr, ptr %10, align 8
store ptr %77, ptr %11, align 8
br label %78
78: ; preds = %181, %54
%79 = load ptr, ptr %11, align 8
%80 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%81 = call ptr @sgets(ptr noundef %79, ptr noundef %80)
store ptr %81, ptr %11, align 8
%82 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%83 = getelementptr inbounds [80 x i8], ptr %14, i64 0, i64 0
%84 = call i64 @strcasecmp(ptr noundef %82, ptr noundef %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %180
86: ; preds = %78
br label %87
87: ; preds = %137, %86
%88 = load ptr, ptr %11, align 8
store ptr %88, ptr %12, align 8
%89 = load ptr, ptr %11, align 8
%90 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%91 = call ptr @sgets(ptr noundef %89, ptr noundef %90)
store ptr %91, ptr %11, align 8
%92 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%93 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%94 = getelementptr inbounds [80 x i8], ptr %15, i64 0, i64 0
%95 = call i32 @strlen(ptr noundef %94)
%96 = call i64 @strncasecmp(ptr noundef %92, ptr noundef %93, i32 noundef %95)
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %136
98: ; preds = %87
%99 = load ptr, ptr %8, align 8
%100 = call ptr @fopen(ptr noundef %99, ptr noundef @.str.1)
store ptr %100, ptr %9, align 8
%101 = load ptr, ptr %9, align 8
%102 = icmp eq ptr %101, null
br i1 %102, label %103, label %106
103: ; preds = %98
%104 = load ptr, ptr %10, align 8
%105 = call i32 @free(ptr noundef %104)
br label %212
106: ; preds = %98
%107 = load ptr, ptr %10, align 8
%108 = load ptr, ptr %12, align 8
%109 = load ptr, ptr %10, align 8
%110 = ptrtoint ptr %108 to i64
%111 = ptrtoint ptr %109 to i64
%112 = sub i64 %110, %111
%113 = trunc i64 %112 to i32
%114 = load ptr, ptr %9, align 8
%115 = call i32 @fwrite(ptr noundef %107, i32 noundef %113, i32 noundef 1, ptr noundef %114)
%116 = load ptr, ptr %9, align 8
%117 = load ptr, ptr %6, align 8
%118 = load ptr, ptr %7, align 8
%119 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.7, ptr noundef %117, ptr noundef %118)
%120 = load ptr, ptr %11, align 8
%121 = load i32, ptr %16, align 4
%122 = sext i32 %121 to i64
%123 = load ptr, ptr %11, align 8
%124 = load ptr, ptr %10, align 8
%125 = ptrtoint ptr %123 to i64
%126 = ptrtoint ptr %124 to i64
%127 = sub i64 %125, %126
%128 = sub nsw i64 %122, %127
%129 = trunc i64 %128 to i32
%130 = load ptr, ptr %9, align 8
%131 = call i32 @fwrite(ptr noundef %120, i32 noundef %129, i32 noundef 1, ptr noundef %130)
%132 = load ptr, ptr %9, align 8
%133 = call i32 @fclose(ptr noundef %132)
%134 = load ptr, ptr %10, align 8
%135 = call i32 @free(ptr noundef %134)
br label %212
136: ; preds = %87
br label %137
137: ; preds = %136
%138 = getelementptr inbounds [80 x i8], ptr %13, i64 0, i64 0
%139 = load i8, ptr %138, align 16
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %87, label %142, !llvm.loop !6
142: ; preds = %137
%143 = load ptr, ptr %8, align 8
%144 = call ptr @fopen(ptr noundef %143, ptr noundef @.str.1)
store ptr %144, ptr %9, align 8
%145 = load ptr, ptr %9, align 8
%146 = icmp eq ptr %145, null
br i1 %146, label %147, label %150
147: ; preds = %142
%148 = load ptr, ptr %10, align 8
%149 = call i32 @free(ptr noundef %148)
br label %212
150: ; preds = %142
%151 = load ptr, ptr %10, align 8
%152 = load ptr, ptr %12, align 8
%153 = load ptr, ptr %10, align 8
%154 = ptrtoint ptr %152 to i64
%155 = ptrtoint ptr %153 to i64
%156 = sub i64 %154, %155
%157 = trunc i64 %156 to i32
%158 = load ptr, ptr %9, align 8
%159 = call i32 @fwrite(ptr noundef %151, i32 noundef %157, i32 noundef 1, ptr noundef %158)
%160 = load ptr, ptr %9, align 8
%161 = load ptr, ptr %6, align 8
%162 = load ptr, ptr %7, align 8
%163 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.7, ptr noundef %161, ptr noundef %162)
%164 = load ptr, ptr %12, align 8
%165 = load i32, ptr %16, align 4
%166 = sext i32 %165 to i64
%167 = load ptr, ptr %12, align 8
%168 = load ptr, ptr %10, align 8
%169 = ptrtoint ptr %167 to i64
%170 = ptrtoint ptr %168 to i64
%171 = sub i64 %169, %170
%172 = sub nsw i64 %166, %171
%173 = trunc i64 %172 to i32
%174 = load ptr, ptr %9, align 8
%175 = call i32 @fwrite(ptr noundef %164, i32 noundef %173, i32 noundef 1, ptr noundef %174)
%176 = load ptr, ptr %9, align 8
%177 = call i32 @fclose(ptr noundef %176)
%178 = load ptr, ptr %10, align 8
%179 = call i32 @free(ptr noundef %178)
br label %212
180: ; preds = %78
br label %181
181: ; preds = %180
%182 = load ptr, ptr %11, align 8
%183 = load ptr, ptr %10, align 8
%184 = load i32, ptr %16, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %183, i64 %185
%187 = icmp ult ptr %182, %186
br i1 %187, label %78, label %188, !llvm.loop !8
188: ; preds = %181
%189 = load ptr, ptr %8, align 8
%190 = call ptr @fopen(ptr noundef %189, ptr noundef @.str.1)
store ptr %190, ptr %9, align 8
%191 = load ptr, ptr %9, align 8
%192 = icmp eq ptr %191, null
br i1 %192, label %193, label %196
193: ; preds = %188
%194 = load ptr, ptr %10, align 8
%195 = call i32 @free(ptr noundef %194)
br label %212
196: ; preds = %188
%197 = load ptr, ptr %9, align 8
%198 = load ptr, ptr %5, align 8
%199 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.2, ptr noundef %198)
%200 = load ptr, ptr %9, align 8
%201 = load ptr, ptr %6, align 8
%202 = load ptr, ptr %7, align 8
%203 = call i32 (ptr, ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.3, ptr noundef %201, ptr noundef %202)
%204 = load ptr, ptr %10, align 8
%205 = load i32, ptr %16, align 4
%206 = load ptr, ptr %9, align 8
%207 = call i32 @fwrite(ptr noundef %204, i32 noundef %205, i32 noundef 1, ptr noundef %206)
%208 = load ptr, ptr %9, align 8
%209 = call i32 @fclose(ptr noundef %208)
%210 = load ptr, ptr %10, align 8
%211 = call i32 @free(ptr noundef %210)
br label %212
212: ; preds = %196, %193, %150, %147, %106, %103, %51, %27, %26
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @sgets(ptr noundef, ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6_q29p9n.c'
source_filename = "/tmp/tmp6_q29p9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initArr(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %11, %12
store i32 %13, ptr %10, align 4
br label %14
14: ; preds = %28, %4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %31
18: ; preds = %14
%19 = call i32 (...) @rand()
%20 = load i32, ptr %10, align 4
%21 = srem i32 %19, %20
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %21, %22
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
store i32 %23, ptr %27, align 4
br label %28
28: ; preds = %18
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %14, !llvm.loop !6
31: ; preds = %14
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6_q29p9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initArr(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %11, %12
store i32 %13, ptr %10, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %33
.lr.ph: ; preds = %4
br label %17
17: ; preds = %.lr.ph, %27
%18 = call i32 (...) @rand()
%19 = load i32, ptr %10, align 4
%20 = srem i32 %18, %19
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %20, %21
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
store i32 %22, ptr %26, align 4
br label %27
27: ; preds = %17
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %4
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpku8l2cx4.c'
source_filename = "/tmp/tmpku8l2cx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"March\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"April\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"May\00", align 1
@__const.print_date.months = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [13 x i8] c"%-5s %2d %d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_date(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [3 x ptr], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.print_date.months, i64 24, i1 false)
%8 = load i32, ptr %5, align 4
%9 = sub nsw i32 %8, 3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @printf(ptr noundef @.str.3, ptr noundef %12, i32 noundef %13, i32 noundef %14)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpku8l2cx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"March\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"April\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"May\00", align 1
@__const.print_date.months = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [13 x i8] c"%-5s %2d %d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_date(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [3 x ptr], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.print_date.months, i64 24, i1 false)
%8 = load i32, ptr %5, align 4
%9 = sub nsw i32 %8, 3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @printf(ptr noundef @.str.3, ptr noundef %12, i32 noundef %13, i32 noundef %14)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0iarbekh.c'
source_filename = "/tmp/tmp0iarbekh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @INT_P2() #0 {
%1 = call i32 @HandleInterrupt(i32 noundef 2)
ret void
}
declare i32 @HandleInterrupt(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/tmp0iarbekh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @INT_P2() #0 {
%1 = call i32 @HandleInterrupt(i32 noundef 2)
ret void
}
declare i32 @HandleInterrupt(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/tmpxg1q7gvo.c'
source_filename = "/tmp/tmpxg1q7gvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"El numero de caracteres es %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = call i32 (...) @getchar()
store i32 %6, ptr %2, align 4
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr @EOF, align 4
%11 = icmp ne i32 %9, %10
br label %12
12: ; preds = %8, %5
%13 = phi i1 [ false, %5 ], [ %11, %8 ]
br i1 %13, label %14, label %17
14: ; preds = %12
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %5, !llvm.loop !6
17: ; preds = %12
%18 = load i32, ptr %3, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxg1q7gvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"El numero de caracteres es %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = call i32 (...) @getchar()
store i32 %6, ptr %2, align 4
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr @EOF, align 4
%11 = icmp ne i32 %9, %10
br label %12
12: ; preds = %8, %5
%13 = phi i1 [ false, %5 ], [ %11, %8 ]
br i1 %13, label %14, label %17
14: ; preds = %12
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %5, !llvm.loop !6
17: ; preds = %12
%18 = load i32, ptr %3, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr %1, align 4
ret i32 %20
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7jmndg93.c'
source_filename = "/tmp/tmp7jmndg93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"movl\09%eax,%edx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgldinc() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7jmndg93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"movl\09%eax,%edx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgldinc() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgvp7bpbr.c'
source_filename = "/tmp/tmpgvp7bpbr.c"
target datalayout = "e-m:e-p270: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 [17 x i8] c"switch mem error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SwitchMemory(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%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
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load i32, ptr %17, align 4
%19 = sub nsw i32 0, %18
%20 = load ptr, ptr %9, align 8
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr %21, align 4
switch i32 %22, label %45 [
i32 -1, label %23
i32 1, label %34
]
23: ; preds = %8
%24 = load ptr, ptr %12, align 8
store i32 2, ptr %24, align 4
%25 = load ptr, ptr %16, align 8
%26 = call i32 @pthread_mutex_unlock(ptr noundef %25)
%27 = load ptr, ptr %13, align 8
%28 = call i32 @pthread_mutex_lock(ptr noundef %27)
%29 = load ptr, ptr %14, align 8
%30 = call i32 @pthread_mutex_lock(ptr noundef %29)
%31 = load ptr, ptr %11, align 8
%32 = getelementptr i8, ptr %31, i64 4
%33 = load ptr, ptr %10, align 8
store ptr %32, ptr %33, align 8
br label %49
34: ; preds = %8
%35 = load ptr, ptr %11, align 8
store i32 2, ptr %35, align 4
%36 = load ptr, ptr %14, align 8
%37 = call i32 @pthread_mutex_unlock(ptr noundef %36)
%38 = load ptr, ptr %15, align 8
%39 = call i32 @pthread_mutex_lock(ptr noundef %38)
%40 = load ptr, ptr %16, align 8
%41 = call i32 @pthread_mutex_lock(ptr noundef %40)
%42 = load ptr, ptr %12, align 8
%43 = getelementptr i8, ptr %42, i64 4
%44 = load ptr, ptr %10, align 8
store ptr %43, ptr %44, align 8
br label %49
45: ; preds = %8
%46 = load i32, ptr @stderr, align 4
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str)
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %34, %23
ret void
}
declare i32 @pthread_mutex_unlock(ptr noundef) #1
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgvp7bpbr.c"
target datalayout = "e-m:e-p270: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 [17 x i8] c"switch mem error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SwitchMemory(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%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
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load i32, ptr %17, align 4
%19 = sub nsw i32 0, %18
%20 = load ptr, ptr %9, align 8
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr %21, align 4
switch i32 %22, label %45 [
i32 -1, label %23
i32 1, label %34
]
23: ; preds = %8
%24 = load ptr, ptr %12, align 8
store i32 2, ptr %24, align 4
%25 = load ptr, ptr %16, align 8
%26 = call i32 @pthread_mutex_unlock(ptr noundef %25)
%27 = load ptr, ptr %13, align 8
%28 = call i32 @pthread_mutex_lock(ptr noundef %27)
%29 = load ptr, ptr %14, align 8
%30 = call i32 @pthread_mutex_lock(ptr noundef %29)
%31 = load ptr, ptr %11, align 8
%32 = getelementptr i8, ptr %31, i64 4
%33 = load ptr, ptr %10, align 8
store ptr %32, ptr %33, align 8
br label %49
34: ; preds = %8
%35 = load ptr, ptr %11, align 8
store i32 2, ptr %35, align 4
%36 = load ptr, ptr %14, align 8
%37 = call i32 @pthread_mutex_unlock(ptr noundef %36)
%38 = load ptr, ptr %15, align 8
%39 = call i32 @pthread_mutex_lock(ptr noundef %38)
%40 = load ptr, ptr %16, align 8
%41 = call i32 @pthread_mutex_lock(ptr noundef %40)
%42 = load ptr, ptr %12, align 8
%43 = getelementptr i8, ptr %42, i64 4
%44 = load ptr, ptr %10, align 8
store ptr %43, ptr %44, align 8
br label %49
45: ; preds = %8
%46 = load i32, ptr @stderr, align 4
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str)
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %34, %23
ret void
}
declare i32 @pthread_mutex_unlock(ptr noundef) #1
declare i32 @pthread_mutex_lock(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp713aoevw.c'
source_filename = "/tmp/tmp713aoevw.c"
target datalayout = "e-m:e-p270: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/tmp713aoevw.c"
target datalayout = "e-m:e-p270: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/tmphx3gmpvf.c'
source_filename = "/tmp/tmphx3gmpvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [2 x i8], align 1
%4 = alloca [2 x i8], align 1
%5 = alloca [2 x i8], align 1
%6 = alloca [2 x i8], align 1
%7 = alloca [2 x i8], align 1
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
store i8 32, ptr %8, align 1
%9 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 1
store i8 0, ptr %9, align 1
%10 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
store i8 88, ptr %10, align 1
%11 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 1
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 89, ptr %12, align 1
%13 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 1
store i8 0, ptr %13, align 1
%14 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
store i8 87, ptr %14, align 1
%15 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
store i8 0, ptr %15, align 1
%16 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
store i8 10, ptr %16, align 1
%17 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 1
store i8 0, ptr %17, align 1
store i32 0, ptr %2, align 4
br label %18
18: ; preds = %50, %0
%19 = load i32, ptr %2, align 4
%20 = icmp ne i32 %19, 21
br i1 %20, label %21, label %55
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = call i32 @putint(i32 noundef %22)
%24 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%25 = call i32 @putstring(ptr noundef %24)
%26 = load i32, ptr %2, align 4
%27 = sdiv i32 %26, 2
%28 = mul nsw i32 %27, 2
%29 = load i32, ptr %2, align 4
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %21
%32 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%33 = call i32 @putstring(ptr noundef %32)
br label %34
34: ; preds = %31, %21
%35 = load i32, ptr %2, align 4
%36 = sdiv i32 %35, 3
%37 = mul nsw i32 %36, 3
%38 = load i32, ptr %2, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%42 = call i32 @putstring(ptr noundef %41)
br label %50
43: ; preds = %34
%44 = load i32, ptr %2, align 4
%45 = icmp sgt i32 %44, 10
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%48 = call i32 @putstring(ptr noundef %47)
br label %49
49: ; preds = %46, %43
br label %50
50: ; preds = %49, %40
%51 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @putstring(ptr noundef %51)
%53 = load i32, ptr %2, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %2, align 4
br label %18, !llvm.loop !6
55: ; preds = %18
%56 = load i32, ptr %1, align 4
ret i32 %56
}
declare i32 @putint(i32 noundef) #1
declare i32 @putstring(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmphx3gmpvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [2 x i8], align 1
%4 = alloca [2 x i8], align 1
%5 = alloca [2 x i8], align 1
%6 = alloca [2 x i8], align 1
%7 = alloca [2 x i8], align 1
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
store i8 32, ptr %8, align 1
%9 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 1
store i8 0, ptr %9, align 1
%10 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
store i8 88, ptr %10, align 1
%11 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 1
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
store i8 89, ptr %12, align 1
%13 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 1
store i8 0, ptr %13, align 1
%14 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
store i8 87, ptr %14, align 1
%15 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
store i8 0, ptr %15, align 1
%16 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
store i8 10, ptr %16, align 1
%17 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 1
store i8 0, ptr %17, align 1
store i32 0, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp ne i32 %18, 21
br i1 %19, label %.lr.ph, label %56
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %49
%21 = load i32, ptr %2, align 4
%22 = call i32 @putint(i32 noundef %21)
%23 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @putstring(ptr noundef %23)
%25 = load i32, ptr %2, align 4
%26 = sdiv i32 %25, 2
%27 = mul nsw i32 %26, 2
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %20
%31 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%32 = call i32 @putstring(ptr noundef %31)
br label %33
33: ; preds = %30, %20
%34 = load i32, ptr %2, align 4
%35 = sdiv i32 %34, 3
%36 = mul nsw i32 %35, 3
%37 = load i32, ptr %2, align 4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %42
39: ; preds = %33
%40 = getelementptr inbounds [2 x i8], ptr %5, i64 0, i64 0
%41 = call i32 @putstring(ptr noundef %40)
br label %49
42: ; preds = %33
%43 = load i32, ptr %2, align 4
%44 = icmp sgt i32 %43, 10
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%47 = call i32 @putstring(ptr noundef %46)
br label %48
48: ; preds = %45, %42
br label %49
49: ; preds = %48, %39
%50 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
%51 = call i32 @putstring(ptr noundef %50)
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %2, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp ne i32 %54, 21
br i1 %55, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %56
56: ; preds = %._crit_edge, %0
%57 = load i32, ptr %1, align 4
ret i32 %57
}
declare i32 @putint(i32 noundef) #1
declare i32 @putstring(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpu54ef633.c'
source_filename = "/tmp/tmpu54ef633.c"
target datalayout = "e-m:e-p270: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/tmpu54ef633.c"
target datalayout = "e-m:e-p270: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_gkd1r8g.c'
source_filename = "/tmp/tmp_gkd1r8g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chol(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
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %42, %3
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %45
15: ; preds = %11
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %38, %15
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %41
20: ; preds = %16
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = mul nsw i32 %22, %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, ptr %21, i64 %27
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %6, align 4
%33 = mul nsw i32 %31, %32
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %30, i64 %36
store double %29, ptr %37, align 8
br label %38
38: ; preds = %20
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
br label %16, !llvm.loop !6
41: ; preds = %16
br label %42
42: ; preds = %41
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %11, !llvm.loop !8
45: ; preds = %11
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds double, ptr %46, i64 0
%48 = load double, ptr %47, align 8
store double %48, ptr %10, align 8
%49 = load ptr, ptr %4, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = call i32 @cholA(ptr noundef %49, ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %45
%56 = load double, ptr %10, align 8
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds double, ptr %57, i64 0
store double %56, ptr %58, align 8
br label %59
59: ; preds = %55, %45
store i32 1, ptr %7, align 4
br label %60
60: ; preds = %76, %59
%61 = load i32, ptr %7, align 4
%62 = load i32, ptr %9, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %79
64: ; preds = %60
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %7, align 4
%67 = load i32, ptr %6, align 4
%68 = mul nsw i32 %66, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %65, i64 %69
%71 = load double, ptr %70, align 8
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %7, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, ptr %72, i64 %74
store double %71, ptr %75, align 8
br label %76
76: ; preds = %64
%77 = load i32, ptr %7, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %7, align 4
br label %60, !llvm.loop !9
79: ; preds = %60
%80 = load i32, ptr %9, align 4
%81 = load i32, ptr %6, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %86
83: ; preds = %79
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds double, ptr %84, i64 0
store double -1.000000e+00, ptr %85, align 8
br label %86
86: ; preds = %83, %79
ret void
}
declare i32 @cholA(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_gkd1r8g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chol(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
%9 = alloca i32, align 4
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph2, label %49
.lr.ph2: ; preds = %3
br label %14
14: ; preds = %.lr.ph2, %43
store i32 0, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %.lr.ph, label %42
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %36
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds double, ptr %19, i64 %25
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = mul nsw i32 %29, %30
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %28, i64 %34
store double %27, ptr %35, align 8
br label %36
36: ; preds = %18
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %14
br label %43
43: ; preds = %42
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %43
br label %49
49: ; preds = %._crit_edge3, %3
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds double, ptr %50, i64 0
%52 = load double, ptr %51, align 8
store double %52, ptr %10, align 8
%53 = load ptr, ptr %4, align 8
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %6, align 4
%56 = call i32 @cholA(ptr noundef %53, ptr noundef %54, i32 noundef %55)
store i32 %56, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %49
%60 = load double, ptr %10, align 8
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds double, ptr %61, i64 0
store double %60, ptr %62, align 8
br label %63
63: ; preds = %59, %49
store i32 1, ptr %7, align 4
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph5, label %85
.lr.ph5: ; preds = %63
br label %67
67: ; preds = %.lr.ph5, %79
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %6, align 4
%71 = mul nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %68, i64 %72
%74 = load double, ptr %73, align 8
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %75, i64 %77
store double %74, ptr %78, align 8
br label %79
79: ; preds = %67
%80 = load i32, ptr %7, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %7, align 4
%82 = load i32, ptr %7, align 4
%83 = load i32, ptr %9, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %79
br label %85
85: ; preds = %._crit_edge6, %63
%86 = load i32, ptr %9, align 4
%87 = load i32, ptr %6, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %92
89: ; preds = %85
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds double, ptr %90, i64 0
store double -1.000000e+00, ptr %91, align 8
br label %92
92: ; preds = %89, %85
ret void
}
declare i32 @cholA(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpls9g4m89.c'
source_filename = "/tmp/tmpls9g4m89.c"
target datalayout = "e-m:e-p270: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/tmpls9g4m89.c"
target datalayout = "e-m:e-p270: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/tmp01bch4lz.c'
source_filename = "/tmp/tmp01bch4lz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @kernel_laplacian(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%8 = load float, ptr %4, align 4
%9 = load float, ptr %5, align 4
%10 = fdiv float %8, %9
store float %10, ptr %6, align 4
%11 = load float, ptr %5, align 4
%12 = fpext float %11 to double
%13 = fmul double 0x401645F7C63F24E8, %12
%14 = load float, ptr %5, align 4
%15 = fpext float %14 to double
%16 = fmul double %13, %15
%17 = load float, ptr %5, align 4
%18 = fpext float %17 to double
%19 = fmul double %16, %18
%20 = fdiv double 1.000000e+00, %19
%21 = fptrunc double %20 to float
store float %21, ptr %7, align 4
%22 = load float, ptr %6, align 4
%23 = fpext float %22 to double
%24 = fcmp oge double %23, 2.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %58
26: ; preds = %2
%27 = load float, ptr %7, align 4
%28 = load float, ptr %6, align 4
%29 = fneg float %28
%30 = load float, ptr %6, align 4
%31 = fmul float %29, %30
%32 = call float @exp(float noundef %31)
%33 = fmul float %27, %32
%34 = fpext float %33 to double
%35 = load float, ptr %5, align 4
%36 = load float, ptr %5, align 4
%37 = fmul float %35, %36
%38 = fpext float %37 to double
%39 = fdiv double -6.000000e+00, %38
%40 = load float, ptr %4, align 4
%41 = fpext float %40 to double
%42 = fmul double 4.000000e+00, %41
%43 = load float, ptr %4, align 4
%44 = fpext float %43 to double
%45 = fmul double %42, %44
%46 = load float, ptr %5, align 4
%47 = load float, ptr %5, align 4
%48 = fmul float %46, %47
%49 = load float, ptr %5, align 4
%50 = fmul float %48, %49
%51 = load float, ptr %5, align 4
%52 = fmul float %50, %51
%53 = fpext float %52 to double
%54 = fdiv double %45, %53
%55 = fadd double %39, %54
%56 = fmul double %34, %55
%57 = fptrunc double %56 to float
store float %57, ptr %3, align 4
br label %58
58: ; preds = %26, %25
%59 = load float, ptr %3, align 4
ret float %59
}
declare float @exp(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp01bch4lz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @kernel_laplacian(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%8 = load float, ptr %4, align 4
%9 = load float, ptr %5, align 4
%10 = fdiv float %8, %9
store float %10, ptr %6, align 4
%11 = load float, ptr %5, align 4
%12 = fpext float %11 to double
%13 = fmul double 0x401645F7C63F24E8, %12
%14 = load float, ptr %5, align 4
%15 = fpext float %14 to double
%16 = fmul double %13, %15
%17 = load float, ptr %5, align 4
%18 = fpext float %17 to double
%19 = fmul double %16, %18
%20 = fdiv double 1.000000e+00, %19
%21 = fptrunc double %20 to float
store float %21, ptr %7, align 4
%22 = load float, ptr %6, align 4
%23 = fpext float %22 to double
%24 = fcmp oge double %23, 2.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %58
26: ; preds = %2
%27 = load float, ptr %7, align 4
%28 = load float, ptr %6, align 4
%29 = fneg float %28
%30 = load float, ptr %6, align 4
%31 = fmul float %29, %30
%32 = call float @exp(float noundef %31)
%33 = fmul float %27, %32
%34 = fpext float %33 to double
%35 = load float, ptr %5, align 4
%36 = load float, ptr %5, align 4
%37 = fmul float %35, %36
%38 = fpext float %37 to double
%39 = fdiv double -6.000000e+00, %38
%40 = load float, ptr %4, align 4
%41 = fpext float %40 to double
%42 = fmul double 4.000000e+00, %41
%43 = load float, ptr %4, align 4
%44 = fpext float %43 to double
%45 = fmul double %42, %44
%46 = load float, ptr %5, align 4
%47 = load float, ptr %5, align 4
%48 = fmul float %46, %47
%49 = load float, ptr %5, align 4
%50 = fmul float %48, %49
%51 = load float, ptr %5, align 4
%52 = fmul float %50, %51
%53 = fpext float %52 to double
%54 = fdiv double %45, %53
%55 = fadd double %39, %54
%56 = fmul double %34, %55
%57 = fptrunc double %56 to float
store float %57, ptr %3, align 4
br label %58
58: ; preds = %26, %25
%59 = load float, ptr %3, align 4
ret float %59
}
declare float @exp(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx66wc2_x.c'
source_filename = "/tmp/tmpx66wc2_x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sclient_copyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %3, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %33
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %33
18: ; preds = %15
br label %19
19: ; preds = %26, %18
%20 = load ptr, ptr %5, align 8
%21 = call i32 @fgetc(ptr noundef %20)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr @EOF, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %19
br label %32
26: ; preds = %19
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fputc(i32 noundef %27, ptr noundef %28)
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
br label %19
32: ; preds = %25
br label %33
33: ; preds = %32, %15, %2
%34 = load ptr, ptr %5, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load ptr, ptr %5, align 8
%38 = call i32 @fclose(ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load ptr, ptr %6, align 8
%41 = icmp ne ptr %40, null
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load ptr, ptr %6, align 8
%44 = call i32 @fclose(ptr noundef %43)
br label %45
45: ; preds = %42, %39
%46 = load i32, ptr %8, align 4
ret i32 %46
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx66wc2_x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sclient_copyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %8, align 4
%9 = load ptr, ptr %3, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @fopen(ptr noundef %11, ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %37
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %37
18: ; preds = %15
%19 = load ptr, ptr %5, align 8
%20 = call i32 @fgetc(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr @EOF, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %.lr.ph
.lr.ph: ; preds = %18
br label %25
._crit_edge: ; preds = %25
br label %24
24: ; preds = %._crit_edge, %18
br label %36
25: ; preds = %.lr.ph, %25
%26 = load i32, ptr %7, align 4
%27 = load ptr, ptr %6, align 8
%28 = call i32 @fputc(i32 noundef %26, ptr noundef %27)
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
%31 = load ptr, ptr %5, align 8
%32 = call i32 @fgetc(ptr noundef %31)
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr @EOF, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %._crit_edge, label %25
36: ; preds = %24
br label %37
37: ; preds = %36, %15, %2
%38 = load ptr, ptr %5, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load ptr, ptr %5, align 8
%42 = call i32 @fclose(ptr noundef %41)
br label %43
43: ; preds = %40, %37
%44 = load ptr, ptr %6, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load ptr, ptr %6, align 8
%48 = call i32 @fclose(ptr noundef %47)
br label %49
49: ; preds = %46, %43
%50 = load i32, ptr %8, align 4
ret i32 %50
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16nq6nwt.c'
source_filename = "/tmp/tmp16nq6nwt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memcpy_bad2() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca [20 x i32], align 16
%3 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @memcpy(ptr noundef %3, ptr noundef %4, i32 noundef 44)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16nq6nwt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memcpy_bad2() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca [20 x i32], align 16
%3 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @memcpy(ptr noundef %3, ptr noundef %4, i32 noundef 44)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.