llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpabdconwj.c'
source_filename = "/tmp/tmpabdconwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twister_genrand64_real2() #0 {
%1 = call i32 (...) @twister_genrand64_int64()
%2 = ashr i32 %1, 11
%3 = sitofp i32 %2 to double
%4 = fmul double %3, 0x3CA0000000000000
ret double %4
}
declare i32 @twister_genrand64_int64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpabdconwj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twister_genrand64_real2() #0 {
%1 = call i32 (...) @twister_genrand64_int64()
%2 = ashr i32 %1, 11
%3 = sitofp i32 %2 to double
%4 = fmul double %3, 0x3CA0000000000000
ret double %4
}
declare i32 @twister_genrand64_int64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm6o0aibv.c'
source_filename = "/tmp/tmpm6o0aibv.c"
target datalayout = "e-m:e-p270: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/tmpm6o0aibv.c"
target datalayout = "e-m:e-p270: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/tmpg7_p5_1k.c'
source_filename = "/tmp/tmpg7_p5_1k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerIntClear(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @_TimerBaseValid(i64 noundef %5)
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %3, align 8
%10 = add nsw i64 %9, 36
%11 = inttoptr i64 %10 to ptr
store volatile i64 %8, ptr %11, align 8
ret void
}
declare i32 @ASSERT(i32 noundef) #1
declare i32 @_TimerBaseValid(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg7_p5_1k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerIntClear(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = call i32 @_TimerBaseValid(i64 noundef %5)
%7 = call i32 @ASSERT(i32 noundef %6)
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %3, align 8
%10 = add nsw i64 %9, 36
%11 = inttoptr i64 %10 to ptr
store volatile i64 %8, ptr %11, align 8
ret void
}
declare i32 @ASSERT(i32 noundef) #1
declare i32 @_TimerBaseValid(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2sgwni2n.c'
source_filename = "/tmp/tmp2sgwni2n.c"
target datalayout = "e-m:e-p270: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/tmp2sgwni2n.c"
target datalayout = "e-m:e-p270: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/tmp4rkg9n4n.c'
source_filename = "/tmp/tmp4rkg9n4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex2bin(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
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 %8
8: ; preds = %27, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @char2int(i8 noundef zeroext %14)
%16 = mul nsw i32 %15, 16
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
%19 = load i8, ptr %18, align 1
%20 = call i32 @char2int(i8 noundef zeroext %19)
%21 = add nsw i32 %16, %20
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
store i8 %22, ptr %23, align 1
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 2
store ptr %26, ptr %5, align 8
br label %27
27: ; preds = %12
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 2
store i32 %29, ptr %7, align 4
br label %8, !llvm.loop !6
30: ; preds = %8
ret void
}
declare i32 @char2int(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4rkg9n4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex2bin(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
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
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %26
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = call i32 @char2int(i8 noundef zeroext %13)
%15 = mul nsw i32 %14, 16
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = call i32 @char2int(i8 noundef zeroext %18)
%20 = add nsw i32 %15, %19
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
store i8 %21, ptr %22, align 1
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 2
store ptr %25, ptr %5, align 8
br label %26
26: ; preds = %11
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 2
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %3
ret void
}
declare i32 @char2int(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpv9fnzish.c'
source_filename = "/tmp/tmpv9fnzish.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pirfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv9fnzish.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pirfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_f4xy_rw.c'
source_filename = "/tmp/tmp_f4xy_rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0A\0AUsage: PassFuck [Options ] param\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\09 -t \09Target Host\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\09 -n \09Number of port\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\09 -l \09Login name\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"\09 -p \09password\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"\09 -L \09LoginNameDict File\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"\09 -P \09PassDict File\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"\09 -s \09Service or Protocol\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"\09 -o \09Write correct items to file\00", align 1
@.str.9 = private unnamed_addr constant [28 x i8] c"\09 -h \09Show this help mesage\00", align 1
@.str.10 = private unnamed_addr constant [25 x i8] c"\09 -v \09Show basic verbose\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"\09 -vv \09Show every attempt\00", align 1
@.str.12 = private unnamed_addr constant [53 x i8] c"\09 -vvv \09Show every Connection deatils int palin text\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.14 = private unnamed_addr constant [81 x i8] c"eg.1:\09PassFuck -s smtp -t mail.lzu.edu.cn -l victim@lzu.edu.cn -p ThisIsP@ssword\00", align 1
@.str.15 = private unnamed_addr constant [95 x i8] c"eg.1:\09PassFuck -s smtp -t mail.lzu.edu.cn -L USERDICT.txt -P PASSDICT.txt -o passwordtable.txt\00", align 1
@.str.16 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showUsage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @puts(ptr noundef @.str.12)
%14 = call i32 @puts(ptr noundef @.str.13)
%15 = call i32 @puts(ptr noundef @.str.14)
%16 = call i32 @puts(ptr noundef @.str.15)
%17 = call i32 @puts(ptr noundef @.str.16)
ret void
}
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/tmp_f4xy_rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0A\0AUsage: PassFuck [Options ] param\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"\09 -t \09Target Host\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\09 -n \09Number of port\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\09 -l \09Login name\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"\09 -p \09password\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"\09 -L \09LoginNameDict File\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"\09 -P \09PassDict File\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"\09 -s \09Service or Protocol\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"\09 -o \09Write correct items to file\00", align 1
@.str.9 = private unnamed_addr constant [28 x i8] c"\09 -h \09Show this help mesage\00", align 1
@.str.10 = private unnamed_addr constant [25 x i8] c"\09 -v \09Show basic verbose\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"\09 -vv \09Show every attempt\00", align 1
@.str.12 = private unnamed_addr constant [53 x i8] c"\09 -vvv \09Show every Connection deatils int palin text\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.14 = private unnamed_addr constant [81 x i8] c"eg.1:\09PassFuck -s smtp -t mail.lzu.edu.cn -l victim@lzu.edu.cn -p ThisIsP@ssword\00", align 1
@.str.15 = private unnamed_addr constant [95 x i8] c"eg.1:\09PassFuck -s smtp -t mail.lzu.edu.cn -L USERDICT.txt -P PASSDICT.txt -o passwordtable.txt\00", align 1
@.str.16 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showUsage() #0 {
%1 = call i32 @puts(ptr noundef @.str)
%2 = call i32 @puts(ptr noundef @.str.1)
%3 = call i32 @puts(ptr noundef @.str.2)
%4 = call i32 @puts(ptr noundef @.str.3)
%5 = call i32 @puts(ptr noundef @.str.4)
%6 = call i32 @puts(ptr noundef @.str.5)
%7 = call i32 @puts(ptr noundef @.str.6)
%8 = call i32 @puts(ptr noundef @.str.7)
%9 = call i32 @puts(ptr noundef @.str.8)
%10 = call i32 @puts(ptr noundef @.str.9)
%11 = call i32 @puts(ptr noundef @.str.10)
%12 = call i32 @puts(ptr noundef @.str.11)
%13 = call i32 @puts(ptr noundef @.str.12)
%14 = call i32 @puts(ptr noundef @.str.13)
%15 = call i32 @puts(ptr noundef @.str.14)
%16 = call i32 @puts(ptr noundef @.str.15)
%17 = call i32 @puts(ptr noundef @.str.16)
ret void
}
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/tmpif80xkcy.c'
source_filename = "/tmp/tmpif80xkcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello from mydll\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_hello() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpif80xkcy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello from mydll\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @my_hello() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpds_7qgwk.c'
source_filename = "/tmp/tmpds_7qgwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"find the summation of all the primes from zero to: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%d is prime \0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%llu\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 i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %23, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %26
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = call i64 @check_prime(i32 noundef %12)
%14 = icmp sgt i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %4, align 8
%21 = add nsw i64 %20, %19
store i64 %21, ptr %4, align 8
br label %22
22: ; preds = %15, %11
br label %23
23: ; preds = %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
br label %7, !llvm.loop !6
26: ; preds = %7
%27 = load i64, ptr %4, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %27)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @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/tmpds_7qgwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"find the summation of all the primes from zero to: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%d is prime \0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%llu\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 i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %22
%11 = load i32, ptr %3, align 4
%12 = call i64 @check_prime(i32 noundef %11)
%13 = icmp sgt i64 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = load i64, ptr %4, align 8
%20 = add nsw i64 %19, %18
store i64 %20, ptr %4, align 8
br label %21
21: ; preds = %14, %10
br label %22
22: ; preds = %21
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i64, ptr %4, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @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/tmpg0y0zvph.c'
source_filename = "/tmp/tmpg0y0zvph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"%s -- is a mirrored palindrome.\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s -- is a regular palindrome.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c" -- is a mirrored string.\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c" -- is not a palindrome.\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"%s -- is not a palindrome.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10000 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %8
8: ; preds = %310, %0
%9 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %311
12: ; preds = %8
store i32 0, ptr %5, align 4
%13 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %3, align 4
%15 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%16 = call i64 @isPalindrome(ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %137
18: ; preds = %12
%19 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%20 = call signext i8 @digit(ptr noundef %19)
%21 = icmp ne i8 %20, 0
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%24 = call i32 @mirrornum(ptr noundef %23)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %28)
br label %33
30: ; preds = %22
%31 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31)
br label %33
33: ; preds = %30, %27
br label %136
34: ; preds = %18
%35 = load i32, ptr %3, align 4
%36 = srem i32 %35, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%40 = call signext i8 @digit(ptr noundef %39)
%41 = icmp ne i8 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %38
%43 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %43)
br label %135
45: ; preds = %38, %34
%46 = load i32, ptr %3, align 4
%47 = srem i32 %46, 2
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %131
49: ; preds = %45
%50 = load i32, ptr %3, align 4
%51 = sdiv i32 %50, 2
store i32 %51, ptr %4, align 4
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%58 = call signext i8 @digit(ptr noundef %57)
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %56, %59
br i1 %60, label %61, label %68
61: ; preds = %49
%62 = load i32, ptr %4, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 49
br i1 %67, label %124, label %68
68: ; preds = %61, %49
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 56
br i1 %74, label %124, label %75
75: ; preds = %68
%76 = load i32, ptr %4, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 65
br i1 %81, label %124, label %82
82: ; preds = %75
%83 = load i32, ptr %4, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 72
br i1 %88, label %124, label %89
89: ; preds = %82
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 73
br i1 %95, label %124, label %96
96: ; preds = %89
%97 = load i32, ptr %4, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 77
br i1 %102, label %124, label %103
103: ; preds = %96
%104 = load i32, ptr %4, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %105
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 79
br i1 %109, label %124, label %110
110: ; preds = %103
%111 = load i32, ptr %4, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %112
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = icmp sge i32 %115, 84
br i1 %116, label %117, label %127
117: ; preds = %110
%118 = load i32, ptr %4, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %119
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp sle i32 %122, 89
br i1 %123, label %124, label %127
124: ; preds = %117, %103, %96, %89, %82, %75, %68, %61
%125 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %125)
br label %130
127: ; preds = %117, %110
%128 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %128)
br label %130
130: ; preds = %127, %124
br label %134
131: ; preds = %45
%132 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %132)
br label %134
134: ; preds = %131, %130
br label %135
135: ; preds = %134, %42
br label %136
136: ; preds = %135, %33
br label %310
137: ; preds = %12
%138 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%139 = call signext i8 @digit(ptr noundef %138)
%140 = icmp ne i8 %139, 0
br i1 %140, label %141, label %306
141: ; preds = %137
%142 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %142)
store i32 0, ptr %6, align 4
br label %144
144: ; preds = %184, %141
%145 = load i32, ptr %6, align 4
%146 = load i32, ptr %3, align 4
%147 = icmp slt i32 %145, %146
br i1 %147, label %148, label %187
148: ; preds = %144
%149 = load i32, ptr %6, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %150
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = icmp eq i32 %153, 50
br i1 %154, label %155, label %159
155: ; preds = %148
%156 = load i32, ptr %6, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %157
store i8 83, ptr %158, align 1
br label %183
159: ; preds = %148
%160 = load i32, ptr %6, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %161
%163 = load i8, ptr %162, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 51
br i1 %165, label %166, label %170
166: ; preds = %159
%167 = load i32, ptr %6, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %168
store i8 69, ptr %169, align 1
br label %182
170: ; preds = %159
%171 = load i32, ptr %6, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %172
%174 = load i8, ptr %173, align 1
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 53
br i1 %176, label %177, label %181
177: ; preds = %170
%178 = load i32, ptr %6, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %179
store i8 90, ptr %180, align 1
br label %181
181: ; preds = %177, %170
br label %182
182: ; preds = %181, %166
br label %183
183: ; preds = %182, %155
br label %184
184: ; preds = %183
%185 = load i32, ptr %6, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %6, align 4
br label %144, !llvm.loop !6
187: ; preds = %144
%188 = load i32, ptr %3, align 4
%189 = sdiv i32 %188, 2
store i32 %189, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %190
190: ; preds = %215, %187
%191 = load i32, ptr %6, align 4
%192 = load i32, ptr %4, align 4
%193 = icmp slt i32 %191, %192
br i1 %193, label %194, label %218
194: ; preds = %190
%195 = load i32, ptr %6, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %196
%198 = load i8, ptr %197, align 1
%199 = sext i8 %198 to i32
%200 = load i32, ptr %3, align 4
%201 = load i32, ptr %6, align 4
%202 = sub nsw i32 %200, %201
%203 = sub nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %204
%206 = load i8, ptr %205, align 1
%207 = sext i8 %206 to i32
%208 = icmp eq i32 %199, %207
br i1 %208, label %209, label %211
209: ; preds = %194
%210 = load i32, ptr %5, align 4
store i32 %210, ptr %5, align 4
br label %214
211: ; preds = %194
%212 = load i32, ptr %5, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %5, align 4
br label %214
214: ; preds = %211, %209
br label %215
215: ; preds = %214
%216 = load i32, ptr %6, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %6, align 4
br label %190, !llvm.loop !8
218: ; preds = %190
%219 = load i32, ptr %5, align 4
%220 = icmp eq i32 %219, 0
br i1 %220, label %221, label %227
221: ; preds = %218
%222 = load i32, ptr %3, align 4
%223 = srem i32 %222, 2
%224 = icmp eq i32 %223, 0
br i1 %224, label %225, label %227
225: ; preds = %221
%226 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %305
227: ; preds = %221, %218
%228 = load i32, ptr %5, align 4
%229 = icmp eq i32 %228, 0
br i1 %229, label %230, label %302
230: ; preds = %227
%231 = load i32, ptr %3, align 4
%232 = srem i32 %231, 2
%233 = icmp eq i32 %232, 1
br i1 %233, label %234, label %302
234: ; preds = %230
%235 = load i32, ptr %4, align 4
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %236
%238 = load i8, ptr %237, align 1
%239 = sext i8 %238 to i32
%240 = icmp eq i32 %239, 49
br i1 %240, label %297, label %241
241: ; preds = %234
%242 = load i32, ptr %4, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %243
%245 = load i8, ptr %244, align 1
%246 = sext i8 %245 to i32
%247 = icmp eq i32 %246, 56
br i1 %247, label %297, label %248
248: ; preds = %241
%249 = load i32, ptr %4, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %250
%252 = load i8, ptr %251, align 1
%253 = sext i8 %252 to i32
%254 = icmp eq i32 %253, 65
br i1 %254, label %297, label %255
255: ; preds = %248
%256 = load i32, ptr %4, align 4
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %257
%259 = load i8, ptr %258, align 1
%260 = sext i8 %259 to i32
%261 = icmp eq i32 %260, 72
br i1 %261, label %297, label %262
262: ; preds = %255
%263 = load i32, ptr %4, align 4
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %264
%266 = load i8, ptr %265, align 1
%267 = sext i8 %266 to i32
%268 = icmp eq i32 %267, 73
br i1 %268, label %297, label %269
269: ; preds = %262
%270 = load i32, ptr %4, align 4
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %271
%273 = load i8, ptr %272, align 1
%274 = sext i8 %273 to i32
%275 = icmp eq i32 %274, 77
br i1 %275, label %297, label %276
276: ; preds = %269
%277 = load i32, ptr %4, align 4
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %278
%280 = load i8, ptr %279, align 1
%281 = sext i8 %280 to i32
%282 = icmp eq i32 %281, 79
br i1 %282, label %297, label %283
283: ; preds = %276
%284 = load i32, ptr %4, align 4
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %285
%287 = load i8, ptr %286, align 1
%288 = sext i8 %287 to i32
%289 = icmp sge i32 %288, 84
br i1 %289, label %290, label %299
290: ; preds = %283
%291 = load i32, ptr %4, align 4
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %292
%294 = load i8, ptr %293, align 1
%295 = sext i8 %294 to i32
%296 = icmp sle i32 %295, 89
br i1 %296, label %297, label %299
297: ; preds = %290, %276, %269, %262, %255, %248, %241, %234
%298 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %301
299: ; preds = %290, %283
%300 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %301
301: ; preds = %299, %297
br label %304
302: ; preds = %230, %227
%303 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %304
304: ; preds = %302, %301
br label %305
305: ; preds = %304, %225
br label %309
306: ; preds = %137
%307 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%308 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %307)
br label %309
309: ; preds = %306, %305
br label %310
310: ; preds = %309, %136
br label %8, !llvm.loop !9
311: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isPalindrome(ptr noundef) #1
declare signext i8 @digit(ptr noundef) #1
declare i32 @mirrornum(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg0y0zvph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"%s -- is a mirrored palindrome.\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"%s -- is a regular palindrome.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c" -- is a mirrored string.\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c" -- is not a palindrome.\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"%s -- is not a palindrome.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10000 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = icmp eq i32 %9, 1
br i1 %10, label %.lr.ph5, label %316
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %313
store i32 0, ptr %5, align 4
%12 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %3, align 4
%14 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%15 = call i64 @isPalindrome(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %136
17: ; preds = %11
%18 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%19 = call signext i8 @digit(ptr noundef %18)
%20 = icmp ne i8 %19, 0
br i1 %20, label %21, label %33
21: ; preds = %17
%22 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%23 = call i32 @mirrornum(ptr noundef %22)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %27)
br label %32
29: ; preds = %21
%30 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %30)
br label %32
32: ; preds = %29, %26
br label %135
33: ; preds = %17
%34 = load i32, ptr %3, align 4
%35 = srem i32 %34, 2
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%39 = call signext i8 @digit(ptr noundef %38)
%40 = icmp ne i8 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %37
%42 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %42)
br label %134
44: ; preds = %37, %33
%45 = load i32, ptr %3, align 4
%46 = srem i32 %45, 2
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %130
48: ; preds = %44
%49 = load i32, ptr %3, align 4
%50 = sdiv i32 %49, 2
store i32 %50, ptr %4, align 4
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%57 = call signext i8 @digit(ptr noundef %56)
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %55, %58
br i1 %59, label %60, label %67
60: ; preds = %48
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 49
br i1 %66, label %123, label %67
67: ; preds = %60, %48
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 56
br i1 %73, label %123, label %74
74: ; preds = %67
%75 = load i32, ptr %4, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 65
br i1 %80, label %123, label %81
81: ; preds = %74
%82 = load i32, ptr %4, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 72
br i1 %87, label %123, label %88
88: ; preds = %81
%89 = load i32, ptr %4, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 73
br i1 %94, label %123, label %95
95: ; preds = %88
%96 = load i32, ptr %4, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 77
br i1 %101, label %123, label %102
102: ; preds = %95
%103 = load i32, ptr %4, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 79
br i1 %108, label %123, label %109
109: ; preds = %102
%110 = load i32, ptr %4, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp sge i32 %114, 84
br i1 %115, label %116, label %126
116: ; preds = %109
%117 = load i32, ptr %4, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %118
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = icmp sle i32 %121, 89
br i1 %122, label %123, label %126
123: ; preds = %116, %102, %95, %88, %81, %74, %67, %60
%124 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %124)
br label %129
126: ; preds = %116, %109
%127 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %127)
br label %129
129: ; preds = %126, %123
br label %133
130: ; preds = %44
%131 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %131)
br label %133
133: ; preds = %130, %129
br label %134
134: ; preds = %133, %41
br label %135
135: ; preds = %134, %32
br label %313
136: ; preds = %11
%137 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%138 = call signext i8 @digit(ptr noundef %137)
%139 = icmp ne i8 %138, 0
br i1 %139, label %140, label %309
140: ; preds = %136
%141 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %141)
store i32 0, ptr %6, align 4
%143 = load i32, ptr %6, align 4
%144 = load i32, ptr %3, align 4
%145 = icmp slt i32 %143, %144
br i1 %145, label %.lr.ph, label %188
.lr.ph: ; preds = %140
br label %146
146: ; preds = %.lr.ph, %182
%147 = load i32, ptr %6, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %148
%150 = load i8, ptr %149, align 1
%151 = sext i8 %150 to i32
%152 = icmp eq i32 %151, 50
br i1 %152, label %153, label %157
153: ; preds = %146
%154 = load i32, ptr %6, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %155
store i8 83, ptr %156, align 1
br label %181
157: ; preds = %146
%158 = load i32, ptr %6, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %159
%161 = load i8, ptr %160, align 1
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 51
br i1 %163, label %164, label %168
164: ; preds = %157
%165 = load i32, ptr %6, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %166
store i8 69, ptr %167, align 1
br label %180
168: ; preds = %157
%169 = load i32, ptr %6, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %170
%172 = load i8, ptr %171, align 1
%173 = sext i8 %172 to i32
%174 = icmp eq i32 %173, 53
br i1 %174, label %175, label %179
175: ; preds = %168
%176 = load i32, ptr %6, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %177
store i8 90, ptr %178, align 1
br label %179
179: ; preds = %175, %168
br label %180
180: ; preds = %179, %164
br label %181
181: ; preds = %180, %153
br label %182
182: ; preds = %181
%183 = load i32, ptr %6, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %6, align 4
%185 = load i32, ptr %6, align 4
%186 = load i32, ptr %3, align 4
%187 = icmp slt i32 %185, %186
br i1 %187, label %146, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %182
br label %188
188: ; preds = %._crit_edge, %140
%189 = load i32, ptr %3, align 4
%190 = sdiv i32 %189, 2
store i32 %190, ptr %4, align 4
store i32 0, ptr %6, align 4
%191 = load i32, ptr %6, align 4
%192 = load i32, ptr %4, align 4
%193 = icmp slt i32 %191, %192
br i1 %193, label %.lr.ph2, label %221
.lr.ph2: ; preds = %188
br label %194
194: ; preds = %.lr.ph2, %215
%195 = load i32, ptr %6, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %196
%198 = load i8, ptr %197, align 1
%199 = sext i8 %198 to i32
%200 = load i32, ptr %3, align 4
%201 = load i32, ptr %6, align 4
%202 = sub nsw i32 %200, %201
%203 = sub nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %204
%206 = load i8, ptr %205, align 1
%207 = sext i8 %206 to i32
%208 = icmp eq i32 %199, %207
br i1 %208, label %209, label %211
209: ; preds = %194
%210 = load i32, ptr %5, align 4
store i32 %210, ptr %5, align 4
br label %214
211: ; preds = %194
%212 = load i32, ptr %5, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %5, align 4
br label %214
214: ; preds = %211, %209
br label %215
215: ; preds = %214
%216 = load i32, ptr %6, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %6, align 4
%218 = load i32, ptr %6, align 4
%219 = load i32, ptr %4, align 4
%220 = icmp slt i32 %218, %219
br i1 %220, label %194, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %215
br label %221
221: ; preds = %._crit_edge3, %188
%222 = load i32, ptr %5, align 4
%223 = icmp eq i32 %222, 0
br i1 %223, label %224, label %230
224: ; preds = %221
%225 = load i32, ptr %3, align 4
%226 = srem i32 %225, 2
%227 = icmp eq i32 %226, 0
br i1 %227, label %228, label %230
228: ; preds = %224
%229 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %308
230: ; preds = %224, %221
%231 = load i32, ptr %5, align 4
%232 = icmp eq i32 %231, 0
br i1 %232, label %233, label %305
233: ; preds = %230
%234 = load i32, ptr %3, align 4
%235 = srem i32 %234, 2
%236 = icmp eq i32 %235, 1
br i1 %236, label %237, label %305
237: ; preds = %233
%238 = load i32, ptr %4, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %239
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = icmp eq i32 %242, 49
br i1 %243, label %300, label %244
244: ; preds = %237
%245 = load i32, ptr %4, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %246
%248 = load i8, ptr %247, align 1
%249 = sext i8 %248 to i32
%250 = icmp eq i32 %249, 56
br i1 %250, label %300, label %251
251: ; preds = %244
%252 = load i32, ptr %4, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %253
%255 = load i8, ptr %254, align 1
%256 = sext i8 %255 to i32
%257 = icmp eq i32 %256, 65
br i1 %257, label %300, label %258
258: ; preds = %251
%259 = load i32, ptr %4, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %260
%262 = load i8, ptr %261, align 1
%263 = sext i8 %262 to i32
%264 = icmp eq i32 %263, 72
br i1 %264, label %300, label %265
265: ; preds = %258
%266 = load i32, ptr %4, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %267
%269 = load i8, ptr %268, align 1
%270 = sext i8 %269 to i32
%271 = icmp eq i32 %270, 73
br i1 %271, label %300, label %272
272: ; preds = %265
%273 = load i32, ptr %4, align 4
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %274
%276 = load i8, ptr %275, align 1
%277 = sext i8 %276 to i32
%278 = icmp eq i32 %277, 77
br i1 %278, label %300, label %279
279: ; preds = %272
%280 = load i32, ptr %4, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %281
%283 = load i8, ptr %282, align 1
%284 = sext i8 %283 to i32
%285 = icmp eq i32 %284, 79
br i1 %285, label %300, label %286
286: ; preds = %279
%287 = load i32, ptr %4, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %288
%290 = load i8, ptr %289, align 1
%291 = sext i8 %290 to i32
%292 = icmp sge i32 %291, 84
br i1 %292, label %293, label %302
293: ; preds = %286
%294 = load i32, ptr %4, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 %295
%297 = load i8, ptr %296, align 1
%298 = sext i8 %297 to i32
%299 = icmp sle i32 %298, 89
br i1 %299, label %300, label %302
300: ; preds = %293, %279, %272, %265, %258, %251, %244, %237
%301 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %304
302: ; preds = %293, %286
%303 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %304
304: ; preds = %302, %300
br label %307
305: ; preds = %233, %230
%306 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %307
307: ; preds = %305, %304
br label %308
308: ; preds = %307, %228
br label %312
309: ; preds = %136
%310 = getelementptr inbounds [10000 x i8], ptr %2, i64 0, i64 0
%311 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %310)
br label %312
312: ; preds = %309, %308
br label %313
313: ; preds = %312, %135
%314 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%315 = icmp eq i32 %314, 1
br i1 %315, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %313
br label %316
316: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isPalindrome(ptr noundef) #1
declare signext i8 @digit(ptr noundef) #1
declare i32 @mirrornum(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpopo4i0ts.c'
source_filename = "/tmp/tmpopo4i0ts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Fibonacci number is %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 9, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fib(i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopo4i0ts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Fibonacci number is %d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 9, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fib(i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fib(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"}
|
; ModuleID = '/tmp/tmp1h5k02u2.c'
source_filename = "/tmp/tmp1h5k02u2.c"
target datalayout = "e-m:e-p270: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/tmp1h5k02u2.c"
target datalayout = "e-m:e-p270: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/tmprt45u81y.c'
source_filename = "/tmp/tmprt45u81y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prussdrv_load_data(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, ptr %8, align 4
br label %18
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %8, align 4
br label %17
16: ; preds = %12
store i32 -1, ptr %4, align 4
br label %25
17: ; preds = %15
br label %18
18: ; preds = %17, %11
%19 = load i32, ptr %5, align 4
%20 = call i32 @prussdrv_pru_disable(i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = call i32 @prussdrv_pru_write_memory(i32 noundef %21, i32 noundef 0, ptr noundef %22, i32 noundef %23)
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %18, %16
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @prussdrv_pru_disable(i32 noundef) #1
declare i32 @prussdrv_pru_write_memory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprt45u81y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prussdrv_load_data(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, ptr %8, align 4
br label %18
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %8, align 4
br label %17
16: ; preds = %12
store i32 -1, ptr %4, align 4
br label %25
17: ; preds = %15
br label %18
18: ; preds = %17, %11
%19 = load i32, ptr %5, align 4
%20 = call i32 @prussdrv_pru_disable(i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = call i32 @prussdrv_pru_write_memory(i32 noundef %21, i32 noundef 0, ptr noundef %22, i32 noundef %23)
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %18, %16
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @prussdrv_pru_disable(i32 noundef) #1
declare i32 @prussdrv_pru_write_memory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyztd8xce.c'
source_filename = "/tmp/tmpyztd8xce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x44() #0 {
%1 = call i32 @isalnum(i32 noundef 68) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 345, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalnum(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyztd8xce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isalnum should be 1 for D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x44() #0 {
%1 = call i32 @isalnum(i32 noundef 68) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 345, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isalnum(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptmdy9qup.c'
source_filename = "/tmp/tmptmdy9qup.c"
target datalayout = "e-m:e-p270: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/tmptmdy9qup.c"
target datalayout = "e-m:e-p270: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/tmpushvi_b5.c'
source_filename = "/tmp/tmpushvi_b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcot(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @cos(float noundef %3)
%5 = load float, ptr %2, align 4
%6 = call float @sin(float noundef %5)
%7 = fdiv float %4, %6
ret float %7
}
declare float @cos(float noundef) #1
declare float @sin(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/tmpushvi_b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcot(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @cos(float noundef %3)
%5 = load float, ptr %2, align 4
%6 = call float @sin(float noundef %5)
%7 = fdiv float %4, %6
ret float %7
}
declare float @cos(float noundef) #1
declare float @sin(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/tmp_okq38q5.c'
source_filename = "/tmp/tmp_okq38q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"write error %s\0A\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 @writeline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i64 @write(i32 noundef %5, ptr noundef %6, i32 noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %2
%15 = load i32, ptr %3, align 4
%16 = call i64 @write(i32 noundef %15, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_okq38q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"write error %s\0A\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 @writeline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i64 @write(i32 noundef %5, ptr noundef %6, i32 noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %2
%15 = load i32, ptr %3, align 4
%16 = call i64 @write(i32 noundef %15, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(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/tmpcwztdjo3.c'
source_filename = "/tmp/tmpcwztdjo3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_fs_bootable(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
ret 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/tmpcwztdjo3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_fs_bootable(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
ret 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/tmp5ystg8uc.c'
source_filename = "/tmp/tmp5ystg8uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @genciphertext(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 65535, ptr %8, align 4
%10 = load ptr, ptr %6, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fwrite(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %12)
store i32 0, ptr %9, align 4
br label %14
14: ; preds = %25, %3
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %9, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load ptr, ptr %7, align 8
%24 = call i32 @fwrite(ptr noundef %22, i32 noundef 4, i32 noundef 1, ptr noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %9, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %9, align 4
br label %14, !llvm.loop !6
28: ; preds = %14
%29 = load ptr, ptr %7, align 8
%30 = call i32 @fclose(ptr noundef %29)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5ystg8uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @genciphertext(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 65535, ptr %8, align 4
%10 = load ptr, ptr %6, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = call i32 @fwrite(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %12)
store i32 0, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %24
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load ptr, ptr %7, align 8
%23 = call i32 @fwrite(ptr noundef %21, i32 noundef 4, i32 noundef 1, ptr noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %3
%31 = load ptr, ptr %7, align 8
%32 = call i32 @fclose(ptr noundef %31)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxzb0cnlu.c'
source_filename = "/tmp/tmpxzb0cnlu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @onintr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @done(i32 noundef 1)
ret void
}
declare i32 @done(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/tmpxzb0cnlu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @onintr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @done(i32 noundef 1)
ret void
}
declare i32 @done(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/tmp36bgar0y.c'
source_filename = "/tmp/tmp36bgar0y.c"
target datalayout = "e-m:e-p270: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.fig06_21.array1 = private unnamed_addr constant [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6]], align 16
@__const.fig06_21.array3 = private unnamed_addr constant [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 0], [3 x i32] [i32 4, i32 0, i32 0]], align 16
@.str = private unnamed_addr constant [29 x i8] c"Values in array1 by row are:\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Values in array2 by row are:\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Values in array3 by row are:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fig06_21() #0 {
%1 = alloca [2 x [3 x i32]], align 16
%2 = alloca [2 x [3 x i32]], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.fig06_21.array1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.fig06_21.array3, i64 24, i1 false)
%3 = call i32 @puts(ptr noundef @.str)
%4 = getelementptr inbounds [2 x [3 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @printMulArray(ptr noundef %4)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = call i32 @puts(ptr noundef @.str.2)
%8 = getelementptr inbounds [2 x [3 x i32]], ptr %2, i64 0, i64 0
%9 = call i32 @printMulArray(ptr noundef %8)
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 @puts(ptr noundef) #2
declare i32 @printMulArray(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp36bgar0y.c"
target datalayout = "e-m:e-p270: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.fig06_21.array1 = private unnamed_addr constant [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6]], align 16
@__const.fig06_21.array3 = private unnamed_addr constant [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 0], [3 x i32] [i32 4, i32 0, i32 0]], align 16
@.str = private unnamed_addr constant [29 x i8] c"Values in array1 by row are:\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Values in array2 by row are:\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Values in array3 by row are:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fig06_21() #0 {
%1 = alloca [2 x [3 x i32]], align 16
%2 = alloca [2 x [3 x i32]], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.fig06_21.array1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.fig06_21.array3, i64 24, i1 false)
%3 = call i32 @puts(ptr noundef @.str)
%4 = getelementptr inbounds [2 x [3 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @printMulArray(ptr noundef %4)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = call i32 @puts(ptr noundef @.str.2)
%8 = getelementptr inbounds [2 x [3 x i32]], ptr %2, i64 0, i64 0
%9 = call i32 @printMulArray(ptr noundef %8)
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 @puts(ptr noundef) #2
declare i32 @printMulArray(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu5afgjp_.c'
source_filename = "/tmp/tmpu5afgjp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BubbleSort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %61, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %64
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sgt i32 %20, %26
br i1 %27, label %28, label %50
28: ; preds = %15
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %34, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 %39, ptr %43, align 4
%44 = load i32, ptr %8, align 4
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %45, i64 %48
store i32 %44, ptr %49, align 4
br label %50
50: ; preds = %28, %15
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr %9, align 4
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %60
56: ; preds = %50
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %5, align 4
%59 = call i32 @printArr(ptr noundef %57, i32 noundef %58)
br label %60
60: ; preds = %56, %50
br label %61
61: ; preds = %60
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
br label %10, !llvm.loop !6
64: ; preds = %10
ret void
}
declare i32 @printArr(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/tmpu5afgjp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BubbleSort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = sub nsw i32 %11, 1
%13 = icmp slt i32 %10, %12
br i1 %13, label %.lr.ph, label %67
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %60
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %20, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp sgt i32 %19, %25
br i1 %26, label %27, label %49
27: ; preds = %14
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
store i32 %32, ptr %8, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %33, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
store i32 %38, ptr %42, align 4
%43 = load i32, ptr %8, align 4
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
store i32 %43, ptr %48, align 4
br label %49
49: ; preds = %27, %14
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %59
55: ; preds = %49
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %5, align 4
%58 = call i32 @printArr(ptr noundef %56, i32 noundef %57)
br label %59
59: ; preds = %55, %49
br label %60
60: ; preds = %59
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %5, align 4
%65 = sub nsw i32 %64, 1
%66 = icmp slt i32 %63, %65
br i1 %66, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %67
67: ; preds = %._crit_edge, %3
ret void
}
declare i32 @printArr(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/tmp8yn195kk.c'
source_filename = "/tmp/tmp8yn195kk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runStr(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %7, align 8
br label %9
9: ; preds = %20, %3
%10 = load ptr, ptr %7, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %13, label %23
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i8, ptr %15, align 1
%17 = load i32, ptr %6, align 4
%18 = call ptr @expand(i8 noundef signext %16, i32 noundef %17)
%19 = call i32 @fprintf(ptr noundef %14, ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %13
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %7, align 8
br label %9, !llvm.loop !6
23: ; preds = %9
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @expand(i8 noundef signext, 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/tmp8yn195kk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @runStr(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %19
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %7, align 8
%15 = load i8, ptr %14, align 1
%16 = load i32, ptr %6, align 4
%17 = call ptr @expand(i8 noundef signext %15, i32 noundef %16)
%18 = call i32 @fprintf(ptr noundef %13, ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %12
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i8, ptr %22, align 1
%24 = icmp ne i8 %23, 0
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @expand(i8 noundef signext, 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/tmpd_98qpwb.c'
source_filename = "/tmp/tmpd_98qpwb.c"
target datalayout = "e-m:e-p270: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/tmpd_98qpwb.c"
target datalayout = "e-m:e-p270: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/tmpzfs2s81m.c'
source_filename = "/tmp/tmpzfs2s81m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FlashAllUserRegisterSave() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %14, %0
%3 = load i32, ptr %1, align 4
%4 = icmp slt i32 %3, 4
br i1 %4, label %5, label %17
5: ; preds = %2
%6 = load i32, ptr %1, align 4
%7 = add i32 -2147483648, %6
store volatile i32 %7, ptr inttoptr (i64 1074778112 to ptr), align 4
store volatile i32 -1539178488, ptr inttoptr (i64 1074778120 to ptr), align 4
br label %8
8: ; preds = %12, %5
%9 = load volatile i32, ptr inttoptr (i64 1074778120 to ptr), align 4
%10 = and i32 %9, 8
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
br label %8, !llvm.loop !6
13: ; preds = %8
br label %14
14: ; preds = %13
%15 = load i32, ptr %1, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %1, align 4
br label %2, !llvm.loop !8
17: ; preds = %2
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfs2s81m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FlashAllUserRegisterSave() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp slt i32 %2, 4
br i1 %3, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %12
%5 = load i32, ptr %1, align 4
%6 = add i32 -2147483648, %5
store volatile i32 %6, ptr inttoptr (i64 1074778112 to ptr), align 4
store volatile i32 -1539178488, ptr inttoptr (i64 1074778120 to ptr), align 4
br label %7
7: ; preds = %7, %4
%8 = load volatile i32, ptr inttoptr (i64 1074778120 to ptr), align 4
%9 = and i32 %8, 8
%10 = icmp ne i32 %9, 0
br i1 %10, label %7, label %11, !llvm.loop !6
11: ; preds = %7
br label %12
12: ; preds = %11
%13 = load i32, ptr %1, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %1, align 4
%15 = load i32, ptr %1, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %4, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpljn3m414.c'
source_filename = "/tmp/tmpljn3m414.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, i64, i64, i32 }
%struct.serial_struct = type { i32, float, float }
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyAMA0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Error open UART port.\0A\00", align 1
@B115200 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CSIZE = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@IGNPAR = dso_local global i32 0, align 4
@CSTOPB = dso_local global i32 0, align 4
@TCIFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@TIOCGSERIAL = dso_local global i32 0, align 4
@ASYNC_SPD_MASK = dso_local global i32 0, align 4
@ASYNC_SPD_CUST = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"ss.baud_base:%d\0Ass.custom_divisor:%d\0A\00", align 1
@TIOCSSERIAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @InitSerial() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %struct.termios, align 8
%4 = alloca %struct.serial_struct, align 4
%5 = alloca float, align 4
store i32 -1, ptr %2, align 4
%6 = load i32, ptr @O_RDWR, align 4
%7 = load i32, ptr @O_NOCTTY, align 4
%8 = or i32 %6, %7
%9 = load i32, ptr @O_NDELAY, align 4
%10 = or i32 %8, %9
%11 = call i32 @open(ptr noundef @.str, i32 noundef %10)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %80
17: ; preds = %0
%18 = call i32 @cfmakeraw(ptr noundef %3)
%19 = load i32, ptr @B115200, align 4
%20 = call i32 @cfsetispeed(ptr noundef %3, i32 noundef %19)
%21 = load i32, ptr @B115200, align 4
%22 = call i32 @cfsetospeed(ptr noundef %3, i32 noundef %21)
%23 = load i32, ptr @CLOCAL, align 4
%24 = load i32, ptr @CREAD, align 4
%25 = or i32 %23, %24
%26 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = or i32 %27, %25
store i32 %28, ptr %26, align 8
%29 = load i32, ptr @CSIZE, align 4
%30 = xor i32 %29, -1
%31 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = and i32 %32, %30
store i32 %33, ptr %31, align 8
%34 = load i32, ptr @CS8, align 4
%35 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%36 = load i32, ptr %35, align 8
%37 = or i32 %36, %34
store i32 %37, ptr %35, align 8
%38 = load i32, ptr @IGNPAR, align 4
%39 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 3
%40 = load i32, ptr %39, align 8
%41 = or i32 %40, %38
store i32 %41, ptr %39, align 8
%42 = load i32, ptr @CSTOPB, align 4
%43 = xor i32 %42, -1
%44 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%45 = load i32, ptr %44, align 8
%46 = and i32 %45, %43
store i32 %46, ptr %44, align 8
%47 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 2
store i64 0, ptr %47, align 8
%48 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1
store i64 0, ptr %48, align 8
%49 = load i32, ptr %2, align 4
%50 = load i32, ptr @TCIFLUSH, align 4
%51 = call i32 @tcflush(i32 noundef %49, i32 noundef %50)
%52 = load i32, ptr %2, align 4
%53 = load i32, ptr @TCSANOW, align 4
%54 = call i32 @tcsetattr(i32 noundef %52, i32 noundef %53, ptr noundef %3)
%55 = load i32, ptr %2, align 4
%56 = load i32, ptr @TIOCGSERIAL, align 4
%57 = call i32 @ioctl(i32 noundef %55, i32 noundef %56, ptr noundef %4)
store float 1.152000e+05, ptr %5, align 4
%58 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 0
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr @ASYNC_SPD_MASK, align 4
%61 = xor i32 %60, -1
%62 = and i32 %59, %61
%63 = load i32, ptr @ASYNC_SPD_CUST, align 4
%64 = or i32 %62, %63
%65 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 0
store i32 %64, ptr %65, align 4
%66 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 2
%67 = load float, ptr %66, align 4
%68 = load float, ptr %5, align 4
%69 = fdiv float %67, %68
%70 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 1
store float %69, ptr %70, align 4
%71 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 2
%72 = load float, ptr %71, align 4
%73 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 1
%74 = load float, ptr %73, align 4
%75 = call i32 @printf(ptr noundef @.str.2, float noundef %72, float noundef %74)
%76 = load i32, ptr %2, align 4
%77 = load i32, ptr @TIOCSSERIAL, align 4
%78 = call i32 @ioctl(i32 noundef %76, i32 noundef %77, ptr noundef %4)
%79 = load i32, ptr %2, align 4
store i32 %79, ptr %1, align 4
br label %80
80: ; preds = %17, %14
%81 = load i32, ptr %1, align 4
ret i32 %81
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpljn3m414.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, i64, i64, i32 }
%struct.serial_struct = type { i32, float, float }
@.str = private unnamed_addr constant [13 x i8] c"/dev/ttyAMA0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NDELAY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Error open UART port.\0A\00", align 1
@B115200 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CSIZE = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@IGNPAR = dso_local global i32 0, align 4
@CSTOPB = dso_local global i32 0, align 4
@TCIFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@TIOCGSERIAL = dso_local global i32 0, align 4
@ASYNC_SPD_MASK = dso_local global i32 0, align 4
@ASYNC_SPD_CUST = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"ss.baud_base:%d\0Ass.custom_divisor:%d\0A\00", align 1
@TIOCSSERIAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @InitSerial() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca %struct.termios, align 8
%4 = alloca %struct.serial_struct, align 4
%5 = alloca float, align 4
store i32 -1, ptr %2, align 4
%6 = load i32, ptr @O_RDWR, align 4
%7 = load i32, ptr @O_NOCTTY, align 4
%8 = or i32 %6, %7
%9 = load i32, ptr @O_NDELAY, align 4
%10 = or i32 %8, %9
%11 = call i32 @open(ptr noundef @.str, i32 noundef %10)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %80
17: ; preds = %0
%18 = call i32 @cfmakeraw(ptr noundef %3)
%19 = load i32, ptr @B115200, align 4
%20 = call i32 @cfsetispeed(ptr noundef %3, i32 noundef %19)
%21 = load i32, ptr @B115200, align 4
%22 = call i32 @cfsetospeed(ptr noundef %3, i32 noundef %21)
%23 = load i32, ptr @CLOCAL, align 4
%24 = load i32, ptr @CREAD, align 4
%25 = or i32 %23, %24
%26 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = or i32 %27, %25
store i32 %28, ptr %26, align 8
%29 = load i32, ptr @CSIZE, align 4
%30 = xor i32 %29, -1
%31 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = and i32 %32, %30
store i32 %33, ptr %31, align 8
%34 = load i32, ptr @CS8, align 4
%35 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%36 = load i32, ptr %35, align 8
%37 = or i32 %36, %34
store i32 %37, ptr %35, align 8
%38 = load i32, ptr @IGNPAR, align 4
%39 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 3
%40 = load i32, ptr %39, align 8
%41 = or i32 %40, %38
store i32 %41, ptr %39, align 8
%42 = load i32, ptr @CSTOPB, align 4
%43 = xor i32 %42, -1
%44 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%45 = load i32, ptr %44, align 8
%46 = and i32 %45, %43
store i32 %46, ptr %44, align 8
%47 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 2
store i64 0, ptr %47, align 8
%48 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 1
store i64 0, ptr %48, align 8
%49 = load i32, ptr %2, align 4
%50 = load i32, ptr @TCIFLUSH, align 4
%51 = call i32 @tcflush(i32 noundef %49, i32 noundef %50)
%52 = load i32, ptr %2, align 4
%53 = load i32, ptr @TCSANOW, align 4
%54 = call i32 @tcsetattr(i32 noundef %52, i32 noundef %53, ptr noundef %3)
%55 = load i32, ptr %2, align 4
%56 = load i32, ptr @TIOCGSERIAL, align 4
%57 = call i32 @ioctl(i32 noundef %55, i32 noundef %56, ptr noundef %4)
store float 1.152000e+05, ptr %5, align 4
%58 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 0
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr @ASYNC_SPD_MASK, align 4
%61 = xor i32 %60, -1
%62 = and i32 %59, %61
%63 = load i32, ptr @ASYNC_SPD_CUST, align 4
%64 = or i32 %62, %63
%65 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 0
store i32 %64, ptr %65, align 4
%66 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 2
%67 = load float, ptr %66, align 4
%68 = load float, ptr %5, align 4
%69 = fdiv float %67, %68
%70 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 1
store float %69, ptr %70, align 4
%71 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 2
%72 = load float, ptr %71, align 4
%73 = getelementptr inbounds %struct.serial_struct, ptr %4, i32 0, i32 1
%74 = load float, ptr %73, align 4
%75 = call i32 @printf(ptr noundef @.str.2, float noundef %72, float noundef %74)
%76 = load i32, ptr %2, align 4
%77 = load i32, ptr @TIOCSSERIAL, align 4
%78 = call i32 @ioctl(i32 noundef %76, i32 noundef %77, ptr noundef %4)
%79 = load i32, ptr %2, align 4
store i32 %79, ptr %1, align 4
br label %80
80: ; preds = %17, %14
%81 = load i32, ptr %1, align 4
ret i32 %81
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @cfmakeraw(ptr noundef) #1
declare i32 @cfsetispeed(ptr noundef, i32 noundef) #1
declare i32 @cfsetospeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpug09c6zp.c'
source_filename = "/tmp/tmpug09c6zp.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"Usage: %s <pid>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@RLIMIT_RTPRIO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"prlimit-rtprio-1\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Previous limits: soft=%lld; hard=%lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"prlimit-rtprio-2\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"New limits: soft=%lld; hard=%lld\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.rlimit, align 4
%7 = alloca %struct.rlimit, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %20, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store i32 2, ptr %25, align 4
%26 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store i32 2, ptr %26, align 4
store ptr %7, ptr %8, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr @RLIMIT_RTPRIO, align 4
%29 = load ptr, ptr %8, align 8
%30 = call i32 @prlimit(i32 noundef %27, i32 noundef %28, ptr noundef %29, ptr noundef %6)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %38
32: ; preds = %20
br label %33
33: ; preds = %32
%34 = call i32 @perror(ptr noundef @.str.1)
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; No predecessors!
br label %38
38: ; preds = %37, %20
%39 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = sext i32 %43 to i64
%45 = call i32 @printf(ptr noundef @.str.2, i64 noundef %41, i64 noundef %44)
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr @RLIMIT_RTPRIO, align 4
%48 = call i32 @prlimit(i32 noundef %46, i32 noundef %47, ptr noundef null, ptr noundef %6)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %56
50: ; preds = %38
br label %51
51: ; preds = %50
%52 = call i32 @perror(ptr noundef @.str.3)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #3
unreachable
55: ; No predecessors!
br label %56
56: ; preds = %55, %38
%57 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 0
%58 = load i32, ptr %57, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 1
%61 = load i32, ptr %60, align 4
%62 = sext i32 %61 to i64
%63 = call i32 @printf(ptr noundef @.str.4, i64 noundef %59, i64 noundef %62)
%64 = load i32, ptr @EXIT_SUCCESS, align 4
%65 = call i32 @exit(i32 noundef %64) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @prlimit(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpug09c6zp.c"
target datalayout = "e-m:e-p270: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.rlimit = type { i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"Usage: %s <pid>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@RLIMIT_RTPRIO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"prlimit-rtprio-1\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Previous limits: soft=%lld; hard=%lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"prlimit-rtprio-2\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"New limits: soft=%lld; hard=%lld\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.rlimit, align 4
%7 = alloca %struct.rlimit, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %20, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store i32 2, ptr %25, align 4
%26 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store i32 2, ptr %26, align 4
store ptr %7, ptr %8, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr @RLIMIT_RTPRIO, align 4
%29 = load ptr, ptr %8, align 8
%30 = call i32 @prlimit(i32 noundef %27, i32 noundef %28, ptr noundef %29, ptr noundef %6)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %38
32: ; preds = %20
br label %33
33: ; preds = %32
%34 = call i32 @perror(ptr noundef @.str.1)
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; No predecessors!
br label %38
38: ; preds = %37, %20
%39 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = sext i32 %43 to i64
%45 = call i32 @printf(ptr noundef @.str.2, i64 noundef %41, i64 noundef %44)
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr @RLIMIT_RTPRIO, align 4
%48 = call i32 @prlimit(i32 noundef %46, i32 noundef %47, ptr noundef null, ptr noundef %6)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %56
50: ; preds = %38
br label %51
51: ; preds = %50
%52 = call i32 @perror(ptr noundef @.str.3)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #3
unreachable
55: ; No predecessors!
br label %56
56: ; preds = %55, %38
%57 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 0
%58 = load i32, ptr %57, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds %struct.rlimit, ptr %6, i32 0, i32 1
%61 = load i32, ptr %60, align 4
%62 = sext i32 %61 to i64
%63 = call i32 @printf(ptr noundef @.str.4, i64 noundef %59, i64 noundef %62)
%64 = load i32, ptr @EXIT_SUCCESS, align 4
%65 = call i32 @exit(i32 noundef %64) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @prlimit(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpcmkwagox.c'
source_filename = "/tmp/tmpcmkwagox.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i8, ptr, i32, i32 }
@optind = dso_local global i32 0, align 4
@main.long_options = internal global [7 x %struct.option] [%struct.option { ptr @.str, i8 -128, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.1, i8 -127, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.2, i8 -128, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.3, i8 -127, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.4, i8 -128, ptr null, i32 99, i32 0 }, %struct.option { ptr @.str.5, i8 -128, ptr null, i32 0, i32 0 }, %struct.option zeroinitializer], align 16
@.str = private unnamed_addr constant [4 x i8] c"add\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"append\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"verbose\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"file\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"habc:d:012\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"option %s\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.8 = private unnamed_addr constant [13 x i8] c" with arg %s\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [46 x i8] c"digits occur in two different argv-elements.\0A\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"option %c\0A\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"option a\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"option b\0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"option c with value '%s'\0A\00", align 1
@.str.15 = private unnamed_addr constant [26 x i8] c"option d with value '%s'\0A\00", align 1
@.str.16 = private unnamed_addr constant [42 x i8] c"?? getopt returned character code 0%o ??\0A\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"non-option ARGV-elements: \00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"%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 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 %7, align 4
br label %10
10: ; preds = %2, %75
%11 = load i32, ptr @optind, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = load i32, ptr @optind, align 4
br label %16
15: ; preds = %10
br label %16
16: ; preds = %15, %13
%17 = phi i32 [ %14, %13 ], [ 1, %15 ]
store i32 %17, ptr %8, align 4
store i32 0, ptr %9, align 4
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getopt_long(i32 noundef %18, ptr noundef %19, ptr noundef @.str.6, ptr noundef @main.long_options, ptr noundef %9)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %24
23: ; preds = %16
br label %76
24: ; preds = %16
%25 = load i32, ptr %6, align 4
switch i32 %25, label %72 [
i32 0, label %26
i32 104, label %40
i32 48, label %48
i32 49, label %48
i32 50, label %48
i32 97, label %61
i32 98, label %63
i32 99, label %65
i32 100, label %68
i32 63, label %71
]
26: ; preds = %24
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [7 x %struct.option], ptr @main.long_options, i64 0, i64 %28
%30 = getelementptr inbounds %struct.option, ptr %29, i32 0, i32 2
%31 = load ptr, ptr %30, align 16
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %31)
%33 = load ptr, ptr @optarg, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr @optarg, align 8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %36)
br label %38
38: ; preds = %35, %26
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %75
40: ; preds = %24
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 0
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @stdout, align 4
%45 = call i32 @usage(ptr noundef %43, i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #3
unreachable
48: ; preds = %24, %24, %24
%49 = load i32, ptr %7, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %57
57: ; preds = %55, %51, %48
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %7, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %59)
br label %75
61: ; preds = %24
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %75
63: ; preds = %24
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %75
65: ; preds = %24
%66 = load ptr, ptr @optarg, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %66)
br label %75
68: ; preds = %24
%69 = load ptr, ptr @optarg, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %69)
br label %75
71: ; preds = %24
br label %75
72: ; preds = %24
%73 = load i32, ptr %6, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %73)
br label %75
75: ; preds = %72, %71, %68, %65, %63, %61, %57, %38
br label %10
76: ; preds = %23
%77 = load i32, ptr @optind, align 4
%78 = load i32, ptr %4, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %96
80: ; preds = %76
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %82
82: ; preds = %86, %80
%83 = load i32, ptr @optind, align 4
%84 = load i32, ptr %4, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %94
86: ; preds = %82
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr @optind, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr @optind, align 4
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds ptr, ptr %87, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %92)
br label %82, !llvm.loop !6
94: ; preds = %82
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %96
96: ; preds = %94, %76
%97 = load i32, ptr @EXIT_SUCCESS, align 4
%98 = call i32 @exit(i32 noundef %97) #3
unreachable
}
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(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/tmpcmkwagox.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i8, ptr, i32, i32 }
@optind = dso_local global i32 0, align 4
@main.long_options = internal global [7 x %struct.option] [%struct.option { ptr @.str, i8 -128, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.1, i8 -127, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.2, i8 -128, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.3, i8 -127, ptr null, i32 0, i32 0 }, %struct.option { ptr @.str.4, i8 -128, ptr null, i32 99, i32 0 }, %struct.option { ptr @.str.5, i8 -128, ptr null, i32 0, i32 0 }, %struct.option zeroinitializer], align 16
@.str = private unnamed_addr constant [4 x i8] c"add\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"append\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"verbose\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"file\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"habc:d:012\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"option %s\00", align 1
@optarg = dso_local global ptr null, align 8
@.str.8 = private unnamed_addr constant [13 x i8] c" with arg %s\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [46 x i8] c"digits occur in two different argv-elements.\0A\00", align 1
@.str.11 = private unnamed_addr constant [11 x i8] c"option %c\0A\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"option a\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"option b\0A\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"option c with value '%s'\0A\00", align 1
@.str.15 = private unnamed_addr constant [26 x i8] c"option d with value '%s'\0A\00", align 1
@.str.16 = private unnamed_addr constant [42 x i8] c"?? getopt returned character code 0%o ??\0A\00", align 1
@.str.17 = private unnamed_addr constant [27 x i8] c"non-option ARGV-elements: \00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"%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 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 %7, align 4
br label %10
10: ; preds = %75, %2
%11 = load i32, ptr @optind, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = load i32, ptr @optind, align 4
br label %16
15: ; preds = %10
br label %16
16: ; preds = %15, %13
%17 = phi i32 [ %14, %13 ], [ 1, %15 ]
store i32 %17, ptr %8, align 4
store i32 0, ptr %9, align 4
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getopt_long(i32 noundef %18, ptr noundef %19, ptr noundef @.str.6, ptr noundef @main.long_options, ptr noundef %9)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %24
23: ; preds = %16
br label %76
24: ; preds = %16
%25 = load i32, ptr %6, align 4
switch i32 %25, label %72 [
i32 0, label %26
i32 104, label %40
i32 48, label %48
i32 49, label %48
i32 50, label %48
i32 97, label %61
i32 98, label %63
i32 99, label %65
i32 100, label %68
i32 63, label %71
]
26: ; preds = %24
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [7 x %struct.option], ptr @main.long_options, i64 0, i64 %28
%30 = getelementptr inbounds %struct.option, ptr %29, i32 0, i32 2
%31 = load ptr, ptr %30, align 16
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %31)
%33 = load ptr, ptr @optarg, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %38
35: ; preds = %26
%36 = load ptr, ptr @optarg, align 8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %36)
br label %38
38: ; preds = %35, %26
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %75
40: ; preds = %24
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 0
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr @stdout, align 4
%45 = call i32 @usage(ptr noundef %43, i32 noundef %44)
%46 = load i32, ptr @EXIT_SUCCESS, align 4
%47 = call i32 @exit(i32 noundef %46) #3
unreachable
48: ; preds = %24, %24, %24
%49 = load i32, ptr %7, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %57
57: ; preds = %55, %51, %48
%58 = load i32, ptr %8, align 4
store i32 %58, ptr %7, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %59)
br label %75
61: ; preds = %24
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %75
63: ; preds = %24
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %75
65: ; preds = %24
%66 = load ptr, ptr @optarg, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %66)
br label %75
68: ; preds = %24
%69 = load ptr, ptr @optarg, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %69)
br label %75
71: ; preds = %24
br label %75
72: ; preds = %24
%73 = load i32, ptr %6, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %73)
br label %75
75: ; preds = %72, %71, %68, %65, %63, %61, %57, %38
br label %10
76: ; preds = %23
%77 = load i32, ptr @optind, align 4
%78 = load i32, ptr %4, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %98
80: ; preds = %76
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%82 = load i32, ptr @optind, align 4
%83 = load i32, ptr %4, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %.lr.ph, label %96
.lr.ph: ; preds = %80
br label %85
85: ; preds = %.lr.ph, %85
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr @optind, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr @optind, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds ptr, ptr %86, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %91)
%93 = load i32, ptr @optind, align 4
%94 = load i32, ptr %4, align 4
%95 = icmp slt i32 %93, %94
br i1 %95, label %85, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %85
br label %96
96: ; preds = %._crit_edge, %80
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %98
98: ; preds = %96, %76
%99 = load i32, ptr @EXIT_SUCCESS, align 4
%100 = call i32 @exit(i32 noundef %99) #3
unreachable
}
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(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/tmpy3tnhp2h.c'
source_filename = "/tmp/tmpy3tnhp2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @esfInstall() #0 {
%1 = call i32 (...) @ssrInstall()
%2 = call i32 (...) @fiInstall()
%3 = call i32 (...) @fmtInstall()
%4 = call i32 (...) @infoInstall()
%5 = call i32 (...) @dotInstall()
%6 = call i32 (...) @tInstall()
%7 = call i32 (...) @packInstall()
%8 = call i32 (...) @profileInstall()
ret void
}
declare i32 @ssrInstall(...) #1
declare i32 @fiInstall(...) #1
declare i32 @fmtInstall(...) #1
declare i32 @infoInstall(...) #1
declare i32 @dotInstall(...) #1
declare i32 @tInstall(...) #1
declare i32 @packInstall(...) #1
declare i32 @profileInstall(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3tnhp2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @esfInstall() #0 {
%1 = call i32 (...) @ssrInstall()
%2 = call i32 (...) @fiInstall()
%3 = call i32 (...) @fmtInstall()
%4 = call i32 (...) @infoInstall()
%5 = call i32 (...) @dotInstall()
%6 = call i32 (...) @tInstall()
%7 = call i32 (...) @packInstall()
%8 = call i32 (...) @profileInstall()
ret void
}
declare i32 @ssrInstall(...) #1
declare i32 @fiInstall(...) #1
declare i32 @fmtInstall(...) #1
declare i32 @infoInstall(...) #1
declare i32 @dotInstall(...) #1
declare i32 @tInstall(...) #1
declare i32 @packInstall(...) #1
declare i32 @profileInstall(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa8icb60y.c'
source_filename = "/tmp/tmpa8icb60y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"error in readint\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ppm_readint(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
br label %5
5: ; preds = %1, %22
%6 = load ptr, ptr %2, align 8
%7 = call signext i8 @ppm_readchar(ptr noundef %6)
store i8 %7, ptr %3, align 1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 32
br i1 %10, label %22, label %11
11: ; preds = %5
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 9
br i1 %14, label %21, label %15
15: ; preds = %11
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 10
br i1 %18, label %20, label %19
19: ; preds = %15
br label %23
20: ; preds = %15
br label %21
21: ; preds = %20, %11
br label %22
22: ; preds = %21, %5
br label %5
23: ; preds = %19
%24 = load i8, ptr %3, align 1
%25 = sext i8 %24 to i32
%26 = icmp slt i32 %25, 48
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @ppm_error(ptr noundef @.str)
br label %36
29: ; preds = %23
%30 = load i8, ptr %3, align 1
%31 = sext i8 %30 to i32
%32 = icmp sgt i32 %31, 57
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @ppm_error(ptr noundef @.str)
br label %35
35: ; preds = %33, %29
br label %36
36: ; preds = %35, %27
store i32 0, ptr %4, align 4
br label %37
37: ; preds = %36, %56
%38 = load i32, ptr %4, align 4
%39 = mul nsw i32 %38, 10
%40 = load i8, ptr %3, align 1
%41 = sext i8 %40 to i32
%42 = sub nsw i32 %41, 48
%43 = add nsw i32 %39, %42
store i32 %43, ptr %4, align 4
%44 = load ptr, ptr %2, align 8
%45 = call signext i8 @ppm_readchar(ptr noundef %44)
store i8 %45, ptr %3, align 1
%46 = load i8, ptr %3, align 1
%47 = sext i8 %46 to i32
%48 = icmp sge i32 %47, 48
br i1 %48, label %49, label %55
49: ; preds = %37
%50 = load i8, ptr %3, align 1
%51 = sext i8 %50 to i32
%52 = icmp sle i32 %51, 57
br i1 %52, label %54, label %53
53: ; preds = %49
br label %57
54: ; preds = %49
br label %56
55: ; preds = %37
br label %57
56: ; preds = %54
br label %37
57: ; preds = %55, %53
%58 = load i32, ptr %4, align 4
ret i32 %58
}
declare signext i8 @ppm_readchar(ptr noundef) #1
declare i32 @ppm_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa8icb60y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"error in readint\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ppm_readint(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
br label %5
5: ; preds = %22, %1
%6 = load ptr, ptr %2, align 8
%7 = call signext i8 @ppm_readchar(ptr noundef %6)
store i8 %7, ptr %3, align 1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 32
br i1 %10, label %22, label %11
11: ; preds = %5
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 9
br i1 %14, label %21, label %15
15: ; preds = %11
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 10
br i1 %18, label %20, label %19
19: ; preds = %15
br label %23
20: ; preds = %15
br label %21
21: ; preds = %20, %11
br label %22
22: ; preds = %21, %5
br label %5
23: ; preds = %19
%24 = load i8, ptr %3, align 1
%25 = sext i8 %24 to i32
%26 = icmp slt i32 %25, 48
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @ppm_error(ptr noundef @.str)
br label %36
29: ; preds = %23
%30 = load i8, ptr %3, align 1
%31 = sext i8 %30 to i32
%32 = icmp sgt i32 %31, 57
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @ppm_error(ptr noundef @.str)
br label %35
35: ; preds = %33, %29
br label %36
36: ; preds = %35, %27
store i32 0, ptr %4, align 4
%37 = load i32, ptr %4, align 4
%38 = mul nsw i32 %37, 10
%39 = load i8, ptr %3, align 1
%40 = sext i8 %39 to i32
%41 = sub nsw i32 %40, 48
%42 = add nsw i32 %38, %41
store i32 %42, ptr %4, align 4
%43 = load ptr, ptr %2, align 8
%44 = call signext i8 @ppm_readchar(ptr noundef %43)
store i8 %44, ptr %3, align 1
%45 = load i8, ptr %3, align 1
%46 = sext i8 %45 to i32
%47 = icmp sge i32 %46, 48
br i1 %47, label %.lr.ph, label %54
.lr.ph: ; preds = %36
br label %48
48: ; preds = %.lr.ph, %55
%49 = load i8, ptr %3, align 1
%50 = sext i8 %49 to i32
%51 = icmp sle i32 %50, 57
br i1 %51, label %53, label %52
52: ; preds = %48
br label %67
53: ; preds = %48
br label %55
._crit_edge: ; preds = %55
br label %54
54: ; preds = %._crit_edge, %36
br label %67
55: ; preds = %53
%56 = load i32, ptr %4, align 4
%57 = mul nsw i32 %56, 10
%58 = load i8, ptr %3, align 1
%59 = sext i8 %58 to i32
%60 = sub nsw i32 %59, 48
%61 = add nsw i32 %57, %60
store i32 %61, ptr %4, align 4
%62 = load ptr, ptr %2, align 8
%63 = call signext i8 @ppm_readchar(ptr noundef %62)
store i8 %63, ptr %3, align 1
%64 = load i8, ptr %3, align 1
%65 = sext i8 %64 to i32
%66 = icmp sge i32 %65, 48
br i1 %66, label %48, label %._crit_edge
67: ; preds = %54, %52
%68 = load i32, ptr %4, align 4
ret i32 %68
}
declare signext i8 @ppm_readchar(ptr noundef) #1
declare i32 @ppm_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4tb_hlz1.c'
source_filename = "/tmp/tmp4tb_hlz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inverseVector(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr null, %9
br i1 %10, label %18, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr null, %12
br i1 %13, label %18, label %14
14: ; preds = %11
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp uge ptr %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14, %11, %2
store i32 1, ptr %3, align 4
br label %39
19: ; preds = %14
store i32 0, ptr %6, align 4
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %8, align 8
br label %22
22: ; preds = %26, %19
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp ult ptr %23, %24
br i1 %25, label %26, label %38
26: ; preds = %22
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %7, align 8
store i32 %30, ptr %31, align 4
%32 = load i32, ptr %6, align 4
%33 = load ptr, ptr %8, align 8
store i32 %32, ptr %33, align 4
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds i32, ptr %34, i32 1
store ptr %35, ptr %7, align 8
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i32, ptr %36, i32 -1
store ptr %37, ptr %8, align 8
br label %22, !llvm.loop !6
38: ; preds = %22
store i32 0, ptr %3, align 4
br label %39
39: ; preds = %38, %18
%40 = load i32, ptr %3, align 4
ret i32 %40
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4tb_hlz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inverseVector(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr null, %9
br i1 %10, label %18, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr null, %12
br i1 %13, label %18, label %14
14: ; preds = %11
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp uge ptr %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14, %11, %2
store i32 1, ptr %3, align 4
br label %41
19: ; preds = %14
store i32 0, ptr %6, align 4
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %8, align 8
%24 = icmp ult ptr %22, %23
br i1 %24, label %.lr.ph, label %40
.lr.ph: ; preds = %19
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %6, align 4
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %7, align 8
store i32 %29, ptr %30, align 4
%31 = load i32, ptr %6, align 4
%32 = load ptr, ptr %8, align 8
store i32 %31, ptr %32, align 4
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i32, ptr %33, i32 1
store ptr %34, ptr %7, align 8
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i32, ptr %35, i32 -1
store ptr %36, ptr %8, align 8
%37 = load ptr, ptr %7, align 8
%38 = load ptr, ptr %8, align 8
%39 = icmp ult ptr %37, %38
br i1 %39, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %40
40: ; preds = %._crit_edge, %19
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %40, %18
%42 = load i32, ptr %3, align 4
ret i32 %42
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpmrek89x3.c'
source_filename = "/tmp/tmpmrek89x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hexEncodeLength(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = mul i64 2, %3
%5 = add i64 %4, 1
ret i64 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmrek89x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @hexEncodeLength(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = mul i64 2, %3
%5 = add i64 %4, 1
ret i64 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjkgu7ipg.c'
source_filename = "/tmp/tmpjkgu7ipg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/usr/bin/expr\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"abcdefg\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"([a-c]*){2,}\00", align 1
@__const.main.argv = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3], align 16
@.str.4 = private unnamed_addr constant [5 x i8] c"expr\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x ptr], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.argv, i64 32, i1 false)
%4 = getelementptr inbounds [4 x ptr], ptr %2, i64 0, i64 0
%5 = call i32 @execve(ptr noundef @.str.4, ptr noundef %4, ptr noundef null)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.5, i32 noundef %6)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpjkgu7ipg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/usr/bin/expr\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"abcdefg\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"([a-c]*){2,}\00", align 1
@__const.main.argv = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3], align 16
@.str.4 = private unnamed_addr constant [5 x i8] c"expr\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x ptr], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.argv, i64 32, i1 false)
%4 = getelementptr inbounds [4 x ptr], ptr %2, i64 0, i64 0
%5 = call i32 @execve(ptr noundef @.str.4, ptr noundef %4, ptr noundef null)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str.5, i32 noundef %6)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmp84uc59wg.c'
source_filename = "/tmp/tmp84uc59wg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_key_no_wait() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
store i64 0, ptr %2, align 8
%3 = call i64 (...) @get_key_buf_char()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i64, ptr %2, align 8
store i64 %7, ptr %1, align 8
br label %12
8: ; preds = %0
%9 = call i32 (...) @clr_key_wait()
%10 = call i32 @read_char(ptr noundef %2)
%11 = load i64, ptr %2, align 8
store i64 %11, ptr %1, align 8
br label %12
12: ; preds = %8, %6
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i64 @get_key_buf_char(...) #1
declare i32 @clr_key_wait(...) #1
declare i32 @read_char(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp84uc59wg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_key_no_wait() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
store i64 0, ptr %2, align 8
%3 = call i64 (...) @get_key_buf_char()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i64, ptr %2, align 8
store i64 %7, ptr %1, align 8
br label %12
8: ; preds = %0
%9 = call i32 (...) @clr_key_wait()
%10 = call i32 @read_char(ptr noundef %2)
%11 = load i64, ptr %2, align 8
store i64 %11, ptr %1, align 8
br label %12
12: ; preds = %8, %6
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i64 @get_key_buf_char(...) #1
declare i32 @clr_key_wait(...) #1
declare i32 @read_char(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg8j765gl.c'
source_filename = "/tmp/tmpg8j765gl.c"
target datalayout = "e-m:e-p270: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/tmpg8j765gl.c"
target datalayout = "e-m:e-p270: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/tmpgp6no6tr.c'
source_filename = "/tmp/tmpgp6no6tr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %39, %2
%13 = load i32, ptr %5, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %42
15: ; preds = %12
%16 = call i32 (...) @rand()
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
%19 = srem i32 %16, %18
store i32 %19, ptr %6, align 4
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %7, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store i32 %29, ptr %33, align 4
%34 = load i32, ptr %7, align 4
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
store i32 %34, ptr %38, align 4
br label %39
39: ; preds = %15
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %5, align 4
br label %12, !llvm.loop !6
42: ; preds = %12
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgp6no6tr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %43
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %38
%15 = call i32 (...) @rand()
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
%18 = srem i32 %15, %17
store i32 %18, ptr %6, align 4
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
store i32 %23, ptr %7, align 4
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %7, align 4
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 %33, ptr %37, align 4
br label %38
38: ; preds = %14
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %43
43: ; preds = %._crit_edge, %2
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp68i5pcsx.c'
source_filename = "/tmp/tmp68i5pcsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"ArrowCursor\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ArrowCursor() #0 {
%1 = call i32 @CheckRunningInMainThread(ptr noundef @.str)
%2 = icmp ne i32 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
br label %6
4: ; preds = %0
%5 = call i32 @CallBack1(i32 noundef 33, ptr noundef inttoptr (i64 1 to ptr))
br label %6
6: ; preds = %4, %3
ret void
}
declare i32 @CheckRunningInMainThread(ptr noundef) #1
declare i32 @CallBack1(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp68i5pcsx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"ArrowCursor\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ArrowCursor() #0 {
%1 = call i32 @CheckRunningInMainThread(ptr noundef @.str)
%2 = icmp ne i32 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
br label %6
4: ; preds = %0
%5 = call i32 @CallBack1(i32 noundef 33, ptr noundef inttoptr (i64 1 to ptr))
br label %6
6: ; preds = %4, %3
ret void
}
declare i32 @CheckRunningInMainThread(ptr noundef) #1
declare i32 @CallBack1(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdugbp87u.c'
source_filename = "/tmp/tmpdugbp87u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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". \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dot() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdugbp87u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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". \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dot() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp68k6k54n.c'
source_filename = "/tmp/tmp68k6k54n.c"
target datalayout = "e-m:e-p270: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/tmp68k6k54n.c"
target datalayout = "e-m:e-p270: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/tmpaeww8f2n.c'
source_filename = "/tmp/tmpaeww8f2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"out\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d -->\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" %d\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 void @generate_complete(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %3, align 8
store i32 1, ptr %4, align 4
br label %7
7: ; preds = %41, %1
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %44
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %4, align 4
%14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.2, i32 noundef %13)
store i32 1, ptr %5, align 4
br label %15
15: ; preds = %28, %11
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %31
19: ; preds = %15
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %20, %21
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.3, i32 noundef %25)
br label %27
27: ; preds = %23, %19
br label %28
28: ; preds = %27
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %15, !llvm.loop !6
31: ; preds = %15
%32 = load ptr, ptr %3, align 8
%33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.4)
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load ptr, ptr %3, align 8
%39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.4)
br label %40
40: ; preds = %37, %31
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
br label %7, !llvm.loop !8
44: ; preds = %7
%45 = load ptr, ptr %3, align 8
%46 = call i32 @fclose(ptr noundef %45)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaeww8f2n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"out\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d -->\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" %d\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 void @generate_complete(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %3, align 8
store i32 1, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph2, label %48
.lr.ph2: ; preds = %1
br label %10
10: ; preds = %.lr.ph2, %42
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str.2, i32 noundef %12)
store i32 1, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %.lr.ph, label %32
.lr.ph: ; preds = %10
br label %17
17: ; preds = %.lr.ph, %26
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.3, i32 noundef %23)
br label %25
25: ; preds = %21, %17
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %10
%33 = load ptr, ptr %3, align 8
%34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.4)
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load ptr, ptr %3, align 8
%40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.4)
br label %41
41: ; preds = %38, %32
br label %42
42: ; preds = %41
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp sle i32 %45, %46
br i1 %47, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %1
%49 = load ptr, ptr %3, align 8
%50 = call i32 @fclose(ptr noundef %49)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpw9a_36py.c'
source_filename = "/tmp/tmpw9a_36py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DecToBin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 20, ptr %3, align 4
br label %6
6: ; preds = %21, %1
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = ashr i32 %10, %11
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = and i32 %13, 1
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %9
%17 = call i32 @printf(ptr noundef @.str)
br label %20
18: ; preds = %9
%19 = call i32 @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %16
br label %21
21: ; preds = %20
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
%25 = load i32, ptr %5, align 4
ret i32 %25
}
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/tmpw9a_36py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DecToBin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 20, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 0
br i1 %7, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %20
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = ashr i32 %9, %10
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %8
%16 = call i32 @printf(ptr noundef @.str)
br label %19
17: ; preds = %8
%18 = call i32 @printf(ptr noundef @.str.1)
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %1
%26 = load i32, ptr %5, align 4
ret i32 %26
}
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/tmp4qcrt61v.c'
source_filename = "/tmp/tmp4qcrt61v.c"
target datalayout = "e-m:e-p270: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/tmp4qcrt61v.c"
target datalayout = "e-m:e-p270: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/tmpsh1mxtsw.c'
source_filename = "/tmp/tmpsh1mxtsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @p11c_hash_data(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = load i64, ptr %4, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
store ptr %11, ptr %6, align 8
br label %12
12: ; preds = %23, %2
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %6, align 8
%15 = icmp ne ptr %13, %14
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = mul i32 %17, 33
%19 = load ptr, ptr %7, align 8
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = add i32 %18, %21
store i32 %22, ptr %5, align 4
br label %23
23: ; preds = %16
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %7, align 8
br label %12, !llvm.loop !6
26: ; preds = %12
%27 = load i32, ptr %5, 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/tmpsh1mxtsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @p11c_hash_data(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = load i64, ptr %4, align 8
%11 = getelementptr inbounds i8, ptr %9, i64 %10
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %12, %13
br i1 %14, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %22
%16 = load i32, ptr %5, align 4
%17 = mul i32 %16, 33
%18 = load ptr, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = add i32 %17, %20
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %15
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %6, align 8
%27 = icmp ne ptr %25, %26
br i1 %27, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %2
%29 = load i32, ptr %5, align 4
ret i32 %29
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp6757zxju.c'
source_filename = "/tmp/tmp6757zxju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [42 x i8], align 16
%5 = alloca [20 x i8], align 16
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %15, %0
%8 = load i64, ptr %6, align 8
%9 = icmp ult i64 %8, 42
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load i64, ptr %6, align 8
%12 = trunc i64 %11 to i8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds [42 x i8], ptr %4, i64 0, i64 %13
store i8 %12, ptr %14, align 1
br label %15
15: ; preds = %10
%16 = load i64, ptr %6, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %6, align 8
br label %7, !llvm.loop !6
18: ; preds = %7
%19 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%20 = getelementptr inbounds [42 x i8], ptr %4, i64 0, i64 0
%21 = call i32 @memcpy(ptr noundef %19, ptr noundef %20, i32 noundef 20)
%22 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 10
%23 = load i8, ptr %22, align 2
%24 = sext i8 %23 to i32
store i32 %24, ptr %2, align 4
%25 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%26 = load i8, ptr %25, align 16
%27 = sext i8 %26 to i32
store i32 %27, ptr %3, align 4
%28 = call i32 @swap_int(ptr noundef %2, ptr noundef %3)
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @swap_int(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/tmp6757zxju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [42 x i8], align 16
%5 = alloca [20 x i8], align 16
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %6, align 8
%7 = load i64, ptr %6, align 8
%8 = icmp ult i64 %7, 42
br i1 %8, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %14
%10 = load i64, ptr %6, align 8
%11 = trunc i64 %10 to i8
%12 = load i64, ptr %6, align 8
%13 = getelementptr inbounds [42 x i8], ptr %4, i64 0, i64 %12
store i8 %11, ptr %13, align 1
br label %14
14: ; preds = %9
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, 1
store i64 %16, ptr %6, align 8
%17 = load i64, ptr %6, align 8
%18 = icmp ult i64 %17, 42
br i1 %18, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%21 = getelementptr inbounds [42 x i8], ptr %4, i64 0, i64 0
%22 = call i32 @memcpy(ptr noundef %20, ptr noundef %21, i32 noundef 20)
%23 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 10
%24 = load i8, ptr %23, align 2
%25 = sext i8 %24 to i32
store i32 %25, ptr %2, align 4
%26 = getelementptr inbounds [20 x i8], ptr %5, i64 0, i64 0
%27 = load i8, ptr %26, align 16
%28 = sext i8 %27 to i32
store i32 %28, ptr %3, align 4
%29 = call i32 @swap_int(ptr noundef %2, ptr noundef %3)
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @swap_int(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/tmpn8isa1zq.c'
source_filename = "/tmp/tmpn8isa1zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"a+b>c&&b==c\09%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
store i32 3, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 5, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %11, %12
br label %14
14: ; preds = %10, %0
%15 = phi i1 [ false, %0 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
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/tmpn8isa1zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"a+b>c&&b==c\09%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
store i32 3, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 5, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %11, %12
br label %14
14: ; preds = %10, %0
%15 = phi i1 [ false, %0 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
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/tmpra45ekdh.c'
source_filename = "/tmp/tmpra45ekdh.c"
target datalayout = "e-m:e-p270: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.btrfs_ioctl_ino_lookup_args = type { i64, i32 }
@BTRFS_IOC_INO_LOOKUP = 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 @lookup_btrfs_subvolid(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 %struct.btrfs_ioctl_ino_lookup_args, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 16)
%9 = getelementptr inbounds %struct.btrfs_ioctl_ino_lookup_args, ptr %7, i32 0, i32 0
store i64 256, ptr %9, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @BTRFS_IOC_INO_LOOKUP, align 4
%12 = call i32 @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %7)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr @errno, align 4
store i32 %16, ptr %3, align 4
br label %21
17: ; preds = %2
%18 = getelementptr inbounds %struct.btrfs_ioctl_ino_lookup_args, ptr %7, i32 0, i32 1
%19 = load i32, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
store i32 %19, ptr %20, align 4
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %17, %15
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpra45ekdh.c"
target datalayout = "e-m:e-p270: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.btrfs_ioctl_ino_lookup_args = type { i64, i32 }
@BTRFS_IOC_INO_LOOKUP = 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 @lookup_btrfs_subvolid(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 %struct.btrfs_ioctl_ino_lookup_args, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 16)
%9 = getelementptr inbounds %struct.btrfs_ioctl_ino_lookup_args, ptr %7, i32 0, i32 0
store i64 256, ptr %9, align 8
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @BTRFS_IOC_INO_LOOKUP, align 4
%12 = call i32 @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %7)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr @errno, align 4
store i32 %16, ptr %3, align 4
br label %21
17: ; preds = %2
%18 = getelementptr inbounds %struct.btrfs_ioctl_ino_lookup_args, ptr %7, i32 0, i32 1
%19 = load i32, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
store i32 %19, ptr %20, align 4
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %17, %15
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv81el8m3.c'
source_filename = "/tmp/tmpv81el8m3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Magic Index: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @magic(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %48
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = sdiv i32 %16, 2
%18 = add nsw i32 %13, %17
store i32 %18, ptr %7, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %12
%27 = load i32, ptr %7, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
br label %48
29: ; preds = %12
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, 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 %7, align 4
%36 = icmp sgt i32 %34, %35
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %7, align 4
%41 = sub nsw i32 %40, 1
call void @magic(ptr noundef %38, i32 noundef %39, i32 noundef %41)
br label %47
42: ; preds = %29
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %6, align 4
call void @magic(ptr noundef %43, i32 noundef %45, i32 noundef %46)
br label %47
47: ; preds = %42, %37
br label %48
48: ; preds = %11, %47, %26
ret void
}
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/tmpv81el8m3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Magic Index: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @magic(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %48
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = sdiv i32 %16, 2
%18 = add nsw i32 %13, %17
store i32 %18, ptr %7, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %12
%27 = load i32, ptr %7, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
br label %48
29: ; preds = %12
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, 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 %7, align 4
%36 = icmp sgt i32 %34, %35
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = load i32, ptr %7, align 4
%41 = sub nsw i32 %40, 1
call void @magic(ptr noundef %38, i32 noundef %39, i32 noundef %41)
br label %47
42: ; preds = %29
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %6, align 4
call void @magic(ptr noundef %43, i32 noundef %45, i32 noundef %46)
br label %47
47: ; preds = %42, %37
br label %48
48: ; preds = %47, %26, %11
ret void
}
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/tmpy7ehf388.c'
source_filename = "/tmp/tmpy7ehf388.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create2DDoubleArray(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %28, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 8
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
store ptr %23, ptr %27, align 8
br label %28
28: ; preds = %17
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = load ptr, ptr %5, align 8
ret ptr %32
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7ehf388.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create2DDoubleArray(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %27
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
store ptr %22, ptr %26, align 8
br label %27
27: ; preds = %16
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %2
%34 = load ptr, ptr %5, align 8
ret ptr %34
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplpy3nq6k.c'
source_filename = "/tmp/tmplpy3nq6k.c"
target datalayout = "e-m:e-p270: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/tmplpy3nq6k.c"
target datalayout = "e-m:e-p270: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/tmpy511h42_.c'
source_filename = "/tmp/tmpy511h42_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @csc_crc16(i16 noundef zeroext %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i16, align 2
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store i16 %0, ptr %4, align 2
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %7, align 8
br label %9
9: ; preds = %13, %3
%10 = load i64, ptr %6, align 8
%11 = add i64 %10, -1
store i64 %11, ptr %6, align 8
%12 = icmp ne i64 %10, 0
br i1 %12, label %13, label %20
13: ; preds = %9
%14 = load i16, ptr %4, align 2
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %7, align 8
%17 = load i8, ptr %15, align 1
%18 = zext i8 %17 to i32
%19 = call zeroext i16 @csc_crc16_byte(i16 noundef zeroext %14, i32 noundef %18)
store i16 %19, ptr %4, align 2
br label %9, !llvm.loop !6
20: ; preds = %9
%21 = load i16, ptr %4, align 2
ret i16 %21
}
declare zeroext i16 @csc_crc16_byte(i16 noundef zeroext, 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/tmpy511h42_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @csc_crc16(i16 noundef zeroext %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i16, align 2
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store i16 %0, ptr %4, align 2
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
store ptr %8, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = add i64 %9, -1
store i64 %10, ptr %6, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %.lr.ph, label %22
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i16, ptr %4, align 2
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %7, align 8
%16 = load i8, ptr %14, align 1
%17 = zext i8 %16 to i32
%18 = call zeroext i16 @csc_crc16_byte(i16 noundef zeroext %13, i32 noundef %17)
store i16 %18, ptr %4, align 2
%19 = load i64, ptr %6, align 8
%20 = add i64 %19, -1
store i64 %20, ptr %6, align 8
%21 = icmp ne i64 %19, 0
br i1 %21, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %22
22: ; preds = %._crit_edge, %3
%23 = load i16, ptr %4, align 2
ret i16 %23
}
declare zeroext i16 @csc_crc16_byte(i16 noundef zeroext, 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/tmp371ncmav.c'
source_filename = "/tmp/tmp371ncmav.c"
target datalayout = "e-m:e-p270: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/tmp371ncmav.c"
target datalayout = "e-m:e-p270: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/tmpul7pv6z2.c'
source_filename = "/tmp/tmpul7pv6z2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USAGE: del_msgq.c <queue ID >\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ipcs -q\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"msgctl\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"successfully removed %d queue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = call i32 @system(ptr noundef @.str.1)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr @IPC_RMID, align 4
%20 = call i64 @msgctl(i32 noundef %18, i32 noundef %19, ptr noundef null)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = call i32 @perror(ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %12
%26 = call i32 @system(ptr noundef @.str.1)
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str.3, i32 noundef %27)
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @puts(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i64 @msgctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpul7pv6z2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USAGE: del_msgq.c <queue ID >\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ipcs -q\00", align 1
@IPC_RMID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [7 x i8] c"msgctl\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"successfully removed %d queue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = call i32 @system(ptr noundef @.str.1)
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr @IPC_RMID, align 4
%20 = call i64 @msgctl(i32 noundef %18, i32 noundef %19, ptr noundef null)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = call i32 @perror(ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %12
%26 = call i32 @system(ptr noundef @.str.1)
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str.3, i32 noundef %27)
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @puts(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i64 @msgctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp684t009f.c'
source_filename = "/tmp/tmp684t009f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b64encode(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [4 x i32], align 16
%14 = alloca [3 x i32], align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %15, align 8
store ptr %21, ptr %16, align 8
br label %22
22: ; preds = %125, %5
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %6, align 8
%25 = ptrtoint ptr %23 to i64
%26 = ptrtoint ptr %24 to i64
%27 = sub i64 %25, %26
%28 = load i64, ptr %7, align 8
%29 = icmp ult i64 %27, %28
br i1 %29, label %30, label %38
30: ; preds = %22
%31 = load ptr, ptr %16, align 8
%32 = load ptr, ptr %15, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = load i64, ptr %9, align 8
%37 = icmp ult i64 %35, %36
br label %38
38: ; preds = %30, %22
%39 = phi i1 [ false, %22 ], [ %37, %30 ]
br i1 %39, label %40, label %126
40: ; preds = %38
store i32 0, ptr %18, align 4
store i32 0, ptr %12, align 4
br label %41
41: ; preds = %68, %40
%42 = load i32, ptr %12, align 4
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %43, 12
br i1 %44, label %45, label %71
45: ; preds = %41
%46 = load ptr, ptr %11, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %11, align 8
%48 = load i8, ptr %46, align 1
%49 = sext i8 %48 to i32
%50 = load i32, ptr %12, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %51
store i32 %49, ptr %52, align 4
%53 = load ptr, ptr %11, align 8
%54 = load ptr, ptr %6, align 8
%55 = ptrtoint ptr %53 to i64
%56 = ptrtoint ptr %54 to i64
%57 = sub i64 %55, %56
%58 = load i64, ptr %7, align 8
%59 = icmp ule i64 %57, %58
br i1 %59, label %60, label %63
60: ; preds = %45
%61 = load i32, ptr %18, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %18, align 4
br label %67
63: ; preds = %45
%64 = load i32, ptr %12, align 4
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %65
store i32 0, ptr %66, align 4
br label %67
67: ; preds = %63, %60
br label %68
68: ; preds = %67
%69 = load i32, ptr %12, align 4
%70 = add i32 %69, 1
store i32 %70, ptr %12, align 4
br label %41, !llvm.loop !6
71: ; preds = %41
%72 = load i32, ptr %18, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %97
74: ; preds = %71
%75 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 0
%76 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%77 = load i32, ptr %18, align 4
%78 = call i32 @encodeblock(ptr noundef %75, ptr noundef %76, i32 noundef %77)
store i32 0, ptr %12, align 4
br label %79
79: ; preds = %91, %74
%80 = load i32, ptr %12, align 4
%81 = zext i32 %80 to i64
%82 = icmp ult i64 %81, 16
br i1 %82, label %83, label %94
83: ; preds = %79
%84 = load i32, ptr %12, align 4
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
%88 = trunc i32 %87 to i8
%89 = load ptr, ptr %16, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %16, align 8
store i8 %88, ptr %89, align 1
br label %91
91: ; preds = %83
%92 = load i32, ptr %12, align 4
%93 = add i32 %92, 1
store i32 %93, ptr %12, align 4
br label %79, !llvm.loop !8
94: ; preds = %79
%95 = load i32, ptr %17, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %17, align 4
br label %97
97: ; preds = %94, %71
%98 = load i32, ptr %10, align 4
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %125
100: ; preds = %97
%101 = load i32, ptr %17, align 4
%102 = load i32, ptr %10, align 4
%103 = sext i32 %102 to i64
%104 = udiv i64 %103, 16
%105 = trunc i64 %104 to i32
%106 = icmp sge i32 %101, %105
br i1 %106, label %115, label %107
107: ; preds = %100
%108 = load ptr, ptr %11, align 8
%109 = load ptr, ptr %6, align 8
%110 = ptrtoint ptr %108 to i64
%111 = ptrtoint ptr %109 to i64
%112 = sub i64 %110, %111
%113 = load i64, ptr %7, align 8
%114 = icmp uge i64 %112, %113
br i1 %114, label %115, label %124
115: ; preds = %107, %100
%116 = load i32, ptr %17, align 4
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = load ptr, ptr %16, align 8
%120 = getelementptr inbounds i8, ptr %119, i32 1
store ptr %120, ptr %16, align 8
store i8 13, ptr %119, align 1
%121 = load ptr, ptr %16, align 8
%122 = getelementptr inbounds i8, ptr %121, i32 1
store ptr %122, ptr %16, align 8
store i8 10, ptr %121, align 1
br label %123
123: ; preds = %118, %115
store i32 0, ptr %17, align 4
br label %124
124: ; preds = %123, %107
br label %125
125: ; preds = %124, %97
br label %22, !llvm.loop !9
126: ; preds = %38
%127 = load ptr, ptr %16, align 8
%128 = load ptr, ptr %15, align 8
%129 = ptrtoint ptr %127 to i64
%130 = ptrtoint ptr %128 to i64
%131 = sub i64 %129, %130
%132 = trunc i64 %131 to i32
ret i32 %132
}
declare i32 @encodeblock(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/tmp684t009f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b64encode(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [4 x i32], align 16
%14 = alloca [3 x i32], align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %15, align 8
store i32 0, ptr %18, align 4
store i32 0, ptr %17, align 4
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %15, align 8
store ptr %21, ptr %16, align 8
br label %22
22: ; preds = %129, %5
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %6, align 8
%25 = ptrtoint ptr %23 to i64
%26 = ptrtoint ptr %24 to i64
%27 = sub i64 %25, %26
%28 = load i64, ptr %7, align 8
%29 = icmp ult i64 %27, %28
br i1 %29, label %30, label %38
30: ; preds = %22
%31 = load ptr, ptr %16, align 8
%32 = load ptr, ptr %15, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = load i64, ptr %9, align 8
%37 = icmp ult i64 %35, %36
br label %38
38: ; preds = %30, %22
%39 = phi i1 [ false, %22 ], [ %37, %30 ]
br i1 %39, label %40, label %130
40: ; preds = %38
store i32 0, ptr %18, align 4
store i32 0, ptr %12, align 4
%41 = load i32, ptr %12, align 4
%42 = zext i32 %41 to i64
%43 = icmp ult i64 %42, 12
br i1 %43, label %.lr.ph, label %73
.lr.ph: ; preds = %40
br label %44
44: ; preds = %.lr.ph, %67
%45 = load ptr, ptr %11, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %11, align 8
%47 = load i8, ptr %45, align 1
%48 = sext i8 %47 to i32
%49 = load i32, ptr %12, align 4
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %50
store i32 %48, ptr %51, align 4
%52 = load ptr, ptr %11, align 8
%53 = load ptr, ptr %6, align 8
%54 = ptrtoint ptr %52 to i64
%55 = ptrtoint ptr %53 to i64
%56 = sub i64 %54, %55
%57 = load i64, ptr %7, align 8
%58 = icmp ule i64 %56, %57
br i1 %58, label %59, label %62
59: ; preds = %44
%60 = load i32, ptr %18, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %18, align 4
br label %66
62: ; preds = %44
%63 = load i32, ptr %12, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %64
store i32 0, ptr %65, align 4
br label %66
66: ; preds = %62, %59
br label %67
67: ; preds = %66
%68 = load i32, ptr %12, align 4
%69 = add i32 %68, 1
store i32 %69, ptr %12, align 4
%70 = load i32, ptr %12, align 4
%71 = zext i32 %70 to i64
%72 = icmp ult i64 %71, 12
br i1 %72, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %73
73: ; preds = %._crit_edge, %40
%74 = load i32, ptr %18, align 4
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %101
76: ; preds = %73
%77 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 0
%78 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%79 = load i32, ptr %18, align 4
%80 = call i32 @encodeblock(ptr noundef %77, ptr noundef %78, i32 noundef %79)
store i32 0, ptr %12, align 4
%81 = load i32, ptr %12, align 4
%82 = zext i32 %81 to i64
%83 = icmp ult i64 %82, 16
br i1 %83, label %.lr.ph2, label %98
.lr.ph2: ; preds = %76
br label %84
84: ; preds = %.lr.ph2, %92
%85 = load i32, ptr %12, align 4
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 %86
%88 = load i32, ptr %87, align 4
%89 = trunc i32 %88 to i8
%90 = load ptr, ptr %16, align 8
%91 = getelementptr inbounds i8, ptr %90, i32 1
store ptr %91, ptr %16, align 8
store i8 %89, ptr %90, align 1
br label %92
92: ; preds = %84
%93 = load i32, ptr %12, align 4
%94 = add i32 %93, 1
store i32 %94, ptr %12, align 4
%95 = load i32, ptr %12, align 4
%96 = zext i32 %95 to i64
%97 = icmp ult i64 %96, 16
br i1 %97, label %84, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %92
br label %98
98: ; preds = %._crit_edge3, %76
%99 = load i32, ptr %17, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %17, align 4
br label %101
101: ; preds = %98, %73
%102 = load i32, ptr %10, align 4
%103 = icmp sgt i32 %102, 0
br i1 %103, label %104, label %129
104: ; preds = %101
%105 = load i32, ptr %17, align 4
%106 = load i32, ptr %10, align 4
%107 = sext i32 %106 to i64
%108 = udiv i64 %107, 16
%109 = trunc i64 %108 to i32
%110 = icmp sge i32 %105, %109
br i1 %110, label %119, label %111
111: ; preds = %104
%112 = load ptr, ptr %11, align 8
%113 = load ptr, ptr %6, align 8
%114 = ptrtoint ptr %112 to i64
%115 = ptrtoint ptr %113 to i64
%116 = sub i64 %114, %115
%117 = load i64, ptr %7, align 8
%118 = icmp uge i64 %116, %117
br i1 %118, label %119, label %128
119: ; preds = %111, %104
%120 = load i32, ptr %17, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %127
122: ; preds = %119
%123 = load ptr, ptr %16, align 8
%124 = getelementptr inbounds i8, ptr %123, i32 1
store ptr %124, ptr %16, align 8
store i8 13, ptr %123, align 1
%125 = load ptr, ptr %16, align 8
%126 = getelementptr inbounds i8, ptr %125, i32 1
store ptr %126, ptr %16, align 8
store i8 10, ptr %125, align 1
br label %127
127: ; preds = %122, %119
store i32 0, ptr %17, align 4
br label %128
128: ; preds = %127, %111
br label %129
129: ; preds = %128, %101
br label %22, !llvm.loop !9
130: ; preds = %38
%131 = load ptr, ptr %16, align 8
%132 = load ptr, ptr %15, align 8
%133 = ptrtoint ptr %131 to i64
%134 = ptrtoint ptr %132 to i64
%135 = sub i64 %133, %134
%136 = trunc i64 %135 to i32
ret i32 %136
}
declare i32 @encodeblock(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/tmp6ij8o4_8.c'
source_filename = "/tmp/tmp6ij8o4_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 3, ptr %6, align 4
store i32 10, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %12, %2
%10 = load i32, ptr %6, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %9
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %9, label %16, !llvm.loop !6
16: ; preds = %12
%17 = load i32, ptr %8, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %3, align 4
ret i32 %19
}
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/tmp6ij8o4_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 3, ptr %6, align 4
store i32 10, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %12, %2
%10 = load i32, ptr %6, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %9
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %9, label %16, !llvm.loop !6
16: ; preds = %12
%17 = load i32, ptr %8, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %3, align 4
ret i32 %19
}
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/tmpcwbj8ezb.c'
source_filename = "/tmp/tmpcwbj8ezb.c"
target datalayout = "e-m:e-p270: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/tmpcwbj8ezb.c"
target datalayout = "e-m:e-p270: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/tmpvggha7ey.c'
source_filename = "/tmp/tmpvggha7ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"/bin/mail %s < /tmp/email\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testTaintSystemCall() #0 {
%1 = alloca [156 x i8], align 16
%2 = alloca [128 x i8], align 16
%3 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @system(ptr noundef %5)
%7 = getelementptr inbounds [156 x i8], ptr %1, i64 0, i64 0
%8 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [156 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @system(ptr noundef %10)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @sprintf(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/tmpvggha7ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"/bin/mail %s < /tmp/email\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testTaintSystemCall() #0 {
%1 = alloca [156 x i8], align 16
%2 = alloca [128 x i8], align 16
%3 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @system(ptr noundef %5)
%7 = getelementptr inbounds [156 x i8], ptr %1, i64 0, i64 0
%8 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str.1, ptr noundef %8)
%10 = getelementptr inbounds [156 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @system(ptr noundef %10)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @sprintf(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/tmpxobqzgsz.c'
source_filename = "/tmp/tmpxobqzgsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpfrdsub(i32 noundef %0, ptr 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 ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %6, align 8
%12 = load double, ptr %11, align 8
store double %12, ptr %9, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %5, align 4
%16 = load double, ptr %9, align 8
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %10, align 4
%19 = call i32 @mpfr_d_sub(i32 noundef %15, double noundef %16, i32 noundef %17, i32 noundef %18)
ret void
}
declare i32 @mpfr_d_sub(i32 noundef, double 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/tmpxobqzgsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpfrdsub(i32 noundef %0, ptr 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 ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %6, align 8
%12 = load double, ptr %11, align 8
store double %12, ptr %9, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %13, align 4
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %5, align 4
%16 = load double, ptr %9, align 8
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %10, align 4
%19 = call i32 @mpfr_d_sub(i32 noundef %15, double noundef %16, i32 noundef %17, i32 noundef %18)
ret void
}
declare i32 @mpfr_d_sub(i32 noundef, double 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/tmpv9zm69m8.c'
source_filename = "/tmp/tmpv9zm69m8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"/net/home/f10/awzurn/zurnCAssignTxt.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"There was an error in opening the file. System will exit!\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"The contents of the file: \0A %s \0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [79 x i8] c"There was an error in printing the file to the command line. System will exit!\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 ptr, align 8
%10 = alloca i64, align 8
%11 = 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 89, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %9, align 8
%15 = alloca i8, i64 %13, align 16
store i64 %13, ptr %10, align 8
%16 = load i32, ptr @O_RDONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 @read(i32 noundef %23, ptr noundef %15, i32 noundef %24)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr @stdout, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.2, ptr noundef %15)
store i32 0, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
32: ; preds = %22
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
35: ; preds = %32, %29, %20
%36 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %36)
%37 = load i32, ptr %3, align 4
ret i32 %37
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
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/tmpv9zm69m8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"/net/home/f10/awzurn/zurnCAssignTxt.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"There was an error in opening the file. System will exit!\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"The contents of the file: \0A %s \0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [79 x i8] c"There was an error in printing the file to the command line. System will exit!\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 ptr, align 8
%10 = alloca i64, align 8
%11 = 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 89, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %9, align 8
%15 = alloca i8, i64 %13, align 16
store i64 %13, ptr %10, align 8
%16 = load i32, ptr @O_RDONLY, align 4
%17 = call i32 @open(ptr noundef @.str, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %8, align 4
%25 = call i32 @read(i32 noundef %23, ptr noundef %15, i32 noundef %24)
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr @stdout, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.2, ptr noundef %15)
store i32 0, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
32: ; preds = %22
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
store i32 1, ptr %11, align 4
br label %35
35: ; preds = %32, %29, %20
%36 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %36)
%37 = load i32, ptr %3, align 4
ret i32 %37
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
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/tmpn4lmpmdw.c'
source_filename = "/tmp/tmpn4lmpmdw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\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 [20 x i32], align 16
%5 = alloca [20 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 20
br i1 %11, label %12, label %13
12: ; preds = %0
store i32 1, ptr %1, align 4
br label %90
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, ptr %1, align 4
br label %90
17: ; preds = %13
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %48, %17
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %51
22: ; preds = %18
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %22
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %46
29: ; preds = %26, %22
%30 = load i32, ptr %7, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %37, label %32
32: ; preds = %29
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %2, align 4
%35 = sub nsw i32 %34, 1
%36 = icmp eq i32 %33, %35
br i1 %36, label %37, label %41
37: ; preds = %32, %29
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, ptr %1, align 4
br label %90
41: ; preds = %37, %32
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %44
store i32 %42, ptr %45, align 4
br label %47
46: ; preds = %26
store i32 1, ptr %1, align 4
br label %90
47: ; preds = %41
br label %48
48: ; preds = %47
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %18, !llvm.loop !6
51: ; preds = %18
store i32 0, ptr %7, align 4
br label %52
52: ; preds = %86, %51
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %53, 1000
br i1 %54, label %55, label %89
55: ; preds = %52
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
br label %56
56: ; preds = %73, %55
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %2, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %76
60: ; preds = %56
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %60
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
%69 = call i32 @printf(ptr noundef @.str.1)
br label %72
70: ; preds = %60
%71 = call i32 @printf(ptr noundef @.str.2)
br label %72
72: ; preds = %70, %66
br label %73
73: ; preds = %72
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
br label %56, !llvm.loop !8
76: ; preds = %56
%77 = load i32, ptr %6, align 4
%78 = load i32, ptr %2, align 4
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %81
80: ; preds = %76
br label %89
81: ; preds = %76
%82 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%83 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 0
%84 = load i32, ptr %2, align 4
%85 = call i32 @next_generation(ptr noundef %82, ptr noundef %83, i32 noundef %84)
br label %86
86: ; preds = %81
%87 = load i32, ptr %7, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %7, align 4
br label %52, !llvm.loop !9
89: ; preds = %80, %52
store i32 0, ptr %1, align 4
br label %90
90: ; preds = %89, %46, %40, %16, %12
%91 = load i32, ptr %1, align 4
ret i32 %91
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @next_generation(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/tmpn4lmpmdw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"*\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 [20 x i32], align 16
%5 = alloca [20 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 20
br i1 %11, label %12, label %13
12: ; preds = %0
store i32 1, ptr %1, align 4
br label %95
13: ; preds = %0
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, ptr %1, align 4
br label %95
17: ; preds = %13
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %53
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %47
%22 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%23 = load i32, ptr %3, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %21
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %45
28: ; preds = %25, %21
%29 = load i32, ptr %7, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %36, label %31
31: ; preds = %28
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %2, align 4
%34 = sub nsw i32 %33, 1
%35 = icmp eq i32 %32, %34
br i1 %35, label %36, label %40
36: ; preds = %31, %28
%37 = load i32, ptr %3, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %36
store i32 1, ptr %1, align 4
br label %95
40: ; preds = %36, %31
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %43
store i32 %41, ptr %44, align 4
br label %46
45: ; preds = %25
store i32 1, ptr %1, align 4
br label %95
46: ; preds = %40
br label %47
47: ; preds = %46
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %2, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %17
store i32 0, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %54, 1000
br i1 %55, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %53
br label %56
56: ; preds = %.lr.ph5, %89
store i32 0, ptr %6, align 4
store i32 0, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %2, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph2, label %79
.lr.ph2: ; preds = %56
br label %60
60: ; preds = %.lr.ph2, %73
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %60
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
%69 = call i32 @printf(ptr noundef @.str.1)
br label %72
70: ; preds = %60
%71 = call i32 @printf(ptr noundef @.str.2)
br label %72
72: ; preds = %70, %66
br label %73
73: ; preds = %72
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %8, align 4
%77 = load i32, ptr %2, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %56
%80 = load i32, ptr %6, align 4
%81 = load i32, ptr %2, align 4
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %84
83: ; preds = %79
br label %94
84: ; preds = %79
%85 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%86 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 0
%87 = load i32, ptr %2, align 4
%88 = call i32 @next_generation(ptr noundef %85, ptr noundef %86, i32 noundef %87)
br label %89
89: ; preds = %84
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %7, align 4
%92 = load i32, ptr %7, align 4
%93 = icmp slt i32 %92, 1000
br i1 %93, label %56, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %89
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %53
br label %94
94: ; preds = %.loopexit, %83
store i32 0, ptr %1, align 4
br label %95
95: ; preds = %94, %45, %39, %16, %12
%96 = load i32, ptr %1, align 4
ret i32 %96
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @next_generation(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/tmprh27b1vi.c'
source_filename = "/tmp/tmprh27b1vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIZE_MAX = dso_local global i64 0, 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/tmprh27b1vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIZE_MAX = dso_local global i64 0, 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/tmpzs3_75q5.c'
source_filename = "/tmp/tmpzs3_75q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpadcpy(ptr noundef %0, ptr noundef %1, i8 noundef signext %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store i64 %3, ptr %8, align 8
br label %9
9: ; preds = %20, %4
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = load i64, ptr %8, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %8, align 8
%17 = icmp ugt i64 %15, 0
br label %18
18: ; preds = %14, %9
%19 = phi i1 [ false, %9 ], [ %17, %14 ]
br i1 %19, label %20, label %26
20: ; preds = %18
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %6, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
store i8 %23, ptr %24, align 1
br label %9, !llvm.loop !6
26: ; preds = %18
br label %27
27: ; preds = %31, %26
%28 = load i64, ptr %8, align 8
%29 = add i64 %28, -1
store i64 %29, ptr %8, align 8
%30 = icmp ugt i64 %28, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %5, align 8
store i8 32, ptr %32, align 1
br label %27, !llvm.loop !8
34: ; preds = %27
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzs3_75q5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpadcpy(ptr noundef %0, ptr noundef %1, i8 noundef signext %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
store i64 %3, ptr %8, align 8
br label %9
9: ; preds = %20, %4
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %9
%15 = load i64, ptr %8, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %8, align 8
%17 = icmp ugt i64 %15, 0
br label %18
18: ; preds = %14, %9
%19 = phi i1 [ false, %9 ], [ %17, %14 ]
br i1 %19, label %20, label %26
20: ; preds = %18
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %6, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
store i8 %23, ptr %24, align 1
br label %9, !llvm.loop !6
26: ; preds = %18
%27 = load i64, ptr %8, align 8
%28 = add i64 %27, -1
store i64 %28, ptr %8, align 8
%29 = icmp ugt i64 %27, 0
br i1 %29, label %.lr.ph, label %36
.lr.ph: ; preds = %26
br label %30
30: ; preds = %.lr.ph, %30
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
store i8 32, ptr %31, align 1
%33 = load i64, ptr %8, align 8
%34 = add i64 %33, -1
store i64 %34, ptr %8, align 8
%35 = icmp ugt i64 %33, 0
br i1 %35, label %30, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %26
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpghmw17rl.c'
source_filename = "/tmp/tmpghmw17rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Aentered mime type\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"html\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"htm\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"txt\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"gif\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"jpg\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"qt\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"text/html\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"text/plain\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"image/gif\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"image/jpeg\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"video/quicktime\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"\0Amatched\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"\0Areturning ERROR\00", align 1
@.str.14 = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getMimeType(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [10 x ptr], align 16
%6 = alloca [10 x ptr], align 16
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 0
store ptr @.str.1, ptr %9, align 16
%10 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 1
store ptr @.str.2, ptr %10, align 8
%11 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 2
store ptr @.str.3, ptr %11, align 16
%12 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 3
store ptr @.str.4, ptr %12, align 8
%13 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 4
store ptr @.str.5, ptr %13, align 16
%14 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 5
store ptr @.str.6, ptr %14, align 8
%15 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 0
store ptr @.str.7, ptr %15, align 16
%16 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 1
store ptr @.str.7, ptr %16, align 8
%17 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 2
store ptr @.str.8, ptr %17, align 16
%18 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 3
store ptr @.str.9, ptr %18, align 8
%19 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 4
store ptr @.str.10, ptr %19, align 16
%20 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 5
store ptr @.str.11, ptr %20, align 8
store i32 0, ptr %4, align 4
br label %21
21: ; preds = %39, %1
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 6
br i1 %23, label %24, label %42
24: ; preds = %21
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i64 @strcmp(ptr noundef %25, ptr noundef %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %24
%33 = call i32 @printf(ptr noundef @.str.12)
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %35
%37 = load ptr, ptr %36, align 8
store ptr %37, ptr %2, align 8
br label %45
38: ; preds = %24
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %21, !llvm.loop !6
42: ; preds = %21
%43 = call i32 @printf(ptr noundef @.str.13)
store ptr @.str.14, ptr %7, align 8
%44 = load ptr, ptr %7, align 8
store ptr %44, ptr %2, align 8
br label %45
45: ; preds = %42, %32
%46 = load ptr, ptr %2, align 8
ret ptr %46
}
declare i32 @printf(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpghmw17rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Aentered mime type\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"html\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"htm\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"txt\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"gif\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"jpg\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"qt\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"text/html\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"text/plain\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"image/gif\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"image/jpeg\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"video/quicktime\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"\0Amatched\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"\0Areturning ERROR\00", align 1
@.str.14 = private unnamed_addr constant [6 x i8] c"ERROR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getMimeType(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [10 x ptr], align 16
%6 = alloca [10 x ptr], align 16
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 0
store ptr @.str.1, ptr %9, align 16
%10 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 1
store ptr @.str.2, ptr %10, align 8
%11 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 2
store ptr @.str.3, ptr %11, align 16
%12 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 3
store ptr @.str.4, ptr %12, align 8
%13 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 4
store ptr @.str.5, ptr %13, align 16
%14 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 5
store ptr @.str.6, ptr %14, align 8
%15 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 0
store ptr @.str.7, ptr %15, align 16
%16 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 1
store ptr @.str.7, ptr %16, align 8
%17 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 2
store ptr @.str.8, ptr %17, align 16
%18 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 3
store ptr @.str.9, ptr %18, align 8
%19 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 4
store ptr @.str.10, ptr %19, align 16
%20 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 5
store ptr @.str.11, ptr %20, align 8
store i32 0, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %21, 6
br i1 %22, label %.lr.ph, label %43
.lr.ph: ; preds = %1
br label %23
23: ; preds = %.lr.ph, %38
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x ptr], ptr %5, i64 0, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strcmp(ptr noundef %24, ptr noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %23
%32 = call i32 @printf(ptr noundef @.str.12)
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %34
%36 = load ptr, ptr %35, align 8
store ptr %36, ptr %2, align 8
br label %46
37: ; preds = %23
br label %38
38: ; preds = %37
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %41, 6
br i1 %42, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %43
43: ; preds = %._crit_edge, %1
%44 = call i32 @printf(ptr noundef @.str.13)
store ptr @.str.14, ptr %7, align 8
%45 = load ptr, ptr %7, align 8
store ptr %45, ptr %2, align 8
br label %46
46: ; preds = %43, %31
%47 = load ptr, ptr %2, align 8
ret ptr %47
}
declare i32 @printf(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxqae8gsh.c'
source_filename = "/tmp/tmpxqae8gsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X_OK = 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/tmpxqae8gsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X_OK = 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/tmp0i_tunoc.c'
source_filename = "/tmp/tmp0i_tunoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_saxpy(i32 noundef %0, float noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store float %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load ptr, ptr %9, align 8
%14 = load ptr, ptr %11, align 8
%15 = call i32 @saxpy(ptr noundef %7, ptr noundef %8, ptr noundef %13, ptr noundef %10, ptr noundef %14, ptr noundef %12)
ret void
}
declare i32 @saxpy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0i_tunoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_saxpy(i32 noundef %0, float noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store float %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load ptr, ptr %9, align 8
%14 = load ptr, ptr %11, align 8
%15 = call i32 @saxpy(ptr noundef %7, ptr noundef %8, ptr noundef %13, ptr noundef %10, ptr noundef %14, ptr noundef %12)
ret void
}
declare i32 @saxpy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeenyo8dv.c'
source_filename = "/tmp/tmpeenyo8dv.c"
target datalayout = "e-m:e-p270: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/tmpeenyo8dv.c"
target datalayout = "e-m:e-p270: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/tmpznx0te9v.c'
source_filename = "/tmp/tmpznx0te9v.c"
target datalayout = "e-m:e-p270: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/tmpznx0te9v.c"
target datalayout = "e-m:e-p270: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/tmpx9q5mhq7.c'
source_filename = "/tmp/tmpx9q5mhq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@update_buffer.current_buffer_size = internal global i32 0, align 4
@update_buffer.current_char_pos = internal global i32 0, align 4
@update_buffer.buffer = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @update_buffer(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr @update_buffer.buffer, align 8
%11 = call i32 @free(ptr noundef %10)
store i32 0, ptr @update_buffer.current_char_pos, align 4
store i32 0, ptr @update_buffer.current_buffer_size, align 4
store ptr null, ptr @update_buffer.buffer, align 8
store ptr null, ptr %3, align 8
br label %38
12: ; preds = %2
%13 = load i32, ptr @update_buffer.current_char_pos, align 4
%14 = load i32, ptr @update_buffer.current_buffer_size, align 4
%15 = icmp uge i32 %13, %14
br i1 %15, label %16, label %30
16: ; preds = %12
%17 = load ptr, ptr @update_buffer.buffer, align 8
%18 = load i32, ptr @update_buffer.current_buffer_size, align 4
%19 = add i32 %18, 256
%20 = call i64 @realloc(ptr noundef %17, i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %28
24: ; preds = %16
%25 = load i32, ptr @update_buffer.current_buffer_size, align 4
%26 = add i32 %25, 256
store i32 %26, ptr @update_buffer.current_buffer_size, align 4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr @update_buffer.buffer, align 8
br label %29
28: ; preds = %16
store ptr null, ptr %3, align 8
br label %38
29: ; preds = %24
br label %30
30: ; preds = %29, %12
%31 = load i8, ptr %4, align 1
%32 = load ptr, ptr @update_buffer.buffer, align 8
%33 = load i32, ptr @update_buffer.current_char_pos, align 4
%34 = add i32 %33, 1
store i32 %34, ptr @update_buffer.current_char_pos, align 4
%35 = zext i32 %33 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
store i8 %31, ptr %36, align 1
%37 = load ptr, ptr @update_buffer.buffer, align 8
store ptr %37, ptr %3, align 8
br label %38
38: ; preds = %30, %28, %9
%39 = load ptr, ptr %3, align 8
ret ptr %39
}
declare i32 @free(ptr noundef) #1
declare i64 @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/tmpx9q5mhq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@update_buffer.current_buffer_size = internal global i32 0, align 4
@update_buffer.current_char_pos = internal global i32 0, align 4
@update_buffer.buffer = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @update_buffer(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i8 %0, ptr %4, align 1
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr @update_buffer.buffer, align 8
%11 = call i32 @free(ptr noundef %10)
store i32 0, ptr @update_buffer.current_char_pos, align 4
store i32 0, ptr @update_buffer.current_buffer_size, align 4
store ptr null, ptr @update_buffer.buffer, align 8
store ptr null, ptr %3, align 8
br label %38
12: ; preds = %2
%13 = load i32, ptr @update_buffer.current_char_pos, align 4
%14 = load i32, ptr @update_buffer.current_buffer_size, align 4
%15 = icmp uge i32 %13, %14
br i1 %15, label %16, label %30
16: ; preds = %12
%17 = load ptr, ptr @update_buffer.buffer, align 8
%18 = load i32, ptr @update_buffer.current_buffer_size, align 4
%19 = add i32 %18, 256
%20 = call i64 @realloc(ptr noundef %17, i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %28
24: ; preds = %16
%25 = load i32, ptr @update_buffer.current_buffer_size, align 4
%26 = add i32 %25, 256
store i32 %26, ptr @update_buffer.current_buffer_size, align 4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr @update_buffer.buffer, align 8
br label %29
28: ; preds = %16
store ptr null, ptr %3, align 8
br label %38
29: ; preds = %24
br label %30
30: ; preds = %29, %12
%31 = load i8, ptr %4, align 1
%32 = load ptr, ptr @update_buffer.buffer, align 8
%33 = load i32, ptr @update_buffer.current_char_pos, align 4
%34 = add i32 %33, 1
store i32 %34, ptr @update_buffer.current_char_pos, align 4
%35 = zext i32 %33 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
store i8 %31, ptr %36, align 1
%37 = load ptr, ptr @update_buffer.buffer, align 8
store ptr %37, ptr %3, align 8
br label %38
38: ; preds = %30, %28, %9
%39 = load ptr, ptr %3, align 8
ret ptr %39
}
declare i32 @free(ptr noundef) #1
declare i64 @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/tmp9r9elkwg.c'
source_filename = "/tmp/tmp9r9elkwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @seedRandomizer() #0 {
%1 = call i64 @time(ptr noundef null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 noundef %2)
ret void
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9r9elkwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @seedRandomizer() #0 {
%1 = call i64 @time(ptr noundef null)
%2 = trunc i64 %1 to i32
%3 = call i32 @srand(i32 noundef %2)
ret void
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplrum8d57.c'
source_filename = "/tmp/tmplrum8d57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"SKDUHASDIJSAOIDJ HOLA %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"HOLA ASYGHUISAOJKAOSUHJAIGSA\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
store i32 3, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %6
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplrum8d57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"SKDUHASDIJSAOIDJ HOLA %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"HOLA ASYGHUISAOJKAOSUHJAIGSA\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
store i32 3, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %6
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv5vmspv3.c'
source_filename = "/tmp/tmpv5vmspv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wins_nwstr(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 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv5vmspv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"UNSUPPORTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_wins_nwstr(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 = call i32 @check_arg_count(i32 noundef %5, i32 noundef 1)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %9
8: ; preds = %2
br label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
br label %12
12: ; preds = %9, %8
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm88fej1m.c'
source_filename = "/tmp/tmpm88fej1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dashd(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %20
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @stat(ptr noundef %9, ptr noundef %4)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @S_ISDIR(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
%19 = zext i1 %18 to i32
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %17, %7
%21 = load i32, ptr %2, align 4
ret i32 %21
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(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/tmpm88fej1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dashd(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %20
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @stat(ptr noundef %9, ptr noundef %4)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @S_ISDIR(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
%19 = zext i1 %18 to i32
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %17, %7
%21 = load i32, ptr %2, align 4
ret i32 %21
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(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/tmphdh0jux1.c'
source_filename = "/tmp/tmphdh0jux1.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Fork Failed\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" %d, \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @getUserInput(i32 noundef %5)
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %39, %0
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %40
10: ; preds = %7
%11 = call i64 (...) @fork()
store i64 %11, ptr %2, align 8
%12 = load i64, ptr %2, align 8
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %41
17: ; preds = %10
%18 = load i64, ptr %2, align 8
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %17
%21 = load i32, ptr %3, align 4
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %25, %20
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %23, 1
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load i32, ptr %4, align 4
%27 = call i32 @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load i32, ptr %4, align 4
%29 = call i32 @collatz(i32 noundef %28)
store i32 %29, ptr %4, align 4
br label %22, !llvm.loop !6
30: ; preds = %22
%31 = load i32, ptr %4, align 4
%32 = call i32 @printf(ptr noundef @.str.2, i32 noundef %31)
store i32 0, ptr %1, align 4
br label %41
33: ; preds = %17
%34 = load i64, ptr %2, align 8
%35 = call i32 @wait(i64 noundef %34)
%36 = load i32, ptr %3, align 4
%37 = call i32 @getUserInput(i32 noundef %36)
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %33
br label %39
39: ; preds = %38
br label %7, !llvm.loop !8
40: ; preds = %7
store i32 0, ptr %1, align 4
br label %41
41: ; preds = %40, %30, %14
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i32 @getUserInput(i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @collatz(i32 noundef) #1
declare i32 @wait(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphdh0jux1.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Fork Failed\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" %d, \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @getUserInput(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %42
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %39
%10 = call i64 (...) @fork()
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %2, align 8
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %43
16: ; preds = %9
%17 = load i64, ptr %2, align 8
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %33
19: ; preds = %16
%20 = load i32, ptr %3, align 4
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 1
br i1 %22, label %.lr.ph2, label %30
.lr.ph2: ; preds = %19
br label %23
23: ; preds = %.lr.ph2, %23
%24 = load i32, ptr %4, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
%26 = load i32, ptr %4, align 4
%27 = call i32 @collatz(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %28, 1
br i1 %29, label %23, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %23
br label %30
30: ; preds = %._crit_edge3, %19
%31 = load i32, ptr %4, align 4
%32 = call i32 @printf(ptr noundef @.str.2, i32 noundef %31)
store i32 0, ptr %1, align 4
br label %43
33: ; preds = %16
%34 = load i64, ptr %2, align 8
%35 = call i32 @wait(i64 noundef %34)
%36 = load i32, ptr %3, align 4
%37 = call i32 @getUserInput(i32 noundef %36)
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %33
br label %39
39: ; preds = %38
%40 = load i32, ptr %3, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %9, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %39
br label %42
42: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
br label %43
43: ; preds = %42, %30, %13
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare i32 @getUserInput(i32 noundef) #1
declare i64 @fork(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @collatz(i32 noundef) #1
declare i32 @wait(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvw6d01hw.c'
source_filename = "/tmp/tmpvw6d01hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\1B[35mCommands end with ;\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Allowed regex operations:\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\09OR operator -> |\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"\09CLEENE operator -> *\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"\1B[32mExample: (a|b)|(c|d)*\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [40 x i8] c"vars;\09\09 -> shows memory and variables.\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"clear;\09\09 -> clears the screen.\0A\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"print E;\09 -> shows expression value.\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"leave;\09\09 -> leaves the program.\0A\00", align 1
@.str.9 = private unnamed_addr constant [33 x i8] c"E;\09\09 -> shows expression value.\0A\00", align 1
@.str.10 = private unnamed_addr constant [53 x i8] c"x := E;\09\09 -> Create/redefine variable x as regex E.\0A\00", align 1
@.str.11 = private unnamed_addr constant [55 x i8] c"\1B[31m\09\09Variable name must start with $ (like in PHP).\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"\0A\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nova_show_help_menu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
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/tmpvw6d01hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\1B[35mCommands end with ;\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Allowed regex operations:\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\09OR operator -> |\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"\09CLEENE operator -> *\0A\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"\1B[32mExample: (a|b)|(c|d)*\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [40 x i8] c"vars;\09\09 -> shows memory and variables.\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"clear;\09\09 -> clears the screen.\0A\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"print E;\09 -> shows expression value.\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"leave;\09\09 -> leaves the program.\0A\00", align 1
@.str.9 = private unnamed_addr constant [33 x i8] c"E;\09\09 -> shows expression value.\0A\00", align 1
@.str.10 = private unnamed_addr constant [53 x i8] c"x := E;\09\09 -> Create/redefine variable x as regex E.\0A\00", align 1
@.str.11 = private unnamed_addr constant [55 x i8] c"\1B[31m\09\09Variable name must start with $ (like in PHP).\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"\0A\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nova_show_help_menu() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.11)
%13 = call i32 @printf(ptr noundef @.str.12)
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/tmpy9oiv3li.c'
source_filename = "/tmp/tmpy9oiv3li.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @construct_ppi_A(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%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 i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
store i32 %0, ptr %9, align 4
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 i32 %7, ptr %16, align 4
%30 = load ptr, ptr %10, align 8
%31 = load double, ptr %30, align 8
store double %31, ptr %17, align 8
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds double, ptr %32, i64 -1
%34 = load double, ptr %33, align 8
store double %34, ptr %18, align 8
%35 = load ptr, ptr %10, align 8
%36 = getelementptr inbounds double, ptr %35, i64 1
%37 = load double, ptr %36, align 8
store double %37, ptr %19, align 8
%38 = load double, ptr %19, align 8
%39 = load double, ptr %17, align 8
%40 = fsub double %38, %39
store double %40, ptr %21, align 8
%41 = load double, ptr %17, align 8
%42 = load double, ptr %18, align 8
%43 = fsub double %41, %42
store double %43, ptr %22, align 8
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %24, align 4
%46 = load i32, ptr %9, align 4
%47 = sub nsw i32 %46, 1
store i32 %47, ptr %25, align 4
store double 0x3FC5555555555555, ptr %29, align 8
%48 = load ptr, ptr %10, align 8
%49 = load i32, ptr %24, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %10, align 8
%54 = load i32, ptr %25, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load double, ptr %56, align 8
%58 = fsub double %52, %57
%59 = fmul double 5.000000e-01, %58
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, ptr %60, i64 %62
store double %59, ptr %63, align 8
%64 = load ptr, ptr %14, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double 0.000000e+00, ptr %67, align 8
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %24, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = fsub double %72, %77
%79 = load ptr, ptr %10, align 8
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %10, align 8
%85 = load i32, ptr %25, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %84, i64 %86
%88 = load double, ptr %87, align 8
%89 = fsub double %83, %88
%90 = fmul double %78, %89
%91 = fcmp ogt double %90, 0.000000e+00
br i1 %91, label %92, label %148
92: ; preds = %8
%93 = load ptr, ptr %10, align 8
%94 = load i32, ptr %24, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %93, i64 %95
%97 = load double, ptr %96, align 8
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %9, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = fsub double %97, %102
%104 = call double @llvm.fabs.f64(double %103)
%105 = fmul double 2.000000e+00, %104
store double %105, ptr %26, align 8
%106 = load ptr, ptr %10, align 8
%107 = load i32, ptr %9, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %106, i64 %108
%110 = load double, ptr %109, align 8
%111 = load ptr, ptr %10, align 8
%112 = load i32, ptr %25, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %111, i64 %113
%115 = load double, ptr %114, align 8
%116 = fsub double %110, %115
%117 = call double @llvm.fabs.f64(double %116)
%118 = fmul double 2.000000e+00, %117
store double %118, ptr %27, align 8
%119 = load ptr, ptr %13, align 8
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, ptr %119, i64 %121
%123 = load double, ptr %122, align 8
%124 = call double @llvm.fabs.f64(double %123)
%125 = load double, ptr %26, align 8
%126 = load double, ptr %27, align 8
%127 = call double @llvm.minnum.f64(double %125, double %126)
%128 = call double @llvm.minnum.f64(double %124, double %127)
%129 = load ptr, ptr %14, align 8
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %129, i64 %131
store double %128, ptr %132, align 8
%133 = load ptr, ptr %14, align 8
%134 = load i32, ptr %9, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %133, i64 %135
%137 = load double, ptr %136, align 8
%138 = load ptr, ptr %13, align 8
%139 = load i32, ptr %9, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, ptr %138, i64 %140
%142 = load double, ptr %141, align 8
%143 = call double @llvm.copysign.f64(double %137, double %142)
%144 = load ptr, ptr %14, align 8
%145 = load i32, ptr %9, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
store double %143, ptr %147, align 8
br label %148
148: ; preds = %92, %8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.minnum.f64(double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9oiv3li.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @construct_ppi_A(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca i32, align 4
%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 i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
store i32 %0, ptr %9, align 4
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 i32 %7, ptr %16, align 4
%30 = load ptr, ptr %10, align 8
%31 = load double, ptr %30, align 8
store double %31, ptr %17, align 8
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds double, ptr %32, i64 -1
%34 = load double, ptr %33, align 8
store double %34, ptr %18, align 8
%35 = load ptr, ptr %10, align 8
%36 = getelementptr inbounds double, ptr %35, i64 1
%37 = load double, ptr %36, align 8
store double %37, ptr %19, align 8
%38 = load double, ptr %19, align 8
%39 = load double, ptr %17, align 8
%40 = fsub double %38, %39
store double %40, ptr %21, align 8
%41 = load double, ptr %17, align 8
%42 = load double, ptr %18, align 8
%43 = fsub double %41, %42
store double %43, ptr %22, align 8
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %24, align 4
%46 = load i32, ptr %9, align 4
%47 = sub nsw i32 %46, 1
store i32 %47, ptr %25, align 4
store double 0x3FC5555555555555, ptr %29, align 8
%48 = load ptr, ptr %10, align 8
%49 = load i32, ptr %24, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %10, align 8
%54 = load i32, ptr %25, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load double, ptr %56, align 8
%58 = fsub double %52, %57
%59 = fmul double 5.000000e-01, %58
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, ptr %60, i64 %62
store double %59, ptr %63, align 8
%64 = load ptr, ptr %14, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double 0.000000e+00, ptr %67, align 8
%68 = load ptr, ptr %10, align 8
%69 = load i32, ptr %24, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %10, align 8
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = fsub double %72, %77
%79 = load ptr, ptr %10, align 8
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %10, align 8
%85 = load i32, ptr %25, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %84, i64 %86
%88 = load double, ptr %87, align 8
%89 = fsub double %83, %88
%90 = fmul double %78, %89
%91 = fcmp ogt double %90, 0.000000e+00
br i1 %91, label %92, label %148
92: ; preds = %8
%93 = load ptr, ptr %10, align 8
%94 = load i32, ptr %24, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %93, i64 %95
%97 = load double, ptr %96, align 8
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %9, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = fsub double %97, %102
%104 = call double @llvm.fabs.f64(double %103)
%105 = fmul double 2.000000e+00, %104
store double %105, ptr %26, align 8
%106 = load ptr, ptr %10, align 8
%107 = load i32, ptr %9, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %106, i64 %108
%110 = load double, ptr %109, align 8
%111 = load ptr, ptr %10, align 8
%112 = load i32, ptr %25, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %111, i64 %113
%115 = load double, ptr %114, align 8
%116 = fsub double %110, %115
%117 = call double @llvm.fabs.f64(double %116)
%118 = fmul double 2.000000e+00, %117
store double %118, ptr %27, align 8
%119 = load ptr, ptr %13, align 8
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, ptr %119, i64 %121
%123 = load double, ptr %122, align 8
%124 = call double @llvm.fabs.f64(double %123)
%125 = load double, ptr %26, align 8
%126 = load double, ptr %27, align 8
%127 = call double @llvm.minnum.f64(double %125, double %126)
%128 = call double @llvm.minnum.f64(double %124, double %127)
%129 = load ptr, ptr %14, align 8
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %129, i64 %131
store double %128, ptr %132, align 8
%133 = load ptr, ptr %14, align 8
%134 = load i32, ptr %9, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %133, i64 %135
%137 = load double, ptr %136, align 8
%138 = load ptr, ptr %13, align 8
%139 = load i32, ptr %9, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, ptr %138, i64 %140
%142 = load double, ptr %141, align 8
%143 = call double @llvm.copysign.f64(double %137, double %142)
%144 = load ptr, ptr %14, align 8
%145 = load i32, ptr %9, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
store double %143, ptr %147, align 8
br label %148
148: ; preds = %92, %8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.minnum.f64(double, double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.copysign.f64(double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps6ehw93x.c'
source_filename = "/tmp/tmps6ehw93x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Array size : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Enter array elements : \00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Array elements : \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c"The elements after sorting with its weight is : \0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"< %d , %d >\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 4, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %24, %0
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %22)
br label %24
24: ; preds = %18
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %40, %27
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %43
33: ; preds = %29
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38)
br label %40
40: ; preds = %33
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %29, !llvm.loop !8
43: ; preds = %29
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %105, %43
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %5, align 4
%47 = sub nsw i32 %46, 1
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %108
49: ; preds = %44
store i32 0, ptr %4, align 4
br label %50
50: ; preds = %101, %49
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %3, align 4
%54 = sub nsw i32 %52, %53
%55 = sub nsw i32 %54, 1
%56 = icmp slt i32 %51, %55
br i1 %56, label %57, label %104
57: ; preds = %50
%58 = load ptr, ptr %2, align 8
%59 = load i32, ptr %4, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
%62 = load i32, ptr %61, align 4
%63 = call i32 @check(i32 noundef %62)
%64 = load ptr, ptr %2, align 8
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %64, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 @check(i32 noundef %69)
%71 = icmp sgt i32 %63, %70
br i1 %71, label %72, label %100
72: ; preds = %57
%73 = load ptr, ptr %2, align 8
%74 = load i32, ptr %4, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load ptr, ptr %2, align 8
%79 = load i32, ptr %4, align 4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %78, i64 %81
%83 = load i32, ptr %82, align 4
%84 = add nsw i32 %77, %83
%85 = load ptr, ptr %2, align 8
%86 = load i32, ptr %4, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %2, align 8
%91 = load i32, ptr %4, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %90, i64 %93
store i32 %89, ptr %94, align 4
%95 = sub nsw i32 %84, %89
%96 = load ptr, ptr %2, align 8
%97 = load i32, ptr %4, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
store i32 %95, ptr %99, align 4
br label %100
100: ; preds = %72, %57
br label %101
101: ; preds = %100
%102 = load i32, ptr %4, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %4, align 4
br label %50, !llvm.loop !9
104: ; preds = %50
br label %105
105: ; preds = %104
%106 = load i32, ptr %3, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %3, align 4
br label %44, !llvm.loop !10
108: ; preds = %44
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %110
110: ; preds = %127, %108
%111 = load i32, ptr %3, align 4
%112 = load i32, ptr %5, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %130
114: ; preds = %110
%115 = load ptr, ptr %2, align 8
%116 = load i32, ptr %3, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, ptr %115, i64 %117
%119 = load i32, ptr %118, align 4
%120 = load ptr, ptr %2, align 8
%121 = load i32, ptr %3, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, ptr %120, i64 %122
%124 = load i32, ptr %123, align 4
%125 = call i32 @check(i32 noundef %124)
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %119, i32 noundef %125)
br label %127
127: ; preds = %114
%128 = load i32, ptr %3, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %3, align 4
br label %110, !llvm.loop !11
130: ; preds = %110
%131 = load ptr, ptr %2, align 8
%132 = call i32 @free(ptr noundef %131)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @check(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps6ehw93x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Array size : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Enter array elements : \00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Array elements : \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c"The elements after sorting with its weight is : \0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"< %d , %d >\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 4, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %23
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %21)
br label %23
23: ; preds = %17
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %47
.lr.ph2: ; preds = %29
br label %34
34: ; preds = %.lr.ph2, %41
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %39)
br label %41
41: ; preds = %34
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %47
47: ; preds = %._crit_edge3, %29
store i32 0, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = load i32, ptr %5, align 4
%50 = sub nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %.lr.ph8, label %120
.lr.ph8: ; preds = %47
br label %52
52: ; preds = %.lr.ph8, %113
store i32 0, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %54, %55
%57 = sub nsw i32 %56, 1
%58 = icmp slt i32 %53, %57
br i1 %58, label %.lr.ph5, label %112
.lr.ph5: ; preds = %52
br label %59
59: ; preds = %.lr.ph5, %103
%60 = load ptr, ptr %2, align 8
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = call i32 @check(i32 noundef %64)
%66 = load ptr, ptr %2, align 8
%67 = load i32, ptr %4, align 4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %66, i64 %69
%71 = load i32, ptr %70, align 4
%72 = call i32 @check(i32 noundef %71)
%73 = icmp sgt i32 %65, %72
br i1 %73, label %74, label %102
74: ; preds = %59
%75 = load ptr, ptr %2, align 8
%76 = load i32, ptr %4, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %75, i64 %77
%79 = load i32, ptr %78, align 4
%80 = load ptr, ptr %2, align 8
%81 = load i32, ptr %4, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %80, i64 %83
%85 = load i32, ptr %84, align 4
%86 = add nsw i32 %79, %85
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %4, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %87, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load ptr, ptr %2, align 8
%93 = load i32, ptr %4, align 4
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %92, i64 %95
store i32 %91, ptr %96, align 4
%97 = sub nsw i32 %86, %91
%98 = load ptr, ptr %2, align 8
%99 = load i32, ptr %4, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %97, ptr %101, align 4
br label %102
102: ; preds = %74, %59
br label %103
103: ; preds = %102
%104 = load i32, ptr %4, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %4, align 4
%106 = load i32, ptr %4, align 4
%107 = load i32, ptr %5, align 4
%108 = load i32, ptr %3, align 4
%109 = sub nsw i32 %107, %108
%110 = sub nsw i32 %109, 1
%111 = icmp slt i32 %106, %110
br i1 %111, label %59, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %103
br label %112
112: ; preds = %._crit_edge6, %52
br label %113
113: ; preds = %112
%114 = load i32, ptr %3, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %3, align 4
%116 = load i32, ptr %3, align 4
%117 = load i32, ptr %5, align 4
%118 = sub nsw i32 %117, 1
%119 = icmp slt i32 %116, %118
br i1 %119, label %52, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %113
br label %120
120: ; preds = %._crit_edge9, %47
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
%122 = load i32, ptr %3, align 4
%123 = load i32, ptr %5, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %.lr.ph11, label %144
.lr.ph11: ; preds = %120
br label %125
125: ; preds = %.lr.ph11, %138
%126 = load ptr, ptr %2, align 8
%127 = load i32, ptr %3, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, ptr %126, i64 %128
%130 = load i32, ptr %129, align 4
%131 = load ptr, ptr %2, align 8
%132 = load i32, ptr %3, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %131, i64 %133
%135 = load i32, ptr %134, align 4
%136 = call i32 @check(i32 noundef %135)
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %130, i32 noundef %136)
br label %138
138: ; preds = %125
%139 = load i32, ptr %3, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %3, align 4
%141 = load i32, ptr %3, align 4
%142 = load i32, ptr %5, align 4
%143 = icmp slt i32 %141, %142
br i1 %143, label %125, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %138
br label %144
144: ; preds = %._crit_edge12, %120
%145 = load ptr, ptr %2, align 8
%146 = call i32 @free(ptr noundef %145)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @check(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp9d1ddf0p.c'
source_filename = "/tmp/tmp9d1ddf0p.c"
target datalayout = "e-m:e-p270: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/tmp9d1ddf0p.c"
target datalayout = "e-m:e-p270: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/tmpczjdtne6.c'
source_filename = "/tmp/tmpczjdtne6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Usage: %s [-bchkqv] [-d <update_delay>] <interface_name>\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Example: %s -d 300 ppp0\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"Options:\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\09-b\09Don't go to the background.\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-c\09Fix the CapsLED in VTs. Only for EUID root.\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\09-d N\09Set update delay.\00", align 1
@.str.6 = private unnamed_addr constant [47 x i8] c"\09\09N must be between 1 and 10000 (milliseconds)\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"\09-h\09Help. (this)\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"\09-k\09Kill (old) (x)tleds running.\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"\09-q\09Be quiet.\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c"\09-v\09Print version information.\00", align 1
@.str.11 = private unnamed_addr constant [48 x i8] c"\09\09(`cat /proc/net/dev` to see your interfaces.)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11)
ret void
}
declare i32 @printf(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/tmpczjdtne6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Usage: %s [-bchkqv] [-d <update_delay>] <interface_name>\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Example: %s -d 300 ppp0\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"Options:\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"\09-b\09Don't go to the background.\00", align 1
@.str.4 = private unnamed_addr constant [48 x i8] c"\09-c\09Fix the CapsLED in VTs. Only for EUID root.\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"\09-d N\09Set update delay.\00", align 1
@.str.6 = private unnamed_addr constant [47 x i8] c"\09\09N must be between 1 and 10000 (milliseconds)\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"\09-h\09Help. (this)\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"\09-k\09Kill (old) (x)tleds running.\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"\09-q\09Be quiet.\00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c"\09-v\09Print version information.\00", align 1
@.str.11 = private unnamed_addr constant [48 x i8] c"\09\09(`cat /proc/net/dev` to see your interfaces.)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10, ptr noundef @.str.11)
ret void
}
declare i32 @printf(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/tmp2hv6qbvx.c'
source_filename = "/tmp/tmp2hv6qbvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: ./ramdump <device>\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Ex : ./ramdump /dev/ttyUSB1\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"/var/lock/LCK..ttyUSB1\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [44 x i8] c"Error : couldnt lock serial port device %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB1\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"Please close any other process using this port first\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [16 x i8] c"%s open failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"tty configuration failed\0A\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [18 x i8] c"tty lock failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Target Handshake Failed\0A\00", align 1
@.str.10 = private unnamed_addr constant [32 x i8] c"Target entered to ramdump mode\0A\00", align 1
@.str.11 = private unnamed_addr constant [25 x i8] c"Receiving ramdump......\0A\00", align 1
@.str.12 = private unnamed_addr constant [24 x i8] c"Ramdump receive failed\0A\00", align 1
@.str.13 = private unnamed_addr constant [31 x i8] c"Ramdump received successfully\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %81
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %9, align 8
%19 = load i32, ptr @F_OK, align 4
%20 = call i64 @access(ptr noundef @.str.2, i32 noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %78
25: ; preds = %15
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @O_RDWR, align 4
%28 = load i32, ptr @O_NOCTTY, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @O_SYNC, align 4
%31 = or i32 %29, %30
%32 = call i32 (ptr, i32, ...) @open(ptr noundef %26, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %37
34: ; preds = %25
%35 = load ptr, ptr %9, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %35)
br label %77
37: ; preds = %25
%38 = load i32, ptr %7, align 4
%39 = call i64 @configure_tty(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %74
43: ; preds = %37
%44 = load i32, ptr @O_CREAT, align 4
%45 = load i32, ptr @S_IRWXU, align 4
%46 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %44, i32 noundef %45)
store i32 %46, ptr %8, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %73
50: ; preds = %43
%51 = load i32, ptr %7, align 4
%52 = call i64 @do_handshake(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %67
56: ; preds = %50
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%59 = load i32, ptr %7, align 4
%60 = call i64 @ramdump_recv(i32 noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %66
64: ; preds = %56
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
store i32 0, ptr %6, align 4
br label %66
66: ; preds = %64, %62
br label %67
67: ; preds = %66, %54
br label %68
68: ; preds = %67
br label %69
69: ; preds = %68
%70 = call i32 @remove(ptr noundef @.str.2)
%71 = load i32, ptr %8, align 4
%72 = call i32 @close(i32 noundef %71)
br label %73
73: ; preds = %69, %48
br label %74
74: ; preds = %73, %41
%75 = load i32, ptr %7, align 4
%76 = call i32 @close(i32 noundef %75)
br label %77
77: ; preds = %74, %34
br label %78
78: ; preds = %77, %22
br label %79
79: ; preds = %78
%80 = load i32, ptr %6, align 4
store i32 %80, ptr %3, align 4
br label %81
81: ; preds = %79, %12
%82 = load i32, ptr %3, align 4
ret i32 %82
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @configure_tty(i32 noundef) #1
declare i64 @do_handshake(i32 noundef) #1
declare i64 @ramdump_recv(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2hv6qbvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: ./ramdump <device>\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Ex : ./ramdump /dev/ttyUSB1\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"/var/lock/LCK..ttyUSB1\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [44 x i8] c"Error : couldnt lock serial port device %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"/dev/ttyUSB1\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"Please close any other process using this port first\0A\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [16 x i8] c"%s open failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [26 x i8] c"tty configuration failed\0A\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [18 x i8] c"tty lock failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Target Handshake Failed\0A\00", align 1
@.str.10 = private unnamed_addr constant [32 x i8] c"Target entered to ramdump mode\0A\00", align 1
@.str.11 = private unnamed_addr constant [25 x i8] c"Receiving ramdump......\0A\00", align 1
@.str.12 = private unnamed_addr constant [24 x i8] c"Ramdump receive failed\0A\00", align 1
@.str.13 = private unnamed_addr constant [31 x i8] c"Ramdump received successfully\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %81
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %9, align 8
%19 = load i32, ptr @F_OK, align 4
%20 = call i64 @access(ptr noundef @.str.2, i32 noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %78
25: ; preds = %15
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr @O_RDWR, align 4
%28 = load i32, ptr @O_NOCTTY, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @O_SYNC, align 4
%31 = or i32 %29, %30
%32 = call i32 (ptr, i32, ...) @open(ptr noundef %26, i32 noundef %31)
store i32 %32, ptr %7, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %37
34: ; preds = %25
%35 = load ptr, ptr %9, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %35)
br label %77
37: ; preds = %25
%38 = load i32, ptr %7, align 4
%39 = call i64 @configure_tty(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %74
43: ; preds = %37
%44 = load i32, ptr @O_CREAT, align 4
%45 = load i32, ptr @S_IRWXU, align 4
%46 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.2, i32 noundef %44, i32 noundef %45)
store i32 %46, ptr %8, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %73
50: ; preds = %43
%51 = load i32, ptr %7, align 4
%52 = call i64 @do_handshake(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %67
56: ; preds = %50
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%59 = load i32, ptr %7, align 4
%60 = call i64 @ramdump_recv(i32 noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %66
64: ; preds = %56
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
store i32 0, ptr %6, align 4
br label %66
66: ; preds = %64, %62
br label %67
67: ; preds = %66, %54
br label %68
68: ; preds = %67
br label %69
69: ; preds = %68
%70 = call i32 @remove(ptr noundef @.str.2)
%71 = load i32, ptr %8, align 4
%72 = call i32 @close(i32 noundef %71)
br label %73
73: ; preds = %69, %48
br label %74
74: ; preds = %73, %41
%75 = load i32, ptr %7, align 4
%76 = call i32 @close(i32 noundef %75)
br label %77
77: ; preds = %74, %34
br label %78
78: ; preds = %77, %22
br label %79
79: ; preds = %78
%80 = load i32, ptr %6, align 4
store i32 %80, ptr %3, align 4
br label %81
81: ; preds = %79, %12
%82 = load i32, ptr %3, align 4
ret i32 %82
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @access(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i64 @configure_tty(i32 noundef) #1
declare i64 @do_handshake(i32 noundef) #1
declare i64 @ramdump_recv(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptty5ka6j.c'
source_filename = "/tmp/tmptty5ka6j.c"
target datalayout = "e-m:e-p270: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/tmptty5ka6j.c"
target datalayout = "e-m:e-p270: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/tmp09jmtnub.c'
source_filename = "/tmp/tmp09jmtnub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printStrings(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %14, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [32 x i8], ptr %8, i64 %10
%12 = getelementptr inbounds [32 x i8], ptr %11, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
ret void
}
declare i32 @printf(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/tmp09jmtnub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printStrings(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %13
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [32 x i8], ptr %7, i64 %9
%11 = getelementptr inbounds [32 x i8], ptr %10, i64 0, i64 0
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %6
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 5
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printf(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/tmp98lxmj_g.c'
source_filename = "/tmp/tmp98lxmj_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 ptr @strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = load i32, ptr %5, align 4
%11 = trunc i32 %10 to i8
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %9, %12
br i1 %13, label %14, label %16
14: ; preds = %6
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %3, align 8
br label %26
16: ; preds = %6
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store ptr null, ptr %3, align 8
br label %26
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
br label %6
26: ; preds = %21, %14
%27 = load ptr, ptr %3, align 8
ret ptr %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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp98lxmj_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 ptr @strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load i32, ptr %5, align 4
%10 = trunc i32 %9 to i8
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %8, %11
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %2
br label %15
._crit_edge: ; preds = %22
br label %13
13: ; preds = %._crit_edge, %2
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %3, align 8
br label %32
15: ; preds = %.lr.ph, %22
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15
store ptr null, ptr %3, align 8
br label %32
21: ; preds = %15
br label %22
22: ; preds = %21
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load i32, ptr %5, align 4
%29 = trunc i32 %28 to i8
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %27, %30
br i1 %31, label %._crit_edge, label %15
32: ; preds = %20, %13
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzv9yy06k.c'
source_filename = "/tmp/tmpzv9yy06k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
br label %3, !llvm.loop !6
11: ; preds = %3
%12 = call i32 (...) @getchar()
%13 = load i32, ptr %1, align 4
ret i32 %13
}
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/tmpzv9yy06k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 10
br i1 %4, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %12
12: ; preds = %._crit_edge, %0
%13 = call i32 (...) @getchar()
%14 = load i32, ptr %1, align 4
ret i32 %14
}
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/tmpvrxruj38.c'
source_filename = "/tmp/tmpvrxruj38.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Uso: %s tipo duracao\0A\00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c" tipo: s(elecao) ou i(nsercao) ou m(ergesort) ou q(uicksort) ou t(odos)\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c" duracao: duracao em segundos\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"opcao nao valida\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.5 = private unnamed_addr constant [530 x i8] c"|-------------------------[EP1 - Vale a pena ordenar?]-----------------|\0A| Algoritmo escolhido: %10s Duracao dos testes: %9.2f |\0A| Tempos de Ordenacao Numero de Buscas |\0A| Nome: Anderson Silva de Albuquerque && Maria Luciana Felix |\0A|-------------------------------------------------------------------------|\0A| n | Insercao Selecao Merge. Quick. | Insercao Selecao Merge. Quick. |\0A|-------|-----------------------------------------------------------------|\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"selecao\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"insercao\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"mergesort\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"quicksort\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"todos\00", align 1
@.str.11 = private unnamed_addr constant [62 x i8] c"Erro na alocacao de memoria para o vetor v com %d elementos.\0A\00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c"Erro na alocacao de memoria para o vetor v_aux com %d elementos.\0A\00", align 1
@.str.13 = private unnamed_addr constant [57 x i8] c"%d \09 %4.2f %d\09\0A\00", align 1
@.str.14 = private unnamed_addr constant [49 x i8] c"%d \09 %4.2f %d\09\0A\00", align 1
@.str.15 = private unnamed_addr constant [26 x i8] c"%d\09\09\09 %4.2f\09\09\09\09 %d\09\0A\00", align 1
@.str.16 = private unnamed_addr constant [62 x i8] c"%d \09\09 %4.2f \09 %d\09\0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c"%d\09 %4.2f\09 %4.2f\09 %4.2f\09 %4.2f\00", align 1
@.str.18 = private unnamed_addr constant [18 x i8] c"\09 %d\09 %d\09 %d\09 %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 double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%22 = call i32 @time(ptr noundef null)
%23 = call i32 @srand(i32 noundef %22)
%24 = load i32, ptr %4, align 4
%25 = icmp ne i32 %24, 3
br i1 %25, label %26, label %33
26: ; preds = %2
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 0
%29 = load ptr, ptr %28, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %308
33: ; preds = %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
store i8 %38, ptr %21, align 1
%39 = load i8, ptr %21, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 115
br i1 %41, label %42, label %60
42: ; preds = %33
%43 = load i8, ptr %21, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 105
br i1 %45, label %46, label %60
46: ; preds = %42
%47 = load i8, ptr %21, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 109
br i1 %49, label %50, label %60
50: ; preds = %46
%51 = load i8, ptr %21, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 113
br i1 %53, label %54, label %60
54: ; preds = %50
%55 = load i8, ptr %21, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 116
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %308
60: ; preds = %54, %50, %46, %42, %33
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds ptr, ptr %61, i64 2
%63 = load ptr, ptr %62, align 8
%64 = call i32 @sscanf(ptr noundef %63, ptr noundef @.str.4, ptr noundef %6)
%65 = load i8, ptr %21, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 115
br i1 %67, label %68, label %69
68: ; preds = %60
br label %89
69: ; preds = %60
%70 = load i8, ptr %21, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 105
br i1 %72, label %73, label %74
73: ; preds = %69
br label %87
74: ; preds = %69
%75 = load i8, ptr %21, align 1
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 109
br i1 %77, label %78, label %79
78: ; preds = %74
br label %85
79: ; preds = %74
%80 = load i8, ptr %21, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 113
%83 = zext i1 %82 to i64
%84 = select i1 %82, ptr @.str.9, ptr @.str.10
br label %85
85: ; preds = %79, %78
%86 = phi ptr [ @.str.8, %78 ], [ %84, %79 ]
br label %87
87: ; preds = %85, %73
%88 = phi ptr [ @.str.7, %73 ], [ %86, %85 ]
br label %89
89: ; preds = %87, %68
%90 = phi ptr [ @.str.6, %68 ], [ %88, %87 ]
%91 = load double, ptr %6, align 8
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %90, double noundef %91)
%93 = call double (...) @tempo()
store double %93, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
store i32 2000, ptr %14, align 4
br label %94
94: ; preds = %304, %89
%95 = load double, ptr %8, align 8
%96 = load double, ptr %6, align 8
%97 = fcmp olt double %95, %96
br i1 %97, label %98, label %307
98: ; preds = %94
%99 = load i32, ptr %14, align 4
%100 = sext i32 %99 to i64
%101 = mul i64 %100, 4
%102 = trunc i64 %101 to i32
%103 = call ptr @malloc(i32 noundef %102)
store ptr %103, ptr %15, align 8
%104 = load ptr, ptr %15, align 8
%105 = icmp eq ptr %104, null
br i1 %105, label %106, label %109
106: ; preds = %98
%107 = load i32, ptr %14, align 4
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %107)
store i32 -1, ptr %3, align 4
br label %308
109: ; preds = %98
%110 = load i32, ptr %14, align 4
%111 = sext i32 %110 to i64
%112 = mul i64 %111, 4
%113 = trunc i64 %112 to i32
%114 = call ptr @malloc(i32 noundef %113)
store ptr %114, ptr %16, align 8
%115 = load ptr, ptr %16, align 8
%116 = icmp eq ptr %115, null
br i1 %116, label %117, label %120
117: ; preds = %109
%118 = load i32, ptr %14, align 4
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %118)
store i32 -1, ptr %3, align 4
br label %308
120: ; preds = %109
%121 = load ptr, ptr %15, align 8
%122 = load i32, ptr %14, align 4
%123 = call i32 @vetor_rand(ptr noundef %121, i32 noundef %122)
%124 = load ptr, ptr %15, align 8
%125 = load ptr, ptr %16, align 8
%126 = load i32, ptr %14, align 4
%127 = call i32 @vetor_copy(ptr noundef %124, ptr noundef %125, i32 noundef %126)
%128 = load i8, ptr %21, align 1
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 115
br i1 %130, label %135, label %131
131: ; preds = %120
%132 = load i8, ptr %21, align 1
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 116
br i1 %134, label %135, label %167
135: ; preds = %131, %120
%136 = call double (...) @tempo()
store double %136, ptr %9, align 8
%137 = load i32, ptr %14, align 4
%138 = load ptr, ptr %16, align 8
%139 = call i32 @Selecao(i32 noundef %137, ptr noundef %138)
%140 = call double (...) @tempo()
%141 = load double, ptr %9, align 8
%142 = fsub double %140, %141
%143 = call double @abst(double noundef %142)
store double %143, ptr %10, align 8
%144 = load ptr, ptr %15, align 8
%145 = load ptr, ptr %16, align 8
%146 = load i32, ptr %14, align 4
%147 = load double, ptr %10, align 8
%148 = call i32 @num_buscas(ptr noundef %144, ptr noundef %145, i32 noundef %146, double noundef %147)
store i32 %148, ptr %17, align 4
%149 = load i8, ptr %21, align 1
%150 = sext i8 %149 to i32
%151 = icmp ne i32 %150, 116
br i1 %151, label %152, label %157
152: ; preds = %135
%153 = load i32, ptr %14, align 4
%154 = load double, ptr %10, align 8
%155 = load i32, ptr %17, align 4
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %153, double noundef %154, i32 noundef %155)
br label %157
157: ; preds = %152, %135
%158 = load i8, ptr %21, align 1
%159 = sext i8 %158 to i32
%160 = icmp ne i32 %159, 115
br i1 %160, label %161, label %166
161: ; preds = %157
%162 = load ptr, ptr %15, align 8
%163 = load ptr, ptr %16, align 8
%164 = load i32, ptr %14, align 4
%165 = call i32 @vetor_copy(ptr noundef %162, ptr noundef %163, i32 noundef %164)
br label %166
166: ; preds = %161, %157
br label %167
167: ; preds = %166, %131
%168 = load i8, ptr %21, align 1
%169 = sext i8 %168 to i32
%170 = icmp eq i32 %169, 105
br i1 %170, label %175, label %171
171: ; preds = %167
%172 = load i8, ptr %21, align 1
%173 = sext i8 %172 to i32
%174 = icmp eq i32 %173, 116
br i1 %174, label %175, label %207
175: ; preds = %171, %167
%176 = call double (...) @tempo()
store double %176, ptr %9, align 8
%177 = load i32, ptr %14, align 4
%178 = load ptr, ptr %16, align 8
%179 = call i32 @Insercao(i32 noundef %177, ptr noundef %178)
%180 = call double (...) @tempo()
%181 = load double, ptr %9, align 8
%182 = fsub double %180, %181
%183 = call double @abst(double noundef %182)
store double %183, ptr %11, align 8
%184 = load ptr, ptr %15, align 8
%185 = load ptr, ptr %16, align 8
%186 = load i32, ptr %14, align 4
%187 = load double, ptr %11, align 8
%188 = call i32 @num_buscas(ptr noundef %184, ptr noundef %185, i32 noundef %186, double noundef %187)
store i32 %188, ptr %18, align 4
%189 = load i8, ptr %21, align 1
%190 = sext i8 %189 to i32
%191 = icmp ne i32 %190, 116
br i1 %191, label %192, label %197
192: ; preds = %175
%193 = load i32, ptr %14, align 4
%194 = load double, ptr %11, align 8
%195 = load i32, ptr %18, align 4
%196 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %193, double noundef %194, i32 noundef %195)
br label %197
197: ; preds = %192, %175
%198 = load i8, ptr %21, align 1
%199 = sext i8 %198 to i32
%200 = icmp ne i32 %199, 105
br i1 %200, label %201, label %206
201: ; preds = %197
%202 = load ptr, ptr %15, align 8
%203 = load ptr, ptr %16, align 8
%204 = load i32, ptr %14, align 4
%205 = call i32 @vetor_copy(ptr noundef %202, ptr noundef %203, i32 noundef %204)
br label %206
206: ; preds = %201, %197
br label %207
207: ; preds = %206, %171
%208 = load i8, ptr %21, align 1
%209 = sext i8 %208 to i32
%210 = icmp eq i32 %209, 109
br i1 %210, label %215, label %211
211: ; preds = %207
%212 = load i8, ptr %21, align 1
%213 = sext i8 %212 to i32
%214 = icmp eq i32 %213, 116
br i1 %214, label %215, label %248
215: ; preds = %211, %207
%216 = call double (...) @tempo()
store double %216, ptr %9, align 8
%217 = load i32, ptr %14, align 4
%218 = sub nsw i32 %217, 1
%219 = load ptr, ptr %16, align 8
%220 = call i32 @Mergesort(i32 noundef 0, i32 noundef %218, ptr noundef %219)
%221 = call double (...) @tempo()
%222 = load double, ptr %9, align 8
%223 = fsub double %221, %222
%224 = call double @abst(double noundef %223)
store double %224, ptr %12, align 8
%225 = load ptr, ptr %15, align 8
%226 = load ptr, ptr %16, align 8
%227 = load i32, ptr %14, align 4
%228 = load double, ptr %12, align 8
%229 = call i32 @num_buscas(ptr noundef %225, ptr noundef %226, i32 noundef %227, double noundef %228)
store i32 %229, ptr %19, align 4
%230 = load i8, ptr %21, align 1
%231 = sext i8 %230 to i32
%232 = icmp ne i32 %231, 116
br i1 %232, label %233, label %238
233: ; preds = %215
%234 = load i32, ptr %14, align 4
%235 = load double, ptr %12, align 8
%236 = load i32, ptr %19, align 4
%237 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %234, double noundef %235, i32 noundef %236)
br label %238
238: ; preds = %233, %215
%239 = load i8, ptr %21, align 1
%240 = sext i8 %239 to i32
%241 = icmp ne i32 %240, 109
br i1 %241, label %242, label %247
242: ; preds = %238
%243 = load ptr, ptr %15, align 8
%244 = load ptr, ptr %16, align 8
%245 = load i32, ptr %14, align 4
%246 = call i32 @vetor_copy(ptr noundef %243, ptr noundef %244, i32 noundef %245)
br label %247
247: ; preds = %242, %238
br label %248
248: ; preds = %247, %211
%249 = load i8, ptr %21, align 1
%250 = sext i8 %249 to i32
%251 = icmp eq i32 %250, 113
br i1 %251, label %256, label %252
252: ; preds = %248
%253 = load i8, ptr %21, align 1
%254 = sext i8 %253 to i32
%255 = icmp eq i32 %254, 116
br i1 %255, label %256, label %280
256: ; preds = %252, %248
%257 = call double (...) @tempo()
store double %257, ptr %9, align 8
%258 = load i32, ptr %14, align 4
%259 = sub nsw i32 %258, 1
%260 = load ptr, ptr %16, align 8
%261 = call i32 @Quicksort(i32 noundef 0, i32 noundef %259, ptr noundef %260)
%262 = call double (...) @tempo()
%263 = load double, ptr %9, align 8
%264 = fsub double %262, %263
%265 = call double @abst(double noundef %264)
store double %265, ptr %13, align 8
%266 = load ptr, ptr %15, align 8
%267 = load ptr, ptr %16, align 8
%268 = load i32, ptr %14, align 4
%269 = load double, ptr %13, align 8
%270 = call i32 @num_buscas(ptr noundef %266, ptr noundef %267, i32 noundef %268, double noundef %269)
store i32 %270, ptr %20, align 4
%271 = load i8, ptr %21, align 1
%272 = sext i8 %271 to i32
%273 = icmp ne i32 %272, 116
br i1 %273, label %274, label %279
274: ; preds = %256
%275 = load i32, ptr %14, align 4
%276 = load double, ptr %13, align 8
%277 = load i32, ptr %20, align 4
%278 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %275, double noundef %276, i32 noundef %277)
br label %279
279: ; preds = %274, %256
br label %280
280: ; preds = %279, %252
%281 = load i8, ptr %21, align 1
%282 = sext i8 %281 to i32
%283 = icmp eq i32 %282, 116
br i1 %283, label %284, label %296
284: ; preds = %280
%285 = load i32, ptr %14, align 4
%286 = load double, ptr %11, align 8
%287 = load double, ptr %10, align 8
%288 = load double, ptr %12, align 8
%289 = load double, ptr %13, align 8
%290 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %285, double noundef %286, double noundef %287, double noundef %288, double noundef %289)
%291 = load i32, ptr %18, align 4
%292 = load i32, ptr %17, align 4
%293 = load i32, ptr %19, align 4
%294 = load i32, ptr %20, align 4
%295 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %291, i32 noundef %292, i32 noundef %293, i32 noundef %294)
br label %296
296: ; preds = %284, %280
%297 = load ptr, ptr %15, align 8
%298 = call i32 @free(ptr noundef %297)
%299 = load ptr, ptr %16, align 8
%300 = call i32 @free(ptr noundef %299)
%301 = call double (...) @tempo()
%302 = load double, ptr %7, align 8
%303 = fsub double %301, %302
store double %303, ptr %8, align 8
br label %304
304: ; preds = %296
%305 = load i32, ptr %14, align 4
%306 = add nsw i32 %305, 2000
store i32 %306, ptr %14, align 4
br label %94, !llvm.loop !6
307: ; preds = %94
store i32 0, ptr %3, align 4
br label %308
308: ; preds = %307, %117, %106, %58, %26
%309 = load i32, ptr %3, align 4
ret i32 %309
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @tempo(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @vetor_rand(ptr noundef, i32 noundef) #1
declare i32 @vetor_copy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @Selecao(i32 noundef, ptr noundef) #1
declare double @abst(double noundef) #1
declare i32 @num_buscas(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare i32 @Insercao(i32 noundef, ptr noundef) #1
declare i32 @Mergesort(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @Quicksort(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvrxruj38.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Uso: %s tipo duracao\0A\00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c" tipo: s(elecao) ou i(nsercao) ou m(ergesort) ou q(uicksort) ou t(odos)\0A\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c" duracao: duracao em segundos\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"opcao nao valida\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.5 = private unnamed_addr constant [530 x i8] c"|-------------------------[EP1 - Vale a pena ordenar?]-----------------|\0A| Algoritmo escolhido: %10s Duracao dos testes: %9.2f |\0A| Tempos de Ordenacao Numero de Buscas |\0A| Nome: Anderson Silva de Albuquerque && Maria Luciana Felix |\0A|-------------------------------------------------------------------------|\0A| n | Insercao Selecao Merge. Quick. | Insercao Selecao Merge. Quick. |\0A|-------|-----------------------------------------------------------------|\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"selecao\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"insercao\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"mergesort\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"quicksort\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"todos\00", align 1
@.str.11 = private unnamed_addr constant [62 x i8] c"Erro na alocacao de memoria para o vetor v com %d elementos.\0A\00", align 1
@.str.12 = private unnamed_addr constant [66 x i8] c"Erro na alocacao de memoria para o vetor v_aux com %d elementos.\0A\00", align 1
@.str.13 = private unnamed_addr constant [57 x i8] c"%d \09 %4.2f %d\09\0A\00", align 1
@.str.14 = private unnamed_addr constant [49 x i8] c"%d \09 %4.2f %d\09\0A\00", align 1
@.str.15 = private unnamed_addr constant [26 x i8] c"%d\09\09\09 %4.2f\09\09\09\09 %d\09\0A\00", align 1
@.str.16 = private unnamed_addr constant [62 x i8] c"%d \09\09 %4.2f \09 %d\09\0A\00", align 1
@.str.17 = private unnamed_addr constant [39 x i8] c"%d\09 %4.2f\09 %4.2f\09 %4.2f\09 %4.2f\00", align 1
@.str.18 = private unnamed_addr constant [18 x i8] c"\09 %d\09 %d\09 %d\09 %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 double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%22 = call i32 @time(ptr noundef null)
%23 = call i32 @srand(i32 noundef %22)
%24 = load i32, ptr %4, align 4
%25 = icmp ne i32 %24, 3
br i1 %25, label %26, label %33
26: ; preds = %2
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 0
%29 = load ptr, ptr %28, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %29)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %310
33: ; preds = %2
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
store i8 %38, ptr %21, align 1
%39 = load i8, ptr %21, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 115
br i1 %41, label %42, label %60
42: ; preds = %33
%43 = load i8, ptr %21, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 105
br i1 %45, label %46, label %60
46: ; preds = %42
%47 = load i8, ptr %21, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 109
br i1 %49, label %50, label %60
50: ; preds = %46
%51 = load i8, ptr %21, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 113
br i1 %53, label %54, label %60
54: ; preds = %50
%55 = load i8, ptr %21, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 116
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %310
60: ; preds = %54, %50, %46, %42, %33
%61 = load ptr, ptr %5, align 8
%62 = getelementptr inbounds ptr, ptr %61, i64 2
%63 = load ptr, ptr %62, align 8
%64 = call i32 @sscanf(ptr noundef %63, ptr noundef @.str.4, ptr noundef %6)
%65 = load i8, ptr %21, align 1
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 115
br i1 %67, label %68, label %69
68: ; preds = %60
br label %89
69: ; preds = %60
%70 = load i8, ptr %21, align 1
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 105
br i1 %72, label %73, label %74
73: ; preds = %69
br label %87
74: ; preds = %69
%75 = load i8, ptr %21, align 1
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 109
br i1 %77, label %78, label %79
78: ; preds = %74
br label %85
79: ; preds = %74
%80 = load i8, ptr %21, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 113
%83 = zext i1 %82 to i64
%84 = select i1 %82, ptr @.str.9, ptr @.str.10
br label %85
85: ; preds = %79, %78
%86 = phi ptr [ @.str.8, %78 ], [ %84, %79 ]
br label %87
87: ; preds = %85, %73
%88 = phi ptr [ @.str.7, %73 ], [ %86, %85 ]
br label %89
89: ; preds = %87, %68
%90 = phi ptr [ @.str.6, %68 ], [ %88, %87 ]
%91 = load double, ptr %6, align 8
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %90, double noundef %91)
%93 = call double (...) @tempo()
store double %93, ptr %7, align 8
store double 0.000000e+00, ptr %8, align 8
store i32 2000, ptr %14, align 4
%94 = load double, ptr %8, align 8
%95 = load double, ptr %6, align 8
%96 = fcmp olt double %94, %95
br i1 %96, label %.lr.ph, label %309
.lr.ph: ; preds = %89
br label %97
97: ; preds = %.lr.ph, %303
%98 = load i32, ptr %14, align 4
%99 = sext i32 %98 to i64
%100 = mul i64 %99, 4
%101 = trunc i64 %100 to i32
%102 = call ptr @malloc(i32 noundef %101)
store ptr %102, ptr %15, align 8
%103 = load ptr, ptr %15, align 8
%104 = icmp eq ptr %103, null
br i1 %104, label %105, label %108
105: ; preds = %97
%106 = load i32, ptr %14, align 4
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %106)
store i32 -1, ptr %3, align 4
br label %310
108: ; preds = %97
%109 = load i32, ptr %14, align 4
%110 = sext i32 %109 to i64
%111 = mul i64 %110, 4
%112 = trunc i64 %111 to i32
%113 = call ptr @malloc(i32 noundef %112)
store ptr %113, ptr %16, align 8
%114 = load ptr, ptr %16, align 8
%115 = icmp eq ptr %114, null
br i1 %115, label %116, label %119
116: ; preds = %108
%117 = load i32, ptr %14, align 4
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %117)
store i32 -1, ptr %3, align 4
br label %310
119: ; preds = %108
%120 = load ptr, ptr %15, align 8
%121 = load i32, ptr %14, align 4
%122 = call i32 @vetor_rand(ptr noundef %120, i32 noundef %121)
%123 = load ptr, ptr %15, align 8
%124 = load ptr, ptr %16, align 8
%125 = load i32, ptr %14, align 4
%126 = call i32 @vetor_copy(ptr noundef %123, ptr noundef %124, i32 noundef %125)
%127 = load i8, ptr %21, align 1
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 115
br i1 %129, label %134, label %130
130: ; preds = %119
%131 = load i8, ptr %21, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 116
br i1 %133, label %134, label %166
134: ; preds = %130, %119
%135 = call double (...) @tempo()
store double %135, ptr %9, align 8
%136 = load i32, ptr %14, align 4
%137 = load ptr, ptr %16, align 8
%138 = call i32 @Selecao(i32 noundef %136, ptr noundef %137)
%139 = call double (...) @tempo()
%140 = load double, ptr %9, align 8
%141 = fsub double %139, %140
%142 = call double @abst(double noundef %141)
store double %142, ptr %10, align 8
%143 = load ptr, ptr %15, align 8
%144 = load ptr, ptr %16, align 8
%145 = load i32, ptr %14, align 4
%146 = load double, ptr %10, align 8
%147 = call i32 @num_buscas(ptr noundef %143, ptr noundef %144, i32 noundef %145, double noundef %146)
store i32 %147, ptr %17, align 4
%148 = load i8, ptr %21, align 1
%149 = sext i8 %148 to i32
%150 = icmp ne i32 %149, 116
br i1 %150, label %151, label %156
151: ; preds = %134
%152 = load i32, ptr %14, align 4
%153 = load double, ptr %10, align 8
%154 = load i32, ptr %17, align 4
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %152, double noundef %153, i32 noundef %154)
br label %156
156: ; preds = %151, %134
%157 = load i8, ptr %21, align 1
%158 = sext i8 %157 to i32
%159 = icmp ne i32 %158, 115
br i1 %159, label %160, label %165
160: ; preds = %156
%161 = load ptr, ptr %15, align 8
%162 = load ptr, ptr %16, align 8
%163 = load i32, ptr %14, align 4
%164 = call i32 @vetor_copy(ptr noundef %161, ptr noundef %162, i32 noundef %163)
br label %165
165: ; preds = %160, %156
br label %166
166: ; preds = %165, %130
%167 = load i8, ptr %21, align 1
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %168, 105
br i1 %169, label %174, label %170
170: ; preds = %166
%171 = load i8, ptr %21, align 1
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 116
br i1 %173, label %174, label %206
174: ; preds = %170, %166
%175 = call double (...) @tempo()
store double %175, ptr %9, align 8
%176 = load i32, ptr %14, align 4
%177 = load ptr, ptr %16, align 8
%178 = call i32 @Insercao(i32 noundef %176, ptr noundef %177)
%179 = call double (...) @tempo()
%180 = load double, ptr %9, align 8
%181 = fsub double %179, %180
%182 = call double @abst(double noundef %181)
store double %182, ptr %11, align 8
%183 = load ptr, ptr %15, align 8
%184 = load ptr, ptr %16, align 8
%185 = load i32, ptr %14, align 4
%186 = load double, ptr %11, align 8
%187 = call i32 @num_buscas(ptr noundef %183, ptr noundef %184, i32 noundef %185, double noundef %186)
store i32 %187, ptr %18, align 4
%188 = load i8, ptr %21, align 1
%189 = sext i8 %188 to i32
%190 = icmp ne i32 %189, 116
br i1 %190, label %191, label %196
191: ; preds = %174
%192 = load i32, ptr %14, align 4
%193 = load double, ptr %11, align 8
%194 = load i32, ptr %18, align 4
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %192, double noundef %193, i32 noundef %194)
br label %196
196: ; preds = %191, %174
%197 = load i8, ptr %21, align 1
%198 = sext i8 %197 to i32
%199 = icmp ne i32 %198, 105
br i1 %199, label %200, label %205
200: ; preds = %196
%201 = load ptr, ptr %15, align 8
%202 = load ptr, ptr %16, align 8
%203 = load i32, ptr %14, align 4
%204 = call i32 @vetor_copy(ptr noundef %201, ptr noundef %202, i32 noundef %203)
br label %205
205: ; preds = %200, %196
br label %206
206: ; preds = %205, %170
%207 = load i8, ptr %21, align 1
%208 = sext i8 %207 to i32
%209 = icmp eq i32 %208, 109
br i1 %209, label %214, label %210
210: ; preds = %206
%211 = load i8, ptr %21, align 1
%212 = sext i8 %211 to i32
%213 = icmp eq i32 %212, 116
br i1 %213, label %214, label %247
214: ; preds = %210, %206
%215 = call double (...) @tempo()
store double %215, ptr %9, align 8
%216 = load i32, ptr %14, align 4
%217 = sub nsw i32 %216, 1
%218 = load ptr, ptr %16, align 8
%219 = call i32 @Mergesort(i32 noundef 0, i32 noundef %217, ptr noundef %218)
%220 = call double (...) @tempo()
%221 = load double, ptr %9, align 8
%222 = fsub double %220, %221
%223 = call double @abst(double noundef %222)
store double %223, ptr %12, align 8
%224 = load ptr, ptr %15, align 8
%225 = load ptr, ptr %16, align 8
%226 = load i32, ptr %14, align 4
%227 = load double, ptr %12, align 8
%228 = call i32 @num_buscas(ptr noundef %224, ptr noundef %225, i32 noundef %226, double noundef %227)
store i32 %228, ptr %19, align 4
%229 = load i8, ptr %21, align 1
%230 = sext i8 %229 to i32
%231 = icmp ne i32 %230, 116
br i1 %231, label %232, label %237
232: ; preds = %214
%233 = load i32, ptr %14, align 4
%234 = load double, ptr %12, align 8
%235 = load i32, ptr %19, align 4
%236 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %233, double noundef %234, i32 noundef %235)
br label %237
237: ; preds = %232, %214
%238 = load i8, ptr %21, align 1
%239 = sext i8 %238 to i32
%240 = icmp ne i32 %239, 109
br i1 %240, label %241, label %246
241: ; preds = %237
%242 = load ptr, ptr %15, align 8
%243 = load ptr, ptr %16, align 8
%244 = load i32, ptr %14, align 4
%245 = call i32 @vetor_copy(ptr noundef %242, ptr noundef %243, i32 noundef %244)
br label %246
246: ; preds = %241, %237
br label %247
247: ; preds = %246, %210
%248 = load i8, ptr %21, align 1
%249 = sext i8 %248 to i32
%250 = icmp eq i32 %249, 113
br i1 %250, label %255, label %251
251: ; preds = %247
%252 = load i8, ptr %21, align 1
%253 = sext i8 %252 to i32
%254 = icmp eq i32 %253, 116
br i1 %254, label %255, label %279
255: ; preds = %251, %247
%256 = call double (...) @tempo()
store double %256, ptr %9, align 8
%257 = load i32, ptr %14, align 4
%258 = sub nsw i32 %257, 1
%259 = load ptr, ptr %16, align 8
%260 = call i32 @Quicksort(i32 noundef 0, i32 noundef %258, ptr noundef %259)
%261 = call double (...) @tempo()
%262 = load double, ptr %9, align 8
%263 = fsub double %261, %262
%264 = call double @abst(double noundef %263)
store double %264, ptr %13, align 8
%265 = load ptr, ptr %15, align 8
%266 = load ptr, ptr %16, align 8
%267 = load i32, ptr %14, align 4
%268 = load double, ptr %13, align 8
%269 = call i32 @num_buscas(ptr noundef %265, ptr noundef %266, i32 noundef %267, double noundef %268)
store i32 %269, ptr %20, align 4
%270 = load i8, ptr %21, align 1
%271 = sext i8 %270 to i32
%272 = icmp ne i32 %271, 116
br i1 %272, label %273, label %278
273: ; preds = %255
%274 = load i32, ptr %14, align 4
%275 = load double, ptr %13, align 8
%276 = load i32, ptr %20, align 4
%277 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %274, double noundef %275, i32 noundef %276)
br label %278
278: ; preds = %273, %255
br label %279
279: ; preds = %278, %251
%280 = load i8, ptr %21, align 1
%281 = sext i8 %280 to i32
%282 = icmp eq i32 %281, 116
br i1 %282, label %283, label %295
283: ; preds = %279
%284 = load i32, ptr %14, align 4
%285 = load double, ptr %11, align 8
%286 = load double, ptr %10, align 8
%287 = load double, ptr %12, align 8
%288 = load double, ptr %13, align 8
%289 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %284, double noundef %285, double noundef %286, double noundef %287, double noundef %288)
%290 = load i32, ptr %18, align 4
%291 = load i32, ptr %17, align 4
%292 = load i32, ptr %19, align 4
%293 = load i32, ptr %20, align 4
%294 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %290, i32 noundef %291, i32 noundef %292, i32 noundef %293)
br label %295
295: ; preds = %283, %279
%296 = load ptr, ptr %15, align 8
%297 = call i32 @free(ptr noundef %296)
%298 = load ptr, ptr %16, align 8
%299 = call i32 @free(ptr noundef %298)
%300 = call double (...) @tempo()
%301 = load double, ptr %7, align 8
%302 = fsub double %300, %301
store double %302, ptr %8, align 8
br label %303
303: ; preds = %295
%304 = load i32, ptr %14, align 4
%305 = add nsw i32 %304, 2000
store i32 %305, ptr %14, align 4
%306 = load double, ptr %8, align 8
%307 = load double, ptr %6, align 8
%308 = fcmp olt double %306, %307
br i1 %308, label %97, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %303
br label %309
309: ; preds = %._crit_edge, %89
store i32 0, ptr %3, align 4
br label %310
310: ; preds = %309, %116, %105, %58, %26
%311 = load i32, ptr %3, align 4
ret i32 %311
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @tempo(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @vetor_rand(ptr noundef, i32 noundef) #1
declare i32 @vetor_copy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @Selecao(i32 noundef, ptr noundef) #1
declare double @abst(double noundef) #1
declare i32 @num_buscas(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare i32 @Insercao(i32 noundef, ptr noundef) #1
declare i32 @Mergesort(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @Quicksort(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp03g0f4k_.c'
source_filename = "/tmp/tmp03g0f4k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"System is big endian.\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"System is little endian.\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 i64 (...) @is_bigendian()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %4
ret i32 0
}
declare i64 @is_bigendian(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp03g0f4k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"System is big endian.\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"System is little endian.\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 i64 (...) @is_bigendian()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %4
ret i32 0
}
declare i64 @is_bigendian(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpya10bt2w.c'
source_filename = "/tmp/tmpya10bt2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [67 x i8] c"creating device node '%s', devnum=%d:%d, mode=%#o, uid=%d, gid=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"creating device partition nodes '%s[1-%i]'\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%s%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @udev_node_add(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca [1024 x i8], align 16
%15 = 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
%16 = load ptr, ptr %5, align 8
%17 = call ptr @udev_device_get_udev(ptr noundef %16)
store ptr %17, ptr %9, align 8
store i32 0, ptr %13, align 4
%18 = load ptr, ptr %9, align 8
%19 = load ptr, ptr %5, align 8
%20 = call ptr @udev_device_get_devnode(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = call i32 @udev_device_get_devnum(ptr noundef %21)
%23 = call i32 @major(i32 noundef %22)
%24 = load ptr, ptr %5, align 8
%25 = call i32 @udev_device_get_devnum(ptr noundef %24)
%26 = call i64 @minor(i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = call i32 (ptr, ptr, ptr, i32, ...) @udev_log_null(ptr noundef %18, ptr noundef @.str, ptr noundef %20, i32 noundef %23, i64 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %5, align 8
%33 = call ptr @udev_device_get_devnode(ptr noundef %32)
%34 = call i32 @util_create_path(ptr noundef %31, ptr noundef %33)
%35 = load ptr, ptr %5, align 8
%36 = call i32 @makedev(i32 noundef 0, i64 noundef 0)
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %8, align 4
%40 = call i64 @udev_node_mknod(ptr noundef %35, ptr noundef null, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %4
store i32 -1, ptr %13, align 4
br label %113
43: ; preds = %4
%44 = load ptr, ptr %5, align 8
%45 = call i32 @udev_device_get_num_fake_partitions(ptr noundef %44)
store i32 %45, ptr %11, align 4
%46 = load i32, ptr %11, align 4
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %86
48: ; preds = %43
%49 = load ptr, ptr %9, align 8
%50 = load ptr, ptr %5, align 8
%51 = call ptr @udev_device_get_devnode(ptr noundef %50)
%52 = load i32, ptr %11, align 4
%53 = call i32 (ptr, ptr, ptr, i32, ...) @udev_log_null(ptr noundef %49, ptr noundef @.str.1, ptr noundef %51, i32 noundef %52)
store i32 1, ptr %10, align 4
br label %54
54: ; preds = %82, %48
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %11, align 4
%57 = icmp sle i32 %55, %56
br i1 %57, label %58, label %85
58: ; preds = %54
%59 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%60 = load ptr, ptr %5, align 8
%61 = call ptr @udev_device_get_devnode(ptr noundef %60)
%62 = load i32, ptr %10, align 4
%63 = call i32 @snprintf(ptr noundef %59, i32 noundef 1024, ptr noundef @.str.2, ptr noundef %61, i32 noundef %62)
%64 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 1023
store i8 0, ptr %64, align 1
%65 = load ptr, ptr %5, align 8
%66 = call i32 @udev_device_get_devnum(ptr noundef %65)
%67 = call i32 @major(i32 noundef %66)
%68 = load ptr, ptr %5, align 8
%69 = call i32 @udev_device_get_devnum(ptr noundef %68)
%70 = call i64 @minor(i32 noundef %69)
%71 = load i32, ptr %10, align 4
%72 = sext i32 %71 to i64
%73 = add nsw i64 %70, %72
%74 = call i32 @makedev(i32 noundef %67, i64 noundef %73)
store i32 %74, ptr %15, align 4
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%77 = load i32, ptr %15, align 4
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr %7, align 4
%80 = load i32, ptr %8, align 4
%81 = call i64 @udev_node_mknod(ptr noundef %75, ptr noundef %76, i32 noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80)
br label %82
82: ; preds = %58
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %10, align 4
br label %54, !llvm.loop !6
85: ; preds = %54
br label %86
86: ; preds = %85, %43
%87 = load ptr, ptr %9, align 8
%88 = load ptr, ptr %5, align 8
%89 = call i32 @udev_device_get_devpath(ptr noundef %88)
%90 = load ptr, ptr %5, align 8
%91 = call ptr @udev_device_get_devnode(ptr noundef %90)
%92 = call i32 @name_index(ptr noundef %87, i32 noundef %89, ptr noundef %91, i32 noundef 1)
%93 = load ptr, ptr %5, align 8
%94 = call ptr @udev_device_get_devlinks_list_entry(ptr noundef %93)
store ptr %94, ptr %12, align 8
br label %95
95: ; preds = %109, %86
%96 = load ptr, ptr %12, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %112
98: ; preds = %95
%99 = load ptr, ptr %9, align 8
%100 = load ptr, ptr %5, align 8
%101 = call i32 @udev_device_get_devpath(ptr noundef %100)
%102 = load ptr, ptr %12, align 8
%103 = call ptr @udev_list_entry_get_name(ptr noundef %102)
%104 = call i32 @name_index(ptr noundef %99, i32 noundef %101, ptr noundef %103, i32 noundef 1)
%105 = load ptr, ptr %5, align 8
%106 = load ptr, ptr %12, align 8
%107 = call ptr @udev_list_entry_get_name(ptr noundef %106)
%108 = call i32 @update_link(ptr noundef %105, ptr noundef %107)
br label %109
109: ; preds = %98
%110 = load ptr, ptr %12, align 8
%111 = call ptr @udev_list_entry_get_next(ptr noundef %110)
store ptr %111, ptr %12, align 8
br label %95, !llvm.loop !8
112: ; preds = %95
br label %113
113: ; preds = %112, %42
%114 = load i32, ptr %13, align 4
ret i32 %114
}
declare ptr @udev_device_get_udev(ptr noundef) #1
declare i32 @udev_log_null(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @udev_device_get_devnode(ptr noundef) #1
declare i32 @major(i32 noundef) #1
declare i32 @udev_device_get_devnum(ptr noundef) #1
declare i64 @minor(i32 noundef) #1
declare i32 @util_create_path(ptr noundef, ptr noundef) #1
declare i64 @udev_node_mknod(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @makedev(i32 noundef, i64 noundef) #1
declare i32 @udev_device_get_num_fake_partitions(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @name_index(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @udev_device_get_devpath(ptr noundef) #1
declare ptr @udev_device_get_devlinks_list_entry(ptr noundef) #1
declare ptr @udev_list_entry_get_name(ptr noundef) #1
declare i32 @update_link(ptr noundef, ptr noundef) #1
declare ptr @udev_list_entry_get_next(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpya10bt2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [67 x i8] c"creating device node '%s', devnum=%d:%d, mode=%#o, uid=%d, gid=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"creating device partition nodes '%s[1-%i]'\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%s%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @udev_node_add(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca [1024 x i8], align 16
%15 = 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
%16 = load ptr, ptr %5, align 8
%17 = call ptr @udev_device_get_udev(ptr noundef %16)
store ptr %17, ptr %9, align 8
store i32 0, ptr %13, align 4
%18 = load ptr, ptr %9, align 8
%19 = load ptr, ptr %5, align 8
%20 = call ptr @udev_device_get_devnode(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = call i32 @udev_device_get_devnum(ptr noundef %21)
%23 = call i32 @major(i32 noundef %22)
%24 = load ptr, ptr %5, align 8
%25 = call i32 @udev_device_get_devnum(ptr noundef %24)
%26 = call i64 @minor(i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = call i32 (ptr, ptr, ptr, i32, ...) @udev_log_null(ptr noundef %18, ptr noundef @.str, ptr noundef %20, i32 noundef %23, i64 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %5, align 8
%33 = call ptr @udev_device_get_devnode(ptr noundef %32)
%34 = call i32 @util_create_path(ptr noundef %31, ptr noundef %33)
%35 = load ptr, ptr %5, align 8
%36 = call i32 @makedev(i32 noundef 0, i64 noundef 0)
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %8, align 4
%40 = call i64 @udev_node_mknod(ptr noundef %35, ptr noundef null, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %4
store i32 -1, ptr %13, align 4
br label %116
43: ; preds = %4
%44 = load ptr, ptr %5, align 8
%45 = call i32 @udev_device_get_num_fake_partitions(ptr noundef %44)
store i32 %45, ptr %11, align 4
%46 = load i32, ptr %11, align 4
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %88
48: ; preds = %43
%49 = load ptr, ptr %9, align 8
%50 = load ptr, ptr %5, align 8
%51 = call ptr @udev_device_get_devnode(ptr noundef %50)
%52 = load i32, ptr %11, align 4
%53 = call i32 (ptr, ptr, ptr, i32, ...) @udev_log_null(ptr noundef %49, ptr noundef @.str.1, ptr noundef %51, i32 noundef %52)
store i32 1, ptr %10, align 4
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %.lr.ph, label %87
.lr.ph: ; preds = %48
br label %57
57: ; preds = %.lr.ph, %81
%58 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%59 = load ptr, ptr %5, align 8
%60 = call ptr @udev_device_get_devnode(ptr noundef %59)
%61 = load i32, ptr %10, align 4
%62 = call i32 @snprintf(ptr noundef %58, i32 noundef 1024, ptr noundef @.str.2, ptr noundef %60, i32 noundef %61)
%63 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 1023
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %5, align 8
%65 = call i32 @udev_device_get_devnum(ptr noundef %64)
%66 = call i32 @major(i32 noundef %65)
%67 = load ptr, ptr %5, align 8
%68 = call i32 @udev_device_get_devnum(ptr noundef %67)
%69 = call i64 @minor(i32 noundef %68)
%70 = load i32, ptr %10, align 4
%71 = sext i32 %70 to i64
%72 = add nsw i64 %69, %71
%73 = call i32 @makedev(i32 noundef %66, i64 noundef %72)
store i32 %73, ptr %15, align 4
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds [1024 x i8], ptr %14, i64 0, i64 0
%76 = load i32, ptr %15, align 4
%77 = load i32, ptr %6, align 4
%78 = load i32, ptr %7, align 4
%79 = load i32, ptr %8, align 4
%80 = call i64 @udev_node_mknod(ptr noundef %74, ptr noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78, i32 noundef %79)
br label %81
81: ; preds = %57
%82 = load i32, ptr %10, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %10, align 4
%84 = load i32, ptr %10, align 4
%85 = load i32, ptr %11, align 4
%86 = icmp sle i32 %84, %85
br i1 %86, label %57, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %81
br label %87
87: ; preds = %._crit_edge, %48
br label %88
88: ; preds = %87, %43
%89 = load ptr, ptr %9, align 8
%90 = load ptr, ptr %5, align 8
%91 = call i32 @udev_device_get_devpath(ptr noundef %90)
%92 = load ptr, ptr %5, align 8
%93 = call ptr @udev_device_get_devnode(ptr noundef %92)
%94 = call i32 @name_index(ptr noundef %89, i32 noundef %91, ptr noundef %93, i32 noundef 1)
%95 = load ptr, ptr %5, align 8
%96 = call ptr @udev_device_get_devlinks_list_entry(ptr noundef %95)
store ptr %96, ptr %12, align 8
%97 = load ptr, ptr %12, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %.lr.ph2, label %115
.lr.ph2: ; preds = %88
br label %99
99: ; preds = %.lr.ph2, %110
%100 = load ptr, ptr %9, align 8
%101 = load ptr, ptr %5, align 8
%102 = call i32 @udev_device_get_devpath(ptr noundef %101)
%103 = load ptr, ptr %12, align 8
%104 = call ptr @udev_list_entry_get_name(ptr noundef %103)
%105 = call i32 @name_index(ptr noundef %100, i32 noundef %102, ptr noundef %104, i32 noundef 1)
%106 = load ptr, ptr %5, align 8
%107 = load ptr, ptr %12, align 8
%108 = call ptr @udev_list_entry_get_name(ptr noundef %107)
%109 = call i32 @update_link(ptr noundef %106, ptr noundef %108)
br label %110
110: ; preds = %99
%111 = load ptr, ptr %12, align 8
%112 = call ptr @udev_list_entry_get_next(ptr noundef %111)
store ptr %112, ptr %12, align 8
%113 = load ptr, ptr %12, align 8
%114 = icmp ne ptr %113, null
br i1 %114, label %99, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %110
br label %115
115: ; preds = %._crit_edge3, %88
br label %116
116: ; preds = %115, %42
%117 = load i32, ptr %13, align 4
ret i32 %117
}
declare ptr @udev_device_get_udev(ptr noundef) #1
declare i32 @udev_log_null(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @udev_device_get_devnode(ptr noundef) #1
declare i32 @major(i32 noundef) #1
declare i32 @udev_device_get_devnum(ptr noundef) #1
declare i64 @minor(i32 noundef) #1
declare i32 @util_create_path(ptr noundef, ptr noundef) #1
declare i64 @udev_node_mknod(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @makedev(i32 noundef, i64 noundef) #1
declare i32 @udev_device_get_num_fake_partitions(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @name_index(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @udev_device_get_devpath(ptr noundef) #1
declare ptr @udev_device_get_devlinks_list_entry(ptr noundef) #1
declare ptr @udev_list_entry_get_name(ptr noundef) #1
declare i32 @update_link(ptr noundef, ptr noundef) #1
declare ptr @udev_list_entry_get_next(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpjbjsggx8.c'
source_filename = "/tmp/tmpjbjsggx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i64, ptr %7, align 8
%10 = icmp ult i64 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %3
store i64 0, ptr %4, align 8
br label %44
12: ; preds = %3
store i64 0, ptr %8, align 8
br label %13
13: ; preds = %35, %12
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %7, align 8
%16 = sub i64 %15, 1
%17 = icmp ult i64 %14, %16
br i1 %17, label %18, label %38
18: ; preds = %13
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %18
br label %38
26: ; preds = %18
%27 = load ptr, ptr %6, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load ptr, ptr %5, align 8
%32 = load i64, ptr %8, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
store i8 %30, ptr %33, align 1
br label %34
34: ; preds = %26
br label %35
35: ; preds = %34
%36 = load i64, ptr %8, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %8, align 8
br label %13, !llvm.loop !6
38: ; preds = %25, %13
%39 = load ptr, ptr %5, align 8
%40 = load i64, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %6, align 8
%43 = call i64 @strlen(ptr noundef %42)
store i64 %43, ptr %4, align 8
br label %44
44: ; preds = %38, %11
%45 = load i64, ptr %4, align 8
ret i64 %45
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjbjsggx8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i64, ptr %7, align 8
%10 = icmp ult i64 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %3
store i64 0, ptr %4, align 8
br label %47
12: ; preds = %3
store i64 0, ptr %8, align 8
%13 = load i64, ptr %8, align 8
%14 = load i64, ptr %7, align 8
%15 = sub i64 %14, 1
%16 = icmp ult i64 %13, %15
br i1 %16, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %12
br label %17
17: ; preds = %.lr.ph, %34
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %17
br label %41
25: ; preds = %17
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %5, align 8
%31 = load i64, ptr %8, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 %29, ptr %32, align 1
br label %33
33: ; preds = %25
br label %34
34: ; preds = %33
%35 = load i64, ptr %8, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %8, align 8
%37 = load i64, ptr %8, align 8
%38 = load i64, ptr %7, align 8
%39 = sub i64 %38, 1
%40 = icmp ult i64 %37, %39
br i1 %40, label %17, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %34
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %12
br label %41
41: ; preds = %.loopexit, %24
%42 = load ptr, ptr %5, align 8
%43 = load i64, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %6, align 8
%46 = call i64 @strlen(ptr noundef %45)
store i64 %46, ptr %4, align 8
br label %47
47: ; preds = %41, %11
%48 = load i64, ptr %4, align 8
ret i64 %48
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk7nfd7bv.c'
source_filename = "/tmp/tmpk7nfd7bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"please set num number\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"%d %d %d %d %d %d %d %d %d %d %d %d %d\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [30 x i8] c"minimum is %d, maximum is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"length is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
store i32 0, ptr %34, align 4
store i32 0, ptr %35, align 4
store i32 0, ptr %36, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %42
39: ; preds = %2
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %2
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = call i32 @atoi(ptr noundef %45)
store i32 %46, ptr %10, align 4
br label %47
47: ; preds = %165, %42
%48 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
%49 = load i64, ptr @EOF, align 8
%50 = icmp ne i64 %48, %49
br i1 %50, label %51, label %166
51: ; preds = %47
%52 = load i32, ptr %6, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load i32, ptr %12, align 4
store i32 %55, ptr %6, align 4
br label %56
56: ; preds = %54, %51
%57 = load i32, ptr %7, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, ptr %12, align 4
store i32 %60, ptr %7, align 4
br label %61
61: ; preds = %59, %56
%62 = load i32, ptr %12, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32, ptr %12, align 4
store i32 %66, ptr %6, align 4
br label %67
67: ; preds = %65, %61
%68 = load i32, ptr %12, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp sgt i32 %68, %69
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = load i32, ptr %12, align 4
store i32 %72, ptr %7, align 4
br label %73
73: ; preds = %71, %67
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %24, align 4
%78 = add nsw i32 %77, %76
store i32 %78, ptr %24, align 4
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %25, align 4
%81 = add nsw i32 %80, %79
store i32 %81, ptr %25, align 4
%82 = load i32, ptr %13, align 4
%83 = load i32, ptr %26, align 4
%84 = add nsw i32 %83, %82
store i32 %84, ptr %26, align 4
%85 = load i32, ptr %14, align 4
%86 = load i32, ptr %27, align 4
%87 = add nsw i32 %86, %85
store i32 %87, ptr %27, align 4
%88 = load i32, ptr %15, align 4
%89 = load i32, ptr %28, align 4
%90 = add nsw i32 %89, %88
store i32 %90, ptr %28, align 4
%91 = load i32, ptr %16, align 4
%92 = load i32, ptr %29, align 4
%93 = add nsw i32 %92, %91
store i32 %93, ptr %29, align 4
%94 = load i32, ptr %17, align 4
%95 = load i32, ptr %30, align 4
%96 = add nsw i32 %95, %94
store i32 %96, ptr %30, align 4
%97 = load i32, ptr %18, align 4
%98 = load i32, ptr %31, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr %31, align 4
%100 = load i32, ptr %19, align 4
%101 = load i32, ptr %32, align 4
%102 = add nsw i32 %101, %100
store i32 %102, ptr %32, align 4
%103 = load i32, ptr %20, align 4
%104 = load i32, ptr %33, align 4
%105 = add nsw i32 %104, %103
store i32 %105, ptr %33, align 4
%106 = load i32, ptr %21, align 4
%107 = load i32, ptr %34, align 4
%108 = add nsw i32 %107, %106
store i32 %108, ptr %34, align 4
%109 = load i32, ptr %22, align 4
%110 = load i32, ptr %35, align 4
%111 = add nsw i32 %110, %109
store i32 %111, ptr %35, align 4
%112 = load i32, ptr %23, align 4
%113 = load i32, ptr %36, align 4
%114 = add nsw i32 %113, %112
store i32 %114, ptr %36, align 4
%115 = load i32, ptr %8, align 4
%116 = load i32, ptr %10, align 4
%117 = icmp eq i32 %115, %116
br i1 %117, label %118, label %161
118: ; preds = %73
%119 = load i32, ptr %24, align 4
%120 = load i32, ptr %10, align 4
%121 = sdiv i32 %119, %120
%122 = load i32, ptr %25, align 4
%123 = load i32, ptr %10, align 4
%124 = sdiv i32 %122, %123
%125 = load i32, ptr %26, align 4
%126 = load i32, ptr %10, align 4
%127 = sdiv i32 %125, %126
%128 = load i32, ptr %27, align 4
%129 = load i32, ptr %10, align 4
%130 = sdiv i32 %128, %129
%131 = load i32, ptr %28, align 4
%132 = load i32, ptr %10, align 4
%133 = sdiv i32 %131, %132
%134 = load i32, ptr %29, align 4
%135 = load i32, ptr %10, align 4
%136 = sdiv i32 %134, %135
%137 = load i32, ptr %30, align 4
%138 = load i32, ptr %10, align 4
%139 = sdiv i32 %137, %138
%140 = load i32, ptr %31, align 4
%141 = load i32, ptr %10, align 4
%142 = sdiv i32 %140, %141
%143 = load i32, ptr %32, align 4
%144 = load i32, ptr %10, align 4
%145 = sdiv i32 %143, %144
%146 = load i32, ptr %33, align 4
%147 = load i32, ptr %10, align 4
%148 = sdiv i32 %146, %147
%149 = load i32, ptr %34, align 4
%150 = load i32, ptr %10, align 4
%151 = sdiv i32 %149, %150
%152 = load i32, ptr %35, align 4
%153 = load i32, ptr %10, align 4
%154 = sdiv i32 %152, %153
%155 = load i32, ptr %36, align 4
%156 = load i32, ptr %10, align 4
%157 = sdiv i32 %155, %156
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %121, i32 noundef %124, i32 noundef %127, i32 noundef %130, i32 noundef %133, i32 noundef %136, i32 noundef %139, i32 noundef %142, i32 noundef %145, i32 noundef %148, i32 noundef %151, i32 noundef %154, i32 noundef %157)
store i32 0, ptr %8, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
store i32 0, ptr %34, align 4
store i32 0, ptr %35, align 4
store i32 0, ptr %36, align 4
%159 = load i32, ptr %9, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %9, align 4
br label %161
161: ; preds = %118, %73
%162 = load i32, ptr %9, align 4
%163 = icmp sgt i32 %162, 1000
br i1 %163, label %164, label %165
164: ; preds = %161
br label %166
165: ; preds = %161
br label %47, !llvm.loop !6
166: ; preds = %164, %47
%167 = load i32, ptr %6, align 4
%168 = load i32, ptr %7, align 4
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %167, i32 noundef %168)
%170 = load i32, ptr %9, align 4
%171 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %170)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpk7nfd7bv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"please set num number\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"%d %d %d %d %d %d %d %d %d %d %d %d %d\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [30 x i8] c"minimum is %d, maximum is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"length is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = 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
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
store i32 0, ptr %34, align 4
store i32 0, ptr %35, align 4
store i32 0, ptr %36, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %42
39: ; preds = %2
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%41 = call i32 @exit(i32 noundef 1) #3
unreachable
42: ; preds = %2
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 1
%45 = load ptr, ptr %44, align 8
%46 = call i32 @atoi(ptr noundef %45)
store i32 %46, ptr %10, align 4
br label %47
47: ; preds = %161, %42
%48 = call i64 @scanf(ptr noundef @.str.1, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
%49 = load i64, ptr @EOF, align 8
%50 = icmp ne i64 %48, %49
br i1 %50, label %51, label %.loopexit
51: ; preds = %47
%52 = load i32, ptr %6, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = load i32, ptr %12, align 4
store i32 %55, ptr %6, align 4
br label %56
56: ; preds = %54, %51
%57 = load i32, ptr %7, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, ptr %12, align 4
store i32 %60, ptr %7, align 4
br label %61
61: ; preds = %59, %56
%62 = load i32, ptr %12, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32, ptr %12, align 4
store i32 %66, ptr %6, align 4
br label %67
67: ; preds = %65, %61
%68 = load i32, ptr %12, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp sgt i32 %68, %69
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = load i32, ptr %12, align 4
store i32 %72, ptr %7, align 4
br label %73
73: ; preds = %71, %67
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %24, align 4
%78 = add nsw i32 %77, %76
store i32 %78, ptr %24, align 4
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %25, align 4
%81 = add nsw i32 %80, %79
store i32 %81, ptr %25, align 4
%82 = load i32, ptr %13, align 4
%83 = load i32, ptr %26, align 4
%84 = add nsw i32 %83, %82
store i32 %84, ptr %26, align 4
%85 = load i32, ptr %14, align 4
%86 = load i32, ptr %27, align 4
%87 = add nsw i32 %86, %85
store i32 %87, ptr %27, align 4
%88 = load i32, ptr %15, align 4
%89 = load i32, ptr %28, align 4
%90 = add nsw i32 %89, %88
store i32 %90, ptr %28, align 4
%91 = load i32, ptr %16, align 4
%92 = load i32, ptr %29, align 4
%93 = add nsw i32 %92, %91
store i32 %93, ptr %29, align 4
%94 = load i32, ptr %17, align 4
%95 = load i32, ptr %30, align 4
%96 = add nsw i32 %95, %94
store i32 %96, ptr %30, align 4
%97 = load i32, ptr %18, align 4
%98 = load i32, ptr %31, align 4
%99 = add nsw i32 %98, %97
store i32 %99, ptr %31, align 4
%100 = load i32, ptr %19, align 4
%101 = load i32, ptr %32, align 4
%102 = add nsw i32 %101, %100
store i32 %102, ptr %32, align 4
%103 = load i32, ptr %20, align 4
%104 = load i32, ptr %33, align 4
%105 = add nsw i32 %104, %103
store i32 %105, ptr %33, align 4
%106 = load i32, ptr %21, align 4
%107 = load i32, ptr %34, align 4
%108 = add nsw i32 %107, %106
store i32 %108, ptr %34, align 4
%109 = load i32, ptr %22, align 4
%110 = load i32, ptr %35, align 4
%111 = add nsw i32 %110, %109
store i32 %111, ptr %35, align 4
%112 = load i32, ptr %23, align 4
%113 = load i32, ptr %36, align 4
%114 = add nsw i32 %113, %112
store i32 %114, ptr %36, align 4
%115 = load i32, ptr %8, align 4
%116 = load i32, ptr %10, align 4
%117 = icmp eq i32 %115, %116
br i1 %117, label %118, label %161
118: ; preds = %73
%119 = load i32, ptr %24, align 4
%120 = load i32, ptr %10, align 4
%121 = sdiv i32 %119, %120
%122 = load i32, ptr %25, align 4
%123 = load i32, ptr %10, align 4
%124 = sdiv i32 %122, %123
%125 = load i32, ptr %26, align 4
%126 = load i32, ptr %10, align 4
%127 = sdiv i32 %125, %126
%128 = load i32, ptr %27, align 4
%129 = load i32, ptr %10, align 4
%130 = sdiv i32 %128, %129
%131 = load i32, ptr %28, align 4
%132 = load i32, ptr %10, align 4
%133 = sdiv i32 %131, %132
%134 = load i32, ptr %29, align 4
%135 = load i32, ptr %10, align 4
%136 = sdiv i32 %134, %135
%137 = load i32, ptr %30, align 4
%138 = load i32, ptr %10, align 4
%139 = sdiv i32 %137, %138
%140 = load i32, ptr %31, align 4
%141 = load i32, ptr %10, align 4
%142 = sdiv i32 %140, %141
%143 = load i32, ptr %32, align 4
%144 = load i32, ptr %10, align 4
%145 = sdiv i32 %143, %144
%146 = load i32, ptr %33, align 4
%147 = load i32, ptr %10, align 4
%148 = sdiv i32 %146, %147
%149 = load i32, ptr %34, align 4
%150 = load i32, ptr %10, align 4
%151 = sdiv i32 %149, %150
%152 = load i32, ptr %35, align 4
%153 = load i32, ptr %10, align 4
%154 = sdiv i32 %152, %153
%155 = load i32, ptr %36, align 4
%156 = load i32, ptr %10, align 4
%157 = sdiv i32 %155, %156
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %121, i32 noundef %124, i32 noundef %127, i32 noundef %130, i32 noundef %133, i32 noundef %136, i32 noundef %139, i32 noundef %142, i32 noundef %145, i32 noundef %148, i32 noundef %151, i32 noundef %154, i32 noundef %157)
store i32 0, ptr %8, align 4
store i32 0, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 0, ptr %26, align 4
store i32 0, ptr %27, align 4
store i32 0, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
store i32 0, ptr %34, align 4
store i32 0, ptr %35, align 4
store i32 0, ptr %36, align 4
%159 = load i32, ptr %9, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %9, align 4
br label %161
161: ; preds = %118, %73
%162 = load i32, ptr %9, align 4
%163 = icmp sgt i32 %162, 1000
br i1 %163, label %164, label %47, !llvm.loop !6
164: ; preds = %161
br label %165
.loopexit: ; preds = %47
br label %165
165: ; preds = %.loopexit, %164
%166 = load i32, ptr %6, align 4
%167 = load i32, ptr %7, align 4
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %166, i32 noundef %167)
%169 = load i32, ptr %9, align 4
%170 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %169)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp29tgf8jm.c'
source_filename = "/tmp/tmp29tgf8jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ORIG_RAX = dso_local global i32 0, align 4
@PTRACE_CONT = dso_local global i32 0, align 4
@PTRACE_EVENT_SECCOMP = dso_local global i32 0, align 4
@PTRACE_PEEKUSER = dso_local global i32 0, align 4
@SIGTRAP = dso_local global i32 0, align 4
@__NR_open = 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/tmp29tgf8jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ORIG_RAX = dso_local global i32 0, align 4
@PTRACE_CONT = dso_local global i32 0, align 4
@PTRACE_EVENT_SECCOMP = dso_local global i32 0, align 4
@PTRACE_PEEKUSER = dso_local global i32 0, align 4
@SIGTRAP = dso_local global i32 0, align 4
@__NR_open = 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/tmp3bo4fn05.c'
source_filename = "/tmp/tmp3bo4fn05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @soluc(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %3, align 4
%8 = load float, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = fmul float %8, %9
%11 = call float @llvm.fmuladd.f32(float %6, float %7, float %10)
%12 = call float @sqrt(float noundef %11)
store float %12, ptr %5, align 4
%13 = load float, ptr %5, align 4
ret float %13
}
declare float @sqrt(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/tmp3bo4fn05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @soluc(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %3, align 4
%8 = load float, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = fmul float %8, %9
%11 = call float @llvm.fmuladd.f32(float %6, float %7, float %10)
%12 = call float @sqrt(float noundef %11)
store float %12, ptr %5, align 4
%13 = load float, ptr %5, align 4
ret float %13
}
declare float @sqrt(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/tmpqwrejmub.c'
source_filename = "/tmp/tmpqwrejmub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello, world!\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store ptr @.str, ptr %6, align 8
br label %14
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %6, align 8
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %6, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1, ptr noundef %16)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqwrejmub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello, world!\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store ptr @.str, ptr %6, align 8
br label %14
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
store ptr %13, ptr %6, align 8
br label %14
14: ; preds = %10, %9
%15 = load i32, ptr @stdout, align 4
%16 = load ptr, ptr %6, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1, ptr noundef %16)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5bl558ye.c'
source_filename = "/tmp/tmp5bl558ye.c"
target datalayout = "e-m:e-p270: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/tmp5bl558ye.c"
target datalayout = "e-m:e-p270: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/tmp4t6aato2.c'
source_filename = "/tmp/tmp4t6aato2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sample_Mult(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %11, %12
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %10, i64 %15
%17 = load double, ptr %16, align 8
store double %17, ptr %8, align 8
%18 = call double (...) @ranf()
%19 = load double, ptr %8, align 8
%20 = fmul double %18, %19
store double %20, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %21
21: ; preds = %42, %3
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %6, align 4
%25 = sub nsw i32 %23, %24
%26 = icmp sle i32 %22, %25
br i1 %26, label %27, label %45
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %28, i64 %30
%32 = load double, ptr %31, align 8
%33 = load double, ptr %8, align 8
%34 = fsub double %33, %32
store double %34, ptr %8, align 8
%35 = load double, ptr %8, align 8
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %37, label %41
37: ; preds = %27
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %4, align 4
br label %47
41: ; preds = %27
br label %42
42: ; preds = %41
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %9, align 4
br label %21, !llvm.loop !6
45: ; preds = %21
%46 = load i32, ptr %6, align 4
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %45, %37
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare double @ranf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4t6aato2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sample_Mult(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = sub nsw i32 %11, %12
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %10, i64 %15
%17 = load double, ptr %16, align 8
store double %17, ptr %8, align 8
%18 = call double (...) @ranf()
%19 = load double, ptr %8, align 8
%20 = fmul double %18, %19
store double %20, ptr %8, align 8
store i32 0, ptr %9, align 4
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = sub nsw i32 %22, %23
%25 = icmp sle i32 %21, %24
br i1 %25, label %.lr.ph, label %49
.lr.ph: ; preds = %3
br label %26
26: ; preds = %.lr.ph, %41
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %27, i64 %29
%31 = load double, ptr %30, align 8
%32 = load double, ptr %8, align 8
%33 = fsub double %32, %31
store double %33, ptr %8, align 8
%34 = load double, ptr %8, align 8
%35 = fcmp olt double %34, 0.000000e+00
br i1 %35, label %36, label %40
36: ; preds = %26
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %37, %38
store i32 %39, ptr %4, align 4
br label %51
40: ; preds = %26
br label %41
41: ; preds = %40
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %6, align 4
%47 = sub nsw i32 %45, %46
%48 = icmp sle i32 %44, %47
br i1 %48, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %49
49: ; preds = %._crit_edge, %3
%50 = load i32, ptr %6, align 4
store i32 %50, ptr %4, align 4
br label %51
51: ; preds = %49, %36
%52 = load i32, ptr %4, align 4
ret i32 %52
}
declare double @ranf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpo9x7zq56.c'
source_filename = "/tmp/tmpo9x7zq56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Invalid command: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @invalid_command_msg(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)
ret void
}
declare i32 @printf(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/tmpo9x7zq56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Invalid command: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @invalid_command_msg(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)
ret void
}
declare i32 @printf(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/tmpguu9lbzk.c'
source_filename = "/tmp/tmpguu9lbzk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vifm_wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @wcslen(ptr noundef %6)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %4, align 8
%11 = call ptr @reallocarray(ptr noundef null, i64 noundef %10, i32 noundef 4)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %21
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call i32 @wcsncpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
%20 = load ptr, ptr %5, align 8
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %15, %14
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare i32 @wcslen(ptr noundef) #1
declare ptr @reallocarray(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @wcsncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpguu9lbzk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vifm_wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @wcslen(ptr noundef %6)
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
store i64 %9, ptr %4, align 8
%10 = load i64, ptr %4, align 8
%11 = call ptr @reallocarray(ptr noundef null, i64 noundef %10, i32 noundef 4)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %1
store ptr null, ptr %2, align 8
br label %21
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i64, ptr %4, align 8
%19 = call i32 @wcsncpy(ptr noundef %16, ptr noundef %17, i64 noundef %18)
%20 = load ptr, ptr %5, align 8
store ptr %20, ptr %2, align 8
br label %21
21: ; preds = %15, %14
%22 = load ptr, ptr %2, align 8
ret ptr %22
}
declare i32 @wcslen(ptr noundef) #1
declare ptr @reallocarray(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @wcsncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp13zyzns0.c'
source_filename = "/tmp/tmp13zyzns0.c"
target datalayout = "e-m:e-p270: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/tmp13zyzns0.c"
target datalayout = "e-m:e-p270: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/tmpr44gjigj.c'
source_filename = "/tmp/tmpr44gjigj.c"
target datalayout = "e-m:e-p270: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/tmpr44gjigj.c"
target datalayout = "e-m:e-p270: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/tmp2_9xhvmy.c'
source_filename = "/tmp/tmp2_9xhvmy.c"
target datalayout = "e-m:e-p270: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/tmp2_9xhvmy.c"
target datalayout = "e-m:e-p270: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/tmpalmf9tt1.c'
source_filename = "/tmp/tmpalmf9tt1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"clear\00", align 1
@.str.1 = private unnamed_addr constant [74 x i8] c"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\0A\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"\0A $ $ $$$$$$$ $ $$$$$$$ $$$$$$$$$ $$$ $$$ $$$$$$$ \0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c" $ $ $ $ $ $ $ $ $ $ $ $ \0A\00", align 1
@.str.4 = private unnamed_addr constant [73 x i8] c" $ $ $$$$$$$ $ $ $ $$$ $ $ $ $ $ $$$$$$$ \0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c" $ $$$ $ $ $ $ $ $$$ $ $ $$$ $ $ \0A\00", align 1
@.str.6 = private unnamed_addr constant [71 x i8] c" $ $ $ $ $ $ $\09 $ $ $ $ $ \0A\00", align 1
@.str.7 = private unnamed_addr constant [71 x i8] c" $$$$ $$$$ $$$$$$$ $$$$$$ $$$$$$$ $$$$$$$$$ $ $ $$$$$$$ \0A\00", align 1
@.str.8 = private unnamed_addr constant [75 x i8] c"\0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"\09\09\09RULES OF THE GAME:\0A\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c"---------------------------------------------------------------------\0A\00", align 1
@.str.12 = private unnamed_addr constant [75 x i8] c"1.Blackjack\EC\9D\80 52\EC\9E\A5\EC\9D\98 \EC\B9\B4\EB\93\9C\EB\A1\9C \EA\B2\8C\EC\9E\84\EC\9D\84 \ED\95\98\EB\8A\94 \EC\B9\B4\EB\93\9C\EA\B2\8C\EC\9E\84\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.13 = private unnamed_addr constant [91 x i8] c"2.\EC\B9\B4\EB\93\9C\EC\97\90 \EC\A0\81\ED\9E\8C \EC\88\AB\EC\9E\90\EC\9D\98 \ED\95\A9\EC\9D\B4 21(Black jack)\EC\97\90 \EA\B0\80\EA\B9\8C\EC\9A\B4 player\EC\9D\98 \EC\8A\B9\EB\A6\AC\EC\9E\85\EB\8B\88\EB\8B\A4\0A\00", align 1
@.str.14 = private unnamed_addr constant [74 x i8] c"3.\EA\B0\81\EA\B0\81\EC\9D\98 player\EA\B0\80 \EA\B0\80\EC\A7\80\EA\B3\A0 \EC\9E\88\EB\8A\94 \EC\B9\B4\EB\93\9C\EC\9D\98 \ED\95\A9\EC\9D\B4 21\EC\9D\84 \EB\84\98\EC\9C\BC\EB\A9\B4 \0A\00", align 1
@.str.15 = private unnamed_addr constant [64 x i8] c" bust\EB\90\98\EC\97\88\EB\8B\A4\EA\B3\A0 \ED\95\98\EB\A9\B0 \EA\B2\8C\EC\9E\84\EC\97\90\EC\84\9C \ED\8C\A8\EB\B0\B0\ED\95\98\EA\B2\8C \EB\90\A9\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.16 = private unnamed_addr constant [102 x i8] c"4.\EA\B8\B0\EB\B3\B8\EC\9C\BC\EB\A1\9C \EB\91\90\EC\9E\A5\EC\9D\98 \EC\B9\B4\EB\93\9C\EB\A5\BC \EB\B0\9B\EC\9C\BC\EB\A9\B0 player\EA\B0\80 \EC\9B\90\ED\95\A0 \EC\8B\9C \EC\B6\94\EA\B0\80\EB\A1\9C \EB\B0\9B\EC\9D\84 \EC\88\98 \EC\9E\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.17 = private unnamed_addr constant [66 x i8] c"5.A\EC\9D\98 \EA\B0\92\EC\9D\80 1\ED\98\B9\EC\9D\80 11\EB\A1\9C Player\EA\B0\80 \EC\84\A0\ED\83\9D\ED\95\A0\EC\88\98 \EC\9E\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c"6.Black jack \EA\B2\8C\EC\9E\84\EC\97\90\EC\84\9C \EB\AC\B8\EC\96\91\EC\9D\80 \ED\81\B0 \EC\9D\98\EB\AF\B8\EA\B0\80 \EC\97\86\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"-------\0A\00", align 1
@.str.20 = private unnamed_addr constant [10 x i8] c"| |\0A\00", align 1
@.str.21 = private unnamed_addr constant [11 x i8] c"| %c |\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @welcomeScreen() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%23 = call i32 (...) @mypause()
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mypause(...) #1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawCard(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
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" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpalmf9tt1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"clear\00", align 1
@.str.1 = private unnamed_addr constant [74 x i8] c"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\0A\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"\0A $ $ $$$$$$$ $ $$$$$$$ $$$$$$$$$ $$$ $$$ $$$$$$$ \0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c" $ $ $ $ $ $ $ $ $ $ $ $ \0A\00", align 1
@.str.4 = private unnamed_addr constant [73 x i8] c" $ $ $$$$$$$ $ $ $ $$$ $ $ $ $ $ $$$$$$$ \0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c" $ $$$ $ $ $ $ $ $$$ $ $ $$$ $ $ \0A\00", align 1
@.str.6 = private unnamed_addr constant [71 x i8] c" $ $ $ $ $ $ $\09 $ $ $ $ $ \0A\00", align 1
@.str.7 = private unnamed_addr constant [71 x i8] c" $$$$ $$$$ $$$$$$$ $$$$$$ $$$$$$$ $$$$$$$$$ $ $ $$$$$$$ \0A\00", align 1
@.str.8 = private unnamed_addr constant [75 x i8] c"\0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [23 x i8] c"\09\09\09RULES OF THE GAME:\0A\00", align 1
@.str.11 = private unnamed_addr constant [71 x i8] c"---------------------------------------------------------------------\0A\00", align 1
@.str.12 = private unnamed_addr constant [75 x i8] c"1.Blackjack\EC\9D\80 52\EC\9E\A5\EC\9D\98 \EC\B9\B4\EB\93\9C\EB\A1\9C \EA\B2\8C\EC\9E\84\EC\9D\84 \ED\95\98\EB\8A\94 \EC\B9\B4\EB\93\9C\EA\B2\8C\EC\9E\84\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.13 = private unnamed_addr constant [91 x i8] c"2.\EC\B9\B4\EB\93\9C\EC\97\90 \EC\A0\81\ED\9E\8C \EC\88\AB\EC\9E\90\EC\9D\98 \ED\95\A9\EC\9D\B4 21(Black jack)\EC\97\90 \EA\B0\80\EA\B9\8C\EC\9A\B4 player\EC\9D\98 \EC\8A\B9\EB\A6\AC\EC\9E\85\EB\8B\88\EB\8B\A4\0A\00", align 1
@.str.14 = private unnamed_addr constant [74 x i8] c"3.\EA\B0\81\EA\B0\81\EC\9D\98 player\EA\B0\80 \EA\B0\80\EC\A7\80\EA\B3\A0 \EC\9E\88\EB\8A\94 \EC\B9\B4\EB\93\9C\EC\9D\98 \ED\95\A9\EC\9D\B4 21\EC\9D\84 \EB\84\98\EC\9C\BC\EB\A9\B4 \0A\00", align 1
@.str.15 = private unnamed_addr constant [64 x i8] c" bust\EB\90\98\EC\97\88\EB\8B\A4\EA\B3\A0 \ED\95\98\EB\A9\B0 \EA\B2\8C\EC\9E\84\EC\97\90\EC\84\9C \ED\8C\A8\EB\B0\B0\ED\95\98\EA\B2\8C \EB\90\A9\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.16 = private unnamed_addr constant [102 x i8] c"4.\EA\B8\B0\EB\B3\B8\EC\9C\BC\EB\A1\9C \EB\91\90\EC\9E\A5\EC\9D\98 \EC\B9\B4\EB\93\9C\EB\A5\BC \EB\B0\9B\EC\9C\BC\EB\A9\B0 player\EA\B0\80 \EC\9B\90\ED\95\A0 \EC\8B\9C \EC\B6\94\EA\B0\80\EB\A1\9C \EB\B0\9B\EC\9D\84 \EC\88\98 \EC\9E\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.17 = private unnamed_addr constant [66 x i8] c"5.A\EC\9D\98 \EA\B0\92\EC\9D\80 1\ED\98\B9\EC\9D\80 11\EB\A1\9C Player\EA\B0\80 \EC\84\A0\ED\83\9D\ED\95\A0\EC\88\98 \EC\9E\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.18 = private unnamed_addr constant [65 x i8] c"6.Black jack \EA\B2\8C\EC\9E\84\EC\97\90\EC\84\9C \EB\AC\B8\EC\96\91\EC\9D\80 \ED\81\B0 \EC\9D\98\EB\AF\B8\EA\B0\80 \EC\97\86\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"-------\0A\00", align 1
@.str.20 = private unnamed_addr constant [10 x i8] c"| |\0A\00", align 1
@.str.21 = private unnamed_addr constant [11 x i8] c"| %c |\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @welcomeScreen() #0 {
%1 = call i32 @system(ptr noundef @.str)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%23 = call i32 (...) @mypause()
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mypause(...) #1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @drawCard(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
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" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3nntg6vh.c'
source_filename = "/tmp/tmp3nntg6vh.c"
target datalayout = "e-m:e-p270: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/tmp3nntg6vh.c"
target datalayout = "e-m:e-p270: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/tmpy__zn0ds.c'
source_filename = "/tmp/tmpy__zn0ds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_strings_short_to_long(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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = 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
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = call i64 @strncmp(ptr noundef %23, ptr noundef @.str, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %173
27: ; preds = %3
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strlen(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %61
34: ; preds = %27
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
%39 = call i64 @realloc(ptr noundef %36, i32 noundef %38)
%40 = inttoptr i64 %39 to ptr
%41 = load ptr, ptr %6, align 8
store ptr %40, ptr %41, align 8
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %42, align 8
%44 = call i32 @strlen(ptr noundef %43)
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
store i32 %45, ptr %10, align 4
br label %46
46: ; preds = %57, %34
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %60
50: ; preds = %46
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = getelementptr inbounds i8, ptr %55, i64 1
store i8 0, ptr %56, align 1
br label %57
57: ; preds = %50
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %10, align 4
br label %46, !llvm.loop !6
60: ; preds = %46
br label %61
61: ; preds = %60, %27
store i32 0, ptr %11, align 4
%62 = load i32, ptr %7, align 4
store i32 %62, ptr %12, align 4
br label %63
63: ; preds = %120, %61
%64 = load i32, ptr %12, align 4
%65 = icmp sgt i32 %64, 0
br i1 %65, label %66, label %123
66: ; preds = %63
%67 = load i32, ptr %8, align 4
%68 = load i32, ptr %7, align 4
%69 = sub nsw i32 %67, %68
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %69, %70
%72 = sub nsw i32 %71, 1
store i32 %72, ptr %13, align 4
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %12, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = getelementptr inbounds i8, ptr %76, i64 -1
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = sub nsw i32 %79, 48
store i32 %80, ptr %14, align 4
%81 = load i32, ptr %14, align 4
%82 = icmp sge i32 %81, 0
%83 = zext i1 %82 to i32
%84 = call i32 @assert(i32 noundef %83)
%85 = load i32, ptr %14, align 4
%86 = icmp sle i32 %85, 9
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 noundef %87)
%89 = load ptr, ptr %5, align 8
%90 = load i32, ptr %13, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = sub nsw i32 %94, 48
store i32 %95, ptr %15, align 4
%96 = load i32, ptr %15, align 4
%97 = icmp sge i32 %96, 0
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 noundef %98)
%100 = load i32, ptr %15, align 4
%101 = icmp sle i32 %100, 9
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 noundef %102)
%104 = load i32, ptr %14, align 4
%105 = load i32, ptr %15, align 4
%106 = add nsw i32 %104, %105
%107 = load i32, ptr %11, align 4
%108 = add nsw i32 %106, %107
store i32 %108, ptr %16, align 4
%109 = load i32, ptr %16, align 4
%110 = srem i32 %109, 10
%111 = add nsw i32 %110, 48
%112 = trunc i32 %111 to i8
%113 = load ptr, ptr %6, align 8
%114 = load ptr, ptr %113, align 8
%115 = load i32, ptr %13, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %114, i64 %116
store i8 %112, ptr %117, align 1
%118 = load i32, ptr %16, align 4
%119 = sdiv i32 %118, 10
store i32 %119, ptr %11, align 4
br label %120
120: ; preds = %66
%121 = load i32, ptr %12, align 4
%122 = add nsw i32 %121, -1
store i32 %122, ptr %12, align 4
br label %63, !llvm.loop !8
123: ; preds = %63
%124 = load i32, ptr %8, align 4
%125 = load i32, ptr %7, align 4
%126 = sub nsw i32 %124, %125
store i32 %126, ptr %12, align 4
br label %127
127: ; preds = %162, %123
%128 = load i32, ptr %12, align 4
%129 = icmp sgt i32 %128, 0
br i1 %129, label %130, label %165
130: ; preds = %127
%131 = load ptr, ptr %5, align 8
%132 = load i32, ptr %12, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %131, i64 %133
%135 = getelementptr inbounds i8, ptr %134, i64 -1
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = sub nsw i32 %137, 48
store i32 %138, ptr %17, align 4
%139 = load i32, ptr %17, align 4
%140 = icmp sge i32 %139, 0
%141 = zext i1 %140 to i32
%142 = call i32 @assert(i32 noundef %141)
%143 = load i32, ptr %17, align 4
%144 = icmp sle i32 %143, 9
%145 = zext i1 %144 to i32
%146 = call i32 @assert(i32 noundef %145)
%147 = load i32, ptr %17, align 4
%148 = load i32, ptr %11, align 4
%149 = add nsw i32 %147, %148
store i32 %149, ptr %18, align 4
%150 = load i32, ptr %18, align 4
%151 = srem i32 %150, 10
%152 = add nsw i32 %151, 48
%153 = trunc i32 %152 to i8
%154 = load ptr, ptr %6, align 8
%155 = load ptr, ptr %154, align 8
%156 = load i32, ptr %12, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i8, ptr %155, i64 %157
%159 = getelementptr inbounds i8, ptr %158, i64 -1
store i8 %153, ptr %159, align 1
%160 = load i32, ptr %18, align 4
%161 = sdiv i32 %160, 10
store i32 %161, ptr %11, align 4
br label %162
162: ; preds = %130
%163 = load i32, ptr %12, align 4
%164 = add nsw i32 %163, -1
store i32 %164, ptr %12, align 4
br label %127, !llvm.loop !9
165: ; preds = %127
%166 = load i32, ptr %11, align 4
%167 = icmp ne i32 %166, 0
br i1 %167, label %168, label %172
168: ; preds = %165
%169 = load i32, ptr %11, align 4
%170 = load ptr, ptr %6, align 8
%171 = call i32 @handle_carry(i32 noundef %169, ptr noundef %170)
br label %172
172: ; preds = %168, %165
br label %187
173: ; preds = %3
%174 = load ptr, ptr %6, align 8
%175 = load ptr, ptr %174, align 8
%176 = load i32, ptr %8, align 4
%177 = add nsw i32 %176, 1
%178 = call i64 @realloc(ptr noundef %175, i32 noundef %177)
%179 = inttoptr i64 %178 to ptr
%180 = load ptr, ptr %6, align 8
store ptr %179, ptr %180, align 8
%181 = load ptr, ptr %6, align 8
%182 = load ptr, ptr %181, align 8
%183 = load ptr, ptr %5, align 8
%184 = load i32, ptr %8, align 4
%185 = add nsw i32 %184, 1
%186 = call i32 @memcpy(ptr noundef %182, ptr noundef %183, i32 noundef %185)
br label %187
187: ; preds = %173, %172
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @handle_carry(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy__zn0ds.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @add_strings_short_to_long(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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = 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
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = call i64 @strncmp(ptr noundef %23, ptr noundef @.str, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %177
27: ; preds = %3
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strlen(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %63
34: ; preds = %27
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
%39 = call i64 @realloc(ptr noundef %36, i32 noundef %38)
%40 = inttoptr i64 %39 to ptr
%41 = load ptr, ptr %6, align 8
store ptr %40, ptr %41, align 8
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %42, align 8
%44 = call i32 @strlen(ptr noundef %43)
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
store i32 %45, ptr %10, align 4
%46 = load i32, ptr %10, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph, label %62
.lr.ph: ; preds = %34
br label %49
49: ; preds = %.lr.ph, %56
%50 = load ptr, ptr %6, align 8
%51 = load ptr, ptr %50, align 8
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = getelementptr inbounds i8, ptr %54, i64 1
store i8 0, ptr %55, align 1
br label %56
56: ; preds = %49
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = load i32, ptr %8, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %49, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %34
br label %63
63: ; preds = %62, %27
store i32 0, ptr %11, align 4
%64 = load i32, ptr %7, align 4
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = icmp sgt i32 %65, 0
br i1 %66, label %.lr.ph2, label %126
.lr.ph2: ; preds = %63
br label %67
67: ; preds = %.lr.ph2, %121
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %7, align 4
%70 = sub nsw i32 %68, %69
%71 = load i32, ptr %12, align 4
%72 = add nsw i32 %70, %71
%73 = sub nsw i32 %72, 1
store i32 %73, ptr %13, align 4
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %12, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = getelementptr inbounds i8, ptr %77, i64 -1
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = sub nsw i32 %80, 48
store i32 %81, ptr %14, align 4
%82 = load i32, ptr %14, align 4
%83 = icmp sge i32 %82, 0
%84 = zext i1 %83 to i32
%85 = call i32 @assert(i32 noundef %84)
%86 = load i32, ptr %14, align 4
%87 = icmp sle i32 %86, 9
%88 = zext i1 %87 to i32
%89 = call i32 @assert(i32 noundef %88)
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr %13, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = sub nsw i32 %95, 48
store i32 %96, ptr %15, align 4
%97 = load i32, ptr %15, align 4
%98 = icmp sge i32 %97, 0
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 noundef %99)
%101 = load i32, ptr %15, align 4
%102 = icmp sle i32 %101, 9
%103 = zext i1 %102 to i32
%104 = call i32 @assert(i32 noundef %103)
%105 = load i32, ptr %14, align 4
%106 = load i32, ptr %15, align 4
%107 = add nsw i32 %105, %106
%108 = load i32, ptr %11, align 4
%109 = add nsw i32 %107, %108
store i32 %109, ptr %16, align 4
%110 = load i32, ptr %16, align 4
%111 = srem i32 %110, 10
%112 = add nsw i32 %111, 48
%113 = trunc i32 %112 to i8
%114 = load ptr, ptr %6, align 8
%115 = load ptr, ptr %114, align 8
%116 = load i32, ptr %13, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
store i8 %113, ptr %118, align 1
%119 = load i32, ptr %16, align 4
%120 = sdiv i32 %119, 10
store i32 %120, ptr %11, align 4
br label %121
121: ; preds = %67
%122 = load i32, ptr %12, align 4
%123 = add nsw i32 %122, -1
store i32 %123, ptr %12, align 4
%124 = load i32, ptr %12, align 4
%125 = icmp sgt i32 %124, 0
br i1 %125, label %67, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %121
br label %126
126: ; preds = %._crit_edge3, %63
%127 = load i32, ptr %8, align 4
%128 = load i32, ptr %7, align 4
%129 = sub nsw i32 %127, %128
store i32 %129, ptr %12, align 4
%130 = load i32, ptr %12, align 4
%131 = icmp sgt i32 %130, 0
br i1 %131, label %.lr.ph5, label %169
.lr.ph5: ; preds = %126
br label %132
132: ; preds = %.lr.ph5, %164
%133 = load ptr, ptr %5, align 8
%134 = load i32, ptr %12, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %133, i64 %135
%137 = getelementptr inbounds i8, ptr %136, i64 -1
%138 = load i8, ptr %137, align 1
%139 = sext i8 %138 to i32
%140 = sub nsw i32 %139, 48
store i32 %140, ptr %17, align 4
%141 = load i32, ptr %17, align 4
%142 = icmp sge i32 %141, 0
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 noundef %143)
%145 = load i32, ptr %17, align 4
%146 = icmp sle i32 %145, 9
%147 = zext i1 %146 to i32
%148 = call i32 @assert(i32 noundef %147)
%149 = load i32, ptr %17, align 4
%150 = load i32, ptr %11, align 4
%151 = add nsw i32 %149, %150
store i32 %151, ptr %18, align 4
%152 = load i32, ptr %18, align 4
%153 = srem i32 %152, 10
%154 = add nsw i32 %153, 48
%155 = trunc i32 %154 to i8
%156 = load ptr, ptr %6, align 8
%157 = load ptr, ptr %156, align 8
%158 = load i32, ptr %12, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %157, i64 %159
%161 = getelementptr inbounds i8, ptr %160, i64 -1
store i8 %155, ptr %161, align 1
%162 = load i32, ptr %18, align 4
%163 = sdiv i32 %162, 10
store i32 %163, ptr %11, align 4
br label %164
164: ; preds = %132
%165 = load i32, ptr %12, align 4
%166 = add nsw i32 %165, -1
store i32 %166, ptr %12, align 4
%167 = load i32, ptr %12, align 4
%168 = icmp sgt i32 %167, 0
br i1 %168, label %132, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %164
br label %169
169: ; preds = %._crit_edge6, %126
%170 = load i32, ptr %11, align 4
%171 = icmp ne i32 %170, 0
br i1 %171, label %172, label %176
172: ; preds = %169
%173 = load i32, ptr %11, align 4
%174 = load ptr, ptr %6, align 8
%175 = call i32 @handle_carry(i32 noundef %173, ptr noundef %174)
br label %176
176: ; preds = %172, %169
br label %191
177: ; preds = %3
%178 = load ptr, ptr %6, align 8
%179 = load ptr, ptr %178, align 8
%180 = load i32, ptr %8, align 4
%181 = add nsw i32 %180, 1
%182 = call i64 @realloc(ptr noundef %179, i32 noundef %181)
%183 = inttoptr i64 %182 to ptr
%184 = load ptr, ptr %6, align 8
store ptr %183, ptr %184, align 8
%185 = load ptr, ptr %6, align 8
%186 = load ptr, ptr %185, align 8
%187 = load ptr, ptr %5, align 8
%188 = load i32, ptr %8, align 4
%189 = add nsw i32 %188, 1
%190 = call i32 @memcpy(ptr noundef %186, ptr noundef %187, i32 noundef %189)
br label %191
191: ; preds = %177, %176
ret i32 0
}
declare i32 @strlen(ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @handle_carry(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.