llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpn14_07r5.c'
source_filename = "/tmp/tmpn14_07r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.msg1 = private unnamed_addr constant [6 x i8] c"Hi, \0A\00", align 1
@__const.main.msg2 = private unnamed_addr constant [16 x i8] c"I am a genuis.\0A\00", align 16
@.str = private unnamed_addr constant [37 x i8] c"New file descriptor: fd1=%d, fd2=%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 [6 x i8], align 1
%9 = alloca [16 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.msg1, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.msg2, i64 16, i1 false)
%10 = call i32 @dup(i32 noundef 1)
store i32 %10, ptr %6, align 4
%11 = call i32 @dup2(i32 noundef 1, i32 noundef 9)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %6, align 4
%16 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef 6)
%18 = load i32, ptr %7, align 4
%19 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%20 = call i32 @write(i32 noundef %18, ptr noundef %19, i32 noundef 16)
%21 = load i32, ptr %6, align 4
%22 = call i32 @close(i32 noundef %21)
%23 = load i32, ptr %7, align 4
%24 = call i32 @close(i32 noundef %23)
%25 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
%26 = call i32 @write(i32 noundef 1, ptr noundef %25, i32 noundef 6)
%27 = call i32 @close(i32 noundef 1)
%28 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @write(i32 noundef 1, ptr noundef %28, i32 noundef 16)
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 @dup(i32 noundef) #2
declare i32 @dup2(i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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/tmpn14_07r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.msg1 = private unnamed_addr constant [6 x i8] c"Hi, \0A\00", align 1
@__const.main.msg2 = private unnamed_addr constant [16 x i8] c"I am a genuis.\0A\00", align 16
@.str = private unnamed_addr constant [37 x i8] c"New file descriptor: fd1=%d, fd2=%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 [6 x i8], align 1
%9 = alloca [16 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.msg1, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.msg2, i64 16, i1 false)
%10 = call i32 @dup(i32 noundef 1)
store i32 %10, ptr %6, align 4
%11 = call i32 @dup2(i32 noundef 1, i32 noundef 9)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %6, align 4
%16 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
%17 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef 6)
%18 = load i32, ptr %7, align 4
%19 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%20 = call i32 @write(i32 noundef %18, ptr noundef %19, i32 noundef 16)
%21 = load i32, ptr %6, align 4
%22 = call i32 @close(i32 noundef %21)
%23 = load i32, ptr %7, align 4
%24 = call i32 @close(i32 noundef %23)
%25 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
%26 = call i32 @write(i32 noundef 1, ptr noundef %25, i32 noundef 6)
%27 = call i32 @close(i32 noundef 1)
%28 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @write(i32 noundef 1, ptr noundef %28, i32 noundef 16)
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 @dup(i32 noundef) #2
declare i32 @dup2(i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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/tmpb8fxn3dv.c'
source_filename = "/tmp/tmpb8fxn3dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @op_nonce_recv(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 @just_check_status(ptr noundef %3)
ret i32 %4
}
declare i32 @just_check_status(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb8fxn3dv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @op_nonce_recv(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 @just_check_status(ptr noundef %3)
ret i32 %4
}
declare i32 @just_check_status(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwd0k9nzd.c'
source_filename = "/tmp/tmpwd0k9nzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_ALRM() #0 {
%1 = call i32 @handle_ALRM(i32 noundef 0)
ret i32 0
}
declare i32 @handle_ALRM(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/tmpwd0k9nzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_ALRM() #0 {
%1 = call i32 @handle_ALRM(i32 noundef 0)
ret i32 0
}
declare i32 @handle_ALRM(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/tmphat13p21.c'
source_filename = "/tmp/tmphat13p21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local float @softboundmpx_floorf(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 @llvm.floor.f32(float %3)
ret float %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmphat13p21.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nounwind sspstrong uwtable
define weak dso_local float @softboundmpx_floorf(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 @llvm.floor.f32(float %3)
ret float %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.floor.f32(float) #1
attributes #0 = { alwaysinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmp7ecvq7xv.c'
source_filename = "/tmp/tmp7ecvq7xv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inet6_option_space(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 2
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 7
%7 = and i32 %6, -8
%8 = call i32 @CMSG_SPACE(i32 noundef %7)
ret i32 %8
}
declare i32 @CMSG_SPACE(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/tmp7ecvq7xv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inet6_option_space(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 2
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 7
%7 = and i32 %6, -8
%8 = call i32 @CMSG_SPACE(i32 noundef %7)
ret i32 %8
}
declare i32 @CMSG_SPACE(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/tmpdfyie24c.c'
source_filename = "/tmp/tmpdfyie24c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlencmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %15, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %2
store i32 1, ptr %3, align 4
br label %28
22: ; preds = %2
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp eq i32 %23, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 0, i32 -1
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %22, %21
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdfyie24c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlencmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %7, align 8
%16 = load ptr, ptr %15, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %2
store i32 1, ptr %3, align 4
br label %28
22: ; preds = %2
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp eq i32 %23, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 0, i32 -1
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %22, %21
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd__1ejw4.c'
source_filename = "/tmp/tmpd__1ejw4.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"At least one byte please.\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Oh no that didn't malloc.\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"That worked.\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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1048576, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 2
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atol(ptr noundef %14)
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp slt i64 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %11
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %49
21: ; preds = %11
br label %22
22: ; preds = %21, %2
%23 = load i64, ptr %6, align 8
%24 = call ptr @malloc(i64 noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1)
br label %30
30: ; preds = %27, %22
store i64 0, ptr %8, align 8
br label %31
31: ; preds = %42, %30
%32 = load i64, ptr %8, align 8
%33 = load i64, ptr %6, align 8
%34 = icmp slt i64 %32, %33
br i1 %34, label %35, label %45
35: ; preds = %31
%36 = load i64, ptr %6, align 8
%37 = and i64 %36, 255
%38 = trunc i64 %37 to i8
%39 = load ptr, ptr %7, align 8
%40 = load i64, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
store i8 %38, ptr %41, align 1
br label %42
42: ; preds = %35
%43 = load i64, ptr %8, align 8
%44 = add nsw i64 %43, 1
store i64 %44, ptr %8, align 8
br label %31, !llvm.loop !6
45: ; preds = %31
%46 = load ptr, ptr %7, align 8
%47 = call i32 @free(ptr noundef %46)
%48 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %45, %18
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i64 @atol(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd__1ejw4.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"At least one byte please.\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Oh no that didn't malloc.\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"That worked.\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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 1048576, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 2
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atol(ptr noundef %14)
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp slt i64 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %11
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %51
21: ; preds = %11
br label %22
22: ; preds = %21, %2
%23 = load i64, ptr %6, align 8
%24 = call ptr @malloc(i64 noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1)
br label %30
30: ; preds = %27, %22
store i64 0, ptr %8, align 8
%31 = load i64, ptr %8, align 8
%32 = load i64, ptr %6, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %.lr.ph, label %47
.lr.ph: ; preds = %30
br label %34
34: ; preds = %.lr.ph, %41
%35 = load i64, ptr %6, align 8
%36 = and i64 %35, 255
%37 = trunc i64 %36 to i8
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %8, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
store i8 %37, ptr %40, align 1
br label %41
41: ; preds = %34
%42 = load i64, ptr %8, align 8
%43 = add nsw i64 %42, 1
store i64 %43, ptr %8, align 8
%44 = load i64, ptr %8, align 8
%45 = load i64, ptr %6, align 8
%46 = icmp slt i64 %44, %45
br i1 %46, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %30
%48 = load ptr, ptr %7, align 8
%49 = call i32 @free(ptr noundef %48)
%50 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %51
51: ; preds = %47, %18
%52 = load i32, ptr %3, align 4
ret i32 %52
}
declare i64 @atol(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp840o2mvv.c'
source_filename = "/tmp/tmp840o2mvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %36
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %36
17: ; preds = %14
%18 = load i64, ptr %6, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %36
20: ; preds = %17
store i64 0, ptr %9, align 8
br label %21
21: ; preds = %25, %20
%22 = load i64, ptr %9, align 8
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %35
25: ; preds = %21
%26 = load ptr, ptr %8, align 8
%27 = load i64, ptr %9, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %7, align 8
%31 = load i64, ptr %9, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 %29, ptr %32, align 1
%33 = load i64, ptr %9, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %9, align 8
br label %21, !llvm.loop !6
35: ; preds = %21
br label %36
36: ; preds = %35, %17, %14, %3
%37 = load ptr, ptr %4, align 8
ret ptr %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp840o2mvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %38
14: ; preds = %3
%15 = load ptr, ptr %5, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %38
17: ; preds = %14
%18 = load i64, ptr %6, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %38
20: ; preds = %17
store i64 0, ptr %9, align 8
%21 = load i64, ptr %9, align 8
%22 = load i64, ptr %6, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %.lr.ph, label %37
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %24
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %9, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %7, align 8
%30 = load i64, ptr %9, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
store i8 %28, ptr %31, align 1
%32 = load i64, ptr %9, align 8
%33 = add i64 %32, 1
store i64 %33, ptr %9, align 8
%34 = load i64, ptr %9, align 8
%35 = load i64, ptr %6, align 8
%36 = icmp ult i64 %34, %35
br i1 %36, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %37
37: ; preds = %._crit_edge, %20
br label %38
38: ; preds = %37, %17, %14, %3
%39 = load ptr, ptr %4, align 8
ret ptr %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpr7de31ft.c'
source_filename = "/tmp/tmpr7de31ft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @read_record(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = mul i64 %11, %12
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @fseek(ptr noundef %10, i64 noundef %13, i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %4
store i8 1, ptr %5, align 1
br label %26
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %7, align 8
%21 = load ptr, ptr %9, align 8
%22 = call i32 @fread(ptr noundef %19, i64 noundef %20, i32 noundef 1, ptr noundef %21)
%23 = icmp ne i32 %22, 1
br i1 %23, label %24, label %25
24: ; preds = %18
store i8 1, ptr %5, align 1
br label %26
25: ; preds = %18
store i8 0, ptr %5, align 1
br label %26
26: ; preds = %25, %24, %17
%27 = load i8, ptr %5, align 1
ret i8 %27
}
declare i64 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i64 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/tmpr7de31ft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @read_record(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = mul i64 %11, %12
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @fseek(ptr noundef %10, i64 noundef %13, i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %4
store i8 1, ptr %5, align 1
br label %26
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %7, align 8
%21 = load ptr, ptr %9, align 8
%22 = call i32 @fread(ptr noundef %19, i64 noundef %20, i32 noundef 1, ptr noundef %21)
%23 = icmp ne i32 %22, 1
br i1 %23, label %24, label %25
24: ; preds = %18
store i8 1, ptr %5, align 1
br label %26
25: ; preds = %18
store i8 0, ptr %5, align 1
br label %26
26: ; preds = %25, %24, %17
%27 = load i8, ptr %5, align 1
ret i8 %27
}
declare i64 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i64 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/tmpo4z5r1ie.c'
source_filename = "/tmp/tmpo4z5r1ie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atol(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strtol(ptr noundef %3, ptr noundef null, i32 noundef 10)
ret i64 %4
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo4z5r1ie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atol(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strtol(ptr noundef %3, ptr noundef null, i32 noundef 10)
ret i64 %4
}
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2h3j7qr2.c'
source_filename = "/tmp/tmp2h3j7qr2.c"
target datalayout = "e-m:e-p270: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/tmp2h3j7qr2.c"
target datalayout = "e-m:e-p270: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/tmpyndpy_dh.c'
source_filename = "/tmp/tmpyndpy_dh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \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 ptr @EasyClientName(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i8, align 1
%12 = alloca [128 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%14 = load i32, ptr %4, align 4
%15 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%16 = call i32 @ClientName(i32 noundef %14, ptr noundef %15, i32 noundef 128)
%17 = call i32 @strcpy(ptr noundef %13, i32 noundef %16)
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %32, %3
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %24, label %35
24: ; preds = %18
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = and i32 %29, 127
%31 = trunc i32 %30 to i8
store i8 %31, ptr %27, align 1
br label %32
32: ; preds = %24
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %18, !llvm.loop !6
35: ; preds = %18
%36 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%37 = call ptr @strstr(ptr noundef %36, ptr noundef @.str)
store ptr %37, ptr %10, align 8
br label %38
38: ; preds = %50, %35
%39 = load ptr, ptr %10, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %53
41: ; preds = %38
%42 = load ptr, ptr %10, align 8
%43 = load ptr, ptr %10, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 1
%45 = load ptr, ptr %10, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 1
%47 = call i64 @strlen(ptr noundef %46)
%48 = add nsw i64 %47, 1
%49 = call i32 @memmove(ptr noundef %42, ptr noundef %44, i64 noundef %48)
br label %50
50: ; preds = %41
%51 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%52 = call ptr @strstr(ptr noundef %51, ptr noundef @.str)
store ptr %52, ptr %10, align 8
br label %38, !llvm.loop !8
53: ; preds = %38
%54 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%55 = call ptr @strstr(ptr noundef %54, ptr noundef @.str.1)
store ptr %55, ptr %8, align 8
%56 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%57 = call ptr @strstr(ptr noundef %56, ptr noundef @.str.2)
store ptr %57, ptr %9, align 8
%58 = load ptr, ptr %8, align 8
%59 = icmp ne ptr %58, null
br i1 %59, label %60, label %86
60: ; preds = %53
%61 = load ptr, ptr %9, align 8
%62 = icmp ne ptr %61, null
br i1 %62, label %63, label %86
63: ; preds = %60
%64 = load ptr, ptr %9, align 8
%65 = load ptr, ptr %8, align 8
%66 = icmp ugt ptr %64, %65
br i1 %66, label %67, label %76
67: ; preds = %63
%68 = load ptr, ptr %8, align 8
%69 = load ptr, ptr %9, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 1
%71 = load ptr, ptr %9, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = call i64 @strlen(ptr noundef %72)
%74 = add nsw i64 %73, 1
%75 = call i32 @memmove(ptr noundef %68, ptr noundef %70, i64 noundef %74)
br label %85
76: ; preds = %63
%77 = load ptr, ptr %9, align 8
%78 = load ptr, ptr %8, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load ptr, ptr %8, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 1
%82 = call i64 @strlen(ptr noundef %81)
%83 = add nsw i64 %82, 1
%84 = call i32 @memmove(ptr noundef %77, ptr noundef %79, i64 noundef %83)
br label %85
85: ; preds = %76, %67
br label %86
86: ; preds = %85, %60, %53
%87 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%88 = load i8, ptr %87, align 16
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 109
br i1 %90, label %96, label %91
91: ; preds = %86
%92 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%93 = load i8, ptr %92, align 16
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 77
br i1 %95, label %96, label %115
96: ; preds = %91, %86
%97 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 1
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 114
br i1 %100, label %106, label %101
101: ; preds = %96
%102 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 1
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 82
br i1 %105, label %106, label %115
106: ; preds = %101, %96
%107 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%108 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%109 = getelementptr inbounds i8, ptr %108, i64 2
%110 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%111 = getelementptr inbounds i8, ptr %110, i64 2
%112 = call i64 @strlen(ptr noundef %111)
%113 = add nsw i64 %112, 1
%114 = call i32 @memmove(ptr noundef %107, ptr noundef %109, i64 noundef %113)
br label %115
115: ; preds = %106, %101, %91
%116 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
store ptr %116, ptr %10, align 8
br label %117
117: ; preds = %172, %115
%118 = load ptr, ptr %10, align 8
%119 = load i8, ptr %118, align 1
%120 = icmp ne i8 %119, 0
br i1 %120, label %121, label %173
121: ; preds = %117
%122 = load ptr, ptr %10, align 8
%123 = load i8, ptr %122, align 1
store i8 %123, ptr %11, align 1
%124 = load i8, ptr %11, align 1
%125 = sext i8 %124 to i32
%126 = icmp sge i32 %125, 97
br i1 %126, label %127, label %131
127: ; preds = %121
%128 = load i8, ptr %11, align 1
%129 = sext i8 %128 to i32
%130 = icmp sle i32 %129, 122
br i1 %130, label %143, label %131
131: ; preds = %127, %121
%132 = load i8, ptr %11, align 1
%133 = sext i8 %132 to i32
%134 = icmp sge i32 %133, 48
br i1 %134, label %135, label %139
135: ; preds = %131
%136 = load i8, ptr %11, align 1
%137 = sext i8 %136 to i32
%138 = icmp sle i32 %137, 57
br i1 %138, label %143, label %139
139: ; preds = %135, %131
%140 = load i8, ptr %11, align 1
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %141, 95
br i1 %142, label %143, label %146
143: ; preds = %139, %135, %127
%144 = load ptr, ptr %10, align 8
%145 = getelementptr inbounds i8, ptr %144, i32 1
store ptr %145, ptr %10, align 8
br label %172
146: ; preds = %139
%147 = load i8, ptr %11, align 1
%148 = sext i8 %147 to i32
%149 = icmp sge i32 %148, 65
br i1 %149, label %150, label %162
150: ; preds = %146
%151 = load i8, ptr %11, align 1
%152 = sext i8 %151 to i32
%153 = icmp sle i32 %152, 90
br i1 %153, label %154, label %162
154: ; preds = %150
%155 = load ptr, ptr %10, align 8
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = add nsw i32 %157, 32
%159 = trunc i32 %158 to i8
store i8 %159, ptr %155, align 1
%160 = load ptr, ptr %10, align 8
%161 = getelementptr inbounds i8, ptr %160, i32 1
store ptr %161, ptr %10, align 8
br label %171
162: ; preds = %150, %146
%163 = load ptr, ptr %10, align 8
%164 = load ptr, ptr %10, align 8
%165 = getelementptr inbounds i8, ptr %164, i64 1
%166 = load ptr, ptr %10, align 8
%167 = getelementptr inbounds i8, ptr %166, i64 1
%168 = call i64 @strlen(ptr noundef %167)
%169 = add nsw i64 %168, 1
%170 = call i32 @memmove(ptr noundef %163, ptr noundef %165, i64 noundef %169)
br label %171
171: ; preds = %162, %154
br label %172
172: ; preds = %171, %143
br label %117, !llvm.loop !9
173: ; preds = %117
%174 = load ptr, ptr %5, align 8
%175 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%176 = load i32, ptr %6, align 4
%177 = sub nsw i32 %176, 1
%178 = call i32 @strncpy(ptr noundef %174, ptr noundef %175, i32 noundef %177)
%179 = load ptr, ptr %5, align 8
%180 = load i32, ptr %6, align 4
%181 = sub nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %179, i64 %182
store i8 0, ptr %183, align 1
%184 = load ptr, ptr %5, align 8
ret ptr %184
}
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @ClientName(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyndpy_dh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \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 ptr @EasyClientName(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i8, align 1
%12 = alloca [128 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%14 = load i32, ptr %4, align 4
%15 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%16 = call i32 @ClientName(i32 noundef %14, ptr noundef %15, i32 noundef 128)
%17 = call i32 @strcpy(ptr noundef %13, i32 noundef %16)
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %.lr.ph, label %39
.lr.ph: ; preds = %3
br label %23
23: ; preds = %.lr.ph, %31
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = and i32 %28, 127
%30 = trunc i32 %29 to i8
store i8 %30, ptr %26, align 1
br label %31
31: ; preds = %23
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = icmp ne i8 %37, 0
br i1 %38, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %39
39: ; preds = %._crit_edge, %3
%40 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%41 = call ptr @strstr(ptr noundef %40, ptr noundef @.str)
store ptr %41, ptr %10, align 8
%42 = load ptr, ptr %10, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %.lr.ph2, label %58
.lr.ph2: ; preds = %39
%44 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
br label %45
45: ; preds = %.lr.ph2, %54
%46 = load ptr, ptr %10, align 8
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 1
%51 = call i64 @strlen(ptr noundef %50)
%52 = add nsw i64 %51, 1
%53 = call i32 @memmove(ptr noundef %46, ptr noundef %48, i64 noundef %52)
br label %54
54: ; preds = %45
%55 = call ptr @strstr(ptr noundef %44, ptr noundef @.str)
store ptr %55, ptr %10, align 8
%56 = load ptr, ptr %10, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %58
58: ; preds = %._crit_edge3, %39
%59 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%60 = call ptr @strstr(ptr noundef %59, ptr noundef @.str.1)
store ptr %60, ptr %8, align 8
%61 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%62 = call ptr @strstr(ptr noundef %61, ptr noundef @.str.2)
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %8, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %91
65: ; preds = %58
%66 = load ptr, ptr %9, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %91
68: ; preds = %65
%69 = load ptr, ptr %9, align 8
%70 = load ptr, ptr %8, align 8
%71 = icmp ugt ptr %69, %70
br i1 %71, label %72, label %81
72: ; preds = %68
%73 = load ptr, ptr %8, align 8
%74 = load ptr, ptr %9, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 1
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 1
%78 = call i64 @strlen(ptr noundef %77)
%79 = add nsw i64 %78, 1
%80 = call i32 @memmove(ptr noundef %73, ptr noundef %75, i64 noundef %79)
br label %90
81: ; preds = %68
%82 = load ptr, ptr %9, align 8
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = call i64 @strlen(ptr noundef %86)
%88 = add nsw i64 %87, 1
%89 = call i32 @memmove(ptr noundef %82, ptr noundef %84, i64 noundef %88)
br label %90
90: ; preds = %81, %72
br label %91
91: ; preds = %90, %65, %58
%92 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%93 = load i8, ptr %92, align 16
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 109
br i1 %95, label %101, label %96
96: ; preds = %91
%97 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%98 = load i8, ptr %97, align 16
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 77
br i1 %100, label %101, label %120
101: ; preds = %96, %91
%102 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 1
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 114
br i1 %105, label %111, label %106
106: ; preds = %101
%107 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 1
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 82
br i1 %110, label %111, label %120
111: ; preds = %106, %101
%112 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%113 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%114 = getelementptr inbounds i8, ptr %113, i64 2
%115 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%116 = getelementptr inbounds i8, ptr %115, i64 2
%117 = call i64 @strlen(ptr noundef %116)
%118 = add nsw i64 %117, 1
%119 = call i32 @memmove(ptr noundef %112, ptr noundef %114, i64 noundef %118)
br label %120
120: ; preds = %111, %106, %96
%121 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
store ptr %121, ptr %10, align 8
%122 = load ptr, ptr %10, align 8
%123 = load i8, ptr %122, align 1
%124 = icmp ne i8 %123, 0
br i1 %124, label %.lr.ph5, label %180
.lr.ph5: ; preds = %120
br label %125
125: ; preds = %.lr.ph5, %176
%126 = load ptr, ptr %10, align 8
%127 = load i8, ptr %126, align 1
store i8 %127, ptr %11, align 1
%128 = load i8, ptr %11, align 1
%129 = sext i8 %128 to i32
%130 = icmp sge i32 %129, 97
br i1 %130, label %131, label %135
131: ; preds = %125
%132 = load i8, ptr %11, align 1
%133 = sext i8 %132 to i32
%134 = icmp sle i32 %133, 122
br i1 %134, label %147, label %135
135: ; preds = %131, %125
%136 = load i8, ptr %11, align 1
%137 = sext i8 %136 to i32
%138 = icmp sge i32 %137, 48
br i1 %138, label %139, label %143
139: ; preds = %135
%140 = load i8, ptr %11, align 1
%141 = sext i8 %140 to i32
%142 = icmp sle i32 %141, 57
br i1 %142, label %147, label %143
143: ; preds = %139, %135
%144 = load i8, ptr %11, align 1
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 95
br i1 %146, label %147, label %150
147: ; preds = %143, %139, %131
%148 = load ptr, ptr %10, align 8
%149 = getelementptr inbounds i8, ptr %148, i32 1
store ptr %149, ptr %10, align 8
br label %176
150: ; preds = %143
%151 = load i8, ptr %11, align 1
%152 = sext i8 %151 to i32
%153 = icmp sge i32 %152, 65
br i1 %153, label %154, label %166
154: ; preds = %150
%155 = load i8, ptr %11, align 1
%156 = sext i8 %155 to i32
%157 = icmp sle i32 %156, 90
br i1 %157, label %158, label %166
158: ; preds = %154
%159 = load ptr, ptr %10, align 8
%160 = load i8, ptr %159, align 1
%161 = sext i8 %160 to i32
%162 = add nsw i32 %161, 32
%163 = trunc i32 %162 to i8
store i8 %163, ptr %159, align 1
%164 = load ptr, ptr %10, align 8
%165 = getelementptr inbounds i8, ptr %164, i32 1
store ptr %165, ptr %10, align 8
br label %175
166: ; preds = %154, %150
%167 = load ptr, ptr %10, align 8
%168 = load ptr, ptr %10, align 8
%169 = getelementptr inbounds i8, ptr %168, i64 1
%170 = load ptr, ptr %10, align 8
%171 = getelementptr inbounds i8, ptr %170, i64 1
%172 = call i64 @strlen(ptr noundef %171)
%173 = add nsw i64 %172, 1
%174 = call i32 @memmove(ptr noundef %167, ptr noundef %169, i64 noundef %173)
br label %175
175: ; preds = %166, %158
br label %176
176: ; preds = %175, %147
%177 = load ptr, ptr %10, align 8
%178 = load i8, ptr %177, align 1
%179 = icmp ne i8 %178, 0
br i1 %179, label %125, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %176
br label %180
180: ; preds = %._crit_edge6, %120
%181 = load ptr, ptr %5, align 8
%182 = getelementptr inbounds [128 x i8], ptr %12, i64 0, i64 0
%183 = load i32, ptr %6, align 4
%184 = sub nsw i32 %183, 1
%185 = call i32 @strncpy(ptr noundef %181, ptr noundef %182, i32 noundef %184)
%186 = load ptr, ptr %5, align 8
%187 = load i32, ptr %6, align 4
%188 = sub nsw i32 %187, 1
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds i8, ptr %186, i64 %189
store i8 0, ptr %190, align 1
%191 = load ptr, ptr %5, align 8
ret ptr %191
}
declare i32 @strcpy(ptr noundef, i32 noundef) #1
declare i32 @ClientName(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpepf10xwx.c'
source_filename = "/tmp/tmpepf10xwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort2f(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 ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %61, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %62
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %19, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %18, ptr noundef %24)
%26 = icmp sgt i64 %25, 0
br i1 %26, label %27, label %58
27: ; preds = %13
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %33, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
store ptr %38, ptr %42, align 8
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %44, i64 %47
store ptr %43, ptr %48, align 8
%49 = load i32, ptr %6, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %27
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %6, align 4
br label %57
54: ; preds = %27
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
br label %57
57: ; preds = %54, %51
br label %61
58: ; preds = %13
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %61
61: ; preds = %58, %57
br label %8, !llvm.loop !6
62: ; preds = %8
ret i32 0
}
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/tmpepf10xwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort2f(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 ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph, label %65
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %60
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %18, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %17, ptr noundef %23)
%25 = icmp sgt i64 %24, 0
br i1 %25, label %26, label %57
26: ; preds = %12
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %32, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
store ptr %37, ptr %41, align 8
%42 = load ptr, ptr %7, align 8
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %43, i64 %46
store ptr %42, ptr %47, align 8
%48 = load i32, ptr %6, align 4
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %26
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %6, align 4
br label %56
53: ; preds = %26
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
br label %56
56: ; preds = %53, %50
br label %60
57: ; preds = %12
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %60
60: ; preds = %57, %56
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %4, align 4
%63 = sub nsw i32 %62, 1
%64 = icmp slt i32 %61, %63
br i1 %64, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %2
ret i32 0
}
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/tmp0bebauim.c'
source_filename = "/tmp/tmp0bebauim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Signal %d re\C3\A7u\0A\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @traitement_signal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr @SIGCHLD, align 4
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @waitpid(i32 noundef -1, ptr noundef %3, i32 noundef 0)
br label %11
11: ; preds = %9, %1
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @waitpid(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/tmp0bebauim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Signal %d re\C3\A7u\0A\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @traitement_signal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr @SIGCHLD, align 4
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 @waitpid(i32 noundef -1, ptr noundef %3, i32 noundef 0)
br label %11
11: ; preds = %9, %1
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @waitpid(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/tmpjj5gzx5v.c'
source_filename = "/tmp/tmpjj5gzx5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rectiv(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @glRectiv(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @glRectiv(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/tmpjj5gzx5v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rectiv(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @glRectiv(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @glRectiv(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/tmpe_kbiqh6.c'
source_filename = "/tmp/tmpe_kbiqh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gauss_legendre_rule(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%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 double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
%31 = sdiv i32 %30, 2
%32 = call i64 @floor(i32 noundef %31)
%33 = trunc i64 %32 to i32
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
%37 = mul nsw i32 %34, %36
store i32 %37, ptr %10, align 4
store i32 1, ptr %7, align 4
br label %38
38: ; preds = %256, %3
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %42, label %259
42: ; preds = %38
%43 = load i32, ptr %7, align 4
%44 = mul nsw i32 4, %43
%45 = sub nsw i32 %44, 1
%46 = sitofp i32 %45 to double
%47 = fmul double %46, 0x400921FB54442D18
%48 = load i32, ptr %4, align 4
%49 = mul nsw i32 4, %48
%50 = add nsw i32 %49, 2
%51 = sitofp i32 %50 to double
%52 = fdiv double %47, %51
store double %52, ptr %11, align 8
%53 = load i32, ptr %4, align 4
%54 = sitofp i32 %53 to double
%55 = fdiv double 1.000000e+00, %54
%56 = fsub double 1.000000e+00, %55
%57 = load i32, ptr %4, align 4
%58 = sitofp i32 %57 to double
%59 = fmul double 8.000000e+00, %58
%60 = load i32, ptr %4, align 4
%61 = sitofp i32 %60 to double
%62 = fmul double %59, %61
%63 = fdiv double %56, %62
%64 = fsub double 1.000000e+00, %63
%65 = load double, ptr %11, align 8
%66 = call double @cos(double noundef %65) #4
%67 = fmul double %64, %66
store double %67, ptr %12, align 8
store double 1.000000e+00, ptr %13, align 8
%68 = load double, ptr %12, align 8
store double %68, ptr %16, align 8
store i32 2, ptr %8, align 4
br label %69
69: ; preds = %91, %42
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %4, align 4
%72 = icmp sle i32 %70, %71
br i1 %72, label %73, label %94
73: ; preds = %69
%74 = load double, ptr %12, align 8
%75 = load double, ptr %16, align 8
%76 = fmul double %74, %75
store double %76, ptr %14, align 8
%77 = load double, ptr %14, align 8
%78 = load double, ptr %13, align 8
%79 = fsub double %77, %78
%80 = load double, ptr %14, align 8
%81 = load double, ptr %13, align 8
%82 = fsub double %80, %81
%83 = load i32, ptr %8, align 4
%84 = sitofp i32 %83 to double
%85 = fdiv double %82, %84
%86 = fsub double %79, %85
%87 = load double, ptr %14, align 8
%88 = fadd double %86, %87
store double %88, ptr %15, align 8
%89 = load double, ptr %16, align 8
store double %89, ptr %13, align 8
%90 = load double, ptr %15, align 8
store double %90, ptr %16, align 8
br label %91
91: ; preds = %73
%92 = load i32, ptr %8, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %8, align 4
br label %69, !llvm.loop !6
94: ; preds = %69
%95 = load double, ptr %12, align 8
%96 = load double, ptr %12, align 8
%97 = fneg double %95
%98 = call double @llvm.fmuladd.f64(double %97, double %96, double 1.000000e+00)
store double %98, ptr %17, align 8
%99 = load i32, ptr %4, align 4
%100 = sitofp i32 %99 to double
%101 = load double, ptr %13, align 8
%102 = load double, ptr %12, align 8
%103 = load double, ptr %16, align 8
%104 = fneg double %102
%105 = call double @llvm.fmuladd.f64(double %104, double %103, double %101)
%106 = fmul double %100, %105
store double %106, ptr %18, align 8
%107 = load double, ptr %18, align 8
%108 = load double, ptr %17, align 8
%109 = fdiv double %107, %108
store double %109, ptr %19, align 8
%110 = load double, ptr %12, align 8
%111 = fmul double 2.000000e+00, %110
%112 = load double, ptr %19, align 8
%113 = load i32, ptr %10, align 4
%114 = sitofp i32 %113 to double
%115 = load double, ptr %16, align 8
%116 = fmul double %114, %115
%117 = fneg double %116
%118 = call double @llvm.fmuladd.f64(double %111, double %112, double %117)
%119 = load double, ptr %17, align 8
%120 = fdiv double %118, %119
store double %120, ptr %20, align 8
%121 = load double, ptr %12, align 8
%122 = fmul double 4.000000e+00, %121
%123 = load double, ptr %20, align 8
%124 = load i32, ptr %10, align 4
%125 = sitofp i32 %124 to double
%126 = fsub double 2.000000e+00, %125
%127 = load double, ptr %19, align 8
%128 = fmul double %126, %127
%129 = call double @llvm.fmuladd.f64(double %122, double %123, double %128)
%130 = load double, ptr %17, align 8
%131 = fdiv double %129, %130
store double %131, ptr %21, align 8
%132 = load double, ptr %12, align 8
%133 = fmul double 6.000000e+00, %132
%134 = load double, ptr %21, align 8
%135 = load i32, ptr %10, align 4
%136 = sitofp i32 %135 to double
%137 = fsub double 6.000000e+00, %136
%138 = load double, ptr %20, align 8
%139 = fmul double %137, %138
%140 = call double @llvm.fmuladd.f64(double %133, double %134, double %139)
%141 = load double, ptr %17, align 8
%142 = fdiv double %140, %141
store double %142, ptr %22, align 8
%143 = load double, ptr %16, align 8
%144 = load double, ptr %19, align 8
%145 = fdiv double %143, %144
store double %145, ptr %23, align 8
%146 = load double, ptr %20, align 8
%147 = load double, ptr %19, align 8
%148 = fdiv double %146, %147
store double %148, ptr %24, align 8
%149 = load double, ptr %23, align 8
%150 = fneg double %149
%151 = load double, ptr %23, align 8
%152 = fmul double 5.000000e-01, %151
%153 = load double, ptr %24, align 8
%154 = load double, ptr %23, align 8
%155 = load double, ptr %24, align 8
%156 = load double, ptr %24, align 8
%157 = load double, ptr %21, align 8
%158 = load double, ptr %19, align 8
%159 = fmul double 3.000000e+00, %158
%160 = fdiv double %157, %159
%161 = fneg double %160
%162 = call double @llvm.fmuladd.f64(double %155, double %156, double %161)
%163 = call double @llvm.fmuladd.f64(double %154, double %162, double %153)
%164 = call double @llvm.fmuladd.f64(double %152, double %163, double 1.000000e+00)
%165 = fmul double %150, %164
store double %165, ptr %25, align 8
%166 = load double, ptr %16, align 8
%167 = load double, ptr %25, align 8
%168 = load double, ptr %19, align 8
%169 = load double, ptr %25, align 8
%170 = fmul double 5.000000e-01, %169
%171 = load double, ptr %20, align 8
%172 = load double, ptr %25, align 8
%173 = fdiv double %172, 3.000000e+00
%174 = load double, ptr %21, align 8
%175 = load double, ptr %25, align 8
%176 = fmul double 2.500000e-01, %175
%177 = load double, ptr %22, align 8
%178 = call double @llvm.fmuladd.f64(double %176, double %177, double %174)
%179 = call double @llvm.fmuladd.f64(double %173, double %178, double %171)
%180 = call double @llvm.fmuladd.f64(double %170, double %179, double %168)
%181 = call double @llvm.fmuladd.f64(double %167, double %180, double %166)
store double %181, ptr %26, align 8
%182 = load double, ptr %19, align 8
%183 = load double, ptr %25, align 8
%184 = load double, ptr %20, align 8
%185 = load double, ptr %25, align 8
%186 = fmul double 5.000000e-01, %185
%187 = load double, ptr %21, align 8
%188 = load double, ptr %25, align 8
%189 = load double, ptr %22, align 8
%190 = fmul double %188, %189
%191 = fdiv double %190, 3.000000e+00
%192 = fadd double %187, %191
%193 = call double @llvm.fmuladd.f64(double %186, double %192, double %184)
%194 = call double @llvm.fmuladd.f64(double %183, double %193, double %182)
store double %194, ptr %27, align 8
%195 = load double, ptr %25, align 8
%196 = load double, ptr %26, align 8
%197 = load double, ptr %27, align 8
%198 = fdiv double %196, %197
%199 = fsub double %195, %198
store double %199, ptr %25, align 8
%200 = load double, ptr %12, align 8
%201 = load double, ptr %25, align 8
%202 = fadd double %200, %201
%203 = load ptr, ptr %5, align 8
%204 = load i32, ptr %7, align 4
%205 = sub nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, ptr %203, i64 %206
store double %202, ptr %207, align 8
%208 = load double, ptr %18, align 8
%209 = load double, ptr %25, align 8
%210 = load i32, ptr %10, align 4
%211 = sitofp i32 %210 to double
%212 = fmul double %209, %211
%213 = load double, ptr %16, align 8
%214 = load double, ptr %25, align 8
%215 = fmul double 5.000000e-01, %214
%216 = load double, ptr %19, align 8
%217 = load double, ptr %25, align 8
%218 = fdiv double %217, 3.000000e+00
%219 = load double, ptr %20, align 8
%220 = load double, ptr %25, align 8
%221 = fmul double 2.500000e-01, %220
%222 = load double, ptr %21, align 8
%223 = load double, ptr %25, align 8
%224 = fmul double 2.000000e-01, %223
%225 = load double, ptr %22, align 8
%226 = call double @llvm.fmuladd.f64(double %224, double %225, double %222)
%227 = call double @llvm.fmuladd.f64(double %221, double %226, double %219)
%228 = call double @llvm.fmuladd.f64(double %218, double %227, double %216)
%229 = call double @llvm.fmuladd.f64(double %215, double %228, double %213)
%230 = fneg double %212
%231 = call double @llvm.fmuladd.f64(double %230, double %229, double %208)
store double %231, ptr %28, align 8
%232 = load ptr, ptr %5, align 8
%233 = load i32, ptr %7, align 4
%234 = sub nsw i32 %233, 1
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, ptr %232, i64 %235
%237 = load double, ptr %236, align 8
%238 = load ptr, ptr %5, align 8
%239 = load i32, ptr %7, align 4
%240 = sub nsw i32 %239, 1
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double, ptr %238, i64 %241
%243 = load double, ptr %242, align 8
%244 = fneg double %237
%245 = call double @llvm.fmuladd.f64(double %244, double %243, double 1.000000e+00)
%246 = fmul double 2.000000e+00, %245
%247 = load double, ptr %28, align 8
%248 = load double, ptr %28, align 8
%249 = fmul double %247, %248
%250 = fdiv double %246, %249
%251 = load ptr, ptr %6, align 8
%252 = load i32, ptr %7, align 4
%253 = sub nsw i32 %252, 1
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds double, ptr %251, i64 %254
store double %250, ptr %255, align 8
br label %256
256: ; preds = %94
%257 = load i32, ptr %7, align 4
%258 = add nsw i32 %257, 1
store i32 %258, ptr %7, align 4
br label %38, !llvm.loop !8
259: ; preds = %38
%260 = load i32, ptr %9, align 4
%261 = load i32, ptr %9, align 4
%262 = add nsw i32 %260, %261
%263 = load i32, ptr %4, align 4
%264 = icmp eq i32 %262, %263
br i1 %264, label %265, label %311
265: ; preds = %259
store i32 1, ptr %7, align 4
br label %266
266: ; preds = %307, %265
%267 = load i32, ptr %7, align 4
%268 = load i32, ptr %9, align 4
%269 = icmp sle i32 %267, %268
br i1 %269, label %270, label %310
270: ; preds = %266
%271 = load ptr, ptr %5, align 8
%272 = load i32, ptr %7, align 4
%273 = sub nsw i32 %272, 1
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, ptr %271, i64 %274
%276 = load double, ptr %275, align 8
%277 = load ptr, ptr %5, align 8
%278 = load i32, ptr %4, align 4
%279 = load i32, ptr %7, align 4
%280 = sub nsw i32 %278, %279
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, ptr %277, i64 %281
store double %276, ptr %282, align 8
%283 = load ptr, ptr %5, align 8
%284 = load i32, ptr %7, align 4
%285 = sub nsw i32 %284, 1
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, ptr %283, i64 %286
%288 = load double, ptr %287, align 8
%289 = fneg double %288
%290 = load ptr, ptr %5, align 8
%291 = load i32, ptr %7, align 4
%292 = sub nsw i32 %291, 1
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds double, ptr %290, i64 %293
store double %289, ptr %294, align 8
%295 = load ptr, ptr %6, align 8
%296 = load i32, ptr %7, align 4
%297 = sub nsw i32 %296, 1
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds double, ptr %295, i64 %298
%300 = load double, ptr %299, align 8
%301 = load ptr, ptr %6, align 8
%302 = load i32, ptr %4, align 4
%303 = load i32, ptr %7, align 4
%304 = sub nsw i32 %302, %303
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds double, ptr %301, i64 %305
store double %300, ptr %306, align 8
br label %307
307: ; preds = %270
%308 = load i32, ptr %7, align 4
%309 = add nsw i32 %308, 1
store i32 %309, ptr %7, align 4
br label %266, !llvm.loop !9
310: ; preds = %266
br label %363
311: ; preds = %259
%312 = load ptr, ptr %5, align 8
%313 = load i32, ptr %9, align 4
%314 = sub nsw i32 %313, 1
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds double, ptr %312, i64 %315
store double 0.000000e+00, ptr %316, align 8
store i32 1, ptr %7, align 4
br label %317
317: ; preds = %359, %311
%318 = load i32, ptr %7, align 4
%319 = load i32, ptr %9, align 4
%320 = sub nsw i32 %319, 1
%321 = icmp sle i32 %318, %320
br i1 %321, label %322, label %362
322: ; preds = %317
%323 = load ptr, ptr %5, align 8
%324 = load i32, ptr %7, align 4
%325 = sub nsw i32 %324, 1
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %323, i64 %326
%328 = load double, ptr %327, align 8
%329 = load ptr, ptr %5, align 8
%330 = load i32, ptr %4, align 4
%331 = load i32, ptr %7, align 4
%332 = sub nsw i32 %330, %331
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds double, ptr %329, i64 %333
store double %328, ptr %334, align 8
%335 = load ptr, ptr %5, align 8
%336 = load i32, ptr %7, align 4
%337 = sub nsw i32 %336, 1
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, ptr %335, i64 %338
%340 = load double, ptr %339, align 8
%341 = fneg double %340
%342 = load ptr, ptr %5, align 8
%343 = load i32, ptr %7, align 4
%344 = sub nsw i32 %343, 1
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds double, ptr %342, i64 %345
store double %341, ptr %346, align 8
%347 = load ptr, ptr %6, align 8
%348 = load i32, ptr %7, align 4
%349 = sub nsw i32 %348, 1
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds double, ptr %347, i64 %350
%352 = load double, ptr %351, align 8
%353 = load ptr, ptr %6, align 8
%354 = load i32, ptr %4, align 4
%355 = load i32, ptr %7, align 4
%356 = sub nsw i32 %354, %355
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds double, ptr %353, i64 %357
store double %352, ptr %358, align 8
br label %359
359: ; preds = %322
%360 = load i32, ptr %7, align 4
%361 = add nsw i32 %360, 1
store i32 %361, ptr %7, align 4
br label %317, !llvm.loop !10
362: ; preds = %317
br label %363
363: ; preds = %362, %310
ret void
}
declare i64 @floor(i32 noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe_kbiqh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gauss_legendre_rule(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%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 double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
%31 = sdiv i32 %30, 2
%32 = call i64 @floor(i32 noundef %31)
%33 = trunc i64 %32 to i32
store i32 %33, ptr %9, align 4
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
%37 = mul nsw i32 %34, %36
store i32 %37, ptr %10, align 4
store i32 1, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %.lr.ph2, label %263
.lr.ph2: ; preds = %3
br label %41
41: ; preds = %.lr.ph2, %257
%42 = load i32, ptr %7, align 4
%43 = mul nsw i32 4, %42
%44 = sub nsw i32 %43, 1
%45 = sitofp i32 %44 to double
%46 = fmul double %45, 0x400921FB54442D18
%47 = load i32, ptr %4, align 4
%48 = mul nsw i32 4, %47
%49 = add nsw i32 %48, 2
%50 = sitofp i32 %49 to double
%51 = fdiv double %46, %50
store double %51, ptr %11, align 8
%52 = load i32, ptr %4, align 4
%53 = sitofp i32 %52 to double
%54 = fdiv double 1.000000e+00, %53
%55 = fsub double 1.000000e+00, %54
%56 = load i32, ptr %4, align 4
%57 = sitofp i32 %56 to double
%58 = fmul double 8.000000e+00, %57
%59 = load i32, ptr %4, align 4
%60 = sitofp i32 %59 to double
%61 = fmul double %58, %60
%62 = fdiv double %55, %61
%63 = fsub double 1.000000e+00, %62
%64 = load double, ptr %11, align 8
%65 = call double @cos(double noundef %64) #4
%66 = fmul double %63, %65
store double %66, ptr %12, align 8
store double 1.000000e+00, ptr %13, align 8
%67 = load double, ptr %12, align 8
store double %67, ptr %16, align 8
store i32 2, ptr %8, align 4
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp sle i32 %68, %69
br i1 %70, label %.lr.ph, label %95
.lr.ph: ; preds = %41
br label %71
71: ; preds = %.lr.ph, %89
%72 = load double, ptr %12, align 8
%73 = load double, ptr %16, align 8
%74 = fmul double %72, %73
store double %74, ptr %14, align 8
%75 = load double, ptr %14, align 8
%76 = load double, ptr %13, align 8
%77 = fsub double %75, %76
%78 = load double, ptr %14, align 8
%79 = load double, ptr %13, align 8
%80 = fsub double %78, %79
%81 = load i32, ptr %8, align 4
%82 = sitofp i32 %81 to double
%83 = fdiv double %80, %82
%84 = fsub double %77, %83
%85 = load double, ptr %14, align 8
%86 = fadd double %84, %85
store double %86, ptr %15, align 8
%87 = load double, ptr %16, align 8
store double %87, ptr %13, align 8
%88 = load double, ptr %15, align 8
store double %88, ptr %16, align 8
br label %89
89: ; preds = %71
%90 = load i32, ptr %8, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %8, align 4
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr %4, align 4
%94 = icmp sle i32 %92, %93
br i1 %94, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %41
%96 = load double, ptr %12, align 8
%97 = load double, ptr %12, align 8
%98 = fneg double %96
%99 = call double @llvm.fmuladd.f64(double %98, double %97, double 1.000000e+00)
store double %99, ptr %17, align 8
%100 = load i32, ptr %4, align 4
%101 = sitofp i32 %100 to double
%102 = load double, ptr %13, align 8
%103 = load double, ptr %12, align 8
%104 = load double, ptr %16, align 8
%105 = fneg double %103
%106 = call double @llvm.fmuladd.f64(double %105, double %104, double %102)
%107 = fmul double %101, %106
store double %107, ptr %18, align 8
%108 = load double, ptr %18, align 8
%109 = load double, ptr %17, align 8
%110 = fdiv double %108, %109
store double %110, ptr %19, align 8
%111 = load double, ptr %12, align 8
%112 = fmul double 2.000000e+00, %111
%113 = load double, ptr %19, align 8
%114 = load i32, ptr %10, align 4
%115 = sitofp i32 %114 to double
%116 = load double, ptr %16, align 8
%117 = fmul double %115, %116
%118 = fneg double %117
%119 = call double @llvm.fmuladd.f64(double %112, double %113, double %118)
%120 = load double, ptr %17, align 8
%121 = fdiv double %119, %120
store double %121, ptr %20, align 8
%122 = load double, ptr %12, align 8
%123 = fmul double 4.000000e+00, %122
%124 = load double, ptr %20, align 8
%125 = load i32, ptr %10, align 4
%126 = sitofp i32 %125 to double
%127 = fsub double 2.000000e+00, %126
%128 = load double, ptr %19, align 8
%129 = fmul double %127, %128
%130 = call double @llvm.fmuladd.f64(double %123, double %124, double %129)
%131 = load double, ptr %17, align 8
%132 = fdiv double %130, %131
store double %132, ptr %21, align 8
%133 = load double, ptr %12, align 8
%134 = fmul double 6.000000e+00, %133
%135 = load double, ptr %21, align 8
%136 = load i32, ptr %10, align 4
%137 = sitofp i32 %136 to double
%138 = fsub double 6.000000e+00, %137
%139 = load double, ptr %20, align 8
%140 = fmul double %138, %139
%141 = call double @llvm.fmuladd.f64(double %134, double %135, double %140)
%142 = load double, ptr %17, align 8
%143 = fdiv double %141, %142
store double %143, ptr %22, align 8
%144 = load double, ptr %16, align 8
%145 = load double, ptr %19, align 8
%146 = fdiv double %144, %145
store double %146, ptr %23, align 8
%147 = load double, ptr %20, align 8
%148 = load double, ptr %19, align 8
%149 = fdiv double %147, %148
store double %149, ptr %24, align 8
%150 = load double, ptr %23, align 8
%151 = fneg double %150
%152 = load double, ptr %23, align 8
%153 = fmul double 5.000000e-01, %152
%154 = load double, ptr %24, align 8
%155 = load double, ptr %23, align 8
%156 = load double, ptr %24, align 8
%157 = load double, ptr %24, align 8
%158 = load double, ptr %21, align 8
%159 = load double, ptr %19, align 8
%160 = fmul double 3.000000e+00, %159
%161 = fdiv double %158, %160
%162 = fneg double %161
%163 = call double @llvm.fmuladd.f64(double %156, double %157, double %162)
%164 = call double @llvm.fmuladd.f64(double %155, double %163, double %154)
%165 = call double @llvm.fmuladd.f64(double %153, double %164, double 1.000000e+00)
%166 = fmul double %151, %165
store double %166, ptr %25, align 8
%167 = load double, ptr %16, align 8
%168 = load double, ptr %25, align 8
%169 = load double, ptr %19, align 8
%170 = load double, ptr %25, align 8
%171 = fmul double 5.000000e-01, %170
%172 = load double, ptr %20, align 8
%173 = load double, ptr %25, align 8
%174 = fdiv double %173, 3.000000e+00
%175 = load double, ptr %21, align 8
%176 = load double, ptr %25, align 8
%177 = fmul double 2.500000e-01, %176
%178 = load double, ptr %22, align 8
%179 = call double @llvm.fmuladd.f64(double %177, double %178, double %175)
%180 = call double @llvm.fmuladd.f64(double %174, double %179, double %172)
%181 = call double @llvm.fmuladd.f64(double %171, double %180, double %169)
%182 = call double @llvm.fmuladd.f64(double %168, double %181, double %167)
store double %182, ptr %26, align 8
%183 = load double, ptr %19, align 8
%184 = load double, ptr %25, align 8
%185 = load double, ptr %20, align 8
%186 = load double, ptr %25, align 8
%187 = fmul double 5.000000e-01, %186
%188 = load double, ptr %21, align 8
%189 = load double, ptr %25, align 8
%190 = load double, ptr %22, align 8
%191 = fmul double %189, %190
%192 = fdiv double %191, 3.000000e+00
%193 = fadd double %188, %192
%194 = call double @llvm.fmuladd.f64(double %187, double %193, double %185)
%195 = call double @llvm.fmuladd.f64(double %184, double %194, double %183)
store double %195, ptr %27, align 8
%196 = load double, ptr %25, align 8
%197 = load double, ptr %26, align 8
%198 = load double, ptr %27, align 8
%199 = fdiv double %197, %198
%200 = fsub double %196, %199
store double %200, ptr %25, align 8
%201 = load double, ptr %12, align 8
%202 = load double, ptr %25, align 8
%203 = fadd double %201, %202
%204 = load ptr, ptr %5, align 8
%205 = load i32, ptr %7, align 4
%206 = sub nsw i32 %205, 1
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, ptr %204, i64 %207
store double %203, ptr %208, align 8
%209 = load double, ptr %18, align 8
%210 = load double, ptr %25, align 8
%211 = load i32, ptr %10, align 4
%212 = sitofp i32 %211 to double
%213 = fmul double %210, %212
%214 = load double, ptr %16, align 8
%215 = load double, ptr %25, align 8
%216 = fmul double 5.000000e-01, %215
%217 = load double, ptr %19, align 8
%218 = load double, ptr %25, align 8
%219 = fdiv double %218, 3.000000e+00
%220 = load double, ptr %20, align 8
%221 = load double, ptr %25, align 8
%222 = fmul double 2.500000e-01, %221
%223 = load double, ptr %21, align 8
%224 = load double, ptr %25, align 8
%225 = fmul double 2.000000e-01, %224
%226 = load double, ptr %22, align 8
%227 = call double @llvm.fmuladd.f64(double %225, double %226, double %223)
%228 = call double @llvm.fmuladd.f64(double %222, double %227, double %220)
%229 = call double @llvm.fmuladd.f64(double %219, double %228, double %217)
%230 = call double @llvm.fmuladd.f64(double %216, double %229, double %214)
%231 = fneg double %213
%232 = call double @llvm.fmuladd.f64(double %231, double %230, double %209)
store double %232, ptr %28, align 8
%233 = load ptr, ptr %5, align 8
%234 = load i32, ptr %7, align 4
%235 = sub nsw i32 %234, 1
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double, ptr %233, i64 %236
%238 = load double, ptr %237, align 8
%239 = load ptr, ptr %5, align 8
%240 = load i32, ptr %7, align 4
%241 = sub nsw i32 %240, 1
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, ptr %239, i64 %242
%244 = load double, ptr %243, align 8
%245 = fneg double %238
%246 = call double @llvm.fmuladd.f64(double %245, double %244, double 1.000000e+00)
%247 = fmul double 2.000000e+00, %246
%248 = load double, ptr %28, align 8
%249 = load double, ptr %28, align 8
%250 = fmul double %248, %249
%251 = fdiv double %247, %250
%252 = load ptr, ptr %6, align 8
%253 = load i32, ptr %7, align 4
%254 = sub nsw i32 %253, 1
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %252, i64 %255
store double %251, ptr %256, align 8
br label %257
257: ; preds = %95
%258 = load i32, ptr %7, align 4
%259 = add nsw i32 %258, 1
store i32 %259, ptr %7, align 4
%260 = load i32, ptr %7, align 4
%261 = load i32, ptr %9, align 4
%262 = icmp sle i32 %260, %261
br i1 %262, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %257
br label %263
263: ; preds = %._crit_edge3, %3
%264 = load i32, ptr %9, align 4
%265 = load i32, ptr %9, align 4
%266 = add nsw i32 %264, %265
%267 = load i32, ptr %4, align 4
%268 = icmp eq i32 %266, %267
br i1 %268, label %269, label %317
269: ; preds = %263
store i32 1, ptr %7, align 4
%270 = load i32, ptr %7, align 4
%271 = load i32, ptr %9, align 4
%272 = icmp sle i32 %270, %271
br i1 %272, label %.lr.ph8, label %316
.lr.ph8: ; preds = %269
br label %273
273: ; preds = %.lr.ph8, %310
%274 = load ptr, ptr %5, align 8
%275 = load i32, ptr %7, align 4
%276 = sub nsw i32 %275, 1
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double, ptr %274, i64 %277
%279 = load double, ptr %278, align 8
%280 = load ptr, ptr %5, align 8
%281 = load i32, ptr %4, align 4
%282 = load i32, ptr %7, align 4
%283 = sub nsw i32 %281, %282
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, ptr %280, i64 %284
store double %279, ptr %285, align 8
%286 = load ptr, ptr %5, align 8
%287 = load i32, ptr %7, align 4
%288 = sub nsw i32 %287, 1
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds double, ptr %286, i64 %289
%291 = load double, ptr %290, align 8
%292 = fneg double %291
%293 = load ptr, ptr %5, align 8
%294 = load i32, ptr %7, align 4
%295 = sub nsw i32 %294, 1
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds double, ptr %293, i64 %296
store double %292, ptr %297, align 8
%298 = load ptr, ptr %6, align 8
%299 = load i32, ptr %7, align 4
%300 = sub nsw i32 %299, 1
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds double, ptr %298, i64 %301
%303 = load double, ptr %302, align 8
%304 = load ptr, ptr %6, align 8
%305 = load i32, ptr %4, align 4
%306 = load i32, ptr %7, align 4
%307 = sub nsw i32 %305, %306
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds double, ptr %304, i64 %308
store double %303, ptr %309, align 8
br label %310
310: ; preds = %273
%311 = load i32, ptr %7, align 4
%312 = add nsw i32 %311, 1
store i32 %312, ptr %7, align 4
%313 = load i32, ptr %7, align 4
%314 = load i32, ptr %9, align 4
%315 = icmp sle i32 %313, %314
br i1 %315, label %273, label %._crit_edge9, !llvm.loop !9
._crit_edge9: ; preds = %310
br label %316
316: ; preds = %._crit_edge9, %269
br label %372
317: ; preds = %263
%318 = load ptr, ptr %5, align 8
%319 = load i32, ptr %9, align 4
%320 = sub nsw i32 %319, 1
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds double, ptr %318, i64 %321
store double 0.000000e+00, ptr %322, align 8
store i32 1, ptr %7, align 4
%323 = load i32, ptr %7, align 4
%324 = load i32, ptr %9, align 4
%325 = sub nsw i32 %324, 1
%326 = icmp sle i32 %323, %325
br i1 %326, label %.lr.ph5, label %371
.lr.ph5: ; preds = %317
br label %327
327: ; preds = %.lr.ph5, %364
%328 = load ptr, ptr %5, align 8
%329 = load i32, ptr %7, align 4
%330 = sub nsw i32 %329, 1
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, ptr %328, i64 %331
%333 = load double, ptr %332, align 8
%334 = load ptr, ptr %5, align 8
%335 = load i32, ptr %4, align 4
%336 = load i32, ptr %7, align 4
%337 = sub nsw i32 %335, %336
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, ptr %334, i64 %338
store double %333, ptr %339, align 8
%340 = load ptr, ptr %5, align 8
%341 = load i32, ptr %7, align 4
%342 = sub nsw i32 %341, 1
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds double, ptr %340, i64 %343
%345 = load double, ptr %344, align 8
%346 = fneg double %345
%347 = load ptr, ptr %5, align 8
%348 = load i32, ptr %7, align 4
%349 = sub nsw i32 %348, 1
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds double, ptr %347, i64 %350
store double %346, ptr %351, align 8
%352 = load ptr, ptr %6, align 8
%353 = load i32, ptr %7, align 4
%354 = sub nsw i32 %353, 1
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds double, ptr %352, i64 %355
%357 = load double, ptr %356, align 8
%358 = load ptr, ptr %6, align 8
%359 = load i32, ptr %4, align 4
%360 = load i32, ptr %7, align 4
%361 = sub nsw i32 %359, %360
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds double, ptr %358, i64 %362
store double %357, ptr %363, align 8
br label %364
364: ; preds = %327
%365 = load i32, ptr %7, align 4
%366 = add nsw i32 %365, 1
store i32 %366, ptr %7, align 4
%367 = load i32, ptr %7, align 4
%368 = load i32, ptr %9, align 4
%369 = sub nsw i32 %368, 1
%370 = icmp sle i32 %367, %369
br i1 %370, label %327, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %364
br label %371
371: ; preds = %._crit_edge6, %317
br label %372
372: ; preds = %371, %316
ret void
}
declare i64 @floor(i32 noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp6v0qr_vc.c'
source_filename = "/tmp/tmp6v0qr_vc.c"
target datalayout = "e-m:e-p270: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/tmp6v0qr_vc.c"
target datalayout = "e-m:e-p270: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/tmpv5y8txh1.c'
source_filename = "/tmp/tmpv5y8txh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"da-dk-g26.ctb\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"achena\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 ptr, align 8
%8 = alloca ptr, align 8
%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 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
%10 = call ptr @calloc(i32 noundef 8, i32 noundef 1)
store ptr %10, ptr %9, align 8
%11 = load ptr, ptr %9, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 48, ptr %12, align 1
%13 = load ptr, ptr %9, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
store i8 49, ptr %14, align 1
%15 = load ptr, ptr %9, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
store i8 48, ptr %16, align 1
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 3
store i8 48, ptr %18, align 1
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 4
store i8 49, ptr %20, align 1
%21 = load ptr, ptr %9, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 5
store i8 48, ptr %22, align 1
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %9, align 8
%26 = call i32 @check_hyphenation(ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %9, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 6
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 noundef %32)
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 7
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 noundef %39)
%41 = load ptr, ptr %9, align 8
%42 = call i32 @free(ptr noundef %41)
%43 = call i32 (...) @lou_free()
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @check_hyphenation(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @lou_free(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv5y8txh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"da-dk-g26.ctb\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"achena\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 ptr, align 8
%8 = alloca ptr, align 8
%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 0, ptr %6, align 4
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
%10 = call ptr @calloc(i32 noundef 8, i32 noundef 1)
store ptr %10, ptr %9, align 8
%11 = load ptr, ptr %9, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 48, ptr %12, align 1
%13 = load ptr, ptr %9, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
store i8 49, ptr %14, align 1
%15 = load ptr, ptr %9, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
store i8 48, ptr %16, align 1
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 3
store i8 48, ptr %18, align 1
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 4
store i8 49, ptr %20, align 1
%21 = load ptr, ptr %9, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 5
store i8 48, ptr %22, align 1
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %9, align 8
%26 = call i32 @check_hyphenation(ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %9, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 6
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 noundef %32)
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 7
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 noundef %39)
%41 = load ptr, ptr %9, align 8
%42 = call i32 @free(ptr noundef %41)
%43 = call i32 (...) @lou_free()
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @check_hyphenation(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @lou_free(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0owbvcm2.c'
source_filename = "/tmp/tmp0owbvcm2.c"
target datalayout = "e-m:e-p270: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/tmp0owbvcm2.c"
target datalayout = "e-m:e-p270: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/tmpnvzeds2p.c'
source_filename = "/tmp/tmpnvzeds2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = ptrtoint ptr %10 to i32
%12 = load i64, ptr %7, align 8
%13 = call i32 @__syscall(i32 noundef 0, i32 noundef %9, i32 noundef %11, i64 noundef %12, i32 noundef 0, i32 noundef 0, i32 noundef 0)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %3
%17 = load i32, ptr %8, align 4
%18 = sub nsw i32 0, %17
store i32 %18, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %21
19: ; preds = %3
%20 = load i32, ptr %8, align 4
store i32 %20, ptr %4, align 4
br label %21
21: ; preds = %19, %16
%22 = load i32, ptr %4, align 4
ret i32 %22
}
declare i32 @__syscall(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnvzeds2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = ptrtoint ptr %10 to i32
%12 = load i64, ptr %7, align 8
%13 = call i32 @__syscall(i32 noundef 0, i32 noundef %9, i32 noundef %11, i64 noundef %12, i32 noundef 0, i32 noundef 0, i32 noundef 0)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %3
%17 = load i32, ptr %8, align 4
%18 = sub nsw i32 0, %17
store i32 %18, ptr @errno, align 4
store i32 -1, ptr %4, align 4
br label %21
19: ; preds = %3
%20 = load i32, ptr %8, align 4
store i32 %20, ptr %4, align 4
br label %21
21: ; preds = %19, %16
%22 = load i32, ptr %4, align 4
ret i32 %22
}
declare i32 @__syscall(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp81evoaqf.c'
source_filename = "/tmp/tmp81evoaqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter # of hours worked:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Enter # hourly rate of the worker($00.00):\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"salary is $ %.2f\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %8
8: ; preds = %32, %0
%9 = load float, ptr %2, align 4
%10 = fcmp une float %9, -1.000000e+00
br i1 %10, label %11, label %38
11: ; preds = %8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%14 = load float, ptr %2, align 4
%15 = load float, ptr %3, align 4
%16 = fmul float %14, %15
store float %16, ptr %4, align 4
%17 = load float, ptr %2, align 4
%18 = fcmp ogt float %17, 4.000000e+01
br i1 %18, label %19, label %32
19: ; preds = %11
%20 = load float, ptr %2, align 4
%21 = fsub float %20, 4.000000e+01
%22 = fpext float %21 to double
store double %22, ptr %5, align 8
%23 = load float, ptr %3, align 4
%24 = fmul float 4.000000e+01, %23
%25 = fpext float %24 to double
%26 = load double, ptr %5, align 8
%27 = fmul double %26, 1.500000e+00
%28 = load float, ptr %3, align 4
%29 = fpext float %28 to double
%30 = call double @llvm.fmuladd.f64(double %27, double %29, double %25)
%31 = fptrunc double %30 to float
store float %31, ptr %4, align 4
br label %32
32: ; preds = %19, %11
%33 = load float, ptr %4, align 4
%34 = fpext float %33 to double
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%37 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %8, !llvm.loop !6
38: ; preds = %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp81evoaqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Enter # of hours worked:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Enter # hourly rate of the worker($00.00):\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"salary is $ %.2f\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load float, ptr %2, align 4
%9 = fcmp une float %8, -1.000000e+00
br i1 %9, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %31
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%13 = load float, ptr %2, align 4
%14 = load float, ptr %3, align 4
%15 = fmul float %13, %14
store float %15, ptr %4, align 4
%16 = load float, ptr %2, align 4
%17 = fcmp ogt float %16, 4.000000e+01
br i1 %17, label %18, label %31
18: ; preds = %10
%19 = load float, ptr %2, align 4
%20 = fsub float %19, 4.000000e+01
%21 = fpext float %20 to double
store double %21, ptr %5, align 8
%22 = load float, ptr %3, align 4
%23 = fmul float 4.000000e+01, %22
%24 = fpext float %23 to double
%25 = load double, ptr %5, align 8
%26 = fmul double %25, 1.500000e+00
%27 = load float, ptr %3, align 4
%28 = fpext float %27 to double
%29 = call double @llvm.fmuladd.f64(double %26, double %28, double %24)
%30 = fptrunc double %29 to float
store float %30, ptr %4, align 4
br label %31
31: ; preds = %18, %10
%32 = load float, ptr %4, align 4
%33 = fpext float %32 to double
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%37 = load float, ptr %2, align 4
%38 = fcmp une float %37, -1.000000e+00
br i1 %38, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %39
39: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgm4mhx6y.c'
source_filename = "/tmp/tmpgm4mhx6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @omp_destroy_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgm4mhx6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @omp_destroy_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1m6hxwdx.c'
source_filename = "/tmp/tmp1m6hxwdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hgetr8(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [82 x i8], align 16
%12 = alloca [82 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds [82 x i8], ptr %12, i64 0, i64 0
%16 = call ptr @hgetc(ptr noundef %13, ptr noundef %14, ptr noundef %15)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %69
19: ; preds = %3
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 35
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %25, %19
%29 = load ptr, ptr %8, align 8
%30 = call i32 @strlen(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sgt i32 %31, 81
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%35 = load ptr, ptr %8, align 8
%36 = call i32 @strncpy(ptr noundef %34, ptr noundef %35, i32 noundef 81)
%37 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 81
store i8 0, ptr %37, align 1
br label %42
38: ; preds = %28
%39 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%40 = load ptr, ptr %8, align 8
%41 = call i32 @strcpy(ptr noundef %39, ptr noundef %40)
br label %42
42: ; preds = %38, %33
%43 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%44 = call i32 @isnum(ptr noundef %43)
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %65
46: ; preds = %42
%47 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%48 = call ptr @strchr(ptr noundef %47, i8 noundef signext 68)
store ptr %48, ptr %10, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = load ptr, ptr %10, align 8
store i8 101, ptr %51, align 1
br label %52
52: ; preds = %50, %46
%53 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%54 = call ptr @strchr(ptr noundef %53, i8 noundef signext 100)
store ptr %54, ptr %10, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = load ptr, ptr %10, align 8
store i8 101, ptr %57, align 1
br label %58
58: ; preds = %56, %52
%59 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%60 = call ptr @strchr(ptr noundef %59, i8 noundef signext 69)
store ptr %60, ptr %10, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load ptr, ptr %10, align 8
store i8 101, ptr %63, align 1
br label %64
64: ; preds = %62, %58
br label %65
65: ; preds = %64, %42
%66 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%67 = call double @atof(ptr noundef %66)
%68 = load ptr, ptr %7, align 8
store double %67, ptr %68, align 8
store i32 1, ptr %4, align 4
br label %70
69: ; preds = %3
store i32 0, ptr %4, align 4
br label %70
70: ; preds = %69, %65
%71 = load i32, ptr %4, align 4
ret i32 %71
}
declare ptr @hgetc(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @isnum(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1m6hxwdx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hgetr8(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca [82 x i8], align 16
%12 = alloca [82 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds [82 x i8], ptr %12, i64 0, i64 0
%16 = call ptr @hgetc(ptr noundef %13, ptr noundef %14, ptr noundef %15)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %69
19: ; preds = %3
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 35
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %25, %19
%29 = load ptr, ptr %8, align 8
%30 = call i32 @strlen(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sgt i32 %31, 81
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%35 = load ptr, ptr %8, align 8
%36 = call i32 @strncpy(ptr noundef %34, ptr noundef %35, i32 noundef 81)
%37 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 81
store i8 0, ptr %37, align 1
br label %42
38: ; preds = %28
%39 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%40 = load ptr, ptr %8, align 8
%41 = call i32 @strcpy(ptr noundef %39, ptr noundef %40)
br label %42
42: ; preds = %38, %33
%43 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%44 = call i32 @isnum(ptr noundef %43)
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %65
46: ; preds = %42
%47 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%48 = call ptr @strchr(ptr noundef %47, i8 noundef signext 68)
store ptr %48, ptr %10, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = load ptr, ptr %10, align 8
store i8 101, ptr %51, align 1
br label %52
52: ; preds = %50, %46
%53 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%54 = call ptr @strchr(ptr noundef %53, i8 noundef signext 100)
store ptr %54, ptr %10, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = load ptr, ptr %10, align 8
store i8 101, ptr %57, align 1
br label %58
58: ; preds = %56, %52
%59 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%60 = call ptr @strchr(ptr noundef %59, i8 noundef signext 69)
store ptr %60, ptr %10, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load ptr, ptr %10, align 8
store i8 101, ptr %63, align 1
br label %64
64: ; preds = %62, %58
br label %65
65: ; preds = %64, %42
%66 = getelementptr inbounds [82 x i8], ptr %11, i64 0, i64 0
%67 = call double @atof(ptr noundef %66)
%68 = load ptr, ptr %7, align 8
store double %67, ptr %68, align 8
store i32 1, ptr %4, align 4
br label %70
69: ; preds = %3
store i32 0, ptr %4, align 4
br label %70
70: ; preds = %69, %65
%71 = load i32, ptr %4, align 4
ret i32 %71
}
declare ptr @hgetc(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @isnum(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqeul_52w.c'
source_filename = "/tmp/tmpqeul_52w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"<span>\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"</span>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @HTMLGenSpan(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @concat(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret ptr %4
}
declare ptr @concat(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/tmpqeul_52w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"<span>\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"</span>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @HTMLGenSpan(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call ptr @concat(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret ptr %4
}
declare ptr @concat(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/tmp7vwncodl.c'
source_filename = "/tmp/tmp7vwncodl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @knot_strlcat(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 ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = 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
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
br label %15
15: ; preds = %26, %3
%16 = load i64, ptr %10, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %10, align 8
%18 = icmp ne i64 %16, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
br label %15, !llvm.loop !6
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %5, align 8
%32 = ptrtoint ptr %30 to i64
%33 = ptrtoint ptr %31 to i64
%34 = sub i64 %32, %33
store i64 %34, ptr %11, align 8
%35 = load i64, ptr %7, align 8
%36 = load i64, ptr %11, align 8
%37 = sub i64 %35, %36
store i64 %37, ptr %10, align 8
%38 = load i64, ptr %10, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = load ptr, ptr %9, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add i64 %41, %43
store i64 %44, ptr %4, align 8
br label %73
45: ; preds = %29
br label %46
46: ; preds = %61, %45
%47 = load ptr, ptr %9, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %64
51: ; preds = %46
%52 = load i64, ptr %10, align 8
%53 = icmp ne i64 %52, 1
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = load ptr, ptr %9, align 8
%56 = load i8, ptr %55, align 1
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %8, align 8
store i8 %56, ptr %57, align 1
%59 = load i64, ptr %10, align 8
%60 = add i64 %59, -1
store i64 %60, ptr %10, align 8
br label %61
61: ; preds = %54, %51
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %9, align 8
br label %46, !llvm.loop !8
64: ; preds = %46
%65 = load ptr, ptr %8, align 8
store i8 0, ptr %65, align 1
%66 = load i64, ptr %11, align 8
%67 = load ptr, ptr %9, align 8
%68 = load ptr, ptr %6, align 8
%69 = ptrtoint ptr %67 to i64
%70 = ptrtoint ptr %68 to i64
%71 = sub i64 %69, %70
%72 = add i64 %66, %71
store i64 %72, ptr %4, align 8
br label %73
73: ; preds = %64, %40
%74 = load i64, ptr %4, align 8
ret i64 %74
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7vwncodl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @knot_strlcat(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 ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = 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
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
br label %15
15: ; preds = %26, %3
%16 = load i64, ptr %10, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %10, align 8
%18 = icmp ne i64 %16, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
br label %15, !llvm.loop !6
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %5, align 8
%32 = ptrtoint ptr %30 to i64
%33 = ptrtoint ptr %31 to i64
%34 = sub i64 %32, %33
store i64 %34, ptr %11, align 8
%35 = load i64, ptr %7, align 8
%36 = load i64, ptr %11, align 8
%37 = sub i64 %35, %36
store i64 %37, ptr %10, align 8
%38 = load i64, ptr %10, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = load ptr, ptr %9, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add i64 %41, %43
store i64 %44, ptr %4, align 8
br label %76
45: ; preds = %29
%46 = load ptr, ptr %9, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %.lr.ph, label %67
.lr.ph: ; preds = %45
br label %50
50: ; preds = %.lr.ph, %60
%51 = load i64, ptr %10, align 8
%52 = icmp ne i64 %51, 1
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = load ptr, ptr %9, align 8
%55 = load i8, ptr %54, align 1
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %8, align 8
store i8 %55, ptr %56, align 1
%58 = load i64, ptr %10, align 8
%59 = add i64 %58, -1
store i64 %59, ptr %10, align 8
br label %60
60: ; preds = %53, %50
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %50, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %60
br label %67
67: ; preds = %._crit_edge, %45
%68 = load ptr, ptr %8, align 8
store i8 0, ptr %68, align 1
%69 = load i64, ptr %11, align 8
%70 = load ptr, ptr %9, align 8
%71 = load ptr, ptr %6, align 8
%72 = ptrtoint ptr %70 to i64
%73 = ptrtoint ptr %71 to i64
%74 = sub i64 %72, %73
%75 = add i64 %69, %74
store i64 %75, ptr %4, align 8
br label %76
76: ; preds = %67, %40
%77 = load i64, ptr %4, align 8
ret i64 %77
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdzydveaf.c'
source_filename = "/tmp/tmpdzydveaf.c"
target datalayout = "e-m:e-p270: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/tmpdzydveaf.c"
target datalayout = "e-m:e-p270: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/tmpwde34gip.c'
source_filename = "/tmp/tmpwde34gip.c"
target datalayout = "e-m:e-p270: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/tmpwde34gip.c"
target datalayout = "e-m:e-p270: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/tmpnb6e1prv.c'
source_filename = "/tmp/tmpnb6e1prv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [205 x i8] c"Example usages:\0A\0ARunning a simulation:\0A lawn_dart -m 100 -d 42 -c 0.8 -w 2 -M Estes_B6\0A\0AListing available motors (-l, --list_motors):\0A lawn_dart -l\0A\0AGetting this help (-h, --help):\0A lawn_dart -h\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
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/tmpnb6e1prv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [205 x i8] c"Example usages:\0A\0ARunning a simulation:\0A lawn_dart -m 100 -d 42 -c 0.8 -w 2 -M Estes_B6\0A\0AListing available motors (-l, --list_motors):\0A lawn_dart -l\0A\0AGetting this help (-h, --help):\0A lawn_dart -h\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @puts(ptr noundef @.str)
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/tmpv3ypinbr.c'
source_filename = "/tmp/tmpv3ypinbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"10 * 57 = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"57 * 10 = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"100 * 100 = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"3 * 4 = %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"-4 * 3 = %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"-4 * -3 = %i\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"0 * 0 = %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"42 * 42 = %i\0A\00", align 1
@.str.8 = private unnamed_addr constant [46 x i8] c"Your turn, enter two [not-so-big] integers: \0A\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.10 = private unnamed_addr constant [14 x i8] c"%i * %i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @mul(i32 noundef 10, i32 noundef 57)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @mul(i32 noundef 57, i32 noundef 10)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
%8 = call i32 @mul(i32 noundef 100, i32 noundef 100)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = call i32 @mul(i32 noundef 3, i32 noundef 4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %10)
%12 = call i32 @mul(i32 noundef -4, i32 noundef 3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %12)
%14 = call i32 @mul(i32 noundef -4, i32 noundef -3)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %14)
%16 = call i32 @mul(i32 noundef 0, i32 noundef 0)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %16)
%18 = call i32 @mul(i32 noundef 42, i32 noundef 42)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%21 = call i32 @scanf(ptr noundef @.str.9, ptr noundef %2, ptr noundef %3)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = call i32 @mul(i32 noundef %24, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %22, i32 noundef %23, i32 noundef %26)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mul(i32 noundef, i32 noundef) #1
declare i32 @scanf(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/tmpv3ypinbr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"10 * 57 = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"57 * 10 = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"100 * 100 = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"3 * 4 = %i\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"-4 * 3 = %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"-4 * -3 = %i\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"0 * 0 = %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"42 * 42 = %i\0A\00", align 1
@.str.8 = private unnamed_addr constant [46 x i8] c"Your turn, enter two [not-so-big] integers: \0A\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"%i %i\00", align 1
@.str.10 = private unnamed_addr constant [14 x i8] c"%i * %i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @mul(i32 noundef 10, i32 noundef 57)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @mul(i32 noundef 57, i32 noundef 10)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
%8 = call i32 @mul(i32 noundef 100, i32 noundef 100)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = call i32 @mul(i32 noundef 3, i32 noundef 4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %10)
%12 = call i32 @mul(i32 noundef -4, i32 noundef 3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %12)
%14 = call i32 @mul(i32 noundef -4, i32 noundef -3)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %14)
%16 = call i32 @mul(i32 noundef 0, i32 noundef 0)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %16)
%18 = call i32 @mul(i32 noundef 42, i32 noundef 42)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%21 = call i32 @scanf(ptr noundef @.str.9, ptr noundef %2, ptr noundef %3)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = call i32 @mul(i32 noundef %24, i32 noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %22, i32 noundef %23, i32 noundef %26)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @mul(i32 noundef, i32 noundef) #1
declare i32 @scanf(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/tmpxo6f5wbs.c'
source_filename = "/tmp/tmpxo6f5wbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_desaturateSSE(ptr noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i8 %3, ptr %8, align 1
%9 = load i8, ptr %8, align 1
%10 = zext i8 %9 to i32
%11 = icmp eq i32 %10, 255
br i1 %11, label %12, label %17
12: ; preds = %4
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = call i32 @_desaturateFullSSE(ptr noundef %13, i32 noundef %14, i32 noundef %15)
br label %23
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = load i8, ptr %8, align 1
%22 = call i32 @_desaturateAmountSSE(ptr noundef %18, i32 noundef %19, i32 noundef %20, i8 noundef zeroext %21)
br label %23
23: ; preds = %17, %12
ret void
}
declare i32 @_desaturateFullSSE(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @_desaturateAmountSSE(ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxo6f5wbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_desaturateSSE(ptr noundef %0, i32 noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i8 %3, ptr %8, align 1
%9 = load i8, ptr %8, align 1
%10 = zext i8 %9 to i32
%11 = icmp eq i32 %10, 255
br i1 %11, label %12, label %17
12: ; preds = %4
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = call i32 @_desaturateFullSSE(ptr noundef %13, i32 noundef %14, i32 noundef %15)
br label %23
17: ; preds = %4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %7, align 4
%21 = load i8, ptr %8, align 1
%22 = call i32 @_desaturateAmountSSE(ptr noundef %18, i32 noundef %19, i32 noundef %20, i8 noundef zeroext %21)
br label %23
23: ; preds = %17, %12
ret void
}
declare i32 @_desaturateFullSSE(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @_desaturateAmountSSE(ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaf8uvtio.c'
source_filename = "/tmp/tmpaf8uvtio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @right_matching(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %7, align 4
br label %10
10: ; preds = %44, %2
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strlen(ptr noundef %12)
%14 = icmp sge i32 %11, %13
br i1 %14, label %15, label %19
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = sub nsw i32 %17, 1
store i32 %18, ptr %3, align 4
br label %49
19: ; preds = %10
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 91
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %27, %19
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 93
br i1 %37, label %38, label %43
38: ; preds = %30
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %6, align 4
%41 = icmp eq i32 %39, 0
br i1 %41, label %42, label %43
42: ; preds = %38
br label %47
43: ; preds = %38, %30
br label %44
44: ; preds = %43
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
br label %10
47: ; preds = %42
%48 = load i32, ptr %7, align 4
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %47, %15
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaf8uvtio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @right_matching(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp sge i32 %10, %12
br i1 %13, label %14, label %.lr.ph
.lr.ph: ; preds = %2
br label %18
._crit_edge: ; preds = %43
br label %14
14: ; preds = %._crit_edge, %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sub nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %52
18: ; preds = %.lr.ph, %43
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 91
br i1 %25, label %26, label %29
26: ; preds = %18
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %26, %18
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 93
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, -1
store i32 %39, ptr %6, align 4
%40 = icmp eq i32 %38, 0
br i1 %40, label %41, label %42
41: ; preds = %37
br label %50
42: ; preds = %37, %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = load ptr, ptr %4, align 8
%48 = call i32 @strlen(ptr noundef %47)
%49 = icmp sge i32 %46, %48
br i1 %49, label %._crit_edge, label %18
50: ; preds = %41
%51 = load i32, ptr %7, align 4
store i32 %51, ptr %3, align 4
br label %52
52: ; preds = %50, %14
%53 = load i32, ptr %3, align 4
ret i32 %53
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqa5nfj8o.c'
source_filename = "/tmp/tmpqa5nfj8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"The address of i:%d is %p. value:%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"The addres of c:%c is %p. value:%c\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"The address of f:%f is %p. value:%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"The address of d:%f is %p. value:%f\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 ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr %2, ptr %3, align 8
store ptr %4, ptr %5, align 8
store ptr %6, ptr %7, align 8
store ptr %8, ptr %9, align 8
store i32 10, ptr %2, align 4
store i8 65, ptr %4, align 1
store float 1.050000e+01, ptr %6, align 4
store double 1.160000e+01, ptr %8, align 8
%10 = load i32, ptr %2, align 4
%11 = sitofp i32 %10 to double
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %11, ptr noundef %3, i32 noundef %13)
%15 = load i8, ptr %4, align 1
%16 = sitofp i8 %15 to double
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %16, ptr noundef %5, i32 noundef %19)
%21 = load float, ptr %6, align 4
%22 = fpext float %21 to double
%23 = load ptr, ptr %7, align 8
%24 = load float, ptr %23, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %22, ptr noundef %7, double noundef %25)
%27 = load double, ptr %8, align 8
%28 = load ptr, ptr %9, align 8
%29 = load double, ptr %28, align 8
%30 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %27, ptr noundef %9, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqa5nfj8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"The address of i:%d is %p. value:%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"The addres of c:%c is %p. value:%c\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"The address of f:%f is %p. value:%f\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"The address of d:%f is %p. value:%f\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 ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr %2, ptr %3, align 8
store ptr %4, ptr %5, align 8
store ptr %6, ptr %7, align 8
store ptr %8, ptr %9, align 8
store i32 10, ptr %2, align 4
store i8 65, ptr %4, align 1
store float 1.050000e+01, ptr %6, align 4
store double 1.160000e+01, ptr %8, align 8
%10 = load i32, ptr %2, align 4
%11 = sitofp i32 %10 to double
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %11, ptr noundef %3, i32 noundef %13)
%15 = load i8, ptr %4, align 1
%16 = sitofp i8 %15 to double
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.1, double noundef %16, ptr noundef %5, i32 noundef %19)
%21 = load float, ptr %6, align 4
%22 = fpext float %21 to double
%23 = load ptr, ptr %7, align 8
%24 = load float, ptr %23, align 4
%25 = fpext float %24 to double
%26 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.2, double noundef %22, ptr noundef %7, double noundef %25)
%27 = load double, ptr %8, align 8
%28 = load ptr, ptr %9, align 8
%29 = load double, ptr %28, align 8
%30 = call i32 (ptr, double, ...) @printf(ptr noundef @.str.3, double noundef %27, ptr noundef %9, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptoqrnxqa.c'
source_filename = "/tmp/tmptoqrnxqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fegetexceptflag(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 i32, ptr %5, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 -1, ptr %3, align 4
br label %11
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %9, %8
%12 = load i32, ptr %3, align 4
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptoqrnxqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fegetexceptflag(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 i32, ptr %5, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 -1, ptr %3, align 4
br label %11
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %9, %8
%12 = load i32, ptr %3, align 4
ret i32 %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1hwr7yid.c'
source_filename = "/tmp/tmp1hwr7yid.c"
target datalayout = "e-m:e-p270: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/tmp1hwr7yid.c"
target datalayout = "e-m:e-p270: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/tmpxh_l0k2u.c'
source_filename = "/tmp/tmpxh_l0k2u.c"
target datalayout = "e-m:e-p270: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/tmpxh_l0k2u.c"
target datalayout = "e-m:e-p270: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/tmpr3li56y2.c'
source_filename = "/tmp/tmpr3li56y2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, -904906930
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr3li56y2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, -904906930
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%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 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5jh7n8ym.c'
source_filename = "/tmp/tmp5jh7n8ym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09%lu\09%lu\09%lu\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"\09%lu\09%lu\09%lu\09%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09%lu\09%lu\09%lu\09\D0\B8\D1\82\D0\BE\D0\B3\D0\BE\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 i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = 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 i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = call i32 @count(i32 noundef 0, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%18 = load i64, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef %18, i64 noundef %19, i64 noundef %20)
br label %74
22: ; preds = %2
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
store i64 1, ptr %9, align 8
br label %23
23: ; preds = %62, %22
%24 = load i64, ptr %9, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = icmp ult i64 %24, %26
br i1 %27, label %28, label %65
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %9, align 8
%31 = getelementptr inbounds ptr, ptr %29, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i32 @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %13, align 4
%35 = load i32, ptr %13, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %39
37: ; preds = %28
%38 = call i32 @perror(ptr noundef null)
br label %61
39: ; preds = %28
%40 = load i32, ptr %13, align 4
%41 = call i32 @count(i32 noundef %40, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%42 = load i64, ptr %6, align 8
%43 = load i64, ptr %7, align 8
%44 = load i64, ptr %8, align 8
%45 = load ptr, ptr %5, align 8
%46 = load i64, ptr %9, align 8
%47 = getelementptr inbounds ptr, ptr %45, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %42, i64 noundef %43, i64 noundef %44, ptr noundef %48)
%50 = load i64, ptr %6, align 8
%51 = load i64, ptr %10, align 8
%52 = add i64 %51, %50
store i64 %52, ptr %10, align 8
%53 = load i64, ptr %7, align 8
%54 = load i64, ptr %11, align 8
%55 = add i64 %54, %53
store i64 %55, ptr %11, align 8
%56 = load i64, ptr %8, align 8
%57 = load i64, ptr %12, align 8
%58 = add i64 %57, %56
store i64 %58, ptr %12, align 8
store i64 0, ptr %8, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %6, align 8
%59 = load i32, ptr %13, align 4
%60 = call i32 @close(i32 noundef %59)
br label %61
61: ; preds = %39, %37
br label %62
62: ; preds = %61
%63 = load i64, ptr %9, align 8
%64 = add i64 %63, 1
store i64 %64, ptr %9, align 8
br label %23, !llvm.loop !6
65: ; preds = %23
%66 = load i32, ptr %4, align 4
%67 = icmp sgt i32 %66, 2
br i1 %67, label %68, label %73
68: ; preds = %65
%69 = load i64, ptr %10, align 8
%70 = load i64, ptr %11, align 8
%71 = load i64, ptr %12, align 8
%72 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %69, i64 noundef %70, i64 noundef %71)
br label %73
73: ; preds = %68, %65
br label %74
74: ; preds = %73, %16
ret i32 0
}
declare i32 @count(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5jh7n8ym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09%lu\09%lu\09%lu\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"\09%lu\09%lu\09%lu\09%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\09%lu\09%lu\09%lu\09\D0\B8\D1\82\D0\BE\D0\B3\D0\BE\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 i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = 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 i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = call i32 @count(i32 noundef 0, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%18 = load i64, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %8, align 8
%21 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef %18, i64 noundef %19, i64 noundef %20)
br label %77
22: ; preds = %2
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
store i64 1, ptr %9, align 8
%23 = load i64, ptr %9, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = icmp ult i64 %23, %25
br i1 %26, label %.lr.ph, label %68
.lr.ph: ; preds = %22
br label %27
27: ; preds = %.lr.ph, %61
%28 = load ptr, ptr %5, align 8
%29 = load i64, ptr %9, align 8
%30 = getelementptr inbounds ptr, ptr %28, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr @O_RDONLY, align 4
%33 = call i32 @open(ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %13, align 4
%34 = load i32, ptr %13, align 4
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %27
%37 = call i32 @perror(ptr noundef null)
br label %60
38: ; preds = %27
%39 = load i32, ptr %13, align 4
%40 = call i32 @count(i32 noundef %39, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%41 = load i64, ptr %6, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %8, align 8
%44 = load ptr, ptr %5, align 8
%45 = load i64, ptr %9, align 8
%46 = getelementptr inbounds ptr, ptr %44, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %41, i64 noundef %42, i64 noundef %43, ptr noundef %47)
%49 = load i64, ptr %6, align 8
%50 = load i64, ptr %10, align 8
%51 = add i64 %50, %49
store i64 %51, ptr %10, align 8
%52 = load i64, ptr %7, align 8
%53 = load i64, ptr %11, align 8
%54 = add i64 %53, %52
store i64 %54, ptr %11, align 8
%55 = load i64, ptr %8, align 8
%56 = load i64, ptr %12, align 8
%57 = add i64 %56, %55
store i64 %57, ptr %12, align 8
store i64 0, ptr %8, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %6, align 8
%58 = load i32, ptr %13, align 4
%59 = call i32 @close(i32 noundef %58)
br label %60
60: ; preds = %38, %36
br label %61
61: ; preds = %60
%62 = load i64, ptr %9, align 8
%63 = add i64 %62, 1
store i64 %63, ptr %9, align 8
%64 = load i64, ptr %9, align 8
%65 = load i32, ptr %4, align 4
%66 = sext i32 %65 to i64
%67 = icmp ult i64 %64, %66
br i1 %67, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %68
68: ; preds = %._crit_edge, %22
%69 = load i32, ptr %4, align 4
%70 = icmp sgt i32 %69, 2
br i1 %70, label %71, label %76
71: ; preds = %68
%72 = load i64, ptr %10, align 8
%73 = load i64, ptr %11, align 8
%74 = load i64, ptr %12, align 8
%75 = call i32 (ptr, i64, i64, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %72, i64 noundef %73, i64 noundef %74)
br label %76
76: ; preds = %71, %68
br label %77
77: ; preds = %76, %16
ret i32 0
}
declare i32 @count(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw_6tvbvh.c'
source_filename = "/tmp/tmpw_6tvbvh.c"
target datalayout = "e-m:e-p270: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/tmpw_6tvbvh.c"
target datalayout = "e-m:e-p270: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/tmp37rqygxo.c'
source_filename = "/tmp/tmp37rqygxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_int_line(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 4, %5
%7 = trunc i64 %6 to i32
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 (...) @error_and_exit()
br label %13
13: ; preds = %11, %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @malloc(i32 noundef) #1
declare i32 @error_and_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37rqygxo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @malloc_int_line(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 4, %5
%7 = trunc i64 %6 to i32
%8 = call ptr @malloc(i32 noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 (...) @error_and_exit()
br label %13
13: ; preds = %11, %1
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @malloc(i32 noundef) #1
declare i32 @error_and_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8cw8iers.c'
source_filename = "/tmp/tmp8cw8iers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m68k_op_rtr_32() #0 {
%1 = call i32 (...) @m68ki_pull_16()
%2 = call i32 @m68ki_set_ccr(i32 noundef %1)
%3 = call i32 (...) @m68ki_pull_32()
%4 = call i32 @m68ki_jump(i32 noundef %3)
ret void
}
declare i32 @m68ki_set_ccr(i32 noundef) #1
declare i32 @m68ki_pull_16(...) #1
declare i32 @m68ki_jump(i32 noundef) #1
declare i32 @m68ki_pull_32(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8cw8iers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @m68k_op_rtr_32() #0 {
%1 = call i32 (...) @m68ki_pull_16()
%2 = call i32 @m68ki_set_ccr(i32 noundef %1)
%3 = call i32 (...) @m68ki_pull_32()
%4 = call i32 @m68ki_jump(i32 noundef %3)
ret void
}
declare i32 @m68ki_set_ccr(i32 noundef) #1
declare i32 @m68ki_pull_16(...) #1
declare i32 @m68ki_jump(i32 noundef) #1
declare i32 @m68ki_pull_32(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq8yl1ojl.c'
source_filename = "/tmp/tmpq8yl1ojl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @putpwent(i32 noundef 0, i32 noundef 0)
ret i32 0
}
declare i32 @putpwent(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/tmpq8yl1ojl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @putpwent(i32 noundef 0, i32 noundef 0)
ret i32 0
}
declare i32 @putpwent(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/tmpkhekjj6a.c'
source_filename = "/tmp/tmpkhekjj6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/mycdrv\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"opening device node\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"reading interrupts\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"reading bhs\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c" %4d %10d%10d\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 ptr, align 8
%9 = alloca ptr, align 8
%10 = 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 ptr @.str, ptr %8, align 8
%11 = call ptr @malloc(i32 noundef 1024)
store ptr %11, ptr %9, align 8
%12 = call ptr @malloc(i32 noundef 1024)
store ptr %12, ptr %10, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %19
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 %8, align 8
br label %19
19: ; preds = %15, %2
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr @O_RDONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %6, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = call i32 @perror(ptr noundef @.str.1)
%26 = load i32, ptr @errno, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr %6, align 4
%30 = load ptr, ptr %9, align 8
%31 = call i32 @read(i32 noundef %29, ptr noundef %30, i32 noundef 1024)
%32 = sext i32 %31 to i64
%33 = icmp ne i64 %32, 1024
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = call i32 @perror(ptr noundef @.str.2)
%36 = load i32, ptr @errno, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %28
%39 = load i32, ptr %6, align 4
%40 = load ptr, ptr %10, align 8
%41 = call i32 @read(i32 noundef %39, ptr noundef %40, i32 noundef 1024)
%42 = sext i32 %41 to i64
%43 = icmp ne i64 %42, 1024
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = call i32 @perror(ptr noundef @.str.3)
%46 = load i32, ptr @errno, align 4
%47 = call i32 @exit(i32 noundef %46) #3
unreachable
48: ; preds = %38
store i32 0, ptr %7, align 4
br label %49
49: ; preds = %73, %48
%50 = load i32, ptr %7, align 4
%51 = icmp slt i32 %50, 256
br i1 %51, label %52, label %76
52: ; preds = %49
%53 = load ptr, ptr %9, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %72
59: ; preds = %52
%60 = load i32, ptr %7, align 4
%61 = load ptr, ptr %9, align 8
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load i32, ptr %64, align 4
%66 = load ptr, ptr %10, align 8
%67 = load i32, ptr %7, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = call i32 @printf(ptr noundef @.str.4, i32 noundef %60, i32 noundef %65, i32 noundef %70)
br label %72
72: ; preds = %59, %52
br label %73
73: ; preds = %72
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %7, align 4
br label %49, !llvm.loop !6
76: ; preds = %49
%77 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @malloc(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkhekjj6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/mycdrv\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"opening device node\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [19 x i8] c"reading interrupts\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"reading bhs\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c" %4d %10d%10d\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 ptr, align 8
%9 = alloca ptr, align 8
%10 = 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 ptr @.str, ptr %8, align 8
%11 = call ptr @malloc(i32 noundef 1024)
store ptr %11, ptr %9, align 8
%12 = call ptr @malloc(i32 noundef 1024)
store ptr %12, ptr %10, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %19
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 %8, align 8
br label %19
19: ; preds = %15, %2
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr @O_RDONLY, align 4
%22 = call i32 @open(ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %6, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = call i32 @perror(ptr noundef @.str.1)
%26 = load i32, ptr @errno, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr %6, align 4
%30 = load ptr, ptr %9, align 8
%31 = call i32 @read(i32 noundef %29, ptr noundef %30, i32 noundef 1024)
%32 = sext i32 %31 to i64
%33 = icmp ne i64 %32, 1024
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = call i32 @perror(ptr noundef @.str.2)
%36 = load i32, ptr @errno, align 4
%37 = call i32 @exit(i32 noundef %36) #3
unreachable
38: ; preds = %28
%39 = load i32, ptr %6, align 4
%40 = load ptr, ptr %10, align 8
%41 = call i32 @read(i32 noundef %39, ptr noundef %40, i32 noundef 1024)
%42 = sext i32 %41 to i64
%43 = icmp ne i64 %42, 1024
br i1 %43, label %44, label %48
44: ; preds = %38
%45 = call i32 @perror(ptr noundef @.str.3)
%46 = load i32, ptr @errno, align 4
%47 = call i32 @exit(i32 noundef %46) #3
unreachable
48: ; preds = %38
store i32 0, ptr %7, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %49, 256
br i1 %50, label %.lr.ph, label %77
.lr.ph: ; preds = %48
br label %51
51: ; preds = %.lr.ph, %72
%52 = load ptr, ptr %9, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %71
58: ; preds = %51
%59 = load i32, ptr %7, align 4
%60 = load ptr, ptr %9, align 8
%61 = load i32, ptr %7, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load i32, ptr %63, align 4
%65 = load ptr, ptr %10, align 8
%66 = load i32, ptr %7, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = load i32, ptr %68, align 4
%70 = call i32 @printf(ptr noundef @.str.4, i32 noundef %59, i32 noundef %64, i32 noundef %69)
br label %71
71: ; preds = %58, %51
br label %72
72: ; preds = %71
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
%75 = load i32, ptr %7, align 4
%76 = icmp slt i32 %75, 256
br i1 %76, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %77
77: ; preds = %._crit_edge, %48
%78 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @malloc(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9ofv69q_.c'
source_filename = "/tmp/tmp9ofv69q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @udp_sendto(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca [256 x i8], align 16
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr @PF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%17 = call i32 @strtok(ptr noundef %16, ptr noundef @.str)
%18 = call i32 @inet_addr(i32 noundef %17)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %19, i32 0, i32 0
store i32 %18, ptr %20, align 4
%21 = call i32 @strtok(ptr noundef null, ptr noundef @.str)
%22 = call i32 @atoi(i32 noundef %21)
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = call i32 @sendto(i32 noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef 0, ptr noundef %9, i32 noundef 12)
ret i32 %28
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @inet_addr(i32 noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, 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/tmp9ofv69q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @udp_sendto(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca [256 x i8], align 16
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%12 = load ptr, ptr %6, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
%14 = load i32, ptr @PF_INET, align 4
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %14, ptr %15, align 4
%16 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%17 = call i32 @strtok(ptr noundef %16, ptr noundef @.str)
%18 = call i32 @inet_addr(i32 noundef %17)
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %19, i32 0, i32 0
store i32 %18, ptr %20, align 4
%21 = call i32 @strtok(ptr noundef null, ptr noundef @.str)
%22 = call i32 @atoi(i32 noundef %21)
%23 = call i32 @htons(i32 noundef %22)
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %5, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = call i32 @sendto(i32 noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef 0, ptr noundef %9, i32 noundef 12)
ret i32 %28
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @inet_addr(i32 noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, 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/tmps6ju6685.c'
source_filename = "/tmp/tmps6ju6685.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__strchrnul(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = trunc i32 %8 to i8
%10 = zext i8 %9 to i32
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
store ptr %18, ptr %3, align 8
br label %116
19: ; preds = %2
br label %20
20: ; preds = %38, %19
%21 = load ptr, ptr %4, align 8
%22 = ptrtoint ptr %21 to i64
%23 = urem i64 %22, 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %41
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %29, %25
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %3, align 8
br label %116
37: ; preds = %29
br label %38
38: ; preds = %37
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %4, align 8
br label %20, !llvm.loop !6
41: ; preds = %20
%42 = load i64, ptr @UCHAR_MAX, align 8
%43 = udiv i64 -1, %42
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = mul i64 %43, %45
store i64 %46, ptr %7, align 8
%47 = load ptr, ptr %4, align 8
store ptr %47, ptr %6, align 8
br label %48
48: ; preds = %92, %41
%49 = load ptr, ptr %6, align 8
%50 = load i64, ptr %49, align 8
%51 = load i64, ptr @UCHAR_MAX, align 8
%52 = udiv i64 -1, %51
%53 = sub i64 %50, %52
%54 = load ptr, ptr %6, align 8
%55 = load i64, ptr %54, align 8
%56 = xor i64 %55, -1
%57 = and i64 %53, %56
%58 = load i64, ptr @UCHAR_MAX, align 8
%59 = udiv i64 -1, %58
%60 = load i64, ptr @UCHAR_MAX, align 8
%61 = udiv i64 %60, 2
%62 = add i64 %61, 1
%63 = mul i64 %59, %62
%64 = and i64 %57, %63
%65 = icmp ne i64 %64, 0
br i1 %65, label %89, label %66
66: ; preds = %48
%67 = load ptr, ptr %6, align 8
%68 = load i64, ptr %67, align 8
%69 = load i64, ptr %7, align 8
%70 = xor i64 %68, %69
%71 = load i64, ptr @UCHAR_MAX, align 8
%72 = udiv i64 -1, %71
%73 = sub i64 %70, %72
%74 = load ptr, ptr %6, align 8
%75 = load i64, ptr %74, align 8
%76 = load i64, ptr %7, align 8
%77 = xor i64 %75, %76
%78 = xor i64 %77, -1
%79 = and i64 %73, %78
%80 = load i64, ptr @UCHAR_MAX, align 8
%81 = udiv i64 -1, %80
%82 = load i64, ptr @UCHAR_MAX, align 8
%83 = udiv i64 %82, 2
%84 = add i64 %83, 1
%85 = mul i64 %81, %84
%86 = and i64 %79, %85
%87 = icmp ne i64 %86, 0
%88 = xor i1 %87, true
br label %89
89: ; preds = %66, %48
%90 = phi i1 [ false, %48 ], [ %88, %66 ]
br i1 %90, label %91, label %95
91: ; preds = %89
br label %92
92: ; preds = %91
%93 = load ptr, ptr %6, align 8
%94 = getelementptr inbounds i64, ptr %93, i32 1
store ptr %94, ptr %6, align 8
br label %48, !llvm.loop !8
95: ; preds = %89
%96 = load ptr, ptr %6, align 8
store ptr %96, ptr %4, align 8
br label %97
97: ; preds = %111, %95
%98 = load ptr, ptr %4, align 8
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %97
%103 = load ptr, ptr %4, align 8
%104 = load i8, ptr %103, align 1
%105 = zext i8 %104 to i32
%106 = load i32, ptr %5, align 4
%107 = icmp ne i32 %105, %106
br label %108
108: ; preds = %102, %97
%109 = phi i1 [ false, %97 ], [ %107, %102 ]
br i1 %109, label %110, label %114
110: ; preds = %108
br label %111
111: ; preds = %110
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds i8, ptr %112, i32 1
store ptr %113, ptr %4, align 8
br label %97, !llvm.loop !9
114: ; preds = %108
%115 = load ptr, ptr %4, align 8
store ptr %115, ptr %3, align 8
br label %116
116: ; preds = %114, %35, %13
%117 = load ptr, ptr %3, align 8
ret ptr %117
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps6ju6685.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__strchrnul(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = trunc i32 %8 to i8
%10 = zext i8 %9 to i32
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
store ptr %18, ptr %3, align 8
br label %119
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = ptrtoint ptr %20 to i64
%22 = urem i64 %21, 8
%23 = icmp ne i64 %22, 0
br i1 %23, label %.lr.ph, label %44
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %37
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = icmp ne i8 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %28, %24
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %3, align 8
br label %119
36: ; preds = %28
br label %37
37: ; preds = %36
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %4, align 8
%40 = load ptr, ptr %4, align 8
%41 = ptrtoint ptr %40 to i64
%42 = urem i64 %41, 8
%43 = icmp ne i64 %42, 0
br i1 %43, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %44
44: ; preds = %._crit_edge, %19
%45 = load i64, ptr @UCHAR_MAX, align 8
%46 = udiv i64 -1, %45
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = mul i64 %46, %48
store i64 %49, ptr %7, align 8
%50 = load ptr, ptr %4, align 8
store ptr %50, ptr %6, align 8
br label %51
51: ; preds = %95, %44
%52 = load ptr, ptr %6, align 8
%53 = load i64, ptr %52, align 8
%54 = load i64, ptr @UCHAR_MAX, align 8
%55 = udiv i64 -1, %54
%56 = sub i64 %53, %55
%57 = load ptr, ptr %6, align 8
%58 = load i64, ptr %57, align 8
%59 = xor i64 %58, -1
%60 = and i64 %56, %59
%61 = load i64, ptr @UCHAR_MAX, align 8
%62 = udiv i64 -1, %61
%63 = load i64, ptr @UCHAR_MAX, align 8
%64 = udiv i64 %63, 2
%65 = add i64 %64, 1
%66 = mul i64 %62, %65
%67 = and i64 %60, %66
%68 = icmp ne i64 %67, 0
br i1 %68, label %92, label %69
69: ; preds = %51
%70 = load ptr, ptr %6, align 8
%71 = load i64, ptr %70, align 8
%72 = load i64, ptr %7, align 8
%73 = xor i64 %71, %72
%74 = load i64, ptr @UCHAR_MAX, align 8
%75 = udiv i64 -1, %74
%76 = sub i64 %73, %75
%77 = load ptr, ptr %6, align 8
%78 = load i64, ptr %77, align 8
%79 = load i64, ptr %7, align 8
%80 = xor i64 %78, %79
%81 = xor i64 %80, -1
%82 = and i64 %76, %81
%83 = load i64, ptr @UCHAR_MAX, align 8
%84 = udiv i64 -1, %83
%85 = load i64, ptr @UCHAR_MAX, align 8
%86 = udiv i64 %85, 2
%87 = add i64 %86, 1
%88 = mul i64 %84, %87
%89 = and i64 %82, %88
%90 = icmp ne i64 %89, 0
%91 = xor i1 %90, true
br label %92
92: ; preds = %69, %51
%93 = phi i1 [ false, %51 ], [ %91, %69 ]
br i1 %93, label %94, label %98
94: ; preds = %92
br label %95
95: ; preds = %94
%96 = load ptr, ptr %6, align 8
%97 = getelementptr inbounds i64, ptr %96, i32 1
store ptr %97, ptr %6, align 8
br label %51, !llvm.loop !8
98: ; preds = %92
%99 = load ptr, ptr %6, align 8
store ptr %99, ptr %4, align 8
br label %100
100: ; preds = %114, %98
%101 = load ptr, ptr %4, align 8
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %100
%106 = load ptr, ptr %4, align 8
%107 = load i8, ptr %106, align 1
%108 = zext i8 %107 to i32
%109 = load i32, ptr %5, align 4
%110 = icmp ne i32 %108, %109
br label %111
111: ; preds = %105, %100
%112 = phi i1 [ false, %100 ], [ %110, %105 ]
br i1 %112, label %113, label %117
113: ; preds = %111
br label %114
114: ; preds = %113
%115 = load ptr, ptr %4, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %4, align 8
br label %100, !llvm.loop !9
117: ; preds = %111
%118 = load ptr, ptr %4, align 8
store ptr %118, ptr %3, align 8
br label %119
119: ; preds = %117, %34, %13
%120 = load ptr, ptr %3, align 8
ret ptr %120
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpapg58o99.c'
source_filename = "/tmp/tmpapg58o99.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%-23s %-23s %5s\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/smack/access\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @smack_have_access(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [54 x i8], align 16
%9 = alloca [6 x i8], align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @access_type_to_int(ptr noundef %13)
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @int_to_access_type_k(i32 noundef %15, ptr noundef %16)
%18 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%22 = call i32 @snprintf(ptr noundef %18, i32 noundef 54, ptr noundef @.str, ptr noundef %19, ptr noundef %20, ptr noundef %21)
store i32 %22, ptr %11, align 4
%23 = load i32, ptr %11, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %3
store i32 -1, ptr %4, align 4
br label %56
26: ; preds = %3
%27 = load i32, ptr @O_RDWR, align 4
%28 = call i32 @open(ptr noundef @.str.1, i32 noundef %27)
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 -1, ptr %4, align 4
br label %56
32: ; preds = %26
%33 = load i32, ptr %12, align 4
%34 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @write(i32 noundef %33, ptr noundef %34, i32 noundef 53)
store i32 %35, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load i32, ptr %12, align 4
%40 = call i32 @close(i32 noundef %39)
store i32 -1, ptr %4, align 4
br label %56
41: ; preds = %32
%42 = load i32, ptr %12, align 4
%43 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 1)
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %12, align 4
%46 = call i32 @close(i32 noundef %45)
%47 = load i32, ptr %11, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %41
store i32 -1, ptr %4, align 4
br label %56
50: ; preds = %41
%51 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%52 = load i8, ptr %51, align 16
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 49
%55 = zext i1 %54 to i32
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %50, %49, %38, %31, %25
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare i32 @access_type_to_int(ptr noundef) #1
declare i32 @int_to_access_type_k(i32 noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(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/tmpapg58o99.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%-23s %-23s %5s\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/smack/access\00", align 1
@O_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @smack_have_access(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [54 x i8], align 16
%9 = alloca [6 x i8], align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @access_type_to_int(ptr noundef %13)
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%17 = call i32 @int_to_access_type_k(i32 noundef %15, ptr noundef %16)
%18 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%22 = call i32 @snprintf(ptr noundef %18, i32 noundef 54, ptr noundef @.str, ptr noundef %19, ptr noundef %20, ptr noundef %21)
store i32 %22, ptr %11, align 4
%23 = load i32, ptr %11, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %3
store i32 -1, ptr %4, align 4
br label %56
26: ; preds = %3
%27 = load i32, ptr @O_RDWR, align 4
%28 = call i32 @open(ptr noundef @.str.1, i32 noundef %27)
store i32 %28, ptr %12, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 -1, ptr %4, align 4
br label %56
32: ; preds = %26
%33 = load i32, ptr %12, align 4
%34 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%35 = call i32 @write(i32 noundef %33, ptr noundef %34, i32 noundef 53)
store i32 %35, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load i32, ptr %12, align 4
%40 = call i32 @close(i32 noundef %39)
store i32 -1, ptr %4, align 4
br label %56
41: ; preds = %32
%42 = load i32, ptr %12, align 4
%43 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 1)
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %12, align 4
%46 = call i32 @close(i32 noundef %45)
%47 = load i32, ptr %11, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %41
store i32 -1, ptr %4, align 4
br label %56
50: ; preds = %41
%51 = getelementptr inbounds [54 x i8], ptr %8, i64 0, i64 0
%52 = load i8, ptr %51, align 16
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 49
%55 = zext i1 %54 to i32
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %50, %49, %38, %31, %25
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare i32 @access_type_to_int(ptr noundef) #1
declare i32 @int_to_access_type_k(i32 noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(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/tmpln7opdvc.c'
source_filename = "/tmp/tmpln7opdvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" {\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) ground1_1 0 0 0 1 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) black 0 0 0 1 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) rock1_2 0 0 0 1 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" }\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_terrain_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
store ptr %0, ptr %13, align 8
store float %1, ptr %14, align 4
store float %2, ptr %15, align 4
store float %3, ptr %16, align 4
store float %4, ptr %17, align 4
store float %5, ptr %18, align 4
store float %6, ptr %19, align 4
store float %7, ptr %20, align 4
store float %8, ptr %21, align 4
store float %9, ptr %22, align 4
store float %10, ptr %23, align 4
%24 = load float, ptr %17, align 4
%25 = load float, ptr %14, align 4
%26 = fcmp ole float %24, %25
br i1 %26, label %27, label %36
27: ; preds = %11
%28 = load float, ptr %20, align 4
%29 = load float, ptr %14, align 4
%30 = fcmp ole float %28, %29
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load float, ptr %23, align 4
%33 = load float, ptr %14, align 4
%34 = fcmp ole float %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store i32 1, ptr %12, align 4
br label %159
36: ; preds = %31, %27, %11
%37 = load ptr, ptr %13, align 8
%38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str)
%39 = load ptr, ptr %13, align 8
%40 = load float, ptr %15, align 4
%41 = fpext float %40 to double
%42 = load float, ptr %16, align 4
%43 = fpext float %42 to double
%44 = load float, ptr %17, align 4
%45 = fpext float %44 to double
%46 = load float, ptr %18, align 4
%47 = fpext float %46 to double
%48 = load float, ptr %19, align 4
%49 = fpext float %48 to double
%50 = load float, ptr %20, align 4
%51 = fpext float %50 to double
%52 = load float, ptr %21, align 4
%53 = fpext float %52 to double
%54 = load float, ptr %22, align 4
%55 = fpext float %54 to double
%56 = load float, ptr %23, align 4
%57 = fpext float %56 to double
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.1, double noundef %41, double noundef %43, double noundef %45, double noundef %47, double noundef %49, double noundef %51, double noundef %53, double noundef %55, double noundef %57)
%59 = load ptr, ptr %13, align 8
%60 = load float, ptr %14, align 4
%61 = fpext float %60 to double
%62 = load float, ptr %14, align 4
%63 = fpext float %62 to double
%64 = load float, ptr %14, align 4
%65 = fpext float %64 to double
%66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %61, double noundef 4.096000e+03, double noundef 0.000000e+00, double noundef %63, double noundef 0.000000e+00, double noundef 4.096000e+03, double noundef %65)
%67 = load float, ptr %20, align 4
%68 = load float, ptr %14, align 4
%69 = fcmp ogt float %67, %68
br i1 %69, label %74, label %70
70: ; preds = %36
%71 = load float, ptr %23, align 4
%72 = load float, ptr %14, align 4
%73 = fcmp ogt float %71, %72
br i1 %73, label %74, label %96
74: ; preds = %70, %36
%75 = load ptr, ptr %13, align 8
%76 = load float, ptr %21, align 4
%77 = fpext float %76 to double
%78 = load float, ptr %22, align 4
%79 = fpext float %78 to double
%80 = load float, ptr %23, align 4
%81 = fpext float %80 to double
%82 = load float, ptr %18, align 4
%83 = fpext float %82 to double
%84 = load float, ptr %19, align 4
%85 = fpext float %84 to double
%86 = load float, ptr %20, align 4
%87 = fpext float %86 to double
%88 = load float, ptr %18, align 4
%89 = fpext float %88 to double
%90 = load float, ptr %19, align 4
%91 = fpext float %90 to double
%92 = load float, ptr %20, align 4
%93 = fsub float %92, 1.280000e+02
%94 = fpext float %93 to double
%95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.3, double noundef %77, double noundef %79, double noundef %81, double noundef %83, double noundef %85, double noundef %87, double noundef %89, double noundef %91, double noundef %94)
br label %96
96: ; preds = %74, %70
%97 = load float, ptr %20, align 4
%98 = load float, ptr %14, align 4
%99 = fcmp ogt float %97, %98
br i1 %99, label %104, label %100
100: ; preds = %96
%101 = load float, ptr %17, align 4
%102 = load float, ptr %14, align 4
%103 = fcmp ogt float %101, %102
br i1 %103, label %104, label %126
104: ; preds = %100, %96
%105 = load ptr, ptr %13, align 8
%106 = load float, ptr %18, align 4
%107 = fpext float %106 to double
%108 = load float, ptr %19, align 4
%109 = fpext float %108 to double
%110 = load float, ptr %20, align 4
%111 = fpext float %110 to double
%112 = load float, ptr %15, align 4
%113 = fpext float %112 to double
%114 = load float, ptr %16, align 4
%115 = fpext float %114 to double
%116 = load float, ptr %17, align 4
%117 = fpext float %116 to double
%118 = load float, ptr %15, align 4
%119 = fpext float %118 to double
%120 = load float, ptr %16, align 4
%121 = fpext float %120 to double
%122 = load float, ptr %17, align 4
%123 = fsub float %122, 1.280000e+02
%124 = fpext float %123 to double
%125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.3, double noundef %107, double noundef %109, double noundef %111, double noundef %113, double noundef %115, double noundef %117, double noundef %119, double noundef %121, double noundef %124)
br label %126
126: ; preds = %104, %100
%127 = load float, ptr %17, align 4
%128 = load float, ptr %14, align 4
%129 = fcmp ogt float %127, %128
br i1 %129, label %134, label %130
130: ; preds = %126
%131 = load float, ptr %23, align 4
%132 = load float, ptr %14, align 4
%133 = fcmp ogt float %131, %132
br i1 %133, label %134, label %156
134: ; preds = %130, %126
%135 = load ptr, ptr %13, align 8
%136 = load float, ptr %15, align 4
%137 = fpext float %136 to double
%138 = load float, ptr %16, align 4
%139 = fpext float %138 to double
%140 = load float, ptr %17, align 4
%141 = fpext float %140 to double
%142 = load float, ptr %21, align 4
%143 = fpext float %142 to double
%144 = load float, ptr %22, align 4
%145 = fpext float %144 to double
%146 = load float, ptr %23, align 4
%147 = fpext float %146 to double
%148 = load float, ptr %21, align 4
%149 = fpext float %148 to double
%150 = load float, ptr %22, align 4
%151 = fpext float %150 to double
%152 = load float, ptr %23, align 4
%153 = fsub float %152, 1.280000e+02
%154 = fpext float %153 to double
%155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.3, double noundef %137, double noundef %139, double noundef %141, double noundef %143, double noundef %145, double noundef %147, double noundef %149, double noundef %151, double noundef %154)
br label %156
156: ; preds = %134, %130
%157 = load ptr, ptr %13, align 8
%158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.4)
store i32 0, ptr %12, align 4
br label %159
159: ; preds = %156, %35
%160 = load i32, ptr %12, align 4
ret i32 %160
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpln7opdvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" {\0A\00", align 1
@.str.1 = private unnamed_addr constant [62 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) ground1_1 0 0 0 1 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [58 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) black 0 0 0 1 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [60 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) rock1_2 0 0 0 1 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" }\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_terrain_triangle(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca float, align 4
%21 = alloca float, align 4
%22 = alloca float, align 4
%23 = alloca float, align 4
store ptr %0, ptr %13, align 8
store float %1, ptr %14, align 4
store float %2, ptr %15, align 4
store float %3, ptr %16, align 4
store float %4, ptr %17, align 4
store float %5, ptr %18, align 4
store float %6, ptr %19, align 4
store float %7, ptr %20, align 4
store float %8, ptr %21, align 4
store float %9, ptr %22, align 4
store float %10, ptr %23, align 4
%24 = load float, ptr %17, align 4
%25 = load float, ptr %14, align 4
%26 = fcmp ole float %24, %25
br i1 %26, label %27, label %36
27: ; preds = %11
%28 = load float, ptr %20, align 4
%29 = load float, ptr %14, align 4
%30 = fcmp ole float %28, %29
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load float, ptr %23, align 4
%33 = load float, ptr %14, align 4
%34 = fcmp ole float %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store i32 1, ptr %12, align 4
br label %159
36: ; preds = %31, %27, %11
%37 = load ptr, ptr %13, align 8
%38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str)
%39 = load ptr, ptr %13, align 8
%40 = load float, ptr %15, align 4
%41 = fpext float %40 to double
%42 = load float, ptr %16, align 4
%43 = fpext float %42 to double
%44 = load float, ptr %17, align 4
%45 = fpext float %44 to double
%46 = load float, ptr %18, align 4
%47 = fpext float %46 to double
%48 = load float, ptr %19, align 4
%49 = fpext float %48 to double
%50 = load float, ptr %20, align 4
%51 = fpext float %50 to double
%52 = load float, ptr %21, align 4
%53 = fpext float %52 to double
%54 = load float, ptr %22, align 4
%55 = fpext float %54 to double
%56 = load float, ptr %23, align 4
%57 = fpext float %56 to double
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.1, double noundef %41, double noundef %43, double noundef %45, double noundef %47, double noundef %49, double noundef %51, double noundef %53, double noundef %55, double noundef %57)
%59 = load ptr, ptr %13, align 8
%60 = load float, ptr %14, align 4
%61 = fpext float %60 to double
%62 = load float, ptr %14, align 4
%63 = fpext float %62 to double
%64 = load float, ptr %14, align 4
%65 = fpext float %64 to double
%66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %61, double noundef 4.096000e+03, double noundef 0.000000e+00, double noundef %63, double noundef 0.000000e+00, double noundef 4.096000e+03, double noundef %65)
%67 = load float, ptr %20, align 4
%68 = load float, ptr %14, align 4
%69 = fcmp ogt float %67, %68
br i1 %69, label %74, label %70
70: ; preds = %36
%71 = load float, ptr %23, align 4
%72 = load float, ptr %14, align 4
%73 = fcmp ogt float %71, %72
br i1 %73, label %74, label %96
74: ; preds = %70, %36
%75 = load ptr, ptr %13, align 8
%76 = load float, ptr %21, align 4
%77 = fpext float %76 to double
%78 = load float, ptr %22, align 4
%79 = fpext float %78 to double
%80 = load float, ptr %23, align 4
%81 = fpext float %80 to double
%82 = load float, ptr %18, align 4
%83 = fpext float %82 to double
%84 = load float, ptr %19, align 4
%85 = fpext float %84 to double
%86 = load float, ptr %20, align 4
%87 = fpext float %86 to double
%88 = load float, ptr %18, align 4
%89 = fpext float %88 to double
%90 = load float, ptr %19, align 4
%91 = fpext float %90 to double
%92 = load float, ptr %20, align 4
%93 = fsub float %92, 1.280000e+02
%94 = fpext float %93 to double
%95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.3, double noundef %77, double noundef %79, double noundef %81, double noundef %83, double noundef %85, double noundef %87, double noundef %89, double noundef %91, double noundef %94)
br label %96
96: ; preds = %74, %70
%97 = load float, ptr %20, align 4
%98 = load float, ptr %14, align 4
%99 = fcmp ogt float %97, %98
br i1 %99, label %104, label %100
100: ; preds = %96
%101 = load float, ptr %17, align 4
%102 = load float, ptr %14, align 4
%103 = fcmp ogt float %101, %102
br i1 %103, label %104, label %126
104: ; preds = %100, %96
%105 = load ptr, ptr %13, align 8
%106 = load float, ptr %18, align 4
%107 = fpext float %106 to double
%108 = load float, ptr %19, align 4
%109 = fpext float %108 to double
%110 = load float, ptr %20, align 4
%111 = fpext float %110 to double
%112 = load float, ptr %15, align 4
%113 = fpext float %112 to double
%114 = load float, ptr %16, align 4
%115 = fpext float %114 to double
%116 = load float, ptr %17, align 4
%117 = fpext float %116 to double
%118 = load float, ptr %15, align 4
%119 = fpext float %118 to double
%120 = load float, ptr %16, align 4
%121 = fpext float %120 to double
%122 = load float, ptr %17, align 4
%123 = fsub float %122, 1.280000e+02
%124 = fpext float %123 to double
%125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.3, double noundef %107, double noundef %109, double noundef %111, double noundef %113, double noundef %115, double noundef %117, double noundef %119, double noundef %121, double noundef %124)
br label %126
126: ; preds = %104, %100
%127 = load float, ptr %17, align 4
%128 = load float, ptr %14, align 4
%129 = fcmp ogt float %127, %128
br i1 %129, label %134, label %130
130: ; preds = %126
%131 = load float, ptr %23, align 4
%132 = load float, ptr %14, align 4
%133 = fcmp ogt float %131, %132
br i1 %133, label %134, label %156
134: ; preds = %130, %126
%135 = load ptr, ptr %13, align 8
%136 = load float, ptr %15, align 4
%137 = fpext float %136 to double
%138 = load float, ptr %16, align 4
%139 = fpext float %138 to double
%140 = load float, ptr %17, align 4
%141 = fpext float %140 to double
%142 = load float, ptr %21, align 4
%143 = fpext float %142 to double
%144 = load float, ptr %22, align 4
%145 = fpext float %144 to double
%146 = load float, ptr %23, align 4
%147 = fpext float %146 to double
%148 = load float, ptr %21, align 4
%149 = fpext float %148 to double
%150 = load float, ptr %22, align 4
%151 = fpext float %150 to double
%152 = load float, ptr %23, align 4
%153 = fsub float %152, 1.280000e+02
%154 = fpext float %153 to double
%155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.3, double noundef %137, double noundef %139, double noundef %141, double noundef %143, double noundef %145, double noundef %147, double noundef %149, double noundef %151, double noundef %154)
br label %156
156: ; preds = %134, %130
%157 = load ptr, ptr %13, align 8
%158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.4)
store i32 0, ptr %12, align 4
br label %159
159: ; preds = %156, %35
%160 = load i32, ptr %12, align 4
ret i32 %160
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsdsxarxb.c'
source_filename = "/tmp/tmpsdsxarxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_memmove_nonnull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @memmove(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsdsxarxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_memmove_nonnull(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @memmove(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9z50450c.c'
source_filename = "/tmp/tmp9z50450c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Read a string:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"%[^\0A]s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"String %s is a Palindrome\0A\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"The minimum palindrome is %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"The maximum palindrome is %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"given string has no pallindrome\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [100 x i8], align 16
%14 = alloca [30 x [20 x i8]], align 16
%15 = alloca [30 x i8], align 16
%16 = alloca [30 x i8], align 16
%17 = alloca [30 x i8], align 16
%18 = alloca [30 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
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 %10, align 4
store i32 0, ptr %11, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fflush(i32 noundef %20)
%22 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %22)
store i32 0, ptr %2, align 4
br label %24
24: ; preds = %42, %0
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %45
31: ; preds = %24
%32 = load i32, ptr %2, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 32
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %38, %31
br label %42
42: ; preds = %41
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %2, align 4
br label %24, !llvm.loop !6
45: ; preds = %24
store i32 0, ptr %2, align 4
store i32 0, ptr %4, align 4
br label %46
46: ; preds = %89, %45
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 1
%50 = icmp slt i32 %47, %49
br i1 %50, label %51, label %94
51: ; preds = %46
store i32 0, ptr %5, align 4
br label %52
52: ; preds = %81, %51
%53 = load i32, ptr %2, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %82
59: ; preds = %52
%60 = load i32, ptr %2, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 32
br i1 %65, label %66, label %67
66: ; preds = %59
br label %82
67: ; preds = %59
%68 = load i32, ptr %2, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = load i32, ptr %4, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %73
%75 = load i32, ptr %5, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %5, align 4
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds [20 x i8], ptr %74, i64 0, i64 %77
store i8 %71, ptr %78, align 1
%79 = load i32, ptr %2, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %2, align 4
br label %81
81: ; preds = %67
br label %52, !llvm.loop !8
82: ; preds = %66, %52
%83 = load i32, ptr %4, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %84
%86 = load i32, ptr %5, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [20 x i8], ptr %85, i64 0, i64 %87
store i8 0, ptr %88, align 1
br label %89
89: ; preds = %82
%90 = load i32, ptr %2, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %2, align 4
%92 = load i32, ptr %4, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %4, align 4
br label %46, !llvm.loop !9
94: ; preds = %46
store i32 0, ptr %4, align 4
br label %95
95: ; preds = %106, %94
%96 = load i32, ptr %4, align 4
%97 = load i32, ptr %6, align 4
%98 = add nsw i32 %97, 1
%99 = icmp slt i32 %96, %98
br i1 %99, label %100, label %109
100: ; preds = %95
%101 = load i32, ptr %4, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %102
%104 = getelementptr inbounds [20 x i8], ptr %103, i64 0, i64 0
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %104)
br label %106
106: ; preds = %100
%107 = load i32, ptr %4, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %4, align 4
br label %95, !llvm.loop !10
109: ; preds = %95
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %111
111: ; preds = %197, %109
%112 = load i32, ptr %2, align 4
%113 = load i32, ptr %6, align 4
%114 = add nsw i32 %113, 1
%115 = icmp slt i32 %112, %114
br i1 %115, label %116, label %200
116: ; preds = %111
%117 = getelementptr inbounds [30 x i8], ptr %15, i64 0, i64 0
%118 = load i32, ptr %2, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %119
%121 = getelementptr inbounds [20 x i8], ptr %120, i64 0, i64 0
%122 = call i32 @strcpy(ptr noundef %117, ptr noundef %121)
%123 = load i32, ptr %2, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %124
%126 = getelementptr inbounds [20 x i8], ptr %125, i64 0, i64 0
%127 = call i32 @strlen(ptr noundef %126)
store i32 %127, ptr %7, align 4
store i32 0, ptr %5, align 4
%128 = load i32, ptr %7, align 4
%129 = sub nsw i32 %128, 1
store i32 %129, ptr %3, align 4
br label %130
130: ; preds = %145, %116
%131 = load i32, ptr %3, align 4
%132 = icmp sge i32 %131, 0
br i1 %132, label %133, label %148
133: ; preds = %130
%134 = load i32, ptr %2, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %135
%137 = load i32, ptr %3, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [20 x i8], ptr %136, i64 0, i64 %138
%140 = load i8, ptr %139, align 1
%141 = load i32, ptr %5, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %5, align 4
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 %143
store i8 %140, ptr %144, align 1
br label %145
145: ; preds = %133
%146 = load i32, ptr %3, align 4
%147 = add nsw i32 %146, -1
store i32 %147, ptr %3, align 4
br label %130, !llvm.loop !11
148: ; preds = %130
%149 = load i32, ptr %5, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 %150
store i8 0, ptr %151, align 1
%152 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%153 = getelementptr inbounds [30 x i8], ptr %15, i64 0, i64 0
%154 = call i64 @strcmp(ptr noundef %152, ptr noundef %153)
%155 = icmp eq i64 %154, 0
br i1 %155, label %156, label %196
156: ; preds = %148
store i32 1, ptr %12, align 4
%157 = load i32, ptr %8, align 4
%158 = icmp slt i32 %157, 1
br i1 %158, label %159, label %172
159: ; preds = %156
%160 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%161 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%162 = call i32 @strcpy(ptr noundef %160, ptr noundef %161)
%163 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%164 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%165 = call i32 @strcpy(ptr noundef %163, ptr noundef %164)
%166 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%167 = call i32 @strlen(ptr noundef %166)
store i32 %167, ptr %9, align 4
%168 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%169 = call i32 @strlen(ptr noundef %168)
store i32 %169, ptr %10, align 4
%170 = load i32, ptr %8, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %8, align 4
br label %172
172: ; preds = %159, %156
%173 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %173)
%175 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%176 = call i32 @strlen(ptr noundef %175)
store i32 %176, ptr %11, align 4
%177 = load i32, ptr %11, align 4
%178 = load i32, ptr %10, align 4
%179 = icmp sge i32 %177, %178
br i1 %179, label %180, label %184
180: ; preds = %172
%181 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%182 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%183 = call i32 @strcpy(ptr noundef %181, ptr noundef %182)
br label %195
184: ; preds = %172
%185 = load i32, ptr %11, align 4
%186 = load i32, ptr %9, align 4
%187 = icmp sle i32 %185, %186
br i1 %187, label %188, label %192
188: ; preds = %184
%189 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%190 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%191 = call i32 @strcpy(ptr noundef %189, ptr noundef %190)
br label %194
192: ; preds = %184
%193 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %194
194: ; preds = %192, %188
br label %195
195: ; preds = %194, %180
br label %196
196: ; preds = %195, %148
br label %197
197: ; preds = %196
%198 = load i32, ptr %2, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %2, align 4
br label %111, !llvm.loop !12
200: ; preds = %111
%201 = load i32, ptr %12, align 4
%202 = icmp eq i32 %201, 1
br i1 %202, label %203, label %208
203: ; preds = %200
%204 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %204)
%206 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%207 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %206)
br label %210
208: ; preds = %200
%209 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %210
210: ; preds = %208, %203
%211 = load i32, ptr %1, align 4
ret i32 %211
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9z50450c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Read a string:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"%[^\0A]s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"String %s is a Palindrome\0A\00", align 1
@.str.5 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"The minimum palindrome is %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"The maximum palindrome is %s\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"given string has no pallindrome\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca [100 x i8], align 16
%14 = alloca [30 x [20 x i8]], align 16
%15 = alloca [30 x i8], align 16
%16 = alloca [30 x i8], align 16
%17 = alloca [30 x i8], align 16
%18 = alloca [30 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
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 %10, align 4
store i32 0, ptr %11, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fflush(i32 noundef %20)
%22 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %22)
store i32 0, ptr %2, align 4
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %.lr.ph, label %50
.lr.ph: ; preds = %0
br label %30
30: ; preds = %.lr.ph, %41
%31 = load i32, ptr %2, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 32
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %30
br label %41
41: ; preds = %40
%42 = load i32, ptr %2, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %2, align 4
%44 = load i32, ptr %2, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %50
50: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
store i32 0, ptr %4, align 4
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
%54 = icmp slt i32 %51, %53
br i1 %54, label %.lr.ph4, label %107
.lr.ph4: ; preds = %50
br label %55
55: ; preds = %.lr.ph4, %98
store i32 0, ptr %5, align 4
%56 = load i32, ptr %2, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %55
br label %62
62: ; preds = %.lr.ph2, %84
%63 = load i32, ptr %2, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 32
br i1 %68, label %69, label %70
69: ; preds = %62
br label %91
70: ; preds = %62
%71 = load i32, ptr %2, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = load i32, ptr %4, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %76
%78 = load i32, ptr %5, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %5, align 4
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds [20 x i8], ptr %77, i64 0, i64 %80
store i8 %74, ptr %81, align 1
%82 = load i32, ptr %2, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %2, align 4
br label %84
84: ; preds = %70
%85 = load i32, ptr %2, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = icmp ne i32 %89, 0
br i1 %90, label %62, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %84
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %55
br label %91
91: ; preds = %.loopexit, %69
%92 = load i32, ptr %4, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %93
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [20 x i8], ptr %94, i64 0, i64 %96
store i8 0, ptr %97, align 1
br label %98
98: ; preds = %91
%99 = load i32, ptr %2, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %2, align 4
%101 = load i32, ptr %4, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %4, align 4
%103 = load i32, ptr %4, align 4
%104 = load i32, ptr %6, align 4
%105 = add nsw i32 %104, 1
%106 = icmp slt i32 %103, %105
br i1 %106, label %55, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %98
br label %107
107: ; preds = %._crit_edge5, %50
store i32 0, ptr %4, align 4
%108 = load i32, ptr %4, align 4
%109 = load i32, ptr %6, align 4
%110 = add nsw i32 %109, 1
%111 = icmp slt i32 %108, %110
br i1 %111, label %.lr.ph7, label %125
.lr.ph7: ; preds = %107
br label %112
112: ; preds = %.lr.ph7, %118
%113 = load i32, ptr %4, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %114
%116 = getelementptr inbounds [20 x i8], ptr %115, i64 0, i64 0
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %116)
br label %118
118: ; preds = %112
%119 = load i32, ptr %4, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %4, align 4
%121 = load i32, ptr %4, align 4
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
%124 = icmp slt i32 %121, %123
br i1 %124, label %112, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %118
br label %125
125: ; preds = %._crit_edge8, %107
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%127 = load i32, ptr %2, align 4
%128 = load i32, ptr %6, align 4
%129 = add nsw i32 %128, 1
%130 = icmp slt i32 %127, %129
br i1 %130, label %.lr.ph13, label %220
.lr.ph13: ; preds = %125
br label %131
131: ; preds = %.lr.ph13, %213
%132 = getelementptr inbounds [30 x i8], ptr %15, i64 0, i64 0
%133 = load i32, ptr %2, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %134
%136 = getelementptr inbounds [20 x i8], ptr %135, i64 0, i64 0
%137 = call i32 @strcpy(ptr noundef %132, ptr noundef %136)
%138 = load i32, ptr %2, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %139
%141 = getelementptr inbounds [20 x i8], ptr %140, i64 0, i64 0
%142 = call i32 @strlen(ptr noundef %141)
store i32 %142, ptr %7, align 4
store i32 0, ptr %5, align 4
%143 = load i32, ptr %7, align 4
%144 = sub nsw i32 %143, 1
store i32 %144, ptr %3, align 4
%145 = load i32, ptr %3, align 4
%146 = icmp sge i32 %145, 0
br i1 %146, label %.lr.ph10, label %164
.lr.ph10: ; preds = %131
br label %147
147: ; preds = %.lr.ph10, %159
%148 = load i32, ptr %2, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [30 x [20 x i8]], ptr %14, i64 0, i64 %149
%151 = load i32, ptr %3, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [20 x i8], ptr %150, i64 0, i64 %152
%154 = load i8, ptr %153, align 1
%155 = load i32, ptr %5, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %5, align 4
%157 = sext i32 %155 to i64
%158 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 %157
store i8 %154, ptr %158, align 1
br label %159
159: ; preds = %147
%160 = load i32, ptr %3, align 4
%161 = add nsw i32 %160, -1
store i32 %161, ptr %3, align 4
%162 = load i32, ptr %3, align 4
%163 = icmp sge i32 %162, 0
br i1 %163, label %147, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %159
br label %164
164: ; preds = %._crit_edge11, %131
%165 = load i32, ptr %5, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 %166
store i8 0, ptr %167, align 1
%168 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%169 = getelementptr inbounds [30 x i8], ptr %15, i64 0, i64 0
%170 = call i64 @strcmp(ptr noundef %168, ptr noundef %169)
%171 = icmp eq i64 %170, 0
br i1 %171, label %172, label %212
172: ; preds = %164
store i32 1, ptr %12, align 4
%173 = load i32, ptr %8, align 4
%174 = icmp slt i32 %173, 1
br i1 %174, label %175, label %188
175: ; preds = %172
%176 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%177 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%178 = call i32 @strcpy(ptr noundef %176, ptr noundef %177)
%179 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%180 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%181 = call i32 @strcpy(ptr noundef %179, ptr noundef %180)
%182 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%183 = call i32 @strlen(ptr noundef %182)
store i32 %183, ptr %9, align 4
%184 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%185 = call i32 @strlen(ptr noundef %184)
store i32 %185, ptr %10, align 4
%186 = load i32, ptr %8, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %8, align 4
br label %188
188: ; preds = %175, %172
%189 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %189)
%191 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%192 = call i32 @strlen(ptr noundef %191)
store i32 %192, ptr %11, align 4
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr %10, align 4
%195 = icmp sge i32 %193, %194
br i1 %195, label %196, label %200
196: ; preds = %188
%197 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%198 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%199 = call i32 @strcpy(ptr noundef %197, ptr noundef %198)
br label %211
200: ; preds = %188
%201 = load i32, ptr %11, align 4
%202 = load i32, ptr %9, align 4
%203 = icmp sle i32 %201, %202
br i1 %203, label %204, label %208
204: ; preds = %200
%205 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%206 = getelementptr inbounds [30 x i8], ptr %16, i64 0, i64 0
%207 = call i32 @strcpy(ptr noundef %205, ptr noundef %206)
br label %210
208: ; preds = %200
%209 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %210
210: ; preds = %208, %204
br label %211
211: ; preds = %210, %196
br label %212
212: ; preds = %211, %164
br label %213
213: ; preds = %212
%214 = load i32, ptr %2, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %2, align 4
%216 = load i32, ptr %2, align 4
%217 = load i32, ptr %6, align 4
%218 = add nsw i32 %217, 1
%219 = icmp slt i32 %216, %218
br i1 %219, label %131, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %213
br label %220
220: ; preds = %._crit_edge14, %125
%221 = load i32, ptr %12, align 4
%222 = icmp eq i32 %221, 1
br i1 %222, label %223, label %228
223: ; preds = %220
%224 = getelementptr inbounds [30 x i8], ptr %17, i64 0, i64 0
%225 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %224)
%226 = getelementptr inbounds [30 x i8], ptr %18, i64 0, i64 0
%227 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %226)
br label %230
228: ; preds = %220
%229 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %230
230: ; preds = %228, %223
%231 = load i32, ptr %1, align 4
ret i32 %231
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmprboknp08.c'
source_filename = "/tmp/tmprboknp08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TableStrRegister(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call ptr @TableStrRegister2(ptr noundef %3, i32 noundef %5)
ret ptr %6
}
declare ptr @TableStrRegister2(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprboknp08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TableStrRegister(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call ptr @TableStrRegister2(ptr noundef %3, i32 noundef %5)
ret ptr %6
}
declare ptr @TableStrRegister2(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6fq47tqz.c'
source_filename = "/tmp/tmp6fq47tqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%08x \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexdump_addr(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 [17 x i32], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 16
store i32 0, ptr %9, align 16
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %72, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %75
14: ; preds = %10
%15 = load i32, ptr %7, align 4
%16 = srem i32 %15, 16
%17 = icmp ne i32 %16, 0
br i1 %17, label %23, label %18
18: ; preds = %14
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %19, %20
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
br label %23
23: ; preds = %18, %14
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp sge i32 %28, 32
br i1 %29, label %30, label %43
30: ; preds = %23
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp sle i32 %35, 126
br i1 %36, label %37, label %43
37: ; preds = %30
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
br label %44
43: ; preds = %30, %23
br label %44
44: ; preds = %43, %37
%45 = phi i32 [ %42, %37 ], [ 46, %43 ]
%46 = load i32, ptr %7, align 4
%47 = srem i32 %46, 16
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %48
store i32 %45, ptr %49, align 4
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %7, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %54)
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
%58 = srem i32 %57, 8
%59 = icmp ne i32 %58, 0
br i1 %59, label %71, label %60
60: ; preds = %44
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
%63 = srem i32 %62, 16
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %60
%66 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 0
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %66)
br label %70
68: ; preds = %60
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %70
70: ; preds = %68, %65
br label %71
71: ; preds = %70, %44
br label %72
72: ; preds = %71
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
br label %10, !llvm.loop !6
75: ; preds = %10
%76 = load i32, ptr %7, align 4
%77 = srem i32 %76, 16
%78 = sub nsw i32 16, %77
store i32 %78, ptr %7, align 4
%79 = load i32, ptr %7, align 4
%80 = sub nsw i32 16, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %81
store i32 0, ptr %82, align 4
%83 = load i32, ptr %7, align 4
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %103
85: ; preds = %75
%86 = load i32, ptr %7, align 4
%87 = icmp slt i32 %86, 16
br i1 %87, label %88, label %103
88: ; preds = %85
%89 = load i32, ptr %7, align 4
%90 = icmp sgt i32 %89, 8
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %93
93: ; preds = %91, %88
br label %94
94: ; preds = %98, %93
%95 = load i32, ptr %7, align 4
%96 = add nsw i32 %95, -1
store i32 %96, ptr %7, align 4
%97 = icmp ne i32 %95, 0
br i1 %97, label %98, label %100
98: ; preds = %94
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %94, !llvm.loop !8
100: ; preds = %94
%101 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 0
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %101)
br label %103
103: ; preds = %100, %85, %75
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6fq47tqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%08x \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexdump_addr(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 [17 x i32], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 16
store i32 0, ptr %9, align 16
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %77
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %71
%14 = load i32, ptr %7, align 4
%15 = srem i32 %14, 16
%16 = icmp ne i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %13
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %18, %19
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %22
22: ; preds = %17, %13
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sge i32 %27, 32
br i1 %28, label %29, label %42
29: ; preds = %22
%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 = icmp sle i32 %34, 126
br i1 %35, label %36, label %42
36: ; preds = %29
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
br label %43
42: ; preds = %29, %22
br label %43
43: ; preds = %42, %36
%44 = phi i32 [ %41, %36 ], [ 46, %42 ]
%45 = load i32, ptr %7, align 4
%46 = srem i32 %45, 16
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %47
store i32 %44, ptr %48, align 4
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %53)
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, 1
%57 = srem i32 %56, 8
%58 = icmp ne i32 %57, 0
br i1 %58, label %70, label %59
59: ; preds = %43
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
%62 = srem i32 %61, 16
%63 = icmp ne i32 %62, 0
br i1 %63, label %67, label %64
64: ; preds = %59
%65 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 0
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %65)
br label %69
67: ; preds = %59
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %69
69: ; preds = %67, %64
br label %70
70: ; preds = %69, %43
br label %71
71: ; preds = %70
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %7, align 4
%74 = load i32, ptr %7, align 4
%75 = load i32, ptr %5, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %71
br label %77
77: ; preds = %._crit_edge, %3
%78 = load i32, ptr %7, align 4
%79 = srem i32 %78, 16
%80 = sub nsw i32 16, %79
store i32 %80, ptr %7, align 4
%81 = load i32, ptr %7, align 4
%82 = sub nsw i32 16, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 %83
store i32 0, ptr %84, align 4
%85 = load i32, ptr %7, align 4
%86 = icmp sgt i32 %85, 0
br i1 %86, label %87, label %107
87: ; preds = %77
%88 = load i32, ptr %7, align 4
%89 = icmp slt i32 %88, 16
br i1 %89, label %90, label %107
90: ; preds = %87
%91 = load i32, ptr %7, align 4
%92 = icmp sgt i32 %91, 8
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %95
95: ; preds = %93, %90
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, -1
store i32 %97, ptr %7, align 4
%98 = icmp ne i32 %96, 0
br i1 %98, label %.lr.ph2, label %104
.lr.ph2: ; preds = %95
br label %99
99: ; preds = %.lr.ph2, %99
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%101 = load i32, ptr %7, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %7, align 4
%103 = icmp ne i32 %101, 0
br i1 %103, label %99, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %99
br label %104
104: ; preds = %._crit_edge3, %95
%105 = getelementptr inbounds [17 x i32], ptr %8, i64 0, i64 0
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %105)
br label %107
107: ; preds = %104, %87, %77
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7jf8mulq.c'
source_filename = "/tmp/tmp7jf8mulq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"1-100 arasi bir sayi tuttum. Tahmin et! Cikmak icin -1 gir.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Oyundan cikiliyor...\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Tahminin 1 ve 100 arasinda olmali.\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Tebrikler. Sayiyi %d. denemede bildin. Sayi: %d. Puan: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [37 x i8] c"Kucuk bir sayi girdin. Tekrar dene!\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"Buyuk bir sayi girdin. Tekrar dene!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 50, ptr %5, align 4
%6 = call i32 @time(ptr noundef null)
%7 = call i32 @srand(i32 noundef %6)
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 100
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %12
12: ; preds = %60, %0
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, -1
br i1 %14, label %15, label %61
15: ; preds = %12
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %61
21: ; preds = %15
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = icmp sgt i32 %25, 100
br i1 %26, label %27, label %33
27: ; preds = %24, %21
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%29 = load i32, ptr %5, align 4
%30 = sub nsw i32 %29, 5
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %60
33: ; preds = %24
%34 = load i32, ptr %2, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %42
37: ; preds = %33
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %5, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38, i32 noundef %39, i32 noundef %40)
br label %61
42: ; preds = %33
%43 = load i32, ptr %2, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %52
46: ; preds = %42
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %5, align 4
%51 = sub nsw i32 %50, 5
store i32 %51, ptr %5, align 4
br label %58
52: ; preds = %42
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %3, align 4
%56 = load i32, ptr %5, align 4
%57 = sub nsw i32 %56, 5
store i32 %57, ptr %5, align 4
br label %58
58: ; preds = %52, %46
br label %59
59: ; preds = %58
br label %60
60: ; preds = %59, %27
br label %12, !llvm.loop !6
61: ; preds = %37, %19, %12
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7jf8mulq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [61 x i8] c"1-100 arasi bir sayi tuttum. Tahmin et! Cikmak icin -1 gir.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Oyundan cikiliyor...\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Tahminin 1 ve 100 arasinda olmali.\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Tebrikler. Sayiyi %d. denemede bildin. Sayi: %d. Puan: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [37 x i8] c"Kucuk bir sayi girdin. Tekrar dene!\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"Buyuk bir sayi girdin. Tekrar dene!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
store i32 50, ptr %5, align 4
%6 = call i32 @time(ptr noundef null)
%7 = call i32 @srand(i32 noundef %6)
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 100
%10 = add nsw i32 %9, 1
store i32 %10, ptr %4, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, -1
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %59
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %62
20: ; preds = %14
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %21, 1
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = icmp sgt i32 %24, 100
br i1 %25, label %26, label %32
26: ; preds = %23, %20
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%28 = load i32, ptr %5, align 4
%29 = sub nsw i32 %28, 5
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %59
32: ; preds = %23
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %4, align 4
%39 = load i32, ptr %5, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %37, i32 noundef %38, i32 noundef %39)
br label %62
41: ; preds = %32
%42 = load i32, ptr %2, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %41
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
%49 = load i32, ptr %5, align 4
%50 = sub nsw i32 %49, 5
store i32 %50, ptr %5, align 4
br label %57
51: ; preds = %41
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%53 = load i32, ptr %3, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %3, align 4
%55 = load i32, ptr %5, align 4
%56 = sub nsw i32 %55, 5
store i32 %56, ptr %5, align 4
br label %57
57: ; preds = %51, %45
br label %58
58: ; preds = %57
br label %59
59: ; preds = %58, %26
%60 = load i32, ptr %2, align 4
%61 = icmp ne i32 %60, -1
br i1 %61, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %59
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %62
62: ; preds = %.loopexit, %36, %18
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpc22m0vuf.c'
source_filename = "/tmp/tmpc22m0vuf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CSlaveIntDisableEx(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 @I2CSlaveBaseValid(i64 noundef %5)
%7 = call i32 @DEBUG_ASSERT(i32 noundef %6)
%8 = load i64, ptr %4, align 8
%9 = xor i64 %8, -1
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 12
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, %9
store volatile i64 %14, ptr %12, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @I2CSlaveBaseValid(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/tmpc22m0vuf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CSlaveIntDisableEx(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 @I2CSlaveBaseValid(i64 noundef %5)
%7 = call i32 @DEBUG_ASSERT(i32 noundef %6)
%8 = load i64, ptr %4, align 8
%9 = xor i64 %8, -1
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 12
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, %9
store volatile i64 %14, ptr %12, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @I2CSlaveBaseValid(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/tmpvrax4tm0.c'
source_filename = "/tmp/tmpvrax4tm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_begins_with2(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 i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i64, ptr %7, align 8
%13 = call i64 @memcmp(ptr noundef %10, ptr noundef %11, i64 noundef %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = call i64 @strlen(ptr noundef %20)
%22 = call i64 @memcmp(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = icmp eq i64 %22, 0
br label %24
24: ; preds = %15, %3
%25 = phi i1 [ false, %3 ], [ %23, %15 ]
%26 = zext i1 %25 to i32
ret i32 %26
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(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/tmpvrax4tm0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_begins_with2(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 i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i64, ptr %7, align 8
%13 = call i64 @memcmp(ptr noundef %10, ptr noundef %11, i64 noundef %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = call i64 @strlen(ptr noundef %20)
%22 = call i64 @memcmp(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = icmp eq i64 %22, 0
br label %24
24: ; preds = %15, %3
%25 = phi i1 [ false, %3 ], [ %23, %15 ]
%26 = zext i1 %25 to i32
ret i32 %26
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(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/tmpa6td0oeb.c'
source_filename = "/tmp/tmpa6td0oeb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @_alarm(i32 noundef %5)
%7 = call i32 (...) @_pause()
%8 = call i32 @time(ptr noundef null)
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %8, %9
ret i32 %10
}
declare i32 @time(ptr noundef) #1
declare i32 @_alarm(i32 noundef) #1
declare i32 @_pause(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa6td0oeb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @time(ptr noundef null)
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @_alarm(i32 noundef %5)
%7 = call i32 (...) @_pause()
%8 = call i32 @time(ptr noundef null)
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %8, %9
ret i32 %10
}
declare i32 @time(ptr noundef) #1
declare i32 @_alarm(i32 noundef) #1
declare i32 @_pause(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_q7faq0g.c'
source_filename = "/tmp/tmp_q7faq0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wep_keygen40(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %29, %2
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %6, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %8
%16 = load i32, ptr %6, align 4
%17 = and i32 %16, 3
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i32, ptr %7, align 4
%25 = mul nsw i32 %24, 8
%26 = shl i32 %23, %25
%27 = load i32, ptr %5, align 4
%28 = xor i32 %27, %26
store i32 %28, ptr %5, align 4
br label %29
29: ; preds = %15
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i32, ptr %5, align 4
%34 = load ptr, ptr %4, align 8
%35 = call i32 @wep_seedkeygen(i32 noundef %33, ptr noundef %34)
ret void
}
declare i32 @wep_seedkeygen(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_q7faq0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wep_keygen40(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %28
%15 = load i32, ptr %6, align 4
%16 = and i32 %15, 3
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %7, align 4
%24 = mul nsw i32 %23, 8
%25 = shl i32 %22, %24
%26 = load i32, ptr %5, align 4
%27 = xor i32 %26, %25
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %14
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %4, align 8
%40 = call i32 @wep_seedkeygen(i32 noundef %38, ptr noundef %39)
ret void
}
declare i32 @wep_seedkeygen(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw98naljy.c'
source_filename = "/tmp/tmpw98naljy.c"
target datalayout = "e-m:e-p270: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/tmpw98naljy.c"
target datalayout = "e-m:e-p270: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/tmpon5068ld.c'
source_filename = "/tmp/tmpon5068ld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @re_ordering(i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #0 {
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca [512 x i8], align 16
%30 = alloca [512 x i8], align 16
%31 = alloca [3 x i8], align 1
%32 = alloca ptr, align 8
%33 = alloca i64, align 8
%34 = alloca i64, align 8
%35 = alloca i64, align 8
%36 = alloca i64, align 8
%37 = alloca i64, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
store i64 %0, ptr %15, align 8
store ptr %1, ptr %16, align 8
store ptr %2, ptr %17, align 8
store ptr %3, ptr %18, align 8
store ptr %4, ptr %19, align 8
store ptr %5, ptr %20, align 8
store ptr %6, ptr %21, align 8
store ptr %7, ptr %22, align 8
store ptr %8, ptr %23, align 8
store ptr %9, ptr %24, align 8
store ptr %10, ptr %25, align 8
store ptr %11, ptr %26, align 8
store ptr %12, ptr %27, align 8
store ptr %13, ptr %28, align 8
store i64 0, ptr %37, align 8
store i64 1, ptr %33, align 8
br label %40
40: ; preds = %139, %14
%41 = load i64, ptr %33, align 8
%42 = load i64, ptr %15, align 8
%43 = icmp sle i64 %41, %42
br i1 %43, label %44, label %142
44: ; preds = %40
%45 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 0
%46 = load ptr, ptr %16, align 8
%47 = load i64, ptr %33, align 8
%48 = getelementptr inbounds ptr, ptr %46, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = getelementptr inbounds i64, ptr %49, i64 3
%51 = load i64, ptr %50, align 8
%52 = icmp eq i64 %51, 2
%53 = zext i1 %52 to i64
%54 = select i1 %52, i32 45, i32 42
%55 = trunc i32 %54 to i8
%56 = load ptr, ptr %16, align 8
%57 = load i64, ptr %33, align 8
%58 = getelementptr inbounds ptr, ptr %56, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds i64, ptr %59, i64 3
%61 = load i64, ptr %60, align 8
%62 = icmp sgt i64 %61, 0
%63 = zext i1 %62 to i64
%64 = select i1 %62, i32 45, i32 42
%65 = trunc i32 %64 to i8
%66 = call i32 @sprintf(ptr noundef %45, ptr noundef @.str, i8 noundef signext %55, i8 noundef signext %65)
%67 = load ptr, ptr %16, align 8
%68 = load i64, ptr %33, align 8
%69 = getelementptr inbounds ptr, ptr %67, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = getelementptr inbounds i64, ptr %70, i64 1
%72 = load i64, ptr %71, align 8
store i64 %72, ptr %34, align 8
%73 = load ptr, ptr %16, align 8
%74 = load i64, ptr %33, align 8
%75 = getelementptr inbounds ptr, ptr %73, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = getelementptr inbounds i64, ptr %76, i64 2
%78 = load i64, ptr %77, align 8
store i64 %78, ptr %36, align 8
%79 = load ptr, ptr %24, align 8
%80 = load i64, ptr %34, align 8
%81 = getelementptr inbounds ptr, ptr %79, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds i64, ptr %82, i64 1
%84 = load i64, ptr %83, align 8
store i64 %84, ptr %35, align 8
%85 = load ptr, ptr %26, align 8
%86 = load i64, ptr %35, align 8
%87 = getelementptr inbounds i8, ptr %85, i64 %86
%88 = load i8, ptr %87, align 1
%89 = load ptr, ptr %27, align 8
%90 = load i64, ptr %35, align 8
%91 = getelementptr inbounds i64, ptr %89, i64 %90
%92 = load i64, ptr %91, align 8
%93 = load ptr, ptr %28, align 8
%94 = load i64, ptr %35, align 8
%95 = getelementptr inbounds ptr, ptr %93, i64 %94
%96 = load ptr, ptr %95, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 2
%98 = load i8, ptr %97, align 1
%99 = load ptr, ptr %25, align 8
%100 = load i64, ptr %35, align 8
%101 = getelementptr inbounds ptr, ptr %99, i64 %100
%102 = load ptr, ptr %101, align 8
%103 = load ptr, ptr %23, align 8
%104 = load i64, ptr %34, align 8
%105 = getelementptr inbounds i8, ptr %103, i64 %104
%106 = load i8, ptr %105, align 1
%107 = getelementptr inbounds [512 x i8], ptr %29, i64 0, i64 0
%108 = call i32 @baseinfo(i8 noundef signext %88, i64 noundef %92, i8 noundef signext %98, ptr noundef %102, i8 noundef signext %106, i32 noundef 1, ptr noundef %107)
%109 = load ptr, ptr %24, align 8
%110 = load i64, ptr %36, align 8
%111 = getelementptr inbounds ptr, ptr %109, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = getelementptr inbounds i64, ptr %112, i64 1
%114 = load i64, ptr %113, align 8
store i64 %114, ptr %35, align 8
%115 = load ptr, ptr %26, align 8
%116 = load i64, ptr %35, align 8
%117 = getelementptr inbounds i8, ptr %115, i64 %116
%118 = load i8, ptr %117, align 1
%119 = load ptr, ptr %27, align 8
%120 = load i64, ptr %35, align 8
%121 = getelementptr inbounds i64, ptr %119, i64 %120
%122 = load i64, ptr %121, align 8
%123 = load ptr, ptr %28, align 8
%124 = load i64, ptr %35, align 8
%125 = getelementptr inbounds ptr, ptr %123, i64 %124
%126 = load ptr, ptr %125, align 8
%127 = getelementptr inbounds i8, ptr %126, i64 2
%128 = load i8, ptr %127, align 1
%129 = load ptr, ptr %25, align 8
%130 = load i64, ptr %35, align 8
%131 = getelementptr inbounds ptr, ptr %129, i64 %130
%132 = load ptr, ptr %131, align 8
%133 = load ptr, ptr %23, align 8
%134 = load i64, ptr %36, align 8
%135 = getelementptr inbounds i8, ptr %133, i64 %134
%136 = load i8, ptr %135, align 1
%137 = getelementptr inbounds [512 x i8], ptr %30, i64 0, i64 0
%138 = call i32 @baseinfo(i8 noundef signext %118, i64 noundef %122, i8 noundef signext %128, ptr noundef %132, i8 noundef signext %136, i32 noundef 2, ptr noundef %137)
br label %139
139: ; preds = %44
%140 = load i64, ptr %33, align 8
%141 = add nsw i64 %140, 1
store i64 %141, ptr %33, align 8
br label %40, !llvm.loop !6
142: ; preds = %40
%143 = load i64, ptr %15, align 8
%144 = call ptr @dmatrix(i32 noundef 1, i64 noundef %143, i32 noundef 1, i32 noundef 9)
store ptr %144, ptr %32, align 8
store i64 1, ptr %33, align 8
br label %145
145: ; preds = %174, %142
%146 = load i64, ptr %33, align 8
%147 = load i64, ptr %15, align 8
%148 = icmp sle i64 %146, %147
br i1 %148, label %149, label %177
149: ; preds = %145
store i64 1, ptr %35, align 8
br label %150
150: ; preds = %170, %149
%151 = load i64, ptr %35, align 8
%152 = icmp sle i64 %151, 9
br i1 %152, label %153, label %173
153: ; preds = %150
%154 = load ptr, ptr %16, align 8
%155 = load i64, ptr %33, align 8
%156 = getelementptr inbounds ptr, ptr %154, i64 %155
%157 = load ptr, ptr %156, align 8
%158 = load i64, ptr %35, align 8
%159 = add nsw i64 %158, 8
%160 = getelementptr inbounds i64, ptr %157, i64 %159
%161 = load i64, ptr %160, align 8
%162 = sitofp i64 %161 to double
%163 = fdiv double %162, 1.000000e+04
%164 = load ptr, ptr %32, align 8
%165 = load i64, ptr %33, align 8
%166 = getelementptr inbounds ptr, ptr %164, i64 %165
%167 = load ptr, ptr %166, align 8
%168 = load i64, ptr %35, align 8
%169 = getelementptr inbounds double, ptr %167, i64 %168
store double %163, ptr %169, align 8
br label %170
170: ; preds = %153
%171 = load i64, ptr %35, align 8
%172 = add nsw i64 %171, 1
store i64 %172, ptr %35, align 8
br label %150, !llvm.loop !8
173: ; preds = %150
br label %174
174: ; preds = %173
%175 = load i64, ptr %33, align 8
%176 = add nsw i64 %175, 1
store i64 %176, ptr %33, align 8
br label %145, !llvm.loop !9
177: ; preds = %145
%178 = load i64, ptr %15, align 8
%179 = call ptr @lmatrix(i32 noundef 1, i64 noundef %178, i32 noundef 1, i32 noundef 3)
store ptr %179, ptr %38, align 8
%180 = load i64, ptr %15, align 8
%181 = call ptr @lmatrix(i32 noundef 1, i64 noundef %180, i32 noundef 1, i32 noundef 3)
store ptr %181, ptr %39, align 8
%182 = load i64, ptr %15, align 8
%183 = load ptr, ptr %16, align 8
%184 = load ptr, ptr %20, align 8
%185 = getelementptr inbounds double, ptr %184, i64 6
%186 = load double, ptr %185, align 8
%187 = load ptr, ptr %32, align 8
%188 = load ptr, ptr %38, align 8
%189 = load ptr, ptr %39, align 8
%190 = call i32 @bp_context1(i64 noundef %182, ptr noundef %183, double noundef %186, ptr noundef %187, ptr noundef %188, ptr noundef %189, ptr noundef %37)
%191 = load i64, ptr %15, align 8
%192 = load ptr, ptr %19, align 8
%193 = load i64, ptr %37, align 8
%194 = load ptr, ptr %21, align 8
%195 = load ptr, ptr %39, align 8
%196 = load ptr, ptr %38, align 8
%197 = load ptr, ptr %17, align 8
%198 = load ptr, ptr %18, align 8
%199 = call i32 @locate_helix1(i64 noundef %191, ptr noundef %192, i64 noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %198)
%200 = load i64, ptr %15, align 8
%201 = load ptr, ptr %21, align 8
%202 = load ptr, ptr %19, align 8
%203 = load ptr, ptr %17, align 8
%204 = load ptr, ptr %32, align 8
%205 = load ptr, ptr %16, align 8
%206 = load ptr, ptr %22, align 8
%207 = call i32 @five2three(i64 noundef %200, ptr noundef %201, ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206)
%208 = load ptr, ptr %21, align 8
%209 = load ptr, ptr %19, align 8
%210 = load ptr, ptr %17, align 8
%211 = load ptr, ptr %32, align 8
%212 = call i32 @check_zdna(ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %211)
%213 = load ptr, ptr %32, align 8
%214 = load i64, ptr %15, align 8
%215 = call i32 @free_dmatrix(ptr noundef %213, i32 noundef 1, i64 noundef %214, i32 noundef 1, i32 noundef 9)
%216 = load ptr, ptr %38, align 8
%217 = load i64, ptr %15, align 8
%218 = call i32 @free_lmatrix(ptr noundef %216, i32 noundef 1, i64 noundef %217, i32 noundef 1, i32 noundef 3)
%219 = load ptr, ptr %39, align 8
%220 = load i64, ptr %15, align 8
%221 = call i32 @free_lmatrix(ptr noundef %219, i32 noundef 1, i64 noundef %220, i32 noundef 1, i32 noundef 3)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @baseinfo(i8 noundef signext, i64 noundef, i8 noundef signext, ptr noundef, i8 noundef signext, i32 noundef, ptr noundef) #1
declare ptr @dmatrix(i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare ptr @lmatrix(i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @bp_context1(i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @locate_helix1(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @five2three(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @check_zdna(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free_dmatrix(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_lmatrix(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpon5068ld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @re_ordering(i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #0 {
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca [512 x i8], align 16
%30 = alloca [512 x i8], align 16
%31 = alloca [3 x i8], align 1
%32 = alloca ptr, align 8
%33 = alloca i64, align 8
%34 = alloca i64, align 8
%35 = alloca i64, align 8
%36 = alloca i64, align 8
%37 = alloca i64, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
store i64 %0, ptr %15, align 8
store ptr %1, ptr %16, align 8
store ptr %2, ptr %17, align 8
store ptr %3, ptr %18, align 8
store ptr %4, ptr %19, align 8
store ptr %5, ptr %20, align 8
store ptr %6, ptr %21, align 8
store ptr %7, ptr %22, align 8
store ptr %8, ptr %23, align 8
store ptr %9, ptr %24, align 8
store ptr %10, ptr %25, align 8
store ptr %11, ptr %26, align 8
store ptr %12, ptr %27, align 8
store ptr %13, ptr %28, align 8
store i64 0, ptr %37, align 8
store i64 1, ptr %33, align 8
%40 = load i64, ptr %33, align 8
%41 = load i64, ptr %15, align 8
%42 = icmp sle i64 %40, %41
br i1 %42, label %.lr.ph, label %144
.lr.ph: ; preds = %14
br label %43
43: ; preds = %.lr.ph, %138
%44 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 0
%45 = load ptr, ptr %16, align 8
%46 = load i64, ptr %33, align 8
%47 = getelementptr inbounds ptr, ptr %45, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i64, ptr %48, i64 3
%50 = load i64, ptr %49, align 8
%51 = icmp eq i64 %50, 2
%52 = zext i1 %51 to i64
%53 = select i1 %51, i32 45, i32 42
%54 = trunc i32 %53 to i8
%55 = load ptr, ptr %16, align 8
%56 = load i64, ptr %33, align 8
%57 = getelementptr inbounds ptr, ptr %55, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds i64, ptr %58, i64 3
%60 = load i64, ptr %59, align 8
%61 = icmp sgt i64 %60, 0
%62 = zext i1 %61 to i64
%63 = select i1 %61, i32 45, i32 42
%64 = trunc i32 %63 to i8
%65 = call i32 @sprintf(ptr noundef %44, ptr noundef @.str, i8 noundef signext %54, i8 noundef signext %64)
%66 = load ptr, ptr %16, align 8
%67 = load i64, ptr %33, align 8
%68 = getelementptr inbounds ptr, ptr %66, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds i64, ptr %69, i64 1
%71 = load i64, ptr %70, align 8
store i64 %71, ptr %34, align 8
%72 = load ptr, ptr %16, align 8
%73 = load i64, ptr %33, align 8
%74 = getelementptr inbounds ptr, ptr %72, i64 %73
%75 = load ptr, ptr %74, align 8
%76 = getelementptr inbounds i64, ptr %75, i64 2
%77 = load i64, ptr %76, align 8
store i64 %77, ptr %36, align 8
%78 = load ptr, ptr %24, align 8
%79 = load i64, ptr %34, align 8
%80 = getelementptr inbounds ptr, ptr %78, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds i64, ptr %81, i64 1
%83 = load i64, ptr %82, align 8
store i64 %83, ptr %35, align 8
%84 = load ptr, ptr %26, align 8
%85 = load i64, ptr %35, align 8
%86 = getelementptr inbounds i8, ptr %84, i64 %85
%87 = load i8, ptr %86, align 1
%88 = load ptr, ptr %27, align 8
%89 = load i64, ptr %35, align 8
%90 = getelementptr inbounds i64, ptr %88, i64 %89
%91 = load i64, ptr %90, align 8
%92 = load ptr, ptr %28, align 8
%93 = load i64, ptr %35, align 8
%94 = getelementptr inbounds ptr, ptr %92, i64 %93
%95 = load ptr, ptr %94, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 2
%97 = load i8, ptr %96, align 1
%98 = load ptr, ptr %25, align 8
%99 = load i64, ptr %35, align 8
%100 = getelementptr inbounds ptr, ptr %98, i64 %99
%101 = load ptr, ptr %100, align 8
%102 = load ptr, ptr %23, align 8
%103 = load i64, ptr %34, align 8
%104 = getelementptr inbounds i8, ptr %102, i64 %103
%105 = load i8, ptr %104, align 1
%106 = getelementptr inbounds [512 x i8], ptr %29, i64 0, i64 0
%107 = call i32 @baseinfo(i8 noundef signext %87, i64 noundef %91, i8 noundef signext %97, ptr noundef %101, i8 noundef signext %105, i32 noundef 1, ptr noundef %106)
%108 = load ptr, ptr %24, align 8
%109 = load i64, ptr %36, align 8
%110 = getelementptr inbounds ptr, ptr %108, i64 %109
%111 = load ptr, ptr %110, align 8
%112 = getelementptr inbounds i64, ptr %111, i64 1
%113 = load i64, ptr %112, align 8
store i64 %113, ptr %35, align 8
%114 = load ptr, ptr %26, align 8
%115 = load i64, ptr %35, align 8
%116 = getelementptr inbounds i8, ptr %114, i64 %115
%117 = load i8, ptr %116, align 1
%118 = load ptr, ptr %27, align 8
%119 = load i64, ptr %35, align 8
%120 = getelementptr inbounds i64, ptr %118, i64 %119
%121 = load i64, ptr %120, align 8
%122 = load ptr, ptr %28, align 8
%123 = load i64, ptr %35, align 8
%124 = getelementptr inbounds ptr, ptr %122, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 2
%127 = load i8, ptr %126, align 1
%128 = load ptr, ptr %25, align 8
%129 = load i64, ptr %35, align 8
%130 = getelementptr inbounds ptr, ptr %128, i64 %129
%131 = load ptr, ptr %130, align 8
%132 = load ptr, ptr %23, align 8
%133 = load i64, ptr %36, align 8
%134 = getelementptr inbounds i8, ptr %132, i64 %133
%135 = load i8, ptr %134, align 1
%136 = getelementptr inbounds [512 x i8], ptr %30, i64 0, i64 0
%137 = call i32 @baseinfo(i8 noundef signext %117, i64 noundef %121, i8 noundef signext %127, ptr noundef %131, i8 noundef signext %135, i32 noundef 2, ptr noundef %136)
br label %138
138: ; preds = %43
%139 = load i64, ptr %33, align 8
%140 = add nsw i64 %139, 1
store i64 %140, ptr %33, align 8
%141 = load i64, ptr %33, align 8
%142 = load i64, ptr %15, align 8
%143 = icmp sle i64 %141, %142
br i1 %143, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %138
br label %144
144: ; preds = %._crit_edge, %14
%145 = load i64, ptr %15, align 8
%146 = call ptr @dmatrix(i32 noundef 1, i64 noundef %145, i32 noundef 1, i32 noundef 9)
store ptr %146, ptr %32, align 8
store i64 1, ptr %33, align 8
%147 = load i64, ptr %33, align 8
%148 = load i64, ptr %15, align 8
%149 = icmp sle i64 %147, %148
br i1 %149, label %.lr.ph5, label %182
.lr.ph5: ; preds = %144
br label %150
150: ; preds = %.lr.ph5, %176
store i64 1, ptr %35, align 8
%151 = load i64, ptr %35, align 8
%152 = icmp sle i64 %151, 9
br i1 %152, label %.lr.ph2, label %175
.lr.ph2: ; preds = %150
br label %153
153: ; preds = %.lr.ph2, %170
%154 = load ptr, ptr %16, align 8
%155 = load i64, ptr %33, align 8
%156 = getelementptr inbounds ptr, ptr %154, i64 %155
%157 = load ptr, ptr %156, align 8
%158 = load i64, ptr %35, align 8
%159 = add nsw i64 %158, 8
%160 = getelementptr inbounds i64, ptr %157, i64 %159
%161 = load i64, ptr %160, align 8
%162 = sitofp i64 %161 to double
%163 = fdiv double %162, 1.000000e+04
%164 = load ptr, ptr %32, align 8
%165 = load i64, ptr %33, align 8
%166 = getelementptr inbounds ptr, ptr %164, i64 %165
%167 = load ptr, ptr %166, align 8
%168 = load i64, ptr %35, align 8
%169 = getelementptr inbounds double, ptr %167, i64 %168
store double %163, ptr %169, align 8
br label %170
170: ; preds = %153
%171 = load i64, ptr %35, align 8
%172 = add nsw i64 %171, 1
store i64 %172, ptr %35, align 8
%173 = load i64, ptr %35, align 8
%174 = icmp sle i64 %173, 9
br i1 %174, label %153, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %170
br label %175
175: ; preds = %._crit_edge3, %150
br label %176
176: ; preds = %175
%177 = load i64, ptr %33, align 8
%178 = add nsw i64 %177, 1
store i64 %178, ptr %33, align 8
%179 = load i64, ptr %33, align 8
%180 = load i64, ptr %15, align 8
%181 = icmp sle i64 %179, %180
br i1 %181, label %150, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %176
br label %182
182: ; preds = %._crit_edge6, %144
%183 = load i64, ptr %15, align 8
%184 = call ptr @lmatrix(i32 noundef 1, i64 noundef %183, i32 noundef 1, i32 noundef 3)
store ptr %184, ptr %38, align 8
%185 = load i64, ptr %15, align 8
%186 = call ptr @lmatrix(i32 noundef 1, i64 noundef %185, i32 noundef 1, i32 noundef 3)
store ptr %186, ptr %39, align 8
%187 = load i64, ptr %15, align 8
%188 = load ptr, ptr %16, align 8
%189 = load ptr, ptr %20, align 8
%190 = getelementptr inbounds double, ptr %189, i64 6
%191 = load double, ptr %190, align 8
%192 = load ptr, ptr %32, align 8
%193 = load ptr, ptr %38, align 8
%194 = load ptr, ptr %39, align 8
%195 = call i32 @bp_context1(i64 noundef %187, ptr noundef %188, double noundef %191, ptr noundef %192, ptr noundef %193, ptr noundef %194, ptr noundef %37)
%196 = load i64, ptr %15, align 8
%197 = load ptr, ptr %19, align 8
%198 = load i64, ptr %37, align 8
%199 = load ptr, ptr %21, align 8
%200 = load ptr, ptr %39, align 8
%201 = load ptr, ptr %38, align 8
%202 = load ptr, ptr %17, align 8
%203 = load ptr, ptr %18, align 8
%204 = call i32 @locate_helix1(i64 noundef %196, ptr noundef %197, i64 noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201, ptr noundef %202, ptr noundef %203)
%205 = load i64, ptr %15, align 8
%206 = load ptr, ptr %21, align 8
%207 = load ptr, ptr %19, align 8
%208 = load ptr, ptr %17, align 8
%209 = load ptr, ptr %32, align 8
%210 = load ptr, ptr %16, align 8
%211 = load ptr, ptr %22, align 8
%212 = call i32 @five2three(i64 noundef %205, ptr noundef %206, ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %211)
%213 = load ptr, ptr %21, align 8
%214 = load ptr, ptr %19, align 8
%215 = load ptr, ptr %17, align 8
%216 = load ptr, ptr %32, align 8
%217 = call i32 @check_zdna(ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %216)
%218 = load ptr, ptr %32, align 8
%219 = load i64, ptr %15, align 8
%220 = call i32 @free_dmatrix(ptr noundef %218, i32 noundef 1, i64 noundef %219, i32 noundef 1, i32 noundef 9)
%221 = load ptr, ptr %38, align 8
%222 = load i64, ptr %15, align 8
%223 = call i32 @free_lmatrix(ptr noundef %221, i32 noundef 1, i64 noundef %222, i32 noundef 1, i32 noundef 3)
%224 = load ptr, ptr %39, align 8
%225 = load i64, ptr %15, align 8
%226 = call i32 @free_lmatrix(ptr noundef %224, i32 noundef 1, i64 noundef %225, i32 noundef 1, i32 noundef 3)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @baseinfo(i8 noundef signext, i64 noundef, i8 noundef signext, ptr noundef, i8 noundef signext, i32 noundef, ptr noundef) #1
declare ptr @dmatrix(i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare ptr @lmatrix(i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @bp_context1(i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @locate_helix1(i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @five2three(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @check_zdna(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free_dmatrix(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_lmatrix(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxknejv7e.c'
source_filename = "/tmp/tmpxknejv7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escreveNumerosDesc(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
store i32 %5, ptr %3, align 4
br label %6
6: ; preds = %13, %2
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sge i32 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxknejv7e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @escreveNumerosDesc(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sge i32 %6, %7
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %12
%10 = load i32, ptr %3, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sge i32 %15, %16
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9q1tldnl.c'
source_filename = "/tmp/tmp9q1tldnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GMP\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trace_free_gmp(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @trace_free(ptr noundef %5, ptr noundef @.str)
ret void
}
declare i32 @trace_free(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9q1tldnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GMP\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trace_free_gmp(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @trace_free(ptr noundef %5, ptr noundef @.str)
ret void
}
declare i32 @trace_free(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmm0xns91.c'
source_filename = "/tmp/tmpmm0xns91.c"
target datalayout = "e-m:e-p270: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/tmpmm0xns91.c"
target datalayout = "e-m:e-p270: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/tmp841tytoc.c'
source_filename = "/tmp/tmp841tytoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double 0x4058BD70A3D70A3D, ptr %4, align 8
store double -2.232000e-01, ptr %5, align 8
store double -6.457000e-03, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = load double, ptr %5, align 8
%11 = load double, ptr %6, align 8
%12 = load i32, ptr %3, align 4
%13 = sitofp i32 %12 to double
%14 = call double @llvm.fmuladd.f64(double %11, double %13, double %10)
%15 = call double @pow(i32 noundef %9, double noundef %14)
%16 = fmul double %8, %15
store double %16, ptr %7, align 8
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp841tytoc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double 0x4058BD70A3D70A3D, ptr %4, align 8
store double -2.232000e-01, ptr %5, align 8
store double -6.457000e-03, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = load double, ptr %5, align 8
%11 = load double, ptr %6, align 8
%12 = load i32, ptr %3, align 4
%13 = sitofp i32 %12 to double
%14 = call double @llvm.fmuladd.f64(double %11, double %13, double %10)
%15 = call double @pow(i32 noundef %9, double noundef %14)
%16 = fmul double %8, %15
store double %16, ptr %7, align 8
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmphts3ooxc.c'
source_filename = "/tmp/tmphts3ooxc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = 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/tmphts3ooxc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@MSG_CTRUNC = dso_local global i32 0, align 4
@errno = 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/tmpr67mycwk.c'
source_filename = "/tmp/tmpr67mycwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SU_Make_Lowercase(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 = %21, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %5, %8
br i1 %9, label %10, label %24
10: ; preds = %4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call signext i8 @tolower(i8 noundef signext %15)
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
br label %21
21: ; preds = %10
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
br label %4, !llvm.loop !6
24: ; preds = %4
ret void
}
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr67mycwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SU_Make_Lowercase(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 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %4, %7
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %20
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = call signext i8 @tolower(i8 noundef signext %14)
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 %15, ptr %19, align 1
br label %20
20: ; preds = %9
%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 = load ptr, ptr %2, align 8
%25 = call i64 @strlen(ptr noundef %24)
%26 = trunc i64 %25 to i32
%27 = icmp slt i32 %23, %26
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %28
28: ; preds = %._crit_edge, %1
ret void
}
declare i64 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp43n56kc9.c'
source_filename = "/tmp/tmp43n56kc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"str_njoin: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_njoin(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %8, align 8
%12 = add i64 %10, %11
%13 = call ptr @str_new(i64 noundef %12)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %25
16: ; preds = %4
%17 = load ptr, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i64, ptr %7, align 8
%20 = call i32 @strncpy(ptr noundef %17, ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i64, ptr %8, align 8
%24 = call i32 @strncat(ptr noundef %21, ptr noundef %22, i64 noundef %23)
br label %27
25: ; preds = %4
%26 = call i32 @perror(ptr noundef @.str)
br label %27
27: ; preds = %25, %16
%28 = load ptr, ptr %9, align 8
ret ptr %28
}
declare ptr @str_new(i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp43n56kc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"str_njoin: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_njoin(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %8, align 8
%12 = add i64 %10, %11
%13 = call ptr @str_new(i64 noundef %12)
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %25
16: ; preds = %4
%17 = load ptr, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
%19 = load i64, ptr %7, align 8
%20 = call i32 @strncpy(ptr noundef %17, ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i64, ptr %8, align 8
%24 = call i32 @strncat(ptr noundef %21, ptr noundef %22, i64 noundef %23)
br label %27
25: ; preds = %4
%26 = call i32 @perror(ptr noundef @.str)
br label %27
27: ; preds = %25, %16
%28 = load ptr, ptr %9, align 8
ret ptr %28
}
declare ptr @str_new(i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptemjzpfb.c'
source_filename = "/tmp/tmptemjzpfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putDebugChar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %7, %1
%4 = call i32 (...) @tx_rdy()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3, !llvm.loop !6
8: ; preds = %3
%9 = load i32, ptr %2, align 4
%10 = call i32 @tx_char(i32 noundef %9)
ret void
}
declare i32 @tx_rdy(...) #1
declare i32 @tx_char(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/tmptemjzpfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putDebugChar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %3, %1
%4 = call i32 (...) @tx_rdy()
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
br i1 %6, label %3, label %7, !llvm.loop !6
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = call i32 @tx_char(i32 noundef %8)
ret void
}
declare i32 @tx_rdy(...) #1
declare i32 @tx_char(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/tmpuajifcwq.c'
source_filename = "/tmp/tmpuajifcwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\0Afoo = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0Afoo je jednako sa 5\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0Afoo je jednako sa 7\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0Afoo nije jednako sa 7\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 6, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
store i32 5, ptr %1, align 4
br i1 true, label %4, label %6
4: ; preds = %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %6
6: ; preds = %4, %0
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 7
%9 = zext i1 %8 to i32
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 7
br i1 %11, label %12, label %14
12: ; preds = %6
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
14: ; preds = %6
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %16
16: ; preds = %14, %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/tmpuajifcwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\0Afoo = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0Afoo je jednako sa 5\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"\0Afoo je jednako sa 7\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\0Afoo nije jednako sa 7\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
store i32 6, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
store i32 5, ptr %1, align 4
br i1 true, label %4, label %6
4: ; preds = %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %6
6: ; preds = %4, %0
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 7
%9 = zext i1 %8 to i32
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 7
br i1 %11, label %12, label %14
12: ; preds = %6
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
14: ; preds = %6
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %16
16: ; preds = %14, %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/tmpx71ngh4l.c'
source_filename = "/tmp/tmpx71ngh4l.c"
target datalayout = "e-m:e-p270: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/tmpx71ngh4l.c"
target datalayout = "e-m:e-p270: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/tmphwmvcy9_.c'
source_filename = "/tmp/tmphwmvcy9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"could not open file %s for %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef %8, ptr noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @error_exit(i32 noundef 1, ptr noundef @.str, ptr noundef %14, ptr noundef %15)
br label %17
17: ; preds = %13, %3
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @error_exit(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphwmvcy9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"could not open file %s for %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @open_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @fopen(ptr noundef %8, ptr noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %17, label %13
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @error_exit(i32 noundef 1, ptr noundef @.str, ptr noundef %14, ptr noundef %15)
br label %17
17: ; preds = %13, %3
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @error_exit(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7t5u94em.c'
source_filename = "/tmp/tmp7t5u94em.c"
target datalayout = "e-m:e-p270: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/tmp7t5u94em.c"
target datalayout = "e-m:e-p270: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/tmp5dfj_kxq.c'
source_filename = "/tmp/tmp5dfj_kxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"* \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %2, align 4
br label %7
7: ; preds = %36, %0
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %39
11: ; preds = %7
store i32 1, ptr %4, align 4
br label %12
12: ; preds = %20, %11
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sub nsw i32 %14, %15
%17 = icmp sle i32 %13, %16
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %12, !llvm.loop !6
23: ; preds = %12
br label %24
24: ; preds = %30, %23
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = mul nsw i32 2, %26
%28 = sub nsw i32 %27, 1
%29 = icmp ne i32 %25, %28
br i1 %29, label %30, label %34
30: ; preds = %24
%31 = call i32 @printf(ptr noundef @.str.2)
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %24, !llvm.loop !8
34: ; preds = %24
store i32 0, ptr %5, align 4
%35 = call i32 @printf(ptr noundef @.str.3)
br label %36
36: ; preds = %34
%37 = load i32, ptr %2, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4
br label %7, !llvm.loop !9
39: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5dfj_kxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"* \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 1, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph5, label %49
.lr.ph5: ; preds = %0
br label %10
10: ; preds = %.lr.ph5, %43
store i32 1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = sub nsw i32 %12, %13
%15 = icmp sle i32 %11, %14
br i1 %15, label %.lr.ph, label %26
.lr.ph: ; preds = %10
br label %16
16: ; preds = %.lr.ph, %18
%17 = call i32 @printf(ptr noundef @.str.1)
br label %18
18: ; preds = %16
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = sub nsw i32 %22, %23
%25 = icmp sle i32 %21, %24
br i1 %25, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %26
26: ; preds = %._crit_edge, %10
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %2, align 4
%29 = mul nsw i32 2, %28
%30 = sub nsw i32 %29, 1
%31 = icmp ne i32 %27, %30
br i1 %31, label %.lr.ph2, label %41
.lr.ph2: ; preds = %26
br label %32
32: ; preds = %.lr.ph2, %32
%33 = call i32 @printf(ptr noundef @.str.2)
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %2, align 4
%38 = mul nsw i32 2, %37
%39 = sub nsw i32 %38, 1
%40 = icmp ne i32 %36, %39
br i1 %40, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %32
br label %41
41: ; preds = %._crit_edge3, %26
store i32 0, ptr %5, align 4
%42 = call i32 @printf(ptr noundef @.str.3)
br label %43
43: ; preds = %41
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %10, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %43
br label %49
49: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxqa6re3j.c'
source_filename = "/tmp/tmpxqa6re3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hdoip_free_buffer(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @hoic_sw(i32 noundef %9, i32 noundef 872415243)
ret i32 0
}
declare i32 @hoic_sw(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/tmpxqa6re3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hdoip_free_buffer(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @hoic_sw(i32 noundef %9, i32 noundef 872415243)
ret i32 0
}
declare i32 @hoic_sw(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/tmpgszszxu0.c'
source_filename = "/tmp/tmpgszszxu0.c"
target datalayout = "e-m:e-p270: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/tmpgszszxu0.c"
target datalayout = "e-m:e-p270: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/tmpyvg5xon6.c'
source_filename = "/tmp/tmpyvg5xon6.c"
target datalayout = "e-m:e-p270: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/tmpyvg5xon6.c"
target datalayout = "e-m:e-p270: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/tmpb5oc30ch.c'
source_filename = "/tmp/tmpb5oc30ch.c"
target datalayout = "e-m:e-p270: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/tmpb5oc30ch.c"
target datalayout = "e-m:e-p270: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/tmpeukxyu22.c'
source_filename = "/tmp/tmpeukxyu22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"value = %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 [2 x i32], align 4
%4 = alloca [2 x i32], align 4
%5 = alloca [5 x i32], align 16
%6 = alloca [5 x i32], align 16
%7 = alloca [6 x i32], align 16
%8 = alloca [6 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 6, ptr %2, align 4
%13 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
store i32 2, ptr %13, align 4
%14 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
store i32 4, ptr %14, align 4
%15 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
store i32 3, ptr %15, align 4
%16 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 1
store i32 2, ptr %16, align 4
%17 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 0
store i32 2, ptr %17, align 16
%18 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 1
store i32 3, ptr %18, align 4
%19 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 2
store i32 1, ptr %19, align 8
%20 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 3
store i32 3, ptr %20, align 4
%21 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 4
store i32 4, ptr %21, align 16
%22 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %22, align 16
%23 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
store i32 1, ptr %23, align 4
%24 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
store i32 2, ptr %24, align 8
%25 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 3
store i32 2, ptr %25, align 4
%26 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
store i32 1, ptr %26, align 16
%27 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
store i32 7, ptr %27, align 16
%28 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 1
store i32 9, ptr %28, align 4
%29 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 2
store i32 3, ptr %29, align 8
%30 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 3
store i32 4, ptr %30, align 4
%31 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 4
store i32 8, ptr %31, align 16
%32 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 5
store i32 4, ptr %32, align 4
%33 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 0
store i32 8, ptr %33, align 16
%34 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 1
store i32 5, ptr %34, align 4
%35 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 2
store i32 6, ptr %35, align 8
%36 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 3
store i32 4, ptr %36, align 4
%37 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 4
store i32 5, ptr %37, align 16
%38 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 5
store i32 7, ptr %38, align 4
%39 = load i32, ptr %2, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 4
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %10, align 8
%46 = load i32, ptr %2, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = mul i64 %48, 4
%50 = trunc i64 %49 to i32
%51 = call i64 @malloc(i32 noundef %50)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %11, align 8
%53 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
%54 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 0
%56 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%57 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%58 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%59 = load i32, ptr %2, align 4
%60 = load ptr, ptr %10, align 8
%61 = load ptr, ptr %11, align 8
%62 = call i32 @Fastway(ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, i32 noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %9)
store i32 %62, ptr %12, align 4
%63 = load i32, ptr %9, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %63)
%65 = load ptr, ptr %10, align 8
%66 = load ptr, ptr %11, align 8
%67 = load i32, ptr %12, align 4
%68 = load i32, ptr %2, align 4
%69 = call i32 @reverse_PRINT_STATIONS(ptr noundef %65, ptr noundef %66, i32 noundef %67, i32 noundef %68)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @Fastway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @reverse_PRINT_STATIONS(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeukxyu22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"value = %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 [2 x i32], align 4
%4 = alloca [2 x i32], align 4
%5 = alloca [5 x i32], align 16
%6 = alloca [5 x i32], align 16
%7 = alloca [6 x i32], align 16
%8 = alloca [6 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 6, ptr %2, align 4
%13 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
store i32 2, ptr %13, align 4
%14 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
store i32 4, ptr %14, align 4
%15 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
store i32 3, ptr %15, align 4
%16 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 1
store i32 2, ptr %16, align 4
%17 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 0
store i32 2, ptr %17, align 16
%18 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 1
store i32 3, ptr %18, align 4
%19 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 2
store i32 1, ptr %19, align 8
%20 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 3
store i32 3, ptr %20, align 4
%21 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 4
store i32 4, ptr %21, align 16
%22 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store i32 2, ptr %22, align 16
%23 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
store i32 1, ptr %23, align 4
%24 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 2
store i32 2, ptr %24, align 8
%25 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 3
store i32 2, ptr %25, align 4
%26 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 4
store i32 1, ptr %26, align 16
%27 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
store i32 7, ptr %27, align 16
%28 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 1
store i32 9, ptr %28, align 4
%29 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 2
store i32 3, ptr %29, align 8
%30 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 3
store i32 4, ptr %30, align 4
%31 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 4
store i32 8, ptr %31, align 16
%32 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 5
store i32 4, ptr %32, align 4
%33 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 0
store i32 8, ptr %33, align 16
%34 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 1
store i32 5, ptr %34, align 4
%35 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 2
store i32 6, ptr %35, align 8
%36 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 3
store i32 4, ptr %36, align 4
%37 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 4
store i32 5, ptr %37, align 16
%38 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 5
store i32 7, ptr %38, align 4
%39 = load i32, ptr %2, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = mul i64 %41, 4
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %10, align 8
%46 = load i32, ptr %2, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = mul i64 %48, 4
%50 = trunc i64 %49 to i32
%51 = call i64 @malloc(i32 noundef %50)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %11, align 8
%53 = getelementptr inbounds [6 x i32], ptr %7, i64 0, i64 0
%54 = getelementptr inbounds [6 x i32], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 0
%56 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%57 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%58 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%59 = load i32, ptr %2, align 4
%60 = load ptr, ptr %10, align 8
%61 = load ptr, ptr %11, align 8
%62 = call i32 @Fastway(ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, i32 noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %9)
store i32 %62, ptr %12, align 4
%63 = load i32, ptr %9, align 4
%64 = call i32 @printf(ptr noundef @.str, i32 noundef %63)
%65 = load ptr, ptr %10, align 8
%66 = load ptr, ptr %11, align 8
%67 = load i32, ptr %12, align 4
%68 = load i32, ptr %2, align 4
%69 = call i32 @reverse_PRINT_STATIONS(ptr noundef %65, ptr noundef %66, i32 noundef %67, i32 noundef %68)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @Fastway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @reverse_PRINT_STATIONS(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4jep4dv7.c'
source_filename = "/tmp/tmp4jep4dv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" is the word you entered\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"not within bounds... try again: \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"exiting\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_word(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca [512 x i8], align 16
%9 = alloca [512 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %10)
br label %12
12: ; preds = %38, %3
%13 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%14 = load i32, ptr @stdin, align 4
%15 = call ptr @fgets(ptr noundef %13, i32 noundef 512, i32 noundef %14)
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %39
17: ; preds = %12
%18 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%19 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%20 = call i32 @sscanf(ptr noundef %18, ptr noundef @.str.1, ptr noundef %19)
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %36
22: ; preds = %17
%23 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%24 = call i64 @strlen(ptr noundef %23)
%25 = load i64, ptr %7, align 8
%26 = icmp ult i64 %24, %25
br i1 %26, label %27, label %34
27: ; preds = %22
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%30 = call i32 @strcpy(ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %31)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %4, align 4
br label %40
34: ; preds = %22
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %38
36: ; preds = %17
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %4, align 4
br label %40
38: ; preds = %34
br label %12, !llvm.loop !6
39: ; preds = %12
store i32 0, ptr %4, align 4
br label %40
40: ; preds = %39, %36, %27
%41 = load i32, ptr %4, align 4
ret i32 %41
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4jep4dv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" is the word you entered\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"not within bounds... try again: \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"exiting\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_word(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca [512 x i8], align 16
%9 = alloca [512 x i8], align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %10)
%12 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%13 = load i32, ptr @stdin, align 4
%14 = call ptr @fgets(ptr noundef %12, i32 noundef 512, i32 noundef %13)
%15 = icmp ne ptr %14, null
br i1 %15, label %.lr.ph, label %41
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %37
%17 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
%18 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @sscanf(ptr noundef %17, ptr noundef @.str.1, ptr noundef %18)
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %35
21: ; preds = %16
%22 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%23 = call i64 @strlen(ptr noundef %22)
%24 = load i64, ptr %7, align 8
%25 = icmp ult i64 %23, %24
br i1 %25, label %26, label %33
26: ; preds = %21
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @strcpy(ptr noundef %27, ptr noundef %28)
%30 = load ptr, ptr %6, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %4, align 4
br label %42
33: ; preds = %21
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %37
35: ; preds = %16
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %4, align 4
br label %42
37: ; preds = %33
%38 = load i32, ptr @stdin, align 4
%39 = call ptr @fgets(ptr noundef %12, i32 noundef 512, i32 noundef %38)
%40 = icmp ne ptr %39, null
br i1 %40, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %41
41: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %42
42: ; preds = %41, %35, %26
%43 = load i32, ptr %4, align 4
ret i32 %43
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0pxbn342.c'
source_filename = "/tmp/tmp0pxbn342.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DNuclear_4S(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = call i32 @pow(double noundef %6, double noundef -2.000000e+00)
%8 = sitofp i32 %7 to double
%9 = load double, ptr %3, align 8
%10 = fmul double 6.300000e+02, %9
%11 = load double, ptr %4, align 8
%12 = call double @llvm.fmuladd.f64(double %10, double %11, double 3.150000e+02)
%13 = load double, ptr %3, align 8
%14 = call i32 @pow(double noundef %13, double noundef 2.000000e+00)
%15 = sitofp i32 %14 to double
%16 = fmul double 6.300000e+02, %15
%17 = load double, ptr %4, align 8
%18 = call i32 @pow(double noundef %17, double noundef 2.000000e+00)
%19 = sitofp i32 %18 to double
%20 = call double @llvm.fmuladd.f64(double %16, double %19, double %12)
%21 = load double, ptr %3, align 8
%22 = call i32 @pow(double noundef %21, double noundef 3.000000e+00)
%23 = sitofp i32 %22 to double
%24 = fmul double 4.200000e+02, %23
%25 = load double, ptr %4, align 8
%26 = call i32 @pow(double noundef %25, double noundef 3.000000e+00)
%27 = sitofp i32 %26 to double
%28 = call double @llvm.fmuladd.f64(double %24, double %27, double %20)
%29 = load double, ptr %3, align 8
%30 = call i32 @pow(double noundef %29, double noundef 4.000000e+00)
%31 = sitofp i32 %30 to double
%32 = fmul double 2.100000e+02, %31
%33 = load double, ptr %4, align 8
%34 = call i32 @pow(double noundef %33, double noundef 4.000000e+00)
%35 = sitofp i32 %34 to double
%36 = call double @llvm.fmuladd.f64(double %32, double %35, double %28)
%37 = load double, ptr %3, align 8
%38 = call i32 @pow(double noundef %37, double noundef 5.000000e+00)
%39 = sitofp i32 %38 to double
%40 = fmul double 8.400000e+01, %39
%41 = load double, ptr %4, align 8
%42 = call i32 @pow(double noundef %41, double noundef 5.000000e+00)
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %40, double %43, double %36)
%45 = load double, ptr %3, align 8
%46 = call i32 @pow(double noundef %45, double noundef 6.000000e+00)
%47 = sitofp i32 %46 to double
%48 = fmul double 2.800000e+01, %47
%49 = load double, ptr %4, align 8
%50 = call i32 @pow(double noundef %49, double noundef 6.000000e+00)
%51 = sitofp i32 %50 to double
%52 = call double @llvm.fmuladd.f64(double %48, double %51, double %44)
%53 = load double, ptr %3, align 8
%54 = call i32 @pow(double noundef %53, double noundef 7.000000e+00)
%55 = sitofp i32 %54 to double
%56 = fmul double 8.000000e+00, %55
%57 = load double, ptr %4, align 8
%58 = call i32 @pow(double noundef %57, double noundef 7.000000e+00)
%59 = sitofp i32 %58 to double
%60 = call double @llvm.fmuladd.f64(double %56, double %59, double %52)
%61 = load double, ptr %3, align 8
%62 = call i32 @pow(double noundef %61, double noundef 8.000000e+00)
%63 = sitofp i32 %62 to double
%64 = fmul double 2.000000e+00, %63
%65 = load double, ptr %4, align 8
%66 = call i32 @pow(double noundef %65, double noundef 8.000000e+00)
%67 = sitofp i32 %66 to double
%68 = call double @llvm.fmuladd.f64(double %64, double %67, double %60)
%69 = load double, ptr %3, align 8
%70 = fmul double 2.000000e+00, %69
%71 = load double, ptr %4, align 8
%72 = fmul double %70, %71
%73 = call i32 @pow(double noundef 0x4005BF0A8B145769, double noundef %72)
%74 = sitofp i32 %73 to double
%75 = fmul double 3.150000e+02, %74
%76 = load double, ptr %3, align 8
%77 = call i32 @pow(double noundef %76, double noundef 2.000000e+00)
%78 = sitofp i32 %77 to double
%79 = fmul double %75, %78
%80 = fdiv double %68, %79
%81 = fsub double %8, %80
store double %81, ptr %5, align 8
%82 = load double, ptr %5, align 8
ret double %82
}
declare i32 @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp0pxbn342.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DNuclear_4S(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %3, align 8
%7 = call i32 @pow(double noundef %6, double noundef -2.000000e+00)
%8 = sitofp i32 %7 to double
%9 = load double, ptr %3, align 8
%10 = fmul double 6.300000e+02, %9
%11 = load double, ptr %4, align 8
%12 = call double @llvm.fmuladd.f64(double %10, double %11, double 3.150000e+02)
%13 = load double, ptr %3, align 8
%14 = call i32 @pow(double noundef %13, double noundef 2.000000e+00)
%15 = sitofp i32 %14 to double
%16 = fmul double 6.300000e+02, %15
%17 = load double, ptr %4, align 8
%18 = call i32 @pow(double noundef %17, double noundef 2.000000e+00)
%19 = sitofp i32 %18 to double
%20 = call double @llvm.fmuladd.f64(double %16, double %19, double %12)
%21 = load double, ptr %3, align 8
%22 = call i32 @pow(double noundef %21, double noundef 3.000000e+00)
%23 = sitofp i32 %22 to double
%24 = fmul double 4.200000e+02, %23
%25 = load double, ptr %4, align 8
%26 = call i32 @pow(double noundef %25, double noundef 3.000000e+00)
%27 = sitofp i32 %26 to double
%28 = call double @llvm.fmuladd.f64(double %24, double %27, double %20)
%29 = load double, ptr %3, align 8
%30 = call i32 @pow(double noundef %29, double noundef 4.000000e+00)
%31 = sitofp i32 %30 to double
%32 = fmul double 2.100000e+02, %31
%33 = load double, ptr %4, align 8
%34 = call i32 @pow(double noundef %33, double noundef 4.000000e+00)
%35 = sitofp i32 %34 to double
%36 = call double @llvm.fmuladd.f64(double %32, double %35, double %28)
%37 = load double, ptr %3, align 8
%38 = call i32 @pow(double noundef %37, double noundef 5.000000e+00)
%39 = sitofp i32 %38 to double
%40 = fmul double 8.400000e+01, %39
%41 = load double, ptr %4, align 8
%42 = call i32 @pow(double noundef %41, double noundef 5.000000e+00)
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %40, double %43, double %36)
%45 = load double, ptr %3, align 8
%46 = call i32 @pow(double noundef %45, double noundef 6.000000e+00)
%47 = sitofp i32 %46 to double
%48 = fmul double 2.800000e+01, %47
%49 = load double, ptr %4, align 8
%50 = call i32 @pow(double noundef %49, double noundef 6.000000e+00)
%51 = sitofp i32 %50 to double
%52 = call double @llvm.fmuladd.f64(double %48, double %51, double %44)
%53 = load double, ptr %3, align 8
%54 = call i32 @pow(double noundef %53, double noundef 7.000000e+00)
%55 = sitofp i32 %54 to double
%56 = fmul double 8.000000e+00, %55
%57 = load double, ptr %4, align 8
%58 = call i32 @pow(double noundef %57, double noundef 7.000000e+00)
%59 = sitofp i32 %58 to double
%60 = call double @llvm.fmuladd.f64(double %56, double %59, double %52)
%61 = load double, ptr %3, align 8
%62 = call i32 @pow(double noundef %61, double noundef 8.000000e+00)
%63 = sitofp i32 %62 to double
%64 = fmul double 2.000000e+00, %63
%65 = load double, ptr %4, align 8
%66 = call i32 @pow(double noundef %65, double noundef 8.000000e+00)
%67 = sitofp i32 %66 to double
%68 = call double @llvm.fmuladd.f64(double %64, double %67, double %60)
%69 = load double, ptr %3, align 8
%70 = fmul double 2.000000e+00, %69
%71 = load double, ptr %4, align 8
%72 = fmul double %70, %71
%73 = call i32 @pow(double noundef 0x4005BF0A8B145769, double noundef %72)
%74 = sitofp i32 %73 to double
%75 = fmul double 3.150000e+02, %74
%76 = load double, ptr %3, align 8
%77 = call i32 @pow(double noundef %76, double noundef 2.000000e+00)
%78 = sitofp i32 %77 to double
%79 = fmul double %75, %78
%80 = fdiv double %68, %79
%81 = fsub double %8, %80
store double %81, ptr %5, align 8
%82 = load double, ptr %5, align 8
ret double %82
}
declare i32 @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp_sh7fhq9.c'
source_filename = "/tmp/tmp_sh7fhq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"b\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"d\00", align 1
@__const.outS.formatAsm = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str, ptr @.str.1, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [14 x i8] c" dc.%s \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"00\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outS(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [5 x ptr], align 16
%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
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.outS.formatAsm, i64 40, i1 false)
%17 = load i32, ptr %7, align 4
store i32 %17, ptr %14, align 4
%18 = load i32, ptr %8, align 4
%19 = add nsw i32 %18, 1
%20 = sdiv i32 %19, 2
%21 = mul nsw i32 %20, 2
store i32 %21, ptr %15, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp slt i32 %22, 2
br i1 %23, label %24, label %25
24: ; preds = %5
br label %27
25: ; preds = %5
%26 = load i32, ptr %10, align 4
br label %27
27: ; preds = %25, %24
%28 = phi i32 [ 2, %24 ], [ %26, %25 ]
store i32 %28, ptr %16, align 4
br label %29
29: ; preds = %123, %27
%30 = load i32, ptr %15, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %128
32: ; preds = %29
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %16, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [5 x ptr], ptr %11, i64 0, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.3, ptr noundef %37)
store i32 0, ptr %12, align 4
br label %39
39: ; preds = %120, %32
%40 = load i32, ptr %12, align 4
%41 = load i32, ptr %15, align 4
%42 = icmp slt i32 16, %41
br i1 %42, label %43, label %44
43: ; preds = %39
br label %46
44: ; preds = %39
%45 = load i32, ptr %15, align 4
br label %46
46: ; preds = %44, %43
%47 = phi i32 [ 16, %43 ], [ %45, %44 ]
%48 = load i32, ptr %16, align 4
%49 = sdiv i32 %47, %48
%50 = icmp slt i32 %40, %49
br i1 %50, label %51, label %123
51: ; preds = %46
%52 = load i32, ptr %12, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load ptr, ptr %9, align 8
%56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.4)
br label %57
57: ; preds = %54, %51
%58 = load ptr, ptr %9, align 8
%59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.5)
%60 = load i32, ptr %10, align 4
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %95
62: ; preds = %57
%63 = load ptr, ptr %9, align 8
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 0
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.6, i32 noundef %70)
%72 = load i32, ptr %14, align 4
%73 = load i32, ptr %7, align 4
%74 = sub nsw i32 %72, %73
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
%77 = icmp sgt i32 %74, %76
br i1 %77, label %78, label %81
78: ; preds = %62
%79 = load ptr, ptr %9, align 8
%80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.7)
br label %91
81: ; preds = %62
%82 = load ptr, ptr %9, align 8
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr %14, align 4
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %83, i64 %86
%88 = load i8, ptr %87, align 1
%89 = zext i8 %88 to i32
%90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.6, i32 noundef %89)
br label %91
91: ; preds = %81, %78
%92 = load i32, ptr %16, align 4
%93 = load i32, ptr %14, align 4
%94 = add nsw i32 %93, %92
store i32 %94, ptr %14, align 4
br label %119
95: ; preds = %57
%96 = load i32, ptr %16, align 4
%97 = load i32, ptr %14, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %14, align 4
store i32 0, ptr %13, align 4
br label %99
99: ; preds = %115, %95
%100 = load i32, ptr %13, align 4
%101 = load i32, ptr %16, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %118
103: ; preds = %99
%104 = load ptr, ptr %9, align 8
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %14, align 4
%107 = load i32, ptr %13, align 4
%108 = add nsw i32 %107, 1
%109 = sub nsw i32 %106, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %105, i64 %110
%112 = load i8, ptr %111, align 1
%113 = zext i8 %112 to i32
%114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.6, i32 noundef %113)
br label %115
115: ; preds = %103
%116 = load i32, ptr %13, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %13, align 4
br label %99, !llvm.loop !6
118: ; preds = %99
br label %119
119: ; preds = %118, %91
br label %120
120: ; preds = %119
%121 = load i32, ptr %12, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %12, align 4
br label %39, !llvm.loop !8
123: ; preds = %46
%124 = load ptr, ptr %9, align 8
%125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.8)
%126 = load i32, ptr %15, align 4
%127 = sub nsw i32 %126, 16
store i32 %127, ptr %15, align 4
br label %29, !llvm.loop !9
128: ; preds = %29
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 @fprintf(ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_sh7fhq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"b\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"d\00", align 1
@__const.outS.formatAsm = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str, ptr @.str.1, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [14 x i8] c" dc.%s \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"0x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"00\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outS(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [5 x ptr], align 16
%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
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.outS.formatAsm, i64 40, i1 false)
%17 = load i32, ptr %7, align 4
store i32 %17, ptr %14, align 4
%18 = load i32, ptr %8, align 4
%19 = add nsw i32 %18, 1
%20 = sdiv i32 %19, 2
%21 = mul nsw i32 %20, 2
store i32 %21, ptr %15, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp slt i32 %22, 2
br i1 %23, label %24, label %25
24: ; preds = %5
br label %27
25: ; preds = %5
%26 = load i32, ptr %10, align 4
br label %27
27: ; preds = %25, %24
%28 = phi i32 [ 2, %24 ], [ %26, %25 ]
store i32 %28, ptr %16, align 4
%29 = load i32, ptr %15, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %.lr.ph2, label %131
.lr.ph2: ; preds = %27
br label %31
31: ; preds = %.lr.ph2, %124
%32 = load ptr, ptr %9, align 8
%33 = load i32, ptr %16, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x ptr], ptr %11, i64 0, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.3, ptr noundef %36)
store i32 0, ptr %12, align 4
br label %38
38: ; preds = %121, %31
%39 = load i32, ptr %12, align 4
%40 = load i32, ptr %15, align 4
%41 = icmp slt i32 16, %40
br i1 %41, label %42, label %43
42: ; preds = %38
br label %45
43: ; preds = %38
%44 = load i32, ptr %15, align 4
br label %45
45: ; preds = %43, %42
%46 = phi i32 [ 16, %42 ], [ %44, %43 ]
%47 = load i32, ptr %16, align 4
%48 = sdiv i32 %46, %47
%49 = icmp slt i32 %39, %48
br i1 %49, label %50, label %124
50: ; preds = %45
%51 = load i32, ptr %12, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load ptr, ptr %9, align 8
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.4)
br label %56
56: ; preds = %53, %50
%57 = load ptr, ptr %9, align 8
%58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.5)
%59 = load i32, ptr %10, align 4
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %94
61: ; preds = %56
%62 = load ptr, ptr %9, align 8
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %14, align 4
%65 = add nsw i32 %64, 0
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %63, i64 %66
%68 = load i8, ptr %67, align 1
%69 = zext i8 %68 to i32
%70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.6, i32 noundef %69)
%71 = load i32, ptr %14, align 4
%72 = load i32, ptr %7, align 4
%73 = sub nsw i32 %71, %72
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
%76 = icmp sgt i32 %73, %75
br i1 %76, label %77, label %80
77: ; preds = %61
%78 = load ptr, ptr %9, align 8
%79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.7)
br label %90
80: ; preds = %61
%81 = load ptr, ptr %9, align 8
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %14, align 4
%84 = add nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %82, i64 %85
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.6, i32 noundef %88)
br label %90
90: ; preds = %80, %77
%91 = load i32, ptr %16, align 4
%92 = load i32, ptr %14, align 4
%93 = add nsw i32 %92, %91
store i32 %93, ptr %14, align 4
br label %120
94: ; preds = %56
%95 = load i32, ptr %16, align 4
%96 = load i32, ptr %14, align 4
%97 = add nsw i32 %96, %95
store i32 %97, ptr %14, align 4
store i32 0, ptr %13, align 4
%98 = load i32, ptr %13, align 4
%99 = load i32, ptr %16, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %.lr.ph, label %119
.lr.ph: ; preds = %94
br label %101
101: ; preds = %.lr.ph, %113
%102 = load ptr, ptr %9, align 8
%103 = load ptr, ptr %6, align 8
%104 = load i32, ptr %14, align 4
%105 = load i32, ptr %13, align 4
%106 = add nsw i32 %105, 1
%107 = sub nsw i32 %104, %106
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %103, i64 %108
%110 = load i8, ptr %109, align 1
%111 = zext i8 %110 to i32
%112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.6, i32 noundef %111)
br label %113
113: ; preds = %101
%114 = load i32, ptr %13, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4
%116 = load i32, ptr %13, align 4
%117 = load i32, ptr %16, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %101, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %113
br label %119
119: ; preds = %._crit_edge, %94
br label %120
120: ; preds = %119, %90
br label %121
121: ; preds = %120
%122 = load i32, ptr %12, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %12, align 4
br label %38, !llvm.loop !8
124: ; preds = %45
%125 = load ptr, ptr %9, align 8
%126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.8)
%127 = load i32, ptr %15, align 4
%128 = sub nsw i32 %127, 16
store i32 %128, ptr %15, align 4
%129 = load i32, ptr %15, align 4
%130 = icmp sgt i32 %129, 0
br i1 %130, label %31, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %124
br label %131
131: ; preds = %._crit_edge3, %27
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 @fprintf(ptr noundef, ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmph92kl5ul.c'
source_filename = "/tmp/tmph92kl5ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strtok.next = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strtok(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
br label %14
12: ; preds = %2
%13 = load ptr, ptr @strtok.next, align 8
br label %14
14: ; preds = %12, %10
%15 = phi ptr [ %11, %10 ], [ %13, %12 ]
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store ptr null, ptr %3, align 8
br label %43
19: ; preds = %14
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strspn(ptr noundef %20, ptr noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %19
store ptr null, ptr @strtok.next, align 8
store ptr null, ptr %3, align 8
br label %43
31: ; preds = %19
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = call ptr @strpbrk(ptr noundef %32, ptr noundef %33)
store ptr %34, ptr %7, align 8
%35 = load ptr, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %7, align 8
store i8 0, ptr %38, align 1
br label %40
40: ; preds = %37, %31
%41 = load ptr, ptr %7, align 8
store ptr %41, ptr @strtok.next, align 8
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %40, %30, %18
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare i32 @strspn(ptr noundef, ptr noundef) #1
declare ptr @strpbrk(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/tmph92kl5ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strtok.next = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strtok(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
br label %14
12: ; preds = %2
%13 = load ptr, ptr @strtok.next, align 8
br label %14
14: ; preds = %12, %10
%15 = phi ptr [ %11, %10 ], [ %13, %12 ]
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store ptr null, ptr %3, align 8
br label %43
19: ; preds = %14
%20 = load ptr, ptr %6, align 8
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strspn(ptr noundef %20, ptr noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %23, i64 %24
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %19
store ptr null, ptr @strtok.next, align 8
store ptr null, ptr %3, align 8
br label %43
31: ; preds = %19
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = call ptr @strpbrk(ptr noundef %32, ptr noundef %33)
store ptr %34, ptr %7, align 8
%35 = load ptr, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load ptr, ptr %7, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %7, align 8
store i8 0, ptr %38, align 1
br label %40
40: ; preds = %37, %31
%41 = load ptr, ptr %7, align 8
store ptr %41, ptr @strtok.next, align 8
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %3, align 8
br label %43
43: ; preds = %40, %30, %18
%44 = load ptr, ptr %3, align 8
ret ptr %44
}
declare i32 @strspn(ptr noundef, ptr noundef) #1
declare ptr @strpbrk(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/tmpz0uk8h57.c'
source_filename = "/tmp/tmpz0uk8h57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [100 x i8], align 16
%6 = alloca [100 x i8], align 16
%7 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @__ESBMC_assume(i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 100
%14 = zext i1 %13 to i32
%15 = call i32 @__ESBMC_assume(i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %18
store i8 0, ptr %19, align 1
%20 = load i32, ptr %2, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 %22
store i8 0, ptr %23, align 1
%24 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @strcpy(ptr noundef %24, ptr noundef %25)
%27 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%28 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%29 = call i32 @strcat(ptr noundef %27, ptr noundef %28)
ret i32 1
}
declare i32 @__ESBMC_assume(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpz0uk8h57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [100 x i8], align 16
%6 = alloca [100 x i8], align 16
%7 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sgt i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @__ESBMC_assume(i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 100
%14 = zext i1 %13 to i32
%15 = call i32 @__ESBMC_assume(i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %18
store i8 0, ptr %19, align 1
%20 = load i32, ptr %2, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 %22
store i8 0, ptr %23, align 1
%24 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%25 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%26 = call i32 @strcpy(ptr noundef %24, ptr noundef %25)
%27 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%28 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%29 = call i32 @strcat(ptr noundef %27, ptr noundef %28)
ret i32 1
}
declare i32 @__ESBMC_assume(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpj2pyge52.c'
source_filename = "/tmp/tmpj2pyge52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
%struct.addrinfo = type { i32, i32, i32, ptr, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"cannot resolve host: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"connect error for %s, %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setup_connection(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 %struct.sockaddr_in, align 4
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 5
store i32 %14, ptr %15, align 4
%16 = load i32, ptr @SOCK_STREAM, align 4
%17 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %16, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getaddrinfo(ptr noundef %18, ptr noundef %19, ptr noundef %9, ptr noundef %10)
store i32 %20, ptr %12, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %12, align 4
%25 = call ptr @gai_strerror(i32 noundef %24)
%26 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %25)
store i32 0, ptr %3, align 4
br label %70
27: ; preds = %2
%28 = load ptr, ptr %10, align 8
store ptr %28, ptr %11, align 8
br label %29
29: ; preds = %53, %27
%30 = load i32, ptr @AF_INET, align 4
%31 = load i32, ptr @SOCK_STREAM, align 4
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 2
%34 = load i32, ptr %33, align 8
%35 = call i32 @socket(i32 noundef %30, i32 noundef %31, i32 noundef %34)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %29
br label %53
39: ; preds = %29
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.addrinfo, ptr %41, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds %struct.addrinfo, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 8
%47 = call i64 @connect(i32 noundef %40, i32 noundef %43, i32 noundef %46)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %39
br label %58
50: ; preds = %39
%51 = load i32, ptr %6, align 4
%52 = call i32 @close(i32 noundef %51)
br label %53
53: ; preds = %50, %38
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 3
%56 = load ptr, ptr %55, align 8
store ptr %56, ptr %10, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %29, label %58, !llvm.loop !6
58: ; preds = %53, %49
%59 = load ptr, ptr %10, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, ptr @stderr, align 4
%63 = load ptr, ptr %4, align 8
%64 = load ptr, ptr %5, align 8
%65 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.1, ptr noundef %63, ptr noundef %64)
store i32 0, ptr %3, align 4
br label %70
66: ; preds = %58
%67 = load ptr, ptr %11, align 8
%68 = call i32 @freeaddrinfo(ptr noundef %67)
%69 = load i32, ptr %6, align 4
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %66, %61, %22
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpj2pyge52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
%struct.addrinfo = type { i32, i32, i32, ptr, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"cannot resolve host: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"connect error for %s, %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setup_connection(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 %struct.sockaddr_in, align 4
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%14 = load i32, ptr @AF_INET, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 5
store i32 %14, ptr %15, align 4
%16 = load i32, ptr @SOCK_STREAM, align 4
%17 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %16, ptr %17, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getaddrinfo(ptr noundef %18, ptr noundef %19, ptr noundef %9, ptr noundef %10)
store i32 %20, ptr %12, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %12, align 4
%25 = call ptr @gai_strerror(i32 noundef %24)
%26 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %25)
store i32 0, ptr %3, align 4
br label %70
27: ; preds = %2
%28 = load ptr, ptr %10, align 8
store ptr %28, ptr %11, align 8
br label %29
29: ; preds = %53, %27
%30 = load i32, ptr @AF_INET, align 4
%31 = load i32, ptr @SOCK_STREAM, align 4
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 2
%34 = load i32, ptr %33, align 8
%35 = call i32 @socket(i32 noundef %30, i32 noundef %31, i32 noundef %34)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %29
br label %53
39: ; preds = %29
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.addrinfo, ptr %41, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %10, align 8
%45 = getelementptr inbounds %struct.addrinfo, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 8
%47 = call i64 @connect(i32 noundef %40, i32 noundef %43, i32 noundef %46)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %39
br label %58
50: ; preds = %39
%51 = load i32, ptr %6, align 4
%52 = call i32 @close(i32 noundef %51)
br label %53
53: ; preds = %50, %38
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 3
%56 = load ptr, ptr %55, align 8
store ptr %56, ptr %10, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %29, label %.loopexit, !llvm.loop !6
.loopexit: ; preds = %53
br label %58
58: ; preds = %.loopexit, %49
%59 = load ptr, ptr %10, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, ptr @stderr, align 4
%63 = load ptr, ptr %4, align 8
%64 = load ptr, ptr %5, align 8
%65 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.1, ptr noundef %63, ptr noundef %64)
store i32 0, ptr %3, align 4
br label %70
66: ; preds = %58
%67 = load ptr, ptr %11, align 8
%68 = call i32 @freeaddrinfo(ptr noundef %67)
%69 = load i32, ptr %6, align 4
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %66, %61, %22
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmptm6or6ld.c'
source_filename = "/tmp/tmptm6or6ld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s number_sentences\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@EOF = 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 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 %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
br label %24
24: ; preds = %70, %19
%25 = load i32, ptr @stdin, align 4
%26 = call i32 @fgetc(i32 noundef %25)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %29, label %71
29: ; preds = %24
%30 = load i32, ptr %6, align 4
%31 = call i32 @putchar(i32 noundef %30)
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 46
br i1 %33, label %40, label %34
34: ; preds = %29
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 63
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %6, align 4
%39 = icmp eq i32 %38, 33
br i1 %39, label %40, label %64
40: ; preds = %37, %34, %29
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %7, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %63
45: ; preds = %40
%46 = load i32, ptr %9, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %62
48: ; preds = %45
br label %49
49: ; preds = %60, %48
%50 = load i32, ptr @stdin, align 4
%51 = call i32 @fgetc(i32 noundef %50)
store i32 %51, ptr %6, align 4
%52 = load i32, ptr @EOF, align 4
%53 = icmp ne i32 %51, %52
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load i32, ptr %6, align 4
%56 = call i32 @putchar(i32 noundef %55)
%57 = load i32, ptr %6, align 4
%58 = icmp eq i32 %57, 34
br i1 %58, label %59, label %60
59: ; preds = %54
br label %61
60: ; preds = %54
br label %49, !llvm.loop !6
61: ; preds = %59, %49
br label %62
62: ; preds = %61, %45
br label %71
63: ; preds = %40
br label %64
64: ; preds = %63, %37
%65 = load i32, ptr %6, align 4
%66 = icmp eq i32 %65, 34
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load i32, ptr %9, align 4
%69 = sub nsw i32 1, %68
store i32 %69, ptr %9, align 4
br label %70
70: ; preds = %67, %64
br label %24, !llvm.loop !8
71: ; preds = %62, %24
ret i32 0
}
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 @fgetc(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptm6or6ld.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Usage: %s number_sentences\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@EOF = 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 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 %8, align 4
store i32 0, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr @stdin, align 4
%25 = call i32 @fgetc(i32 noundef %24)
store i32 %25, ptr %6, align 4
%26 = load i32, ptr @EOF, align 4
%27 = icmp ne i32 %25, %26
br i1 %27, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %19
br label %28
28: ; preds = %.lr.ph, %72
%29 = load i32, ptr %6, align 4
%30 = call i32 @putchar(i32 noundef %29)
%31 = load i32, ptr %6, align 4
%32 = icmp eq i32 %31, 46
br i1 %32, label %39, label %33
33: ; preds = %28
%34 = load i32, ptr %6, align 4
%35 = icmp eq i32 %34, 63
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i32, ptr %6, align 4
%38 = icmp eq i32 %37, 33
br i1 %38, label %39, label %66
39: ; preds = %36, %33, %28
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %65
44: ; preds = %39
%45 = load i32, ptr %9, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %64
47: ; preds = %44
%48 = load i32, ptr @stdin, align 4
%49 = call i32 @fgetc(i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = load i32, ptr @EOF, align 4
%51 = icmp ne i32 %49, %50
br i1 %51, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %47
br label %57
52: ; preds = %57
%53 = load i32, ptr @stdin, align 4
%54 = call i32 @fgetc(i32 noundef %53)
store i32 %54, ptr %6, align 4
%55 = load i32, ptr @EOF, align 4
%56 = icmp ne i32 %54, %55
br i1 %56, label %57, label %..loopexit_crit_edge, !llvm.loop !6
57: ; preds = %.lr.ph2, %52
%58 = load i32, ptr %6, align 4
%59 = call i32 @putchar(i32 noundef %58)
%60 = load i32, ptr %6, align 4
%61 = icmp eq i32 %60, 34
br i1 %61, label %62, label %52
62: ; preds = %57
br label %63
..loopexit_crit_edge: ; preds = %52
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %47
br label %63
63: ; preds = %.loopexit, %62
br label %64
64: ; preds = %63, %44
br label %77
65: ; preds = %39
br label %66
66: ; preds = %65, %36
%67 = load i32, ptr %6, align 4
%68 = icmp eq i32 %67, 34
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = load i32, ptr %9, align 4
%71 = sub nsw i32 1, %70
store i32 %71, ptr %9, align 4
br label %72
72: ; preds = %69, %66
%73 = load i32, ptr @stdin, align 4
%74 = call i32 @fgetc(i32 noundef %73)
store i32 %74, ptr %6, align 4
%75 = load i32, ptr @EOF, align 4
%76 = icmp ne i32 %74, %75
br i1 %76, label %28, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %72
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %19
br label %77
77: ; preds = %.loopexit1, %64
ret i32 0
}
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 @fgetc(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmc_9l43k.c'
source_filename = "/tmp/tmpmc_9l43k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [151 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProject/helper.c\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Storage cannot be allocated\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @imatrix(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = add nsw i32 %16, 1
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
%21 = add nsw i32 %20, 1
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = call i64 @malloc(i64 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %12, align 8
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %11, align 4
%29 = mul nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = call i64 @malloc(i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %13, align 8
%34 = load ptr, ptr %12, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %38
36: ; preds = %4
%37 = call i32 @errhandler(i32 noundef 714, ptr noundef @.str, ptr noundef @.str.1)
br label %38
38: ; preds = %36, %4
%39 = load ptr, ptr %13, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @errhandler(i32 noundef 715, ptr noundef @.str, ptr noundef @.str.1)
br label %43
43: ; preds = %41, %38
%44 = load ptr, ptr %13, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = sub i64 0, %46
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load ptr, ptr %12, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 0
store ptr %48, ptr %50, align 8
store i32 1, ptr %9, align 4
br label %51
51: ; preds = %69, %43
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %10, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %72
55: ; preds = %51
%56 = load ptr, ptr %12, align 8
%57 = load i32, ptr %9, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %56, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
%65 = load ptr, ptr %12, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
store ptr %64, ptr %68, align 8
br label %69
69: ; preds = %55
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
br label %51, !llvm.loop !6
72: ; preds = %51
%73 = load ptr, ptr %12, align 8
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = sub i64 0, %75
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
ret ptr %77
}
declare i64 @malloc(i64 noundef) #1
declare i32 @errhandler(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmc_9l43k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [151 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProject/helper.c\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Storage cannot be allocated\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @imatrix(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = add nsw i32 %16, 1
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %18, %19
%21 = add nsw i32 %20, 1
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 8
%25 = call i64 @malloc(i64 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %12, align 8
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %11, align 4
%29 = mul nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 4
%32 = call i64 @malloc(i64 noundef %31)
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %13, align 8
%34 = load ptr, ptr %12, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %38
36: ; preds = %4
%37 = call i32 @errhandler(i32 noundef 714, ptr noundef @.str, ptr noundef @.str.1)
br label %38
38: ; preds = %36, %4
%39 = load ptr, ptr %13, align 8
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @errhandler(i32 noundef 715, ptr noundef @.str, ptr noundef @.str.1)
br label %43
43: ; preds = %41, %38
%44 = load ptr, ptr %13, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = sub i64 0, %46
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load ptr, ptr %12, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 0
store ptr %48, ptr %50, align 8
store i32 1, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph, label %74
.lr.ph: ; preds = %43
br label %54
54: ; preds = %.lr.ph, %68
%55 = load ptr, ptr %12, align 8
%56 = load i32, ptr %9, align 4
%57 = sub nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %55, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = load i32, ptr %11, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
%64 = load ptr, ptr %12, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
store ptr %63, ptr %67, align 8
br label %68
68: ; preds = %54
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %10, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %74
74: ; preds = %._crit_edge, %43
%75 = load ptr, ptr %12, align 8
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = sub i64 0, %77
%79 = getelementptr inbounds ptr, ptr %75, i64 %78
ret ptr %79
}
declare i64 @malloc(i64 noundef) #1
declare i32 @errhandler(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpr9p9epr4.c'
source_filename = "/tmp/tmpr9p9epr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"/home/scripts/00-firewall.sh\00", align 1
@__const.main.iptables = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [40 x i8] c"No se pudo ejecutar el script requerido\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [3 x ptr], align 16
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.iptables, i64 24, i1 false)
%10 = call i32 @setuid(i32 noundef 0)
%11 = getelementptr inbounds [3 x ptr], ptr %8, i64 0, i64 0
%12 = load ptr, ptr %11, align 16
%13 = getelementptr inbounds [3 x ptr], ptr %8, i64 0, i64 0
%14 = load ptr, ptr %7, align 8
%15 = call i32 @execve(ptr noundef %12, ptr noundef %13, ptr noundef %14)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @perror(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %3
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 @setuid(i32 noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr9p9epr4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"/home/scripts/00-firewall.sh\00", align 1
@__const.main.iptables = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr null], align 16
@.str.2 = private unnamed_addr constant [40 x i8] c"No se pudo ejecutar el script requerido\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [3 x ptr], align 16
%9 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.iptables, i64 24, i1 false)
%10 = call i32 @setuid(i32 noundef 0)
%11 = getelementptr inbounds [3 x ptr], ptr %8, i64 0, i64 0
%12 = load ptr, ptr %11, align 16
%13 = getelementptr inbounds [3 x ptr], ptr %8, i64 0, i64 0
%14 = load ptr, ptr %7, align 8
%15 = call i32 @execve(ptr noundef %12, ptr noundef %13, ptr noundef %14)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @perror(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %3
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 @setuid(i32 noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph3otg3jx.c'
source_filename = "/tmp/tmph3otg3jx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_cd(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 @tokens_get_token(ptr noundef %3, i32 noundef 1)
%5 = call i32 @chdir(i32 noundef %4)
ret i32 1
}
declare i32 @chdir(i32 noundef) #1
declare i32 @tokens_get_token(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/tmph3otg3jx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_cd(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 @tokens_get_token(ptr noundef %3, i32 noundef 1)
%5 = call i32 @chdir(i32 noundef %4)
ret i32 1
}
declare i32 @chdir(i32 noundef) #1
declare i32 @tokens_get_token(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/tmp2x1gusho.c'
source_filename = "/tmp/tmp2x1gusho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i8 @SD_sendCommand(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
store i8 -1, ptr %5, align 1
store i8 0, ptr %6, align 1
%7 = call zeroext i8 @SD_sendByte(i32 noundef 255)
%8 = load i8, ptr %3, align 1
%9 = zext i8 %8 to i32
%10 = icmp sgt i32 %9, 127
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = call zeroext i8 @SD_sendByte(i32 noundef 119)
%13 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%14 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%15 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%16 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%17 = load i8, ptr %3, align 1
%18 = zext i8 %17 to i32
%19 = and i32 %18, 127
%20 = trunc i32 %19 to i8
store i8 %20, ptr %3, align 1
br label %21
21: ; preds = %11, %2
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = call zeroext i8 @SD_sendByte(i32 noundef %23)
store i8 0, ptr %6, align 1
br label %25
25: ; preds = %37, %21
%26 = load i8, ptr %6, align 1
%27 = zext i8 %26 to i32
%28 = icmp slt i32 %27, 4
br i1 %28, label %29, label %40
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %6, align 1
%32 = zext i8 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = call zeroext i8 @SD_sendByte(i32 noundef %35)
br label %37
37: ; preds = %29
%38 = load i8, ptr %6, align 1
%39 = add i8 %38, 1
store i8 %39, ptr %6, align 1
br label %25, !llvm.loop !6
40: ; preds = %25
%41 = call zeroext i8 @SD_sendByte(i32 noundef 1)
br label %42
42: ; preds = %46, %40
%43 = load i8, ptr %5, align 1
%44 = zext i8 %43 to i32
%45 = icmp sgt i32 %44, 79
br i1 %45, label %46, label %48
46: ; preds = %42
%47 = call zeroext i8 @SD_sendByte(i32 noundef 255)
store i8 %47, ptr %5, align 1
br label %42, !llvm.loop !8
48: ; preds = %42
%49 = load i8, ptr %5, align 1
ret i8 %49
}
declare zeroext i8 @SD_sendByte(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2x1gusho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i8 @SD_sendCommand(i8 noundef zeroext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
store i8 -1, ptr %5, align 1
store i8 0, ptr %6, align 1
%7 = call zeroext i8 @SD_sendByte(i32 noundef 255)
%8 = load i8, ptr %3, align 1
%9 = zext i8 %8 to i32
%10 = icmp sgt i32 %9, 127
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = call zeroext i8 @SD_sendByte(i32 noundef 119)
%13 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%14 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%15 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%16 = call zeroext i8 @SD_sendByte(i32 noundef 0)
%17 = load i8, ptr %3, align 1
%18 = zext i8 %17 to i32
%19 = and i32 %18, 127
%20 = trunc i32 %19 to i8
store i8 %20, ptr %3, align 1
br label %21
21: ; preds = %11, %2
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = call zeroext i8 @SD_sendByte(i32 noundef %23)
store i8 0, ptr %6, align 1
%25 = load i8, ptr %6, align 1
%26 = zext i8 %25 to i32
%27 = icmp slt i32 %26, 4
br i1 %27, label %.lr.ph, label %42
.lr.ph: ; preds = %21
br label %28
28: ; preds = %.lr.ph, %36
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %6, align 1
%31 = zext i8 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = call zeroext i8 @SD_sendByte(i32 noundef %34)
br label %36
36: ; preds = %28
%37 = load i8, ptr %6, align 1
%38 = add i8 %37, 1
store i8 %38, ptr %6, align 1
%39 = load i8, ptr %6, align 1
%40 = zext i8 %39 to i32
%41 = icmp slt i32 %40, 4
br i1 %41, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %21
%43 = call zeroext i8 @SD_sendByte(i32 noundef 1)
%44 = load i8, ptr %5, align 1
%45 = zext i8 %44 to i32
%46 = icmp sgt i32 %45, 79
br i1 %46, label %.lr.ph2, label %52
.lr.ph2: ; preds = %42
br label %47
47: ; preds = %.lr.ph2, %47
%48 = call zeroext i8 @SD_sendByte(i32 noundef 255)
store i8 %48, ptr %5, align 1
%49 = load i8, ptr %5, align 1
%50 = zext i8 %49 to i32
%51 = icmp sgt i32 %50, 79
br i1 %51, label %47, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %52
52: ; preds = %._crit_edge3, %42
%53 = load i8, ptr %5, align 1
ret i8 %53
}
declare zeroext i8 @SD_sendByte(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4ziovck4.c'
source_filename = "/tmp/tmp4ziovck4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsep(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %73
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %57
26: ; preds = %20, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %8, align 1
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store ptr null, ptr %7, align 8
br label %56
34: ; preds = %26
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr %8, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %37, %39
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %7, align 8
br label %55
43: ; preds = %34
%44 = load ptr, ptr %6, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %43
store ptr null, ptr %7, align 8
br label %54
49: ; preds = %43
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 1
%52 = load i8, ptr %8, align 1
%53 = call ptr @strchr(ptr noundef %51, i8 noundef signext %52)
store ptr %53, ptr %7, align 8
br label %54
54: ; preds = %49, %48
br label %55
55: ; preds = %54, %41
br label %56
56: ; preds = %55, %33
br label %61
57: ; preds = %20
%58 = load ptr, ptr %6, align 8
%59 = load ptr, ptr %5, align 8
%60 = call ptr @strpbrk(ptr noundef %58, ptr noundef %59)
store ptr %60, ptr %7, align 8
br label %61
61: ; preds = %57, %56
%62 = load ptr, ptr %7, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %69
64: ; preds = %61
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i8, ptr %65, i32 1
store ptr %66, ptr %7, align 8
store i8 0, ptr %65, align 1
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %4, align 8
store ptr %67, ptr %68, align 8
br label %71
69: ; preds = %61
%70 = load ptr, ptr %4, align 8
store ptr null, ptr %70, align 8
br label %71
71: ; preds = %69, %64
%72 = load ptr, ptr %6, align 8
store ptr %72, ptr %3, align 8
br label %73
73: ; preds = %71, %13
%74 = load ptr, ptr %3, align 8
ret ptr %74
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strpbrk(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/tmp4ziovck4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strsep(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
store ptr null, ptr %3, align 8
br label %73
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %57
26: ; preds = %20, %14
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %8, align 1
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store ptr null, ptr %7, align 8
br label %56
34: ; preds = %26
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr %8, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %37, %39
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = load ptr, ptr %6, align 8
store ptr %42, ptr %7, align 8
br label %55
43: ; preds = %34
%44 = load ptr, ptr %6, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %43
store ptr null, ptr %7, align 8
br label %54
49: ; preds = %43
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 1
%52 = load i8, ptr %8, align 1
%53 = call ptr @strchr(ptr noundef %51, i8 noundef signext %52)
store ptr %53, ptr %7, align 8
br label %54
54: ; preds = %49, %48
br label %55
55: ; preds = %54, %41
br label %56
56: ; preds = %55, %33
br label %61
57: ; preds = %20
%58 = load ptr, ptr %6, align 8
%59 = load ptr, ptr %5, align 8
%60 = call ptr @strpbrk(ptr noundef %58, ptr noundef %59)
store ptr %60, ptr %7, align 8
br label %61
61: ; preds = %57, %56
%62 = load ptr, ptr %7, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %69
64: ; preds = %61
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i8, ptr %65, i32 1
store ptr %66, ptr %7, align 8
store i8 0, ptr %65, align 1
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %4, align 8
store ptr %67, ptr %68, align 8
br label %71
69: ; preds = %61
%70 = load ptr, ptr %4, align 8
store ptr null, ptr %70, align 8
br label %71
71: ; preds = %69, %64
%72 = load ptr, ptr %6, align 8
store ptr %72, ptr %3, align 8
br label %73
73: ; preds = %71, %13
%74 = load ptr, ptr %3, align 8
ret ptr %74
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strpbrk(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/tmp95cm_q13.c'
source_filename = "/tmp/tmp95cm_q13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @euler(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4) #0 {
%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
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double %4, ptr %10, align 8
%13 = load double, ptr %8, align 8
%14 = load double, ptr %7, align 8
%15 = fmul double %13, %14
%16 = load double, ptr %7, align 8
%17 = call i32 @pow(double noundef %16, double noundef 1.000000e+01)
%18 = add nsw i32 1, %17
%19 = sitofp i32 %18 to double
%20 = fdiv double %15, %19
%21 = load double, ptr %9, align 8
%22 = load double, ptr %6, align 8
%23 = fneg double %21
%24 = call double @llvm.fmuladd.f64(double %23, double %22, double %20)
store double %24, ptr %11, align 8
%25 = load double, ptr %8, align 8
%26 = load double, ptr %7, align 8
%27 = fmul double %25, %26
%28 = load double, ptr %7, align 8
%29 = call i32 @pow(double noundef %28, double noundef 1.000000e+01)
%30 = add nsw i32 1, %29
%31 = sitofp i32 %30 to double
%32 = fdiv double %27, %31
%33 = load double, ptr %9, align 8
%34 = load double, ptr %10, align 8
%35 = load double, ptr %11, align 8
%36 = load double, ptr %6, align 8
%37 = call double @llvm.fmuladd.f64(double %34, double %35, double %36)
%38 = fneg double %33
%39 = call double @llvm.fmuladd.f64(double %38, double %37, double %32)
store double %39, ptr %12, align 8
%40 = load double, ptr %6, align 8
%41 = load double, ptr %10, align 8
%42 = fmul double 5.000000e-01, %41
%43 = load double, ptr %11, align 8
%44 = load double, ptr %12, align 8
%45 = fadd double %43, %44
%46 = call double @llvm.fmuladd.f64(double %42, double %45, double %40)
ret double %46
}
declare i32 @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp95cm_q13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @euler(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4) #0 {
%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
store double %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store double %4, ptr %10, align 8
%13 = load double, ptr %8, align 8
%14 = load double, ptr %7, align 8
%15 = fmul double %13, %14
%16 = load double, ptr %7, align 8
%17 = call i32 @pow(double noundef %16, double noundef 1.000000e+01)
%18 = add nsw i32 1, %17
%19 = sitofp i32 %18 to double
%20 = fdiv double %15, %19
%21 = load double, ptr %9, align 8
%22 = load double, ptr %6, align 8
%23 = fneg double %21
%24 = call double @llvm.fmuladd.f64(double %23, double %22, double %20)
store double %24, ptr %11, align 8
%25 = load double, ptr %8, align 8
%26 = load double, ptr %7, align 8
%27 = fmul double %25, %26
%28 = load double, ptr %7, align 8
%29 = call i32 @pow(double noundef %28, double noundef 1.000000e+01)
%30 = add nsw i32 1, %29
%31 = sitofp i32 %30 to double
%32 = fdiv double %27, %31
%33 = load double, ptr %9, align 8
%34 = load double, ptr %10, align 8
%35 = load double, ptr %11, align 8
%36 = load double, ptr %6, align 8
%37 = call double @llvm.fmuladd.f64(double %34, double %35, double %36)
%38 = fneg double %33
%39 = call double @llvm.fmuladd.f64(double %38, double %37, double %32)
store double %39, ptr %12, align 8
%40 = load double, ptr %6, align 8
%41 = load double, ptr %10, align 8
%42 = fmul double 5.000000e-01, %41
%43 = load double, ptr %11, align 8
%44 = load double, ptr %12, align 8
%45 = fadd double %43, %44
%46 = call double @llvm.fmuladd.f64(double %42, double %45, double %40)
ret double %46
}
declare i32 @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmphqy4yqmd.c'
source_filename = "/tmp/tmphqy4yqmd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isodigit should be 0 for 0xca\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0xca() #0 {
%1 = call i64 @isodigit(i32 noundef 202)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1015, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmphqy4yqmd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isodigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isodigit should be 0 for 0xca\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isodigit_0xca() #0 {
%1 = call i64 @isodigit(i32 noundef 202)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1015, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isodigit(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/tmpjfh7i0jt.c'
source_filename = "/tmp/tmpjfh7i0jt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wby_url_decode(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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
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
store i64 0, ptr %14, align 8
store i64 0, ptr %13, align 8
br label %15
15: ; preds = %116, %5
%16 = load i64, ptr %13, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load i64, ptr %14, align 8
%21 = load i64, ptr %9, align 8
%22 = sub i64 %21, 1
%23 = icmp ult i64 %20, %22
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %121
26: ; preds = %24
%27 = load ptr, ptr %6, align 8
%28 = load i64, ptr %13, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 37
br i1 %32, label %33, label %92
33: ; preds = %26
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %13, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
%37 = getelementptr inbounds i8, ptr %36, i64 1
%38 = load i8, ptr %37, align 1
%39 = call i64 @isxdigit(i8 noundef zeroext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %92
41: ; preds = %33
%42 = load ptr, ptr %6, align 8
%43 = load i64, ptr %13, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 2
%46 = load i8, ptr %45, align 1
%47 = call i64 @isxdigit(i8 noundef zeroext %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %92
49: ; preds = %41
%50 = load ptr, ptr %6, align 8
%51 = load i64, ptr %13, align 8
%52 = getelementptr inbounds i8, ptr %50, i64 %51
%53 = getelementptr inbounds i8, ptr %52, i64 1
%54 = load i8, ptr %53, align 1
%55 = call i32 @tolower(i8 noundef zeroext %54)
store i32 %55, ptr %11, align 4
%56 = load ptr, ptr %6, align 8
%57 = load i64, ptr %13, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
%59 = getelementptr inbounds i8, ptr %58, i64 2
%60 = load i8, ptr %59, align 1
%61 = call i32 @tolower(i8 noundef zeroext %60)
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %11, align 4
%63 = call i64 @isdigit(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %49
%66 = load i32, ptr %11, align 4
%67 = sub nsw i32 %66, 48
br label %71
68: ; preds = %49
%69 = load i32, ptr %11, align 4
%70 = sub nsw i32 %69, 87
br label %71
71: ; preds = %68, %65
%72 = phi i32 [ %67, %65 ], [ %70, %68 ]
%73 = shl i32 %72, 4
%74 = load i32, ptr %12, align 4
%75 = call i64 @isdigit(i32 noundef %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %71
%78 = load i32, ptr %12, align 4
%79 = sub nsw i32 %78, 48
br label %83
80: ; preds = %71
%81 = load i32, ptr %12, align 4
%82 = sub nsw i32 %81, 87
br label %83
83: ; preds = %80, %77
%84 = phi i32 [ %79, %77 ], [ %82, %80 ]
%85 = or i32 %73, %84
%86 = trunc i32 %85 to i8
%87 = load ptr, ptr %8, align 8
%88 = load i64, ptr %14, align 8
%89 = getelementptr inbounds i8, ptr %87, i64 %88
store i8 %86, ptr %89, align 1
%90 = load i64, ptr %13, align 8
%91 = add i64 %90, 2
store i64 %91, ptr %13, align 8
br label %115
92: ; preds = %41, %33, %26
%93 = load i32, ptr %10, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %106
95: ; preds = %92
%96 = load ptr, ptr %6, align 8
%97 = load i64, ptr %13, align 8
%98 = getelementptr inbounds i8, ptr %96, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 43
br i1 %101, label %102, label %106
102: ; preds = %95
%103 = load ptr, ptr %8, align 8
%104 = load i64, ptr %14, align 8
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store i8 32, ptr %105, align 1
br label %114
106: ; preds = %95, %92
%107 = load ptr, ptr %6, align 8
%108 = load i64, ptr %13, align 8
%109 = getelementptr inbounds i8, ptr %107, i64 %108
%110 = load i8, ptr %109, align 1
%111 = load ptr, ptr %8, align 8
%112 = load i64, ptr %14, align 8
%113 = getelementptr inbounds i8, ptr %111, i64 %112
store i8 %110, ptr %113, align 1
br label %114
114: ; preds = %106, %102
br label %115
115: ; preds = %114, %83
br label %116
116: ; preds = %115
%117 = load i64, ptr %13, align 8
%118 = add i64 %117, 1
store i64 %118, ptr %13, align 8
%119 = load i64, ptr %14, align 8
%120 = add i64 %119, 1
store i64 %120, ptr %14, align 8
br label %15, !llvm.loop !6
121: ; preds = %24
%122 = load ptr, ptr %8, align 8
%123 = load i64, ptr %14, align 8
%124 = getelementptr inbounds i8, ptr %122, i64 %123
store i8 0, ptr %124, align 1
%125 = load i64, ptr %14, align 8
ret i64 %125
}
declare i64 @isxdigit(i8 noundef zeroext) #1
declare i32 @tolower(i8 noundef zeroext) #1
declare i64 @isdigit(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/tmpjfh7i0jt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wby_url_decode(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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
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
store i64 0, ptr %14, align 8
store i64 0, ptr %13, align 8
br label %15
15: ; preds = %116, %5
%16 = load i64, ptr %13, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load i64, ptr %14, align 8
%21 = load i64, ptr %9, align 8
%22 = sub i64 %21, 1
%23 = icmp ult i64 %20, %22
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %121
26: ; preds = %24
%27 = load ptr, ptr %6, align 8
%28 = load i64, ptr %13, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 37
br i1 %32, label %33, label %92
33: ; preds = %26
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %13, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
%37 = getelementptr inbounds i8, ptr %36, i64 1
%38 = load i8, ptr %37, align 1
%39 = call i64 @isxdigit(i8 noundef zeroext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %92
41: ; preds = %33
%42 = load ptr, ptr %6, align 8
%43 = load i64, ptr %13, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = getelementptr inbounds i8, ptr %44, i64 2
%46 = load i8, ptr %45, align 1
%47 = call i64 @isxdigit(i8 noundef zeroext %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %92
49: ; preds = %41
%50 = load ptr, ptr %6, align 8
%51 = load i64, ptr %13, align 8
%52 = getelementptr inbounds i8, ptr %50, i64 %51
%53 = getelementptr inbounds i8, ptr %52, i64 1
%54 = load i8, ptr %53, align 1
%55 = call i32 @tolower(i8 noundef zeroext %54)
store i32 %55, ptr %11, align 4
%56 = load ptr, ptr %6, align 8
%57 = load i64, ptr %13, align 8
%58 = getelementptr inbounds i8, ptr %56, i64 %57
%59 = getelementptr inbounds i8, ptr %58, i64 2
%60 = load i8, ptr %59, align 1
%61 = call i32 @tolower(i8 noundef zeroext %60)
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %11, align 4
%63 = call i64 @isdigit(i32 noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %49
%66 = load i32, ptr %11, align 4
%67 = sub nsw i32 %66, 48
br label %71
68: ; preds = %49
%69 = load i32, ptr %11, align 4
%70 = sub nsw i32 %69, 87
br label %71
71: ; preds = %68, %65
%72 = phi i32 [ %67, %65 ], [ %70, %68 ]
%73 = shl i32 %72, 4
%74 = load i32, ptr %12, align 4
%75 = call i64 @isdigit(i32 noundef %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %71
%78 = load i32, ptr %12, align 4
%79 = sub nsw i32 %78, 48
br label %83
80: ; preds = %71
%81 = load i32, ptr %12, align 4
%82 = sub nsw i32 %81, 87
br label %83
83: ; preds = %80, %77
%84 = phi i32 [ %79, %77 ], [ %82, %80 ]
%85 = or i32 %73, %84
%86 = trunc i32 %85 to i8
%87 = load ptr, ptr %8, align 8
%88 = load i64, ptr %14, align 8
%89 = getelementptr inbounds i8, ptr %87, i64 %88
store i8 %86, ptr %89, align 1
%90 = load i64, ptr %13, align 8
%91 = add i64 %90, 2
store i64 %91, ptr %13, align 8
br label %115
92: ; preds = %41, %33, %26
%93 = load i32, ptr %10, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %106
95: ; preds = %92
%96 = load ptr, ptr %6, align 8
%97 = load i64, ptr %13, align 8
%98 = getelementptr inbounds i8, ptr %96, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 43
br i1 %101, label %102, label %106
102: ; preds = %95
%103 = load ptr, ptr %8, align 8
%104 = load i64, ptr %14, align 8
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store i8 32, ptr %105, align 1
br label %114
106: ; preds = %95, %92
%107 = load ptr, ptr %6, align 8
%108 = load i64, ptr %13, align 8
%109 = getelementptr inbounds i8, ptr %107, i64 %108
%110 = load i8, ptr %109, align 1
%111 = load ptr, ptr %8, align 8
%112 = load i64, ptr %14, align 8
%113 = getelementptr inbounds i8, ptr %111, i64 %112
store i8 %110, ptr %113, align 1
br label %114
114: ; preds = %106, %102
br label %115
115: ; preds = %114, %83
br label %116
116: ; preds = %115
%117 = load i64, ptr %13, align 8
%118 = add i64 %117, 1
store i64 %118, ptr %13, align 8
%119 = load i64, ptr %14, align 8
%120 = add i64 %119, 1
store i64 %120, ptr %14, align 8
br label %15, !llvm.loop !6
121: ; preds = %24
%122 = load ptr, ptr %8, align 8
%123 = load i64, ptr %14, align 8
%124 = getelementptr inbounds i8, ptr %122, i64 %123
store i8 0, ptr %124, align 1
%125 = load i64, ptr %14, align 8
ret i64 %125
}
declare i64 @isxdigit(i8 noundef zeroext) #1
declare i32 @tolower(i8 noundef zeroext) #1
declare i64 @isdigit(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/tmpn7m48k29.c'
source_filename = "/tmp/tmpn7m48k29.c"
target datalayout = "e-m:e-p270: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/tmpn7m48k29.c"
target datalayout = "e-m:e-p270: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/tmpdv8j16er.c'
source_filename = "/tmp/tmpdv8j16er.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testfunc()
ret i32 0
}
declare i32 @testfunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdv8j16er.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testfunc()
ret i32 0
}
declare i32 @testfunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcycbjhz0.c'
source_filename = "/tmp/tmpcycbjhz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialiseModule() #0 {
%1 = call i32 (...) @ioInitSecurity()
ret i32 %1
}
declare i32 @ioInitSecurity(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcycbjhz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialiseModule() #0 {
%1 = call i32 (...) @ioInitSecurity()
ret i32 %1
}
declare i32 @ioInitSecurity(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpac3lscel.c'
source_filename = "/tmp/tmpac3lscel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"saida.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\0AHello World\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(ptr noundef %4, ptr noundef @.str.2)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fclose(ptr noundef %6)
ret i32 0
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpac3lscel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"saida.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\0AHello World\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(ptr noundef %4, ptr noundef @.str.2)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @fclose(ptr noundef %6)
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmp3junj9ks.c'
source_filename = "/tmp/tmp3junj9ks.c"
target datalayout = "e-m:e-p270: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/tmp3junj9ks.c"
target datalayout = "e-m:e-p270: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/tmp1ozjxcvb.c'
source_filename = "/tmp/tmp1ozjxcvb.c"
target datalayout = "e-m:e-p270: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/tmp1ozjxcvb.c"
target datalayout = "e-m:e-p270: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/tmp71jdb2sf.c'
source_filename = "/tmp/tmp71jdb2sf.c"
target datalayout = "e-m:e-p270: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.SHA256_Xcompare_12.input = private unnamed_addr constant [20 x i8] c"\01\86-\96\DDMfHH\9F\92\87\CE3\DBT&\A36\AD", align 16
@__const.SHA256_Xcompare_12.result0 = private unnamed_addr constant [32 x i8] c"\B9r\80\8A\EB\A2\92\F8.\C8\19<\AB\EB\E9\1F\BD\E9\16CH\FE\0F\C1\8EYh\14\E74\DC\87", align 16
@.str = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_12\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_12\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_12\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SHA256_Xcompare_12() #0 {
%1 = alloca [20 x i8], align 16
%2 = alloca [32 x i8], align 16
%3 = alloca [32 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.SHA256_Xcompare_12.input, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.SHA256_Xcompare_12.result0, i64 32, i1 false)
%4 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 32)
%6 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @SHA256_VST(ptr noundef %6, ptr noundef %7, i32 noundef 20)
%9 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @check_test(ptr noundef %9, ptr noundef %10, i32 noundef 32, ptr noundef @.str)
%12 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%14 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @SHA256_NSS(ptr noundef %14, ptr noundef %15, i32 noundef 20)
%17 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @check_test(ptr noundef %17, ptr noundef %18, i32 noundef 32, ptr noundef @.str.1)
%20 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%23 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @SHA256_sodium(ptr noundef %22, ptr noundef %23, i32 noundef 20)
%25 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @check_test(ptr noundef %25, ptr noundef %26, i32 noundef 32, ptr noundef @.str.2)
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 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @SHA256_VST(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @check_test(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @SHA256_NSS(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @SHA256_sodium(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmp71jdb2sf.c"
target datalayout = "e-m:e-p270: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.SHA256_Xcompare_12.input = private unnamed_addr constant [20 x i8] c"\01\86-\96\DDMfHH\9F\92\87\CE3\DBT&\A36\AD", align 16
@__const.SHA256_Xcompare_12.result0 = private unnamed_addr constant [32 x i8] c"\B9r\80\8A\EB\A2\92\F8.\C8\19<\AB\EB\E9\1F\BD\E9\16CH\FE\0F\C1\8EYh\14\E74\DC\87", align 16
@.str = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_VST in SHA256_Xcompare_12\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Disagreement between given answer and SHA256_NSS in SHA256_Xcompare_12\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"Disagreement between given answer and SHA256_sodium in SHA256_Xcompare_12\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SHA256_Xcompare_12() #0 {
%1 = alloca [20 x i8], align 16
%2 = alloca [32 x i8], align 16
%3 = alloca [32 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.SHA256_Xcompare_12.input, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.SHA256_Xcompare_12.result0, i64 32, i1 false)
%4 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 32)
%6 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @SHA256_VST(ptr noundef %6, ptr noundef %7, i32 noundef 20)
%9 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @check_test(ptr noundef %9, ptr noundef %10, i32 noundef 32, ptr noundef @.str)
%12 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef 32)
%14 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%16 = call i32 @SHA256_NSS(ptr noundef %14, ptr noundef %15, i32 noundef 20)
%17 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%18 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @check_test(ptr noundef %17, ptr noundef %18, i32 noundef 32, ptr noundef @.str.1)
%20 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [20 x i8], ptr %1, i64 0, i64 0
%23 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%24 = call i32 @SHA256_sodium(ptr noundef %22, ptr noundef %23, i32 noundef 20)
%25 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
%27 = call i32 @check_test(ptr noundef %25, ptr noundef %26, i32 noundef 32, ptr noundef @.str.2)
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 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @SHA256_VST(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @check_test(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @SHA256_NSS(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @SHA256_sodium(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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/tmpm3fqs1b7.c'
source_filename = "/tmp/tmpm3fqs1b7.c"
target datalayout = "e-m:e-p270: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/tmpm3fqs1b7.c"
target datalayout = "e-m:e-p270: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/tmpjns0i6e0.c'
source_filename = "/tmp/tmpjns0i6e0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0x8b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0x8b() #0 {
%1 = call i64 @isdigit(i32 noundef 139)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 700, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpjns0i6e0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0x8b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0x8b() #0 {
%1 = call i64 @isdigit(i32 noundef 139)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 700, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpblpbrop1.c'
source_filename = "/tmp/tmpblpbrop1.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"usage: %s <file or directory> ...\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, 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 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 slt i32 %7, 2
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
%15 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %15, ptr %3, align 4
br label %33
16: ; preds = %2
store i32 1, ptr %6, align 4
br label %17
17: ; preds = %28, %16
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i32 @process_path(ptr noundef @.str.1, ptr noundef %26)
br label %28
28: ; preds = %21
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %17, !llvm.loop !6
31: ; preds = %17
%32 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %31, %9
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @process_path(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/tmpblpbrop1.c"
target datalayout = "e-m:e-p270: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 [35 x i8] c"usage: %s <file or directory> ...\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, 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 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 slt i32 %7, 2
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @stderr, align 4
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %13)
%15 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %15, ptr %3, align 4
br label %35
16: ; preds = %2
store i32 1, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %33
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %27
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i32 @process_path(ptr noundef @.str.1, ptr noundef %25)
br label %27
27: ; preds = %20
%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 %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %16
%34 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %33, %9
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @process_path(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.