llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpcmp790ql.c'
source_filename = "/tmp/tmpcmp790ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_APPEND = dso_local global i32 0, align 4
@O_WRONLY = 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/tmpcmp790ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_APPEND = dso_local global i32 0, align 4
@O_WRONLY = 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/tmpr49s4pzg.c'
source_filename = "/tmp/tmpr49s4pzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_CLK_TCK = 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/tmpr49s4pzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_CLK_TCK = 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/tmp7o6an3r2.c'
source_filename = "/tmp/tmp7o6an3r2.c"
target datalayout = "e-m:e-p270: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/tmp7o6an3r2.c"
target datalayout = "e-m:e-p270: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/tmp93edq5ur.c'
source_filename = "/tmp/tmp93edq5ur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cipher(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i8 9, ptr %5, align 1
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @XORBytes(ptr noundef %6, ptr noundef %7, i32 noundef 16)
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 16
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %23, %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @SubBytes(ptr noundef %12, i32 noundef 16)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @ShiftRows(ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @MixColumns(ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @XORBytes(ptr noundef %18, ptr noundef %19, i32 noundef 16)
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 16
store ptr %22, ptr %4, align 8
br label %23
23: ; preds = %11
%24 = load i8, ptr %5, align 1
%25 = add i8 %24, -1
store i8 %25, ptr %5, align 1
%26 = icmp ne i8 %25, 0
br i1 %26, label %11, label %27, !llvm.loop !6
27: ; preds = %23
%28 = load ptr, ptr %3, align 8
%29 = call i32 @SubBytes(ptr noundef %28, i32 noundef 16)
%30 = load ptr, ptr %3, align 8
%31 = call i32 @ShiftRows(ptr noundef %30)
%32 = load ptr, ptr %3, align 8
%33 = load ptr, ptr %4, align 8
%34 = call i32 @XORBytes(ptr noundef %32, ptr noundef %33, i32 noundef 16)
ret void
}
declare i32 @XORBytes(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @SubBytes(ptr noundef, i32 noundef) #1
declare i32 @ShiftRows(ptr noundef) #1
declare i32 @MixColumns(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp93edq5ur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cipher(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i8 9, ptr %5, align 1
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @XORBytes(ptr noundef %6, ptr noundef %7, i32 noundef 16)
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 16
store ptr %10, ptr %4, align 8
br label %11
11: ; preds = %23, %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @SubBytes(ptr noundef %12, i32 noundef 16)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @ShiftRows(ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @MixColumns(ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @XORBytes(ptr noundef %18, ptr noundef %19, i32 noundef 16)
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 16
store ptr %22, ptr %4, align 8
br label %23
23: ; preds = %11
%24 = load i8, ptr %5, align 1
%25 = add i8 %24, -1
store i8 %25, ptr %5, align 1
%26 = icmp ne i8 %25, 0
br i1 %26, label %11, label %27, !llvm.loop !6
27: ; preds = %23
%28 = load ptr, ptr %3, align 8
%29 = call i32 @SubBytes(ptr noundef %28, i32 noundef 16)
%30 = load ptr, ptr %3, align 8
%31 = call i32 @ShiftRows(ptr noundef %30)
%32 = load ptr, ptr %3, align 8
%33 = load ptr, ptr %4, align 8
%34 = call i32 @XORBytes(ptr noundef %32, ptr noundef %33, i32 noundef 16)
ret void
}
declare i32 @XORBytes(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @SubBytes(ptr noundef, i32 noundef) #1
declare i32 @ShiftRows(ptr noundef) #1
declare i32 @MixColumns(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpiuszkpcz.c'
source_filename = "/tmp/tmpiuszkpcz.c"
target datalayout = "e-m:e-p270: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/tmpiuszkpcz.c"
target datalayout = "e-m:e-p270: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/tmphj2kiaox.c'
source_filename = "/tmp/tmphj2kiaox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @netAcceptingSocket(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @netAcceptingSocketFrom(i32 noundef %5, i32 noundef %6, ptr noundef null)
ret i32 %7
}
declare i32 @netAcceptingSocketFrom(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphj2kiaox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @netAcceptingSocket(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @netAcceptingSocketFrom(i32 noundef %5, i32 noundef %6, ptr noundef null)
ret i32 %7
}
declare i32 @netAcceptingSocketFrom(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptcgp0h85.c'
source_filename = "/tmp/tmptcgp0h85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @Hi()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @Hi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptcgp0h85.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @Hi()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @Hi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp86aux041.c'
source_filename = "/tmp/tmp86aux041.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i64, i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_date(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = call ptr @localtime(ptr noundef %3)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %6, i64 24, i1 false)
%7 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i64 0, ptr %7, align 8
%8 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 1
store i64 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = call i32 @mktime(ptr noundef %4)
ret i32 %10
}
declare ptr @localtime(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86aux041.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i64, i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_date(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = call ptr @localtime(ptr noundef %3)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %6, i64 24, i1 false)
%7 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i64 0, ptr %7, align 8
%8 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 1
store i64 0, ptr %8, align 8
%9 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = call i32 @mktime(ptr noundef %4)
ret i32 %10
}
declare ptr @localtime(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpweib7mlj.c'
source_filename = "/tmp/tmpweib7mlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putSockN(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %12, %2
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = call i32 @putSock1(i8 noundef signext %10)
br label %12
12: ; preds = %8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %3, align 8
br label %5, !llvm.loop !6
17: ; preds = %5
ret void
}
declare i32 @putSock1(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/tmpweib7mlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putSockN(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %7
7: ; preds = %.lr.ph, %11
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = call i32 @putSock1(i8 noundef signext %9)
br label %11
11: ; preds = %7
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, -1
store i32 %13, ptr %4, align 4
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %18
18: ; preds = %._crit_edge, %2
ret void
}
declare i32 @putSock1(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/tmp9cim6qvx.c'
source_filename = "/tmp/tmp9cim6qvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/meminfo\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"MemFree:\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%*[ ]%lf\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Buffers:\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"Cached:\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Free Memory:%f Buffers:%f Cached:%f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %6, align 8
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
br label %8
8: ; preds = %37, %0
%9 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%10 = load ptr, ptr %2, align 8
%11 = call i64 @fgets(ptr noundef %9, i32 noundef 256, ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %38
13: ; preds = %8
%14 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%15 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %14, i32 noundef 8)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%19 = getelementptr inbounds i8, ptr %18, i64 8
%20 = call i32 @sscanf(ptr noundef %19, ptr noundef @.str.3, ptr noundef %4)
br label %21
21: ; preds = %17, %13
%22 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%23 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %22, i32 noundef 8)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%27 = getelementptr inbounds i8, ptr %26, i64 8
%28 = call i32 @sscanf(ptr noundef %27, ptr noundef @.str.3, ptr noundef %5)
br label %29
29: ; preds = %25, %21
%30 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%31 = call i64 @strncmp(ptr noundef @.str.5, ptr noundef %30, i32 noundef 7)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%35 = getelementptr inbounds i8, ptr %34, i64 7
%36 = call i32 @sscanf(ptr noundef %35, ptr noundef @.str.3, ptr noundef %6)
br label %37
37: ; preds = %33, %29
br label %8, !llvm.loop !6
38: ; preds = %8
%39 = load double, ptr %4, align 8
%40 = load double, ptr %5, align 8
%41 = load double, ptr %6, align 8
%42 = call i32 @printf(ptr noundef @.str.6, double noundef %39, double noundef %40, double noundef %41)
%43 = load ptr, ptr %2, align 8
%44 = call i32 @fclose(ptr noundef %43)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9cim6qvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/proc/meminfo\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"MemFree:\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%*[ ]%lf\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Buffers:\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"Cached:\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Free Memory:%f Buffers:%f Cached:%f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %6, align 8
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
%8 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%9 = load ptr, ptr %2, align 8
%10 = call i64 @fgets(ptr noundef %8, i32 noundef 256, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %.lr.ph, label %40
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %36
%13 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%14 = call i64 @strncmp(ptr noundef @.str.2, ptr noundef %13, i32 noundef 8)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%18 = getelementptr inbounds i8, ptr %17, i64 8
%19 = call i32 @sscanf(ptr noundef %18, ptr noundef @.str.3, ptr noundef %4)
br label %20
20: ; preds = %16, %12
%21 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%22 = call i64 @strncmp(ptr noundef @.str.4, ptr noundef %21, i32 noundef 8)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%26 = getelementptr inbounds i8, ptr %25, i64 8
%27 = call i32 @sscanf(ptr noundef %26, ptr noundef @.str.3, ptr noundef %5)
br label %28
28: ; preds = %24, %20
%29 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%30 = call i64 @strncmp(ptr noundef @.str.5, ptr noundef %29, i32 noundef 7)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%34 = getelementptr inbounds i8, ptr %33, i64 7
%35 = call i32 @sscanf(ptr noundef %34, ptr noundef @.str.3, ptr noundef %6)
br label %36
36: ; preds = %32, %28
%37 = load ptr, ptr %2, align 8
%38 = call i64 @fgets(ptr noundef %8, i32 noundef 256, ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %40
40: ; preds = %._crit_edge, %0
%41 = load double, ptr %4, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %6, align 8
%44 = call i32 @printf(ptr noundef @.str.6, double noundef %41, double noundef %42, double noundef %43)
%45 = load ptr, ptr %2, align 8
%46 = call i32 @fclose(ptr noundef %45)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, double noundef, double noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyuyqvvk7.c'
source_filename = "/tmp/tmpyuyqvvk7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @log1p(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = fadd double 1.000000e+00, %5
store volatile double %6, ptr %3, align 8
%7 = load volatile double, ptr %3, align 8
%8 = fsub double %7, 1.000000e+00
store volatile double %8, ptr %4, align 8
%9 = load volatile double, ptr %4, align 8
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = load double, ptr %2, align 8
br label %20
13: ; preds = %1
%14 = load double, ptr %2, align 8
%15 = load volatile double, ptr %3, align 8
%16 = call double @log(double noundef %15) #2
%17 = fmul double %14, %16
%18 = load volatile double, ptr %4, align 8
%19 = fdiv double %17, %18
br label %20
20: ; preds = %13, %11
%21 = phi double [ %12, %11 ], [ %19, %13 ]
ret double %21
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyuyqvvk7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @log1p(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = fadd double 1.000000e+00, %5
store volatile double %6, ptr %3, align 8
%7 = load volatile double, ptr %3, align 8
%8 = fsub double %7, 1.000000e+00
store volatile double %8, ptr %4, align 8
%9 = load volatile double, ptr %4, align 8
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = load double, ptr %2, align 8
br label %20
13: ; preds = %1
%14 = load double, ptr %2, align 8
%15 = load volatile double, ptr %3, align 8
%16 = call double @log(double noundef %15) #2
%17 = fmul double %14, %16
%18 = load volatile double, ptr %4, align 8
%19 = fdiv double %17, %18
br label %20
20: ; preds = %13, %11
%21 = phi double [ %12, %11 ], [ %19, %13 ]
ret double %21
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbpgxz930.c'
source_filename = "/tmp/tmpbpgxz930.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stdin = 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/tmpbpgxz930.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stdin = 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/tmpxviwrxbs.c'
source_filename = "/tmp/tmpxviwrxbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0A\09\09\09Enter a number value: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0A\09\09\09Enter another number value: \00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0A\09\09\09%d + %d = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @oper1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 @sum(i32 noundef %8, i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sum(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/tmpxviwrxbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0A\09\09\09Enter a number value: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\0A\09\09\09Enter another number value: \00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0A\09\09\09%d + %d = %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @oper1() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 @sum(i32 noundef %8, i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11, i32 noundef %12, i32 noundef %13)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sum(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/tmp39nwy7bo.c'
source_filename = "/tmp/tmp39nwy7bo.c"
target datalayout = "e-m:e-p270: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.write_endmod.endmod = private unnamed_addr constant [2 x i8] c"\06\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_endmod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2 x i8], align 1
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.write_endmod.endmod, i64 2, i1 false)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @writerec(ptr noundef %4, ptr noundef %5, i32 noundef 2)
ret i32 %6
}
; 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 @writerec(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/tmp39nwy7bo.c"
target datalayout = "e-m:e-p270: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.write_endmod.endmod = private unnamed_addr constant [2 x i8] c"\06\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @write_endmod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2 x i8], align 1
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.write_endmod.endmod, i64 2, i1 false)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds [2 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @writerec(ptr noundef %4, ptr noundef %5, i32 noundef 2)
ret i32 %6
}
; 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 @writerec(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/tmp66e6059y.c'
source_filename = "/tmp/tmp66e6059y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ulltostr(i64 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
store i64 %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 0, ptr %10, align 4
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 48, ptr %16, align 1
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
store i8 0, ptr %18, align 1
store i32 1, ptr %5, align 4
br label %61
19: ; preds = %4
br label %20
20: ; preds = %43, %19
%21 = load i64, ptr %6, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %9, align 4
%26 = icmp ne i32 %24, 0
br label %27
27: ; preds = %23, %20
%28 = phi i1 [ false, %20 ], [ %26, %23 ]
br i1 %28, label %29, label %55
29: ; preds = %27
%30 = load i64, ptr %6, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = urem i64 %30, %32
store i64 %33, ptr %11, align 8
%34 = load i64, ptr %11, align 8
%35 = icmp ugt i64 %34, 9
br i1 %35, label %36, label %40
36: ; preds = %29
%37 = load i64, ptr %11, align 8
%38 = sub i64 %37, 10
%39 = add i64 %38, 65
br label %43
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = add i64 %41, 48
br label %43
43: ; preds = %40, %36
%44 = phi i64 [ %39, %36 ], [ %42, %40 ]
%45 = trunc i64 %44 to i8
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %10, align 4
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
store i8 %45, ptr %50, align 1
%51 = load i64, ptr %6, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = udiv i64 %51, %53
store i64 %54, ptr %6, align 8
br label %20, !llvm.loop !6
55: ; preds = %27
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %10, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
store i8 0, ptr %59, align 1
%60 = load i32, ptr %10, align 4
store i32 %60, ptr %5, align 4
br label %61
61: ; preds = %55, %14
%62 = load i32, ptr %5, align 4
ret i32 %62
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp66e6059y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ulltostr(i64 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
store i64 %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 0, ptr %10, align 4
%12 = load i64, ptr %6, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %4
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
store i8 48, ptr %16, align 1
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 1
store i8 0, ptr %18, align 1
store i32 1, ptr %5, align 4
br label %61
19: ; preds = %4
br label %20
20: ; preds = %43, %19
%21 = load i64, ptr %6, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %9, align 4
%26 = icmp ne i32 %24, 0
br label %27
27: ; preds = %23, %20
%28 = phi i1 [ false, %20 ], [ %26, %23 ]
br i1 %28, label %29, label %55
29: ; preds = %27
%30 = load i64, ptr %6, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = urem i64 %30, %32
store i64 %33, ptr %11, align 8
%34 = load i64, ptr %11, align 8
%35 = icmp ugt i64 %34, 9
br i1 %35, label %36, label %40
36: ; preds = %29
%37 = load i64, ptr %11, align 8
%38 = sub i64 %37, 10
%39 = add i64 %38, 65
br label %43
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = add i64 %41, 48
br label %43
43: ; preds = %40, %36
%44 = phi i64 [ %39, %36 ], [ %42, %40 ]
%45 = trunc i64 %44 to i8
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %10, align 4
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
store i8 %45, ptr %50, align 1
%51 = load i64, ptr %6, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = udiv i64 %51, %53
store i64 %54, ptr %6, align 8
br label %20, !llvm.loop !6
55: ; preds = %27
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %10, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
store i8 0, ptr %59, align 1
%60 = load i32, ptr %10, align 4
store i32 %60, ptr %5, align 4
br label %61
61: ; preds = %55, %14
%62 = load i32, ptr %5, align 4
ret i32 %62
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp22_fs31z.c'
source_filename = "/tmp/tmp22_fs31z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GPMC configured\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @gpmc_setup()
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @gpmc_setup(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp22_fs31z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GPMC configured\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @gpmc_setup()
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @gpmc_setup(...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplzbb7jak.c'
source_filename = "/tmp/tmplzbb7jak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @eulerFromQuaternion(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds float, ptr %11, i64 0
%13 = load float, ptr %12, align 4
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds float, ptr %14, i64 0
%16 = load float, ptr %15, align 4
%17 = fmul float %13, %16
store float %17, ptr %5, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 1
%23 = load float, ptr %22, align 4
%24 = fmul float %20, %23
store float %24, ptr %6, align 4
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 2
%27 = load float, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds float, ptr %28, i64 2
%30 = load float, ptr %29, align 4
%31 = fmul float %27, %30
store float %31, ptr %7, align 4
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds float, ptr %32, i64 3
%34 = load float, ptr %33, align 4
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds float, ptr %35, i64 3
%37 = load float, ptr %36, align 4
%38 = fmul float %34, %37
store float %38, ptr %8, align 4
%39 = load float, ptr %5, align 4
%40 = load float, ptr %6, align 4
%41 = fadd float %39, %40
%42 = load float, ptr %7, align 4
%43 = fadd float %41, %42
%44 = load float, ptr %8, align 4
%45 = fadd float %43, %44
store float %45, ptr %9, align 4
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 1
%48 = load float, ptr %47, align 4
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds float, ptr %49, i64 2
%51 = load float, ptr %50, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds float, ptr %52, i64 3
%54 = load float, ptr %53, align 4
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds float, ptr %55, i64 0
%57 = load float, ptr %56, align 4
%58 = fmul float %54, %57
%59 = call float @llvm.fmuladd.f32(float %48, float %51, float %58)
store float %59, ptr %10, align 4
%60 = load float, ptr %10, align 4
%61 = fpext float %60 to double
%62 = load float, ptr %9, align 4
%63 = fpext float %62 to double
%64 = fmul double 4.990000e-01, %63
%65 = fcmp ogt double %61, %64
br i1 %65, label %66, label %86
66: ; preds = %2
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 1
%69 = load float, ptr %68, align 4
%70 = fptosi float %69 to i32
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds float, ptr %71, i64 0
%73 = load float, ptr %72, align 4
%74 = call i32 @atan2(i32 noundef %70, float noundef %73)
%75 = mul nsw i32 2, %74
%76 = sitofp i32 %75 to float
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds float, ptr %77, i64 0
store float %76, ptr %78, align 4
%79 = load i32, ptr @M_PI, align 4
%80 = sdiv i32 %79, 2
%81 = sitofp i32 %80 to float
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds float, ptr %82, i64 1
store float %81, ptr %83, align 4
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds float, ptr %84, i64 2
store float 0.000000e+00, ptr %85, align 4
br label %182
86: ; preds = %2
%87 = load float, ptr %10, align 4
%88 = fpext float %87 to double
%89 = load float, ptr %9, align 4
%90 = fpext float %89 to double
%91 = fmul double -4.990000e-01, %90
%92 = fcmp olt double %88, %91
br i1 %92, label %93, label %114
93: ; preds = %86
%94 = load ptr, ptr %3, align 8
%95 = getelementptr inbounds float, ptr %94, i64 1
%96 = load float, ptr %95, align 4
%97 = fptosi float %96 to i32
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds float, ptr %98, i64 0
%100 = load float, ptr %99, align 4
%101 = call i32 @atan2(i32 noundef %97, float noundef %100)
%102 = mul nsw i32 -2, %101
%103 = sitofp i32 %102 to float
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds float, ptr %104, i64 0
store float %103, ptr %105, align 4
%106 = load i32, ptr @M_PI, align 4
%107 = sub nsw i32 0, %106
%108 = sdiv i32 %107, 2
%109 = sitofp i32 %108 to float
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds float, ptr %110, i64 1
store float %109, ptr %111, align 4
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds float, ptr %112, i64 2
store float 0.000000e+00, ptr %113, align 4
br label %181
114: ; preds = %86
%115 = load ptr, ptr %3, align 8
%116 = getelementptr inbounds float, ptr %115, i64 2
%117 = load float, ptr %116, align 4
%118 = fmul float 2.000000e+00, %117
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds float, ptr %119, i64 0
%121 = load float, ptr %120, align 4
%122 = load ptr, ptr %3, align 8
%123 = getelementptr inbounds float, ptr %122, i64 1
%124 = load float, ptr %123, align 4
%125 = fmul float 2.000000e+00, %124
%126 = load ptr, ptr %3, align 8
%127 = getelementptr inbounds float, ptr %126, i64 3
%128 = load float, ptr %127, align 4
%129 = fmul float %125, %128
%130 = fneg float %129
%131 = call float @llvm.fmuladd.f32(float %118, float %121, float %130)
%132 = fptosi float %131 to i32
%133 = load float, ptr %5, align 4
%134 = load float, ptr %6, align 4
%135 = fadd float %133, %134
%136 = load float, ptr %7, align 4
%137 = fsub float %135, %136
%138 = load float, ptr %8, align 4
%139 = fsub float %137, %138
%140 = call i32 @atan2(i32 noundef %132, float noundef %139)
%141 = sitofp i32 %140 to float
%142 = load ptr, ptr %4, align 8
%143 = getelementptr inbounds float, ptr %142, i64 0
store float %141, ptr %143, align 4
%144 = load float, ptr %10, align 4
%145 = fmul float 2.000000e+00, %144
%146 = load float, ptr %9, align 4
%147 = fdiv float %145, %146
%148 = fptosi float %147 to i32
%149 = call float @asin(i32 noundef %148)
%150 = load ptr, ptr %4, align 8
%151 = getelementptr inbounds float, ptr %150, i64 1
store float %149, ptr %151, align 4
%152 = load ptr, ptr %3, align 8
%153 = getelementptr inbounds float, ptr %152, i64 1
%154 = load float, ptr %153, align 4
%155 = fmul float 2.000000e+00, %154
%156 = load ptr, ptr %3, align 8
%157 = getelementptr inbounds float, ptr %156, i64 0
%158 = load float, ptr %157, align 4
%159 = load ptr, ptr %3, align 8
%160 = getelementptr inbounds float, ptr %159, i64 2
%161 = load float, ptr %160, align 4
%162 = fmul float 2.000000e+00, %161
%163 = load ptr, ptr %3, align 8
%164 = getelementptr inbounds float, ptr %163, i64 3
%165 = load float, ptr %164, align 4
%166 = fmul float %162, %165
%167 = fneg float %166
%168 = call float @llvm.fmuladd.f32(float %155, float %158, float %167)
%169 = fptosi float %168 to i32
%170 = load float, ptr %5, align 4
%171 = load float, ptr %6, align 4
%172 = fsub float %170, %171
%173 = load float, ptr %7, align 4
%174 = fadd float %172, %173
%175 = load float, ptr %8, align 4
%176 = fsub float %174, %175
%177 = call i32 @atan2(i32 noundef %169, float noundef %176)
%178 = sitofp i32 %177 to float
%179 = load ptr, ptr %4, align 8
%180 = getelementptr inbounds float, ptr %179, i64 2
store float %178, ptr %180, align 4
br label %181
181: ; preds = %114, %93
br label %182
182: ; preds = %181, %66
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare i32 @atan2(i32 noundef, float noundef) #2
declare float @asin(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 nosync nounwind speculatable willreturn memory(none) }
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/tmplzbb7jak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @eulerFromQuaternion(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds float, ptr %11, i64 0
%13 = load float, ptr %12, align 4
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds float, ptr %14, i64 0
%16 = load float, ptr %15, align 4
%17 = fmul float %13, %16
store float %17, ptr %5, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 1
%23 = load float, ptr %22, align 4
%24 = fmul float %20, %23
store float %24, ptr %6, align 4
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds float, ptr %25, i64 2
%27 = load float, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds float, ptr %28, i64 2
%30 = load float, ptr %29, align 4
%31 = fmul float %27, %30
store float %31, ptr %7, align 4
%32 = load ptr, ptr %3, align 8
%33 = getelementptr inbounds float, ptr %32, i64 3
%34 = load float, ptr %33, align 4
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds float, ptr %35, i64 3
%37 = load float, ptr %36, align 4
%38 = fmul float %34, %37
store float %38, ptr %8, align 4
%39 = load float, ptr %5, align 4
%40 = load float, ptr %6, align 4
%41 = fadd float %39, %40
%42 = load float, ptr %7, align 4
%43 = fadd float %41, %42
%44 = load float, ptr %8, align 4
%45 = fadd float %43, %44
store float %45, ptr %9, align 4
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 1
%48 = load float, ptr %47, align 4
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds float, ptr %49, i64 2
%51 = load float, ptr %50, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds float, ptr %52, i64 3
%54 = load float, ptr %53, align 4
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds float, ptr %55, i64 0
%57 = load float, ptr %56, align 4
%58 = fmul float %54, %57
%59 = call float @llvm.fmuladd.f32(float %48, float %51, float %58)
store float %59, ptr %10, align 4
%60 = load float, ptr %10, align 4
%61 = fpext float %60 to double
%62 = load float, ptr %9, align 4
%63 = fpext float %62 to double
%64 = fmul double 4.990000e-01, %63
%65 = fcmp ogt double %61, %64
br i1 %65, label %66, label %86
66: ; preds = %2
%67 = load ptr, ptr %3, align 8
%68 = getelementptr inbounds float, ptr %67, i64 1
%69 = load float, ptr %68, align 4
%70 = fptosi float %69 to i32
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds float, ptr %71, i64 0
%73 = load float, ptr %72, align 4
%74 = call i32 @atan2(i32 noundef %70, float noundef %73)
%75 = mul nsw i32 2, %74
%76 = sitofp i32 %75 to float
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds float, ptr %77, i64 0
store float %76, ptr %78, align 4
%79 = load i32, ptr @M_PI, align 4
%80 = sdiv i32 %79, 2
%81 = sitofp i32 %80 to float
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds float, ptr %82, i64 1
store float %81, ptr %83, align 4
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds float, ptr %84, i64 2
store float 0.000000e+00, ptr %85, align 4
br label %182
86: ; preds = %2
%87 = load float, ptr %10, align 4
%88 = fpext float %87 to double
%89 = load float, ptr %9, align 4
%90 = fpext float %89 to double
%91 = fmul double -4.990000e-01, %90
%92 = fcmp olt double %88, %91
br i1 %92, label %93, label %114
93: ; preds = %86
%94 = load ptr, ptr %3, align 8
%95 = getelementptr inbounds float, ptr %94, i64 1
%96 = load float, ptr %95, align 4
%97 = fptosi float %96 to i32
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds float, ptr %98, i64 0
%100 = load float, ptr %99, align 4
%101 = call i32 @atan2(i32 noundef %97, float noundef %100)
%102 = mul nsw i32 -2, %101
%103 = sitofp i32 %102 to float
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds float, ptr %104, i64 0
store float %103, ptr %105, align 4
%106 = load i32, ptr @M_PI, align 4
%107 = sub nsw i32 0, %106
%108 = sdiv i32 %107, 2
%109 = sitofp i32 %108 to float
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds float, ptr %110, i64 1
store float %109, ptr %111, align 4
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds float, ptr %112, i64 2
store float 0.000000e+00, ptr %113, align 4
br label %181
114: ; preds = %86
%115 = load ptr, ptr %3, align 8
%116 = getelementptr inbounds float, ptr %115, i64 2
%117 = load float, ptr %116, align 4
%118 = fmul float 2.000000e+00, %117
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds float, ptr %119, i64 0
%121 = load float, ptr %120, align 4
%122 = load ptr, ptr %3, align 8
%123 = getelementptr inbounds float, ptr %122, i64 1
%124 = load float, ptr %123, align 4
%125 = fmul float 2.000000e+00, %124
%126 = load ptr, ptr %3, align 8
%127 = getelementptr inbounds float, ptr %126, i64 3
%128 = load float, ptr %127, align 4
%129 = fmul float %125, %128
%130 = fneg float %129
%131 = call float @llvm.fmuladd.f32(float %118, float %121, float %130)
%132 = fptosi float %131 to i32
%133 = load float, ptr %5, align 4
%134 = load float, ptr %6, align 4
%135 = fadd float %133, %134
%136 = load float, ptr %7, align 4
%137 = fsub float %135, %136
%138 = load float, ptr %8, align 4
%139 = fsub float %137, %138
%140 = call i32 @atan2(i32 noundef %132, float noundef %139)
%141 = sitofp i32 %140 to float
%142 = load ptr, ptr %4, align 8
%143 = getelementptr inbounds float, ptr %142, i64 0
store float %141, ptr %143, align 4
%144 = load float, ptr %10, align 4
%145 = fmul float 2.000000e+00, %144
%146 = load float, ptr %9, align 4
%147 = fdiv float %145, %146
%148 = fptosi float %147 to i32
%149 = call float @asin(i32 noundef %148)
%150 = load ptr, ptr %4, align 8
%151 = getelementptr inbounds float, ptr %150, i64 1
store float %149, ptr %151, align 4
%152 = load ptr, ptr %3, align 8
%153 = getelementptr inbounds float, ptr %152, i64 1
%154 = load float, ptr %153, align 4
%155 = fmul float 2.000000e+00, %154
%156 = load ptr, ptr %3, align 8
%157 = getelementptr inbounds float, ptr %156, i64 0
%158 = load float, ptr %157, align 4
%159 = load ptr, ptr %3, align 8
%160 = getelementptr inbounds float, ptr %159, i64 2
%161 = load float, ptr %160, align 4
%162 = fmul float 2.000000e+00, %161
%163 = load ptr, ptr %3, align 8
%164 = getelementptr inbounds float, ptr %163, i64 3
%165 = load float, ptr %164, align 4
%166 = fmul float %162, %165
%167 = fneg float %166
%168 = call float @llvm.fmuladd.f32(float %155, float %158, float %167)
%169 = fptosi float %168 to i32
%170 = load float, ptr %5, align 4
%171 = load float, ptr %6, align 4
%172 = fsub float %170, %171
%173 = load float, ptr %7, align 4
%174 = fadd float %172, %173
%175 = load float, ptr %8, align 4
%176 = fsub float %174, %175
%177 = call i32 @atan2(i32 noundef %169, float noundef %176)
%178 = sitofp i32 %177 to float
%179 = load ptr, ptr %4, align 8
%180 = getelementptr inbounds float, ptr %179, i64 2
store float %178, ptr %180, align 4
br label %181
181: ; preds = %114, %93
br label %182
182: ; preds = %181, %66
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
declare i32 @atan2(i32 noundef, float noundef) #2
declare float @asin(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 nosync nounwind speculatable willreturn memory(none) }
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/tmp9u849j2x.c'
source_filename = "/tmp/tmp9u849j2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@lasti = external global i32, align 4
@lastj = external global i32, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gotoxy(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr @lasti, align 4
%7 = load i32, ptr @lastj, align 4
%8 = call i32 @goback(i32 noundef %6, i32 noundef %7)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %15, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = call i32 @printf(ptr noundef @.str)
br label %15
15: ; preds = %13
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
br label %9, !llvm.loop !6
18: ; preds = %9
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %25, %18
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = call i32 @printf(ptr noundef @.str.1)
br label %25
25: ; preds = %23
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %19, !llvm.loop !8
28: ; preds = %19
%29 = load i32, ptr %3, align 4
store i32 %29, ptr @lasti, align 4
%30 = load i32, ptr %4, align 4
store i32 %30, ptr @lastj, align 4
ret void
}
declare i32 @goback(i32 noundef, i32 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9u849j2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@lasti = external global i32, align 4
@lastj = external global i32, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gotoxy(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr @lasti, align 4
%7 = load i32, ptr @lastj, align 4
%8 = call i32 @goback(i32 noundef %6, i32 noundef %7)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %14
%13 = call i32 @printf(ptr noundef @.str)
br label %14
14: ; preds = %12
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %2
store i32 0, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %32
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %26
%25 = call i32 @printf(ptr noundef @.str.1)
br label %26
26: ; preds = %24
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %26
br label %32
32: ; preds = %._crit_edge3, %20
%33 = load i32, ptr %3, align 4
store i32 %33, ptr @lasti, align 4
%34 = load i32, ptr %4, align 4
store i32 %34, ptr @lastj, align 4
ret void
}
declare i32 @goback(i32 noundef, i32 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}
|
; ModuleID = '/tmp/tmphq93en9a.c'
source_filename = "/tmp/tmphq93en9a.c"
target datalayout = "e-m:e-p270: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/tmphq93en9a.c"
target datalayout = "e-m:e-p270: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/tmpyx3b197y.c'
source_filename = "/tmp/tmpyx3b197y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcd_to_ascii(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = and i32 %6, 15
%8 = add nsw i32 %7, 48
%9 = trunc i32 %8 to i8
store i8 %9, ptr %3, align 1
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = and i32 %11, 240
%13 = add nsw i32 %12, 48
%14 = trunc i32 %13 to i8
store i8 %14, ptr %4, align 1
%15 = load i8, ptr %4, align 1
%16 = call i32 @uart_putc(i8 noundef signext %15)
%17 = load i8, ptr %3, align 1
%18 = call i32 @uart_putc(i8 noundef signext %17)
ret void
}
declare i32 @uart_putc(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyx3b197y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcd_to_ascii(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = and i32 %6, 15
%8 = add nsw i32 %7, 48
%9 = trunc i32 %8 to i8
store i8 %9, ptr %3, align 1
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = and i32 %11, 240
%13 = add nsw i32 %12, 48
%14 = trunc i32 %13 to i8
store i8 %14, ptr %4, align 1
%15 = load i8, ptr %4, align 1
%16 = call i32 @uart_putc(i8 noundef signext %15)
%17 = load i8, ptr %3, align 1
%18 = call i32 @uart_putc(i8 noundef signext %17)
ret void
}
declare i32 @uart_putc(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ui5yq69.c'
source_filename = "/tmp/tmp_ui5yq69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(i32 noundef 30, i32 noundef %13, double noundef 1.000000e+00, double noundef 1.000000e+02)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @gluLookAt(i32 noundef 0, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(i32 noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @gluLookAt(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ui5yq69.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(i32 noundef 30, i32 noundef %13, double noundef 1.000000e+00, double noundef 1.000000e+02)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @gluLookAt(i32 noundef 0, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(i32 noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @gluLookAt(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpezsfyd5f.c'
source_filename = "/tmp/tmpezsfyd5f.c"
target datalayout = "e-m:e-p270: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/tmpezsfyd5f.c"
target datalayout = "e-m:e-p270: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/tmp58g4w20u.c'
source_filename = "/tmp/tmp58g4w20u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"a %x, %d, b %x, %ud\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i8 -128, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
store i32 %5, ptr %3, align 4
%6 = load i8, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6, i8 noundef signext %7, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, 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/tmp58g4w20u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"a %x, %d, b %x, %ud\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i8 -128, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
store i32 %5, ptr %3, align 4
%6 = load i8, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6, i8 noundef signext %7, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext, 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/tmp4go40c8_.c'
source_filename = "/tmp/tmp4go40c8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"0x%06x: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_hex(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i64 0, ptr %9, align 8
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i64
store i64 %17, ptr %9, align 8
br label %18
18: ; preds = %15, %4
%19 = load i64, ptr %6, align 8
%20 = urem i64 %19, 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i64, ptr %6, align 8
%24 = urem i64 %23, 8
%25 = sub i64 8, %24
%26 = trunc i64 %25 to i32
store i32 %26, ptr %11, align 4
br label %28
27: ; preds = %18
store i32 0, ptr %11, align 4
br label %28
28: ; preds = %27, %22
store i64 0, ptr %10, align 8
br label %29
29: ; preds = %106, %28
%30 = load i64, ptr %10, align 8
%31 = load i64, ptr %6, align 8
%32 = load i32, ptr %11, align 4
%33 = zext i32 %32 to i64
%34 = add i64 %31, %33
%35 = icmp ult i64 %30, %34
br i1 %35, label %36, label %109
36: ; preds = %29
%37 = load i64, ptr %10, align 8
%38 = urem i64 %37, 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load i64, ptr %10, align 8
%42 = load i64, ptr %9, align 8
%43 = add i64 %41, %42
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %43)
br label %45
45: ; preds = %40, %36
%46 = load i64, ptr %10, align 8
%47 = load i64, ptr %6, align 8
%48 = icmp ult i64 %46, %47
br i1 %48, label %49, label %57
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = load i64, ptr %10, align 8
%52 = getelementptr inbounds i8, ptr %50, i64 %51
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = and i32 255, %54
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %55)
br label %59
57: ; preds = %45
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %59
59: ; preds = %57, %49
%60 = load i32, ptr %8, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %59
br label %106
63: ; preds = %59
%64 = load i64, ptr %10, align 8
%65 = urem i64 %64, 8
%66 = icmp eq i64 %65, 7
br i1 %66, label %67, label %105
67: ; preds = %63
%68 = load i64, ptr %10, align 8
%69 = sub i64 %68, 7
store i64 %69, ptr %12, align 8
br label %70
70: ; preds = %100, %67
%71 = load i64, ptr %12, align 8
%72 = load i64, ptr %10, align 8
%73 = icmp ule i64 %71, %72
br i1 %73, label %74, label %103
74: ; preds = %70
%75 = load i64, ptr %12, align 8
%76 = load i64, ptr %6, align 8
%77 = icmp uge i64 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 @putchar(i8 noundef signext 32)
br label %99
80: ; preds = %74
%81 = load ptr, ptr %5, align 8
%82 = load i64, ptr %12, align 8
%83 = getelementptr inbounds i8, ptr %81, i64 %82
%84 = load i8, ptr %83, align 1
%85 = call i64 @isprint(i8 noundef signext %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %80
%88 = load ptr, ptr %5, align 8
%89 = load i64, ptr %12, align 8
%90 = getelementptr inbounds i8, ptr %88, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = and i32 255, %92
%94 = trunc i32 %93 to i8
%95 = call i32 @putchar(i8 noundef signext %94)
br label %98
96: ; preds = %80
%97 = call i32 @putchar(i8 noundef signext 46)
br label %98
98: ; preds = %96, %87
br label %99
99: ; preds = %98, %78
br label %100
100: ; preds = %99
%101 = load i64, ptr %12, align 8
%102 = add i64 %101, 1
store i64 %102, ptr %12, align 8
br label %70, !llvm.loop !6
103: ; preds = %70
%104 = call i32 @putchar(i8 noundef signext 10)
br label %105
105: ; preds = %103, %63
br label %106
106: ; preds = %105, %62
%107 = load i64, ptr %10, align 8
%108 = add i64 %107, 1
store i64 %108, ptr %10, align 8
br label %29, !llvm.loop !8
109: ; preds = %29
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i64 @isprint(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4go40c8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"0x%06x: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_hex(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i64 0, ptr %9, align 8
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i64
store i64 %17, ptr %9, align 8
br label %18
18: ; preds = %15, %4
%19 = load i64, ptr %6, align 8
%20 = urem i64 %19, 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i64, ptr %6, align 8
%24 = urem i64 %23, 8
%25 = sub i64 8, %24
%26 = trunc i64 %25 to i32
store i32 %26, ptr %11, align 4
br label %28
27: ; preds = %18
store i32 0, ptr %11, align 4
br label %28
28: ; preds = %27, %22
store i64 0, ptr %10, align 8
%29 = load i64, ptr %10, align 8
%30 = load i64, ptr %6, align 8
%31 = load i32, ptr %11, align 4
%32 = zext i32 %31 to i64
%33 = add i64 %30, %32
%34 = icmp ult i64 %29, %33
br i1 %34, label %.lr.ph2, label %116
.lr.ph2: ; preds = %28
br label %35
35: ; preds = %.lr.ph2, %107
%36 = load i64, ptr %10, align 8
%37 = urem i64 %36, 8
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = load i64, ptr %10, align 8
%41 = load i64, ptr %9, align 8
%42 = add i64 %40, %41
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %42)
br label %44
44: ; preds = %39, %35
%45 = load i64, ptr %10, align 8
%46 = load i64, ptr %6, align 8
%47 = icmp ult i64 %45, %46
br i1 %47, label %48, label %56
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i64, ptr %10, align 8
%51 = getelementptr inbounds i8, ptr %49, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = and i32 255, %53
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %54)
br label %58
56: ; preds = %44
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %58
58: ; preds = %56, %48
%59 = load i32, ptr %8, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %58
br label %107
62: ; preds = %58
%63 = load i64, ptr %10, align 8
%64 = urem i64 %63, 8
%65 = icmp eq i64 %64, 7
br i1 %65, label %66, label %106
66: ; preds = %62
%67 = load i64, ptr %10, align 8
%68 = sub i64 %67, 7
store i64 %68, ptr %12, align 8
%69 = load i64, ptr %12, align 8
%70 = load i64, ptr %10, align 8
%71 = icmp ule i64 %69, %70
br i1 %71, label %.lr.ph, label %104
.lr.ph: ; preds = %66
br label %72
72: ; preds = %.lr.ph, %98
%73 = load i64, ptr %12, align 8
%74 = load i64, ptr %6, align 8
%75 = icmp uge i64 %73, %74
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 @putchar(i8 noundef signext 32)
br label %97
78: ; preds = %72
%79 = load ptr, ptr %5, align 8
%80 = load i64, ptr %12, align 8
%81 = getelementptr inbounds i8, ptr %79, i64 %80
%82 = load i8, ptr %81, align 1
%83 = call i64 @isprint(i8 noundef signext %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %94
85: ; preds = %78
%86 = load ptr, ptr %5, align 8
%87 = load i64, ptr %12, align 8
%88 = getelementptr inbounds i8, ptr %86, i64 %87
%89 = load i8, ptr %88, align 1
%90 = sext i8 %89 to i32
%91 = and i32 255, %90
%92 = trunc i32 %91 to i8
%93 = call i32 @putchar(i8 noundef signext %92)
br label %96
94: ; preds = %78
%95 = call i32 @putchar(i8 noundef signext 46)
br label %96
96: ; preds = %94, %85
br label %97
97: ; preds = %96, %76
br label %98
98: ; preds = %97
%99 = load i64, ptr %12, align 8
%100 = add i64 %99, 1
store i64 %100, ptr %12, align 8
%101 = load i64, ptr %12, align 8
%102 = load i64, ptr %10, align 8
%103 = icmp ule i64 %101, %102
br i1 %103, label %72, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %104
104: ; preds = %._crit_edge, %66
%105 = call i32 @putchar(i8 noundef signext 10)
br label %106
106: ; preds = %104, %62
br label %107
107: ; preds = %106, %61
%108 = load i64, ptr %10, align 8
%109 = add i64 %108, 1
store i64 %109, ptr %10, align 8
%110 = load i64, ptr %10, align 8
%111 = load i64, ptr %6, align 8
%112 = load i32, ptr %11, align 4
%113 = zext i32 %112 to i64
%114 = add i64 %111, %113
%115 = icmp ult i64 %110, %114
br i1 %115, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %107
br label %116
116: ; preds = %._crit_edge3, %28
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i64 @isprint(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmkpzt3_7.c'
source_filename = "/tmp/tmpmkpzt3_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_SAK() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_SAK(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_SAK(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/tmpmkpzt3_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_SAK() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_SAK(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_SAK(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/tmpvjs7cobw.c'
source_filename = "/tmp/tmpvjs7cobw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"That was easy!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvjs7cobw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"That was easy!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvwpo2p53.c'
source_filename = "/tmp/tmpvwpo2p53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"System is Little Endian\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"System is Big Endian\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Size of char: %lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Size of short: %lld\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Size of int: %lld\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Size of size_t: %lld\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Size of long int: %lld\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Size of long long int: %lld\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"Size of float: %lld\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"Size of double: %lld\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"Size of long double: %lld\0A\00", align 1
@.str.11 = private unnamed_addr constant [229 x i8] c"WARNING: Since size of integer is only 4 bytes, some routines that input and output integer arguments will be limited to 2GB. For example, ROMIO will fail to work if try to write >2GB file, since buffer sizes must then be <2GB\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @report_systeminfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @IsLittleEndian()
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef @.str)
br label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef @.str.1)
br label %11
11: ; preds = %8, %5
%12 = load ptr, ptr %2, align 8
%13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.2, i64 noundef 1)
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.3, i64 noundef 2)
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.4, i64 noundef 4)
%18 = load ptr, ptr %2, align 8
%19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.5, i64 noundef 8)
%20 = load ptr, ptr %2, align 8
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.6, i64 noundef 8)
%22 = load ptr, ptr %2, align 8
%23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.7, i64 noundef 8)
%24 = load ptr, ptr %2, align 8
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.8, i64 noundef 4)
%26 = load ptr, ptr %2, align 8
%27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.9, i64 noundef 8)
%28 = load ptr, ptr %2, align 8
%29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.10, i64 noundef 16)
%30 = load ptr, ptr %2, align 8
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.11)
ret void
}
declare i32 @IsLittleEndian() #1
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/tmpvwpo2p53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"System is Little Endian\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"System is Big Endian\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Size of char: %lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Size of short: %lld\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"Size of int: %lld\0A\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Size of size_t: %lld\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Size of long int: %lld\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Size of long long int: %lld\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"Size of float: %lld\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"Size of double: %lld\0A\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"Size of long double: %lld\0A\00", align 1
@.str.11 = private unnamed_addr constant [229 x i8] c"WARNING: Since size of integer is only 4 bytes, some routines that input and output integer arguments will be limited to 2GB. For example, ROMIO will fail to work if try to write >2GB file, since buffer sizes must then be <2GB\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @report_systeminfo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @IsLittleEndian()
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef @.str)
br label %11
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef @.str.1)
br label %11
11: ; preds = %8, %5
%12 = load ptr, ptr %2, align 8
%13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.2, i64 noundef 1)
%14 = load ptr, ptr %2, align 8
%15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.3, i64 noundef 2)
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.4, i64 noundef 4)
%18 = load ptr, ptr %2, align 8
%19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef @.str.5, i64 noundef 8)
%20 = load ptr, ptr %2, align 8
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.6, i64 noundef 8)
%22 = load ptr, ptr %2, align 8
%23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.7, i64 noundef 8)
%24 = load ptr, ptr %2, align 8
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.8, i64 noundef 4)
%26 = load ptr, ptr %2, align 8
%27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.9, i64 noundef 8)
%28 = load ptr, ptr %2, align 8
%29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.10, i64 noundef 16)
%30 = load ptr, ptr %2, align 8
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.11)
ret void
}
declare i32 @IsLittleEndian() #1
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/tmp3av327ou.c'
source_filename = "/tmp/tmp3av327ou.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @thread_exit()
unreachable
}
declare i32 @thread_exit(...) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3av327ou.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @thread_exit()
unreachable
}
declare i32 @thread_exit(...) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ciruyro.c'
source_filename = "/tmp/tmp5ciruyro.c"
target datalayout = "e-m:e-p270: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/tmp5ciruyro.c"
target datalayout = "e-m:e-p270: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/tmp2y423clh.c'
source_filename = "/tmp/tmp2y423clh.c"
target datalayout = "e-m:e-p270: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.linger = type { i32, i32 }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"socket error\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_LINGER = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"so linger error\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"connect error\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"write error\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"read error\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [104 x i8] c"\0A\0A--------------------------------------------------------\0ATotal bytes sent: %i B\0AThroughput is %f MB/S\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.linger, align 4
%10 = alloca ptr, align 8
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [1024 x i8], align 16
%16 = alloca i64, align 8
%17 = 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
%18 = getelementptr inbounds %struct.linger, ptr %9, i32 0, i32 0
store i32 5, ptr %18, align 4
%19 = getelementptr inbounds %struct.linger, ptr %9, i32 0, i32 1
store i32 1, ptr %19, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i32 @atoi(ptr noundef %25)
store i32 %26, ptr %7, align 4
%27 = load ptr, ptr %6, align 8
%28 = call i32 @printf(ptr noundef @.str, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = call i32 @isdigit(i8 noundef signext %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %48, label %34
34: ; preds = %2
%35 = load ptr, ptr %6, align 8
%36 = call ptr @gethostbyname(ptr noundef %35)
store ptr %36, ptr %10, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %40, label %38
38: ; preds = %34
%39 = call i32 @herror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %126
40: ; preds = %34
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = inttoptr i64 %43 to ptr
%45 = getelementptr inbounds %struct.in_addr, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = call ptr @inet_ntoa(i32 %46)
store ptr %47, ptr %6, align 8
br label %48
48: ; preds = %40, %2
%49 = load ptr, ptr %6, align 8
%50 = call i32 @printf(ptr noundef @.str, ptr noundef %49)
%51 = load i32, ptr @PF_INET, align 4
%52 = load i32, ptr @SOCK_STREAM, align 4
%53 = call i32 @socket(i32 noundef %51, i32 noundef %52, i32 noundef 0)
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %48
%57 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %126
58: ; preds = %48
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr @SOL_SOCKET, align 4
%61 = load i32, ptr @SO_LINGER, align 4
%62 = call i64 @setsockopt(i32 noundef %59, i32 noundef %60, i32 noundef %61, ptr noundef %9, i32 noundef 8)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %58
%65 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %126
66: ; preds = %58
%67 = load i32, ptr @PF_INET, align 4
%68 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %67, ptr %68, align 4
%69 = load ptr, ptr %6, align 8
%70 = call i32 @inet_addr(ptr noundef %69)
%71 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%72 = getelementptr inbounds %struct.TYPE_2__, ptr %71, i32 0, i32 0
store i32 %70, ptr %72, align 4
%73 = load i32, ptr %7, align 4
%74 = call i32 @htons(i32 noundef %73)
%75 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %74, ptr %75, align 4
%76 = load i32, ptr %8, align 4
%77 = call i64 @connect(i32 noundef %76, ptr noundef %11, i32 noundef 12)
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %66
%80 = call i32 @perror(ptr noundef @.str.4)
%81 = load i32, ptr %8, align 4
%82 = call i32 @close(i32 noundef %81)
store i32 -1, ptr %3, align 4
br label %126
83: ; preds = %66
store i32 0, ptr %14, align 4
%84 = call i64 (...) @clock()
store i64 %84, ptr %16, align 8
br label %85
85: ; preds = %101, %83
%86 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
%87 = call i32 @read(i32 noundef 0, ptr noundef %86, i32 noundef 1024)
store i32 %87, ptr %12, align 4
%88 = icmp sgt i32 %87, 0
br i1 %88, label %89, label %102
89: ; preds = %85
%90 = load i32, ptr %8, align 4
%91 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
%92 = load i32, ptr %12, align 4
%93 = call i32 @write(i32 noundef %90, ptr noundef %91, i32 noundef %92)
store i32 %93, ptr %13, align 4
%94 = load i32, ptr %14, align 4
%95 = load i32, ptr %12, align 4
%96 = add nsw i32 %94, %95
store i32 %96, ptr %14, align 4
%97 = load i32, ptr %13, align 4
%98 = icmp slt i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %89
%100 = call i32 @perror(ptr noundef @.str.5)
br label %101
101: ; preds = %99, %89
br label %85, !llvm.loop !6
102: ; preds = %85
%103 = call i64 (...) @clock()
store i64 %103, ptr %17, align 8
%104 = load i32, ptr %12, align 4
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %102
%107 = call i32 @perror(ptr noundef @.str.6)
br label %108
108: ; preds = %106, %102
%109 = load i32, ptr %8, align 4
%110 = call i32 @close(i32 noundef %109)
%111 = load i32, ptr @stderr, align 4
%112 = load i32, ptr %14, align 4
%113 = load i32, ptr %14, align 4
%114 = sitofp i32 %113 to double
%115 = load i64, ptr %17, align 8
%116 = sitofp i64 %115 to double
%117 = load i64, ptr %16, align 8
%118 = sitofp i64 %117 to double
%119 = fsub double %116, %118
%120 = load double, ptr @CLOCKS_PER_SEC, align 8
%121 = fdiv double %119, %120
%122 = fdiv double %114, %121
%123 = fdiv double %122, 1.000000e+06
%124 = fptosi double %123 to i32
%125 = call i32 @fprintf(i32 noundef %111, ptr noundef @.str.7, i32 noundef %112, i32 noundef %124)
store i32 0, ptr %3, align 4
br label %126
126: ; preds = %108, %79, %64, %56, %38
%127 = load i32, ptr %3, align 4
ret i32 %127
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2y423clh.c"
target datalayout = "e-m:e-p270: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.linger = type { i32, i32 }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64 }
%struct.in_addr = type { i32 }
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"socket error\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_LINGER = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [16 x i8] c"so linger error\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"connect error\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"write error\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"read error\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [104 x i8] c"\0A\0A--------------------------------------------------------\0ATotal bytes sent: %i B\0AThroughput is %f MB/S\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.linger, align 4
%10 = alloca ptr, align 8
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca [1024 x i8], align 16
%16 = alloca i64, align 8
%17 = 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
%18 = getelementptr inbounds %struct.linger, ptr %9, i32 0, i32 0
store i32 5, ptr %18, align 4
%19 = getelementptr inbounds %struct.linger, ptr %9, i32 0, i32 1
store i32 1, ptr %19, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i32 @atoi(ptr noundef %25)
store i32 %26, ptr %7, align 4
%27 = load ptr, ptr %6, align 8
%28 = call i32 @printf(ptr noundef @.str, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = call i32 @isdigit(i8 noundef signext %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %48, label %34
34: ; preds = %2
%35 = load ptr, ptr %6, align 8
%36 = call ptr @gethostbyname(ptr noundef %35)
store ptr %36, ptr %10, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %40, label %38
38: ; preds = %34
%39 = call i32 @herror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %127
40: ; preds = %34
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = inttoptr i64 %43 to ptr
%45 = getelementptr inbounds %struct.in_addr, ptr %44, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = call ptr @inet_ntoa(i32 %46)
store ptr %47, ptr %6, align 8
br label %48
48: ; preds = %40, %2
%49 = load ptr, ptr %6, align 8
%50 = call i32 @printf(ptr noundef @.str, ptr noundef %49)
%51 = load i32, ptr @PF_INET, align 4
%52 = load i32, ptr @SOCK_STREAM, align 4
%53 = call i32 @socket(i32 noundef %51, i32 noundef %52, i32 noundef 0)
store i32 %53, ptr %8, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %48
%57 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %127
58: ; preds = %48
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr @SOL_SOCKET, align 4
%61 = load i32, ptr @SO_LINGER, align 4
%62 = call i64 @setsockopt(i32 noundef %59, i32 noundef %60, i32 noundef %61, ptr noundef %9, i32 noundef 8)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %58
%65 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %127
66: ; preds = %58
%67 = load i32, ptr @PF_INET, align 4
%68 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 2
store i32 %67, ptr %68, align 4
%69 = load ptr, ptr %6, align 8
%70 = call i32 @inet_addr(ptr noundef %69)
%71 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 1
%72 = getelementptr inbounds %struct.TYPE_2__, ptr %71, i32 0, i32 0
store i32 %70, ptr %72, align 4
%73 = load i32, ptr %7, align 4
%74 = call i32 @htons(i32 noundef %73)
%75 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
store i32 %74, ptr %75, align 4
%76 = load i32, ptr %8, align 4
%77 = call i64 @connect(i32 noundef %76, ptr noundef %11, i32 noundef 12)
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %66
%80 = call i32 @perror(ptr noundef @.str.4)
%81 = load i32, ptr %8, align 4
%82 = call i32 @close(i32 noundef %81)
store i32 -1, ptr %3, align 4
br label %127
83: ; preds = %66
store i32 0, ptr %14, align 4
%84 = call i64 (...) @clock()
store i64 %84, ptr %16, align 8
%85 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
%86 = call i32 @read(i32 noundef 0, ptr noundef %85, i32 noundef 1024)
store i32 %86, ptr %12, align 4
%87 = icmp sgt i32 %86, 0
br i1 %87, label %.lr.ph, label %103
.lr.ph: ; preds = %83
br label %88
88: ; preds = %.lr.ph, %100
%89 = load i32, ptr %8, align 4
%90 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
%91 = load i32, ptr %12, align 4
%92 = call i32 @write(i32 noundef %89, ptr noundef %90, i32 noundef %91)
store i32 %92, ptr %13, align 4
%93 = load i32, ptr %14, align 4
%94 = load i32, ptr %12, align 4
%95 = add nsw i32 %93, %94
store i32 %95, ptr %14, align 4
%96 = load i32, ptr %13, align 4
%97 = icmp slt i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %88
%99 = call i32 @perror(ptr noundef @.str.5)
br label %100
100: ; preds = %98, %88
%101 = call i32 @read(i32 noundef 0, ptr noundef %85, i32 noundef 1024)
store i32 %101, ptr %12, align 4
%102 = icmp sgt i32 %101, 0
br i1 %102, label %88, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %100
br label %103
103: ; preds = %._crit_edge, %83
%104 = call i64 (...) @clock()
store i64 %104, ptr %17, align 8
%105 = load i32, ptr %12, align 4
%106 = icmp slt i32 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %103
%108 = call i32 @perror(ptr noundef @.str.6)
br label %109
109: ; preds = %107, %103
%110 = load i32, ptr %8, align 4
%111 = call i32 @close(i32 noundef %110)
%112 = load i32, ptr @stderr, align 4
%113 = load i32, ptr %14, align 4
%114 = load i32, ptr %14, align 4
%115 = sitofp i32 %114 to double
%116 = load i64, ptr %17, align 8
%117 = sitofp i64 %116 to double
%118 = load i64, ptr %16, align 8
%119 = sitofp i64 %118 to double
%120 = fsub double %117, %119
%121 = load double, ptr @CLOCKS_PER_SEC, align 8
%122 = fdiv double %120, %121
%123 = fdiv double %115, %122
%124 = fdiv double %123, 1.000000e+06
%125 = fptosi double %124 to i32
%126 = call i32 @fprintf(i32 noundef %112, ptr noundef @.str.7, i32 noundef %113, i32 noundef %125)
store i32 0, ptr %3, align 4
br label %127
127: ; preds = %109, %79, %64, %56, %38
%128 = load i32, ptr %3, align 4
ret i32 %128
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @herror(ptr noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqu7pxvcz.c'
source_filename = "/tmp/tmpqu7pxvcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@genexp.genexp = internal global float 0.000000e+00, align 4
@.str = private unnamed_addr constant [22 x i8] c" Value of AV: %16.6E\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Problem generating exponential deviate\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @genexp(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fpext float %3 to double
%5 = fcmp oge double %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
br label %12
7: ; preds = %1
%8 = load float, ptr %2, align 4
%9 = call i32 @mexPrintf(ptr noundef @.str, float noundef %8)
%10 = call i32 @mexErrMsgTxt(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %6
%13 = call float (...) @sexpo()
%14 = load float, ptr %2, align 4
%15 = fmul float %13, %14
store float %15, ptr @genexp.genexp, align 4
%16 = load float, ptr @genexp.genexp, align 4
ret float %16
}
declare i32 @mexPrintf(ptr noundef, float noundef) #1
declare i32 @mexErrMsgTxt(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare float @sexpo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqu7pxvcz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@genexp.genexp = internal global float 0.000000e+00, align 4
@.str = private unnamed_addr constant [22 x i8] c" Value of AV: %16.6E\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Problem generating exponential deviate\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @genexp(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fpext float %3 to double
%5 = fcmp oge double %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
br label %12
7: ; preds = %1
%8 = load float, ptr %2, align 4
%9 = call i32 @mexPrintf(ptr noundef @.str, float noundef %8)
%10 = call i32 @mexErrMsgTxt(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %6
%13 = call float (...) @sexpo()
%14 = load float, ptr %2, align 4
%15 = fmul float %13, %14
store float %15, ptr @genexp.genexp, align 4
%16 = load float, ptr @genexp.genexp, align 4
ret float %16
}
declare i32 @mexPrintf(ptr noundef, float noundef) #1
declare i32 @mexErrMsgTxt(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare float @sexpo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzszk3_qt.c'
source_filename = "/tmp/tmpzszk3_qt.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Usage: sudo ./icmp_server > <filename>]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzszk3_qt.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"Usage: sudo ./icmp_server > <filename>]\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @EXIT_SUCCESS, align 4
%4 = call i32 @exit(i32 noundef %3) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqswdig1y.c'
source_filename = "/tmp/tmpqswdig1y.c"
target datalayout = "e-m:e-p270: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/tmpqswdig1y.c"
target datalayout = "e-m:e-p270: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/tmpxp2qg2b5.c'
source_filename = "/tmp/tmpxp2qg2b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sexp.q = internal global [16 x double] [double 0x3FE62E42FEFA39EF, double 0x3FEDDE327EDAEB52, double 0x3FEFA4E30C4B355E, double 0x3FEFF3ADBA0A1E98, double 0x3FEFFE99F9FDE3CC, double 0x3FEFFFDD0310DC38, double 0x3FEFFFFCFFD0A1C1, double 0x3FEFFFFFC550E636, double 0x3FEFFFFFFBF58DDD, double 0x3FEFFFFFFFBF2C80, double 0x3FEFFFFFFFFC45D9, double 0x3FEFFFFFFFFFCD54, double 0x3FEFFFFFFFFFFD80, double 0x3FEFFFFFFFFFFFE3, double 0x3FEFFFFFFFFFFFFF, double 1.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sexp() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store double 0.000000e+00, ptr %2, align 8
%7 = call double (...) @dkiss()
store double %7, ptr %3, align 8
br label %8
8: ; preds = %15, %0
%9 = load double, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = fadd double %9, %10
store double %11, ptr %3, align 8
%12 = load double, ptr %3, align 8
%13 = fcmp ogt double %12, 1.000000e+00
br i1 %13, label %14, label %15
14: ; preds = %8
br label %19
15: ; preds = %8
%16 = load double, ptr %2, align 8
%17 = load double, ptr @sexp.q, align 16
%18 = fadd double %16, %17
store double %18, ptr %2, align 8
br label %8
19: ; preds = %14
%20 = load double, ptr %3, align 8
%21 = fsub double %20, 1.000000e+00
store double %21, ptr %3, align 8
%22 = load double, ptr %3, align 8
%23 = load double, ptr @sexp.q, align 16
%24 = fcmp ole double %22, %23
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load double, ptr %2, align 8
%27 = load double, ptr %3, align 8
%28 = fadd double %26, %27
store double %28, ptr %1, align 8
br label %54
29: ; preds = %19
store i32 0, ptr %6, align 4
%30 = call double (...) @dkiss()
store double %30, ptr %4, align 8
%31 = load double, ptr %4, align 8
store double %31, ptr %5, align 8
br label %32
32: ; preds = %42, %29
%33 = call double (...) @dkiss()
store double %33, ptr %4, align 8
%34 = load double, ptr %4, align 8
%35 = load double, ptr %5, align 8
%36 = fcmp olt double %34, %35
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = load double, ptr %4, align 8
store double %38, ptr %5, align 8
br label %39
39: ; preds = %37, %32
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %6, align 4
br label %42
42: ; preds = %39
%43 = load double, ptr %3, align 8
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x double], ptr @sexp.q, i64 0, i64 %45
%47 = load double, ptr %46, align 8
%48 = fcmp ogt double %43, %47
br i1 %48, label %32, label %49, !llvm.loop !6
49: ; preds = %42
%50 = load double, ptr %2, align 8
%51 = load double, ptr %5, align 8
%52 = load double, ptr @sexp.q, align 16
%53 = call double @llvm.fmuladd.f64(double %51, double %52, double %50)
store double %53, ptr %1, align 8
br label %54
54: ; preds = %49, %25
%55 = load double, ptr %1, align 8
ret double %55
}
declare double @dkiss(...) #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/tmpxp2qg2b5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sexp.q = internal global [16 x double] [double 0x3FE62E42FEFA39EF, double 0x3FEDDE327EDAEB52, double 0x3FEFA4E30C4B355E, double 0x3FEFF3ADBA0A1E98, double 0x3FEFFE99F9FDE3CC, double 0x3FEFFFDD0310DC38, double 0x3FEFFFFCFFD0A1C1, double 0x3FEFFFFFC550E636, double 0x3FEFFFFFFBF58DDD, double 0x3FEFFFFFFFBF2C80, double 0x3FEFFFFFFFFC45D9, double 0x3FEFFFFFFFFFCD54, double 0x3FEFFFFFFFFFFD80, double 0x3FEFFFFFFFFFFFE3, double 0x3FEFFFFFFFFFFFFF, double 1.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sexp() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store double 0.000000e+00, ptr %2, align 8
%7 = call double (...) @dkiss()
store double %7, ptr %3, align 8
%8 = load double, ptr %3, align 8
%9 = load double, ptr %3, align 8
%10 = fadd double %8, %9
store double %10, ptr %3, align 8
%11 = load double, ptr %3, align 8
%12 = fcmp ogt double %11, 1.000000e+00
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %0
br label %14
._crit_edge: ; preds = %14
br label %13
13: ; preds = %._crit_edge, %0
br label %23
14: ; preds = %.lr.ph, %14
%15 = load double, ptr %2, align 8
%16 = load double, ptr @sexp.q, align 16
%17 = fadd double %15, %16
store double %17, ptr %2, align 8
%18 = load double, ptr %3, align 8
%19 = load double, ptr %3, align 8
%20 = fadd double %18, %19
store double %20, ptr %3, align 8
%21 = load double, ptr %3, align 8
%22 = fcmp ogt double %21, 1.000000e+00
br i1 %22, label %._crit_edge, label %14
23: ; preds = %13
%24 = load double, ptr %3, align 8
%25 = fsub double %24, 1.000000e+00
store double %25, ptr %3, align 8
%26 = load double, ptr %3, align 8
%27 = load double, ptr @sexp.q, align 16
%28 = fcmp ole double %26, %27
br i1 %28, label %29, label %33
29: ; preds = %23
%30 = load double, ptr %2, align 8
%31 = load double, ptr %3, align 8
%32 = fadd double %30, %31
store double %32, ptr %1, align 8
br label %58
33: ; preds = %23
store i32 0, ptr %6, align 4
%34 = call double (...) @dkiss()
store double %34, ptr %4, align 8
%35 = load double, ptr %4, align 8
store double %35, ptr %5, align 8
br label %36
36: ; preds = %46, %33
%37 = call double (...) @dkiss()
store double %37, ptr %4, align 8
%38 = load double, ptr %4, align 8
%39 = load double, ptr %5, align 8
%40 = fcmp olt double %38, %39
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = load double, ptr %4, align 8
store double %42, ptr %5, align 8
br label %43
43: ; preds = %41, %36
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %6, align 4
br label %46
46: ; preds = %43
%47 = load double, ptr %3, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [16 x double], ptr @sexp.q, i64 0, i64 %49
%51 = load double, ptr %50, align 8
%52 = fcmp ogt double %47, %51
br i1 %52, label %36, label %53, !llvm.loop !6
53: ; preds = %46
%54 = load double, ptr %2, align 8
%55 = load double, ptr %5, align 8
%56 = load double, ptr @sexp.q, align 16
%57 = call double @llvm.fmuladd.f64(double %55, double %56, double %54)
store double %57, ptr %1, align 8
br label %58
58: ; preds = %53, %29
%59 = load double, ptr %1, align 8
ret double %59
}
declare double @dkiss(...) #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/tmpz9xa08je.c'
source_filename = "/tmp/tmpz9xa08je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QuitStoppedCommand() #0 {
%1 = call i32 @Exit(i32 noundef 0)
ret void
}
declare i32 @Exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz9xa08je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QuitStoppedCommand() #0 {
%1 = call i32 @Exit(i32 noundef 0)
ret void
}
declare i32 @Exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjb74gixe.c'
source_filename = "/tmp/tmpjb74gixe.c"
target datalayout = "e-m:e-p270: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/tmpjb74gixe.c"
target datalayout = "e-m:e-p270: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/tmpaq73e4mo.c'
source_filename = "/tmp/tmpaq73e4mo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET /web/\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"GET /status HTTP/1.1\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"GET /startrec HTTP/1.1\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"GET /stoprec HTTP/1.1\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"GET /video HTTP/1.1\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"GET /favicon.ico HTTP/1.\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"We don't do Favicons =)\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"GET /jstatus HTTP/1.1\00", align 1
@.str.8 = private unnamed_addr constant [22 x i8] c"POST /action HTTP/1.1\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"Unknown request\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @processHttpRequest(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @getIndex(ptr noundef @.str, ptr noundef %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = call i32 @processFileRequest(ptr noundef %11, i32 noundef %12)
br label %87
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = call i64 @getIndex(ptr noundef @.str.1, ptr noundef %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @processStatusRequest(ptr noundef %19, i32 noundef %20, ptr noundef %21)
br label %86
23: ; preds = %14
%24 = load ptr, ptr %4, align 8
%25 = call i64 @getIndex(ptr noundef @.str.2, ptr noundef %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @processStartRecRequest(ptr noundef %28, i32 noundef %29, ptr noundef %30, ptr noundef null)
br label %85
32: ; preds = %23
%33 = load ptr, ptr %4, align 8
%34 = call i64 @getIndex(ptr noundef @.str.3, ptr noundef %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @processStopRecRequest(ptr noundef %37, i32 noundef %38, ptr noundef %39, ptr noundef null)
br label %84
41: ; preds = %32
%42 = load ptr, ptr %4, align 8
%43 = call i64 @getIndex(ptr noundef @.str.4, ptr noundef %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %5, align 4
%48 = load ptr, ptr %6, align 8
%49 = call i32 @processVideoRequest(ptr noundef %46, i32 noundef %47, ptr noundef %48)
br label %83
50: ; preds = %41
%51 = load ptr, ptr %4, align 8
%52 = call i64 @getIndex(ptr noundef @.str.5, ptr noundef %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %5, align 4
%57 = call i32 @return404(ptr noundef %55, i32 noundef %56, ptr noundef @.str.6)
br label %82
58: ; preds = %50
%59 = load ptr, ptr %4, align 8
%60 = call i64 @getIndex(ptr noundef @.str.7, ptr noundef %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %5, align 4
%65 = load ptr, ptr %6, align 8
%66 = call i32 @processStatusJSONRequest(ptr noundef %63, i32 noundef %64, ptr noundef %65)
br label %81
67: ; preds = %58
%68 = load ptr, ptr %4, align 8
%69 = call i64 @getIndex(ptr noundef @.str.8, ptr noundef %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = load ptr, ptr %4, align 8
%73 = load i32, ptr %5, align 4
%74 = load ptr, ptr %6, align 8
%75 = call i32 @processPostRequest(ptr noundef %72, i32 noundef %73, ptr noundef %74)
br label %80
76: ; preds = %67
%77 = load ptr, ptr %4, align 8
%78 = load i32, ptr %5, align 4
%79 = call i32 @return404(ptr noundef %77, i32 noundef %78, ptr noundef @.str.9)
br label %80
80: ; preds = %76, %71
br label %81
81: ; preds = %80, %62
br label %82
82: ; preds = %81, %54
br label %83
83: ; preds = %82, %45
br label %84
84: ; preds = %83, %36
br label %85
85: ; preds = %84, %27
br label %86
86: ; preds = %85, %18
br label %87
87: ; preds = %86, %10
ret void
}
declare i64 @getIndex(ptr noundef, ptr noundef) #1
declare i32 @processFileRequest(ptr noundef, i32 noundef) #1
declare i32 @processStatusRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processStartRecRequest(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @processStopRecRequest(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @processVideoRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @return404(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processStatusJSONRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processPostRequest(ptr 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/tmpaq73e4mo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET /web/\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"GET /status HTTP/1.1\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"GET /startrec HTTP/1.1\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"GET /stoprec HTTP/1.1\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"GET /video HTTP/1.1\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"GET /favicon.ico HTTP/1.\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"We don't do Favicons =)\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"GET /jstatus HTTP/1.1\00", align 1
@.str.8 = private unnamed_addr constant [22 x i8] c"POST /action HTTP/1.1\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"Unknown request\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @processHttpRequest(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @getIndex(ptr noundef @.str, ptr noundef %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = call i32 @processFileRequest(ptr noundef %11, i32 noundef %12)
br label %87
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = call i64 @getIndex(ptr noundef @.str.1, ptr noundef %15)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @processStatusRequest(ptr noundef %19, i32 noundef %20, ptr noundef %21)
br label %86
23: ; preds = %14
%24 = load ptr, ptr %4, align 8
%25 = call i64 @getIndex(ptr noundef @.str.2, ptr noundef %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @processStartRecRequest(ptr noundef %28, i32 noundef %29, ptr noundef %30, ptr noundef null)
br label %85
32: ; preds = %23
%33 = load ptr, ptr %4, align 8
%34 = call i64 @getIndex(ptr noundef @.str.3, ptr noundef %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %6, align 8
%40 = call i32 @processStopRecRequest(ptr noundef %37, i32 noundef %38, ptr noundef %39, ptr noundef null)
br label %84
41: ; preds = %32
%42 = load ptr, ptr %4, align 8
%43 = call i64 @getIndex(ptr noundef @.str.4, ptr noundef %42)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %5, align 4
%48 = load ptr, ptr %6, align 8
%49 = call i32 @processVideoRequest(ptr noundef %46, i32 noundef %47, ptr noundef %48)
br label %83
50: ; preds = %41
%51 = load ptr, ptr %4, align 8
%52 = call i64 @getIndex(ptr noundef @.str.5, ptr noundef %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %5, align 4
%57 = call i32 @return404(ptr noundef %55, i32 noundef %56, ptr noundef @.str.6)
br label %82
58: ; preds = %50
%59 = load ptr, ptr %4, align 8
%60 = call i64 @getIndex(ptr noundef @.str.7, ptr noundef %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %58
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %5, align 4
%65 = load ptr, ptr %6, align 8
%66 = call i32 @processStatusJSONRequest(ptr noundef %63, i32 noundef %64, ptr noundef %65)
br label %81
67: ; preds = %58
%68 = load ptr, ptr %4, align 8
%69 = call i64 @getIndex(ptr noundef @.str.8, ptr noundef %68)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = load ptr, ptr %4, align 8
%73 = load i32, ptr %5, align 4
%74 = load ptr, ptr %6, align 8
%75 = call i32 @processPostRequest(ptr noundef %72, i32 noundef %73, ptr noundef %74)
br label %80
76: ; preds = %67
%77 = load ptr, ptr %4, align 8
%78 = load i32, ptr %5, align 4
%79 = call i32 @return404(ptr noundef %77, i32 noundef %78, ptr noundef @.str.9)
br label %80
80: ; preds = %76, %71
br label %81
81: ; preds = %80, %62
br label %82
82: ; preds = %81, %54
br label %83
83: ; preds = %82, %45
br label %84
84: ; preds = %83, %36
br label %85
85: ; preds = %84, %27
br label %86
86: ; preds = %85, %18
br label %87
87: ; preds = %86, %10
ret void
}
declare i64 @getIndex(ptr noundef, ptr noundef) #1
declare i32 @processFileRequest(ptr noundef, i32 noundef) #1
declare i32 @processStatusRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processStartRecRequest(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @processStopRecRequest(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @processVideoRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @return404(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processStatusJSONRequest(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @processPostRequest(ptr 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/tmp3c2h31tq.c'
source_filename = "/tmp/tmp3c2h31tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linsert(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %9, align 8
%12 = load ptr, ptr %9, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %14, align 8
%16 = add i64 %15, 1
%17 = mul i64 %16, 8
%18 = call ptr @xrealloc(ptr noundef %13, i64 noundef %17)
%19 = load ptr, ptr %9, align 8
store ptr %18, ptr %19, align 8
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, 1
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %10, align 8
%27 = load i64, ptr %7, align 8
%28 = getelementptr inbounds ptr, ptr %26, i64 %27
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr %7, align 8
%32 = sub i64 %30, %31
%33 = mul i64 %32, 8
%34 = call i32 @memmove(ptr noundef %25, ptr noundef %28, i64 noundef %33)
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = getelementptr inbounds ptr, ptr %36, i64 %37
store ptr %35, ptr %38, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %39, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %39, align 8
ret void
}
declare ptr @xrealloc(ptr noundef, i64 noundef) #1
declare i32 @memmove(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/tmp3c2h31tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linsert(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %9, align 8
%12 = load ptr, ptr %9, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %14, align 8
%16 = add i64 %15, 1
%17 = mul i64 %16, 8
%18 = call ptr @xrealloc(ptr noundef %13, i64 noundef %17)
%19 = load ptr, ptr %9, align 8
store ptr %18, ptr %19, align 8
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, 1
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %10, align 8
%27 = load i64, ptr %7, align 8
%28 = getelementptr inbounds ptr, ptr %26, i64 %27
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr %7, align 8
%32 = sub i64 %30, %31
%33 = mul i64 %32, 8
%34 = call i32 @memmove(ptr noundef %25, ptr noundef %28, i64 noundef %33)
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = getelementptr inbounds ptr, ptr %36, i64 %37
store ptr %35, ptr %38, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %39, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %39, align 8
ret void
}
declare ptr @xrealloc(ptr noundef, i64 noundef) #1
declare i32 @memmove(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/tmpr1vpp16s.c'
source_filename = "/tmp/tmpr1vpp16s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"popen\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @shell_stream(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %35
16: ; preds = %2
br label %17
17: ; preds = %22, %16
%18 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%19 = load ptr, ptr %8, align 8
%20 = call i64 @fread(ptr noundef %18, i32 noundef 1, i32 noundef 4096, ptr noundef %19)
store i64 %20, ptr %9, align 8
%21 = icmp ugt i64 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %17
%23 = load i32, ptr %4, align 4
%24 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%25 = load i64, ptr %9, align 8
%26 = call i64 @write(i32 noundef %23, ptr noundef %24, i64 noundef %25)
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = add nsw i64 %28, %26
%30 = trunc i64 %29 to i32
store i32 %30, ptr %7, align 4
br label %17, !llvm.loop !6
31: ; preds = %17
%32 = load ptr, ptr %8, align 8
%33 = call i32 @pclose(ptr noundef %32)
%34 = load i32, ptr %7, align 4
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %31, %14
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpr1vpp16s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"popen\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @shell_stream(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [4096 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %37
16: ; preds = %2
%17 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%18 = load ptr, ptr %8, align 8
%19 = call i64 @fread(ptr noundef %17, i32 noundef 1, i32 noundef 4096, ptr noundef %18)
store i64 %19, ptr %9, align 8
%20 = icmp ugt i64 %19, 0
br i1 %20, label %.lr.ph, label %33
.lr.ph: ; preds = %16
br label %21
21: ; preds = %.lr.ph, %21
%22 = load i32, ptr %4, align 4
%23 = getelementptr inbounds [4096 x i8], ptr %6, i64 0, i64 0
%24 = load i64, ptr %9, align 8
%25 = call i64 @write(i32 noundef %22, ptr noundef %23, i64 noundef %24)
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = add nsw i64 %27, %25
%29 = trunc i64 %28 to i32
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %8, align 8
%31 = call i64 @fread(ptr noundef %17, i32 noundef 1, i32 noundef 4096, ptr noundef %30)
store i64 %31, ptr %9, align 8
%32 = icmp ugt i64 %31, 0
br i1 %32, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %33
33: ; preds = %._crit_edge, %16
%34 = load ptr, ptr %8, align 8
%35 = call i32 @pclose(ptr noundef %34)
%36 = load i32, ptr %7, align 4
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %33, %14
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdwgf0ind.c'
source_filename = "/tmp/tmpdwgf0ind.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blinkO() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %5, %0
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 3
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = call i32 (...) @blinkdash()
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
br label %2, !llvm.loop !6
9: ; preds = %2
%10 = call i32 @sleep(double noundef 1.500000e+00)
ret i32 0
}
declare i32 @blinkdash(...) #1
declare i32 @sleep(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdwgf0ind.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blinkO() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp ne i32 %2, 3
br i1 %3, label %.lr.ph, label %10
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %4
%5 = call i32 (...) @blinkdash()
%6 = load i32, ptr %1, align 4
%7 = add nsw i32 %6, 1
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %4
br label %10
10: ; preds = %._crit_edge, %0
%11 = call i32 @sleep(double noundef 1.500000e+00)
ret i32 0
}
declare i32 @blinkdash(...) #1
declare i32 @sleep(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphbyll3q_.c'
source_filename = "/tmp/tmphbyll3q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rescalenormals(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load float, ptr %4, align 4
%6 = call i64 @pow(float noundef %5, i32 noundef 2)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds float, ptr %7, i64 1
%9 = load float, ptr %8, align 4
%10 = call i64 @pow(float noundef %9, i32 noundef 2)
%11 = add nsw i64 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds float, ptr %12, i64 2
%14 = load float, ptr %13, align 4
%15 = call i64 @pow(float noundef %14, i32 noundef 2)
%16 = add nsw i64 %11, %15
%17 = call float @sqrt(i64 noundef %16)
store float %17, ptr %3, align 4
%18 = load ptr, ptr %2, align 8
%19 = load float, ptr %18, align 4
%20 = load float, ptr %3, align 4
%21 = fdiv float %19, %20
%22 = load ptr, ptr %2, align 8
store float %21, ptr %22, align 4
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
%25 = load float, ptr %24, align 4
%26 = load float, ptr %3, align 4
%27 = fdiv float %25, %26
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds float, ptr %28, i64 1
store float %27, ptr %29, align 4
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds float, ptr %30, i64 2
%32 = load float, ptr %31, align 4
%33 = load float, ptr %3, align 4
%34 = fdiv float %32, %33
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds float, ptr %35, i64 2
store float %34, ptr %36, align 4
ret void
}
declare float @sqrt(i64 noundef) #1
declare i64 @pow(float 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/tmphbyll3q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rescalenormals(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load float, ptr %4, align 4
%6 = call i64 @pow(float noundef %5, i32 noundef 2)
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds float, ptr %7, i64 1
%9 = load float, ptr %8, align 4
%10 = call i64 @pow(float noundef %9, i32 noundef 2)
%11 = add nsw i64 %6, %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds float, ptr %12, i64 2
%14 = load float, ptr %13, align 4
%15 = call i64 @pow(float noundef %14, i32 noundef 2)
%16 = add nsw i64 %11, %15
%17 = call float @sqrt(i64 noundef %16)
store float %17, ptr %3, align 4
%18 = load ptr, ptr %2, align 8
%19 = load float, ptr %18, align 4
%20 = load float, ptr %3, align 4
%21 = fdiv float %19, %20
%22 = load ptr, ptr %2, align 8
store float %21, ptr %22, align 4
%23 = load ptr, ptr %2, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
%25 = load float, ptr %24, align 4
%26 = load float, ptr %3, align 4
%27 = fdiv float %25, %26
%28 = load ptr, ptr %2, align 8
%29 = getelementptr inbounds float, ptr %28, i64 1
store float %27, ptr %29, align 4
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds float, ptr %30, i64 2
%32 = load float, ptr %31, align 4
%33 = load float, ptr %3, align 4
%34 = fdiv float %32, %33
%35 = load ptr, ptr %2, align 8
%36 = getelementptr inbounds float, ptr %35, i64 2
store float %34, ptr %36, align 4
ret void
}
declare float @sqrt(i64 noundef) #1
declare i64 @pow(float 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/tmp5mnpdnpj.c'
source_filename = "/tmp/tmp5mnpdnpj.c"
target datalayout = "e-m:e-p270: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/tmp5mnpdnpj.c"
target datalayout = "e-m:e-p270: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/tmpzr5radmb.c'
source_filename = "/tmp/tmpzr5radmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"%s: out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__xcalloc(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call ptr @calloc(i64 noundef %8, i64 noundef %9) #4
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %15)
%17 = call i32 (...) @abort() #5
unreachable
18: ; preds = %3
%19 = load ptr, ptr %7, align 8
ret ptr %19
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0,1) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzr5radmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"%s: out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__xcalloc(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = call ptr @calloc(i64 noundef %8, i64 noundef %9) #4
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %18, label %13
13: ; preds = %3
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %15)
%17 = call i32 (...) @abort() #5
unreachable
18: ; preds = %3
%19 = load ptr, ptr %7, align 8
ret ptr %19
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0,1) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeehzpg14.c'
source_filename = "/tmp/tmpeehzpg14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = 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/tmpeehzpg14.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = 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/tmprekf51lc.c'
source_filename = "/tmp/tmprekf51lc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [488 x i8] c"Ed - The line editor.\0AUsage: ed [options] [file]\0A\0AOptions:\0A -h, --help display this help and exit\0A -V, --version output version information and exit\0A -p, --prompt=STRING use STRING as an interactive prompt\0A -r, --restricted run in restricted mode\0A -s, --quiet, --silent suppress diagnostics\0A -v, --verbose be verbose\0AStart edit by reading in 'file' if given.\0AIf 'file' begins with a '!', read output of shell command.\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/tmprekf51lc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [488 x i8] c"Ed - The line editor.\0AUsage: ed [options] [file]\0A\0AOptions:\0A -h, --help display this help and exit\0A -V, --version output version information and exit\0A -p, --prompt=STRING use STRING as an interactive prompt\0A -r, --restricted run in restricted mode\0A -s, --quiet, --silent suppress diagnostics\0A -v, --verbose be verbose\0AStart edit by reading in 'file' if given.\0AIf 'file' begins with a '!', read output of shell command.\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/tmpsp09qfuc.c'
source_filename = "/tmp/tmpsp09qfuc.c"
target datalayout = "e-m:e-p270: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.p = private unnamed_addr constant [21 x i8] c"minha string aqui!!!\00", align 16
@__const.main.hay = private unnamed_addr constant [6 x i8] c"minha\00", align 1
@.str = private unnamed_addr constant [13 x i8] c"output = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [21 x i8], align 16
%7 = alloca [6 x i8], align 1
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 16 %6, ptr align 16 @__const.main.p, i64 21, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.hay, i64 6, i1 false)
%8 = getelementptr inbounds [21 x i8], ptr %6, i64 0, i64 0
%9 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%10 = call ptr @mstr(ptr noundef %8, ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str, ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @mstr(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsp09qfuc.c"
target datalayout = "e-m:e-p270: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.p = private unnamed_addr constant [21 x i8] c"minha string aqui!!!\00", align 16
@__const.main.hay = private unnamed_addr constant [6 x i8] c"minha\00", align 1
@.str = private unnamed_addr constant [13 x i8] c"output = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [21 x i8], align 16
%7 = alloca [6 x i8], align 1
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 16 %6, ptr align 16 @__const.main.p, i64 21, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.hay, i64 6, i1 false)
%8 = getelementptr inbounds [21 x i8], ptr %6, i64 0, i64 0
%9 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%10 = call ptr @mstr(ptr noundef %8, ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str, ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @mstr(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1rm_xrz2.c'
source_filename = "/tmp/tmp1rm_xrz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @umount2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @syscall(i32 noundef 52, ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @syscall(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/tmp1rm_xrz2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @umount2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @syscall(i32 noundef 52, ptr noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @syscall(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/tmp1vgb14qu.c'
source_filename = "/tmp/tmp1vgb14qu.c"
target datalayout = "e-m:e-p270: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/tmp1vgb14qu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_bdjrptn.c'
source_filename = "/tmp/tmp_bdjrptn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"demo--Sending ifunc=1 showwind/getsize.\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"demo-window size is %f %f resol=%f color=%f\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=2 beginp/clear\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"demo--Sending ifunc=3, pscode.\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c".20 setgray newpath 50 50 moveto 100 500 lineto stroke\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"demo--Sending ifunc=5, flush\0A\00", align 1
@.str.6 = private unnamed_addr constant [83 x i8] c"newpath 100 100 moveto 100 0 rlineto 0 100 rlineto -100 0 rlineto closepath eofill\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"newpath 0 0 moveto 20 20 lineto stroke\00", align 1
@.str.8 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=4 read cursor.\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"demo--Cursor= %f %f %f\0A\00", align 1
@.str.10 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=6, end picture\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"demo--Sending ifunc=7, close socket\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x float], align 16
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i32 1, ptr %7, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%11 = call i32 @nexsup_(ptr noundef %7, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%13 = load float, ptr %12, align 16
%14 = fpext float %13 to double
%15 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 1
%16 = load float, ptr %15, align 4
%17 = fpext float %16 to double
%18 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 2
%19 = load float, ptr %18, align 8
%20 = fpext float %19 to double
%21 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 3
%22 = load float, ptr %21, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %14, double noundef %17, double noundef %20, double noundef %23)
store i32 2, ptr %7, align 4
%25 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
store float 1.000000e+00, ptr %25, align 16
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%29 = call i32 @nexsup_(ptr noundef %7, ptr noundef %27, ptr noundef %28)
store i32 3, ptr %7, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%31 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%32 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.4, ptr noundef %31)
store i32 5, ptr %7, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%36 = call i32 @nexsup_(ptr noundef %7, ptr noundef %34, ptr noundef %35)
store i32 3, ptr %7, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%38 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%39 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.6, ptr noundef %38)
store i32 3, ptr %7, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%41 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%42 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.7, ptr noundef %41)
store i32 5, ptr %7, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%46 = call i32 @nexsup_(ptr noundef %7, ptr noundef %44, ptr noundef %45)
store i32 4, ptr %7, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%50 = call i32 @nexsup_(ptr noundef %7, ptr noundef %48, ptr noundef %49)
%51 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%52 = load float, ptr %51, align 16
%53 = fpext float %52 to double
%54 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 1
%55 = load float, ptr %54, align 4
%56 = fpext float %55 to double
%57 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 2
%58 = load float, ptr %57, align 8
%59 = fpext float %58 to double
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %53, double noundef %56, double noundef %59)
store i32 6, ptr %7, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%64 = call i32 @nexsup_(ptr noundef %7, ptr noundef %62, ptr noundef %63)
store i32 7, ptr %7, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%68 = call i32 @nexsup_(ptr noundef %7, ptr noundef %66, ptr noundef %67)
%69 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @nexsup_(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bdjrptn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"demo--Sending ifunc=1 showwind/getsize.\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"demo-window size is %f %f resol=%f color=%f\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=2 beginp/clear\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"demo--Sending ifunc=3, pscode.\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c".20 setgray newpath 50 50 moveto 100 500 lineto stroke\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"demo--Sending ifunc=5, flush\0A\00", align 1
@.str.6 = private unnamed_addr constant [83 x i8] c"newpath 100 100 moveto 100 0 rlineto 0 100 rlineto -100 0 rlineto closepath eofill\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"newpath 0 0 moveto 20 20 lineto stroke\00", align 1
@.str.8 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=4 read cursor.\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"demo--Cursor= %f %f %f\0A\00", align 1
@.str.10 = private unnamed_addr constant [36 x i8] c"demo--Sending ifunc=6, end picture\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"demo--Sending ifunc=7, close socket\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x float], align 16
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store i32 1, ptr %7, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%11 = call i32 @nexsup_(ptr noundef %7, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%13 = load float, ptr %12, align 16
%14 = fpext float %13 to double
%15 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 1
%16 = load float, ptr %15, align 4
%17 = fpext float %16 to double
%18 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 2
%19 = load float, ptr %18, align 8
%20 = fpext float %19 to double
%21 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 3
%22 = load float, ptr %21, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %14, double noundef %17, double noundef %20, double noundef %23)
store i32 2, ptr %7, align 4
%25 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
store float 1.000000e+00, ptr %25, align 16
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%29 = call i32 @nexsup_(ptr noundef %7, ptr noundef %27, ptr noundef %28)
store i32 3, ptr %7, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%31 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%32 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.4, ptr noundef %31)
store i32 5, ptr %7, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%36 = call i32 @nexsup_(ptr noundef %7, ptr noundef %34, ptr noundef %35)
store i32 3, ptr %7, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%38 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%39 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.6, ptr noundef %38)
store i32 3, ptr %7, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%41 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%42 = call i32 @nexsup_(ptr noundef %7, ptr noundef @.str.7, ptr noundef %41)
store i32 5, ptr %7, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%46 = call i32 @nexsup_(ptr noundef %7, ptr noundef %44, ptr noundef %45)
store i32 4, ptr %7, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%50 = call i32 @nexsup_(ptr noundef %7, ptr noundef %48, ptr noundef %49)
%51 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%52 = load float, ptr %51, align 16
%53 = fpext float %52 to double
%54 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 1
%55 = load float, ptr %54, align 4
%56 = fpext float %55 to double
%57 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 2
%58 = load float, ptr %57, align 8
%59 = fpext float %58 to double
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %53, double noundef %56, double noundef %59)
store i32 6, ptr %7, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%64 = call i32 @nexsup_(ptr noundef %7, ptr noundef %62, ptr noundef %63)
store i32 7, ptr %7, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds [20 x float], ptr %6, i64 0, i64 0
%68 = call i32 @nexsup_(ptr noundef %7, ptr noundef %66, ptr noundef %67)
%69 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @nexsup_(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_s8_bbl7.c'
source_filename = "/tmp/tmp_s8_bbl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_dmmdda_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load ptr, ptr %12, align 8
%21 = load ptr, ptr %13, align 8
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = load ptr, ptr %16, align 8
%25 = call i32 @dmmdda_(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
ret void
}
declare i32 @dmmdda_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_s8_bbl7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_dmmdda_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load ptr, ptr %9, align 8
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load ptr, ptr %12, align 8
%21 = load ptr, ptr %13, align 8
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = load ptr, ptr %16, align 8
%25 = call i32 @dmmdda_(ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
ret void
}
declare i32 @dmmdda_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd0yun3bw.c'
source_filename = "/tmp/tmpd0yun3bw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sr_skip_char_cspan(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strcspn(ptr noundef %8, ptr noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i64, ptr %6, align 8
%15 = trunc i64 %14 to i32
store i32 %15, ptr %3, align 4
br label %23
16: ; preds = %2
%17 = load i64, ptr %6, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 %17
store ptr %20, ptr %18, align 8
%21 = load i64, ptr %6, align 8
%22 = trunc i64 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %16, %13
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i64 @strcspn(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/tmpd0yun3bw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sr_skip_char_cspan(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call i64 @strcspn(ptr noundef %8, ptr noundef %9)
store i64 %10, ptr %6, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i64, ptr %6, align 8
%15 = trunc i64 %14 to i32
store i32 %15, ptr %3, align 4
br label %23
16: ; preds = %2
%17 = load i64, ptr %6, align 8
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 %17
store ptr %20, ptr %18, align 8
%21 = load i64, ptr %6, align 8
%22 = trunc i64 %21 to i32
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %16, %13
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i64 @strcspn(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/tmpndhok3cs.c'
source_filename = "/tmp/tmpndhok3cs.c"
target datalayout = "e-m:e-p270: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/tmpndhok3cs.c"
target datalayout = "e-m:e-p270: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/tmp82zdsdx1.c'
source_filename = "/tmp/tmp82zdsdx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [23 x i8] c"/proc/device-tree/cpus\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"PowerPC\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"/proc/device-tree/cpus/%s/ibm,ppc-interrupt-server#s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_cpu_info(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca %struct.stat, align 4
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 1, ptr %10, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%19 = call ptr @opendir(ptr noundef @.str)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %3
store i32 -1, ptr %4, align 4
br label %86
23: ; preds = %3
br label %24
24: ; preds = %59, %23
%25 = load ptr, ptr %8, align 8
%26 = call ptr @readdir(ptr noundef %25)
store ptr %26, ptr %9, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %28, label %60
28: ; preds = %24
%29 = load ptr, ptr %9, align 8
%30 = getelementptr inbounds %struct.dirent, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strncmp(ptr noundef %31, ptr noundef @.str.1, i32 noundef 7)
%33 = icmp ne i32 %32, 0
br i1 %33, label %59, label %34
34: ; preds = %28
%35 = load i32, ptr %10, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %56
37: ; preds = %34
%38 = load i32, ptr @PATH_MAX, align 4
%39 = zext i32 %38 to i64
%40 = call ptr @llvm.stacksave()
store ptr %40, ptr %17, align 8
%41 = alloca i8, i64 %39, align 16
store i64 %39, ptr %18, align 8
%42 = trunc i64 %39 to i32
%43 = load ptr, ptr %9, align 8
%44 = getelementptr inbounds %struct.dirent, ptr %43, i32 0, i32 0
%45 = load ptr, ptr %44, align 8
%46 = call i32 @snprintf(ptr noundef %41, i32 noundef %42, ptr noundef @.str.2, ptr noundef %45)
%47 = call i32 @stat(ptr noundef %41, ptr noundef %16)
store i32 %47, ptr %11, align 4
%48 = load i32, ptr %11, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %37
%51 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%52 = load i32, ptr %51, align 4
%53 = sdiv i32 %52, 4
store i32 %53, ptr %14, align 4
br label %54
54: ; preds = %50, %37
store i32 0, ptr %10, align 4
%55 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %55)
br label %56
56: ; preds = %54, %34
%57 = load i32, ptr %15, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %15, align 4
br label %59
59: ; preds = %56, %28
br label %24, !llvm.loop !6
60: ; preds = %24
%61 = load ptr, ptr %8, align 8
%62 = call i32 @closedir(ptr noundef %61)
%63 = load i32, ptr %15, align 4
%64 = load i32, ptr %14, align 4
%65 = mul nsw i32 %63, %64
store i32 %65, ptr %13, align 4
%66 = call i32 (...) @num_subcores()
store i32 %66, ptr %12, align 4
%67 = call i64 (...) @is_subcore_capable()
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %60
%70 = load i32, ptr %12, align 4
%71 = icmp sgt i32 %70, 0
br i1 %71, label %72, label %79
72: ; preds = %69
%73 = load i32, ptr %12, align 4
%74 = load i32, ptr %14, align 4
%75 = sdiv i32 %74, %73
store i32 %75, ptr %14, align 4
%76 = load i32, ptr %12, align 4
%77 = load i32, ptr %15, align 4
%78 = mul nsw i32 %77, %76
store i32 %78, ptr %15, align 4
br label %79
79: ; preds = %72, %69, %60
%80 = load i32, ptr %14, align 4
%81 = load ptr, ptr %5, align 8
store i32 %80, ptr %81, align 4
%82 = load i32, ptr %13, align 4
%83 = load ptr, ptr %7, align 8
store i32 %82, ptr %83, align 4
%84 = load i32, ptr %15, align 4
%85 = load ptr, ptr %6, align 8
store i32 %84, ptr %85, align 4
store i32 0, ptr %4, align 4
br label %86
86: ; preds = %79, %22
%87 = load i32, ptr %4, align 4
ret i32 %87
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare i32 @closedir(ptr noundef) #1
declare i32 @num_subcores(...) #1
declare i64 @is_subcore_capable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp82zdsdx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [23 x i8] c"/proc/device-tree/cpus\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"PowerPC\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"/proc/device-tree/cpus/%s/ibm,ppc-interrupt-server#s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_cpu_info(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca %struct.stat, align 4
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 1, ptr %10, align 4
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%19 = call ptr @opendir(ptr noundef @.str)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %23, label %22
22: ; preds = %3
store i32 -1, ptr %4, align 4
br label %88
23: ; preds = %3
%24 = load ptr, ptr %8, align 8
%25 = call ptr @readdir(ptr noundef %24)
store ptr %25, ptr %9, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %.lr.ph, label %62
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %58
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds %struct.dirent, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strncmp(ptr noundef %30, ptr noundef @.str.1, i32 noundef 7)
%32 = icmp ne i32 %31, 0
br i1 %32, label %58, label %33
33: ; preds = %27
%34 = load i32, ptr %10, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %55
36: ; preds = %33
%37 = load i32, ptr @PATH_MAX, align 4
%38 = zext i32 %37 to i64
%39 = call ptr @llvm.stacksave()
store ptr %39, ptr %17, align 8
%40 = alloca i8, i64 %38, align 16
store i64 %38, ptr %18, align 8
%41 = trunc i64 %38 to i32
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds %struct.dirent, ptr %42, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = call i32 @snprintf(ptr noundef %40, i32 noundef %41, ptr noundef @.str.2, ptr noundef %44)
%46 = call i32 @stat(ptr noundef %40, ptr noundef %16)
store i32 %46, ptr %11, align 4
%47 = load i32, ptr %11, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %36
%50 = getelementptr inbounds %struct.stat, ptr %16, i32 0, i32 0
%51 = load i32, ptr %50, align 4
%52 = sdiv i32 %51, 4
store i32 %52, ptr %14, align 4
br label %53
53: ; preds = %49, %36
store i32 0, ptr %10, align 4
%54 = load ptr, ptr %17, align 8
call void @llvm.stackrestore(ptr %54)
br label %55
55: ; preds = %53, %33
%56 = load i32, ptr %15, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %15, align 4
br label %58
58: ; preds = %55, %27
%59 = load ptr, ptr %8, align 8
%60 = call ptr @readdir(ptr noundef %59)
store ptr %60, ptr %9, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %62
62: ; preds = %._crit_edge, %23
%63 = load ptr, ptr %8, align 8
%64 = call i32 @closedir(ptr noundef %63)
%65 = load i32, ptr %15, align 4
%66 = load i32, ptr %14, align 4
%67 = mul nsw i32 %65, %66
store i32 %67, ptr %13, align 4
%68 = call i32 (...) @num_subcores()
store i32 %68, ptr %12, align 4
%69 = call i64 (...) @is_subcore_capable()
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %81
71: ; preds = %62
%72 = load i32, ptr %12, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %81
74: ; preds = %71
%75 = load i32, ptr %12, align 4
%76 = load i32, ptr %14, align 4
%77 = sdiv i32 %76, %75
store i32 %77, ptr %14, align 4
%78 = load i32, ptr %12, align 4
%79 = load i32, ptr %15, align 4
%80 = mul nsw i32 %79, %78
store i32 %80, ptr %15, align 4
br label %81
81: ; preds = %74, %71, %62
%82 = load i32, ptr %14, align 4
%83 = load ptr, ptr %5, align 8
store i32 %82, ptr %83, align 4
%84 = load i32, ptr %13, align 4
%85 = load ptr, ptr %7, align 8
store i32 %84, ptr %85, align 4
%86 = load i32, ptr %15, align 4
%87 = load ptr, ptr %6, align 8
store i32 %86, ptr %87, align 4
store i32 0, ptr %4, align 4
br label %88
88: ; preds = %81, %22
%89 = load i32, ptr %4, align 4
ret i32 %89
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare i32 @closedir(ptr noundef) #1
declare i32 @num_subcores(...) #1
declare i64 @is_subcore_capable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6xbc1_a1.c'
source_filename = "/tmp/tmp6xbc1_a1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtoul(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 i64 @_strtoul(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @_strtoul(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/tmp6xbc1_a1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strtoul(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 i64 @_strtoul(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @_strtoul(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/tmp1zadjqgt.c'
source_filename = "/tmp/tmp1zadjqgt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @movsx_reg32_8preg64preg64(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @put8(i32 noundef 15)
%8 = call i32 @put8(i32 noundef 190)
%9 = load i32, ptr %4, align 4
%10 = shl i32 %9, 3
%11 = or i32 %10, 4
%12 = call i32 @put8(i32 noundef %11)
%13 = load i32, ptr %5, align 4
%14 = shl i32 %13, 3
%15 = load i32, ptr %6, align 4
%16 = or i32 %14, %15
%17 = call i32 @put8(i32 noundef %16)
ret void
}
declare i32 @put8(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/tmp1zadjqgt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @movsx_reg32_8preg64preg64(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @put8(i32 noundef 15)
%8 = call i32 @put8(i32 noundef 190)
%9 = load i32, ptr %4, align 4
%10 = shl i32 %9, 3
%11 = or i32 %10, 4
%12 = call i32 @put8(i32 noundef %11)
%13 = load i32, ptr %5, align 4
%14 = shl i32 %13, 3
%15 = load i32, ptr %6, align 4
%16 = or i32 %14, %15
%17 = call i32 @put8(i32 noundef %16)
ret void
}
declare i32 @put8(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/tmpvszetb1d.c'
source_filename = "/tmp/tmpvszetb1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getscrcapsy() #0 {
%1 = call double (...) @GetScrCapsY63()
ret double %1
}
declare double @GetScrCapsY63(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvszetb1d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getscrcapsy() #0 {
%1 = call double (...) @GetScrCapsY63()
ret double %1
}
declare double @GetScrCapsY63(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpydp4nc7k.c'
source_filename = "/tmp/tmpydp4nc7k.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [50 x i8] c"Chromoting client webserver: http://localhost:%d\0A\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Unable to open socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"Unable to bind socket\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Unable to listen to socket\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Unable to accept connection\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"Unable to close socket in child\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"Unable to close connection in parent\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 %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call i32 @printf(ptr noundef @.str, i32 noundef 8080)
%11 = load i32, ptr @SIGCHLD, align 4
%12 = load i32, ptr @SIG_IGN, align 4
%13 = call i32 @signal(i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @AF_INET, align 4
%15 = load i32, ptr @SOCK_STREAM, align 4
%16 = call i32 @socket(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @error(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %2
%22 = call i32 @bzero(ptr noundef %7, i32 noundef 12)
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %23, ptr %24, align 4
%25 = load i32, ptr @INADDR_ANY, align 4
%26 = call i32 @htonl(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%28 = getelementptr inbounds %struct.TYPE_2__, ptr %27, i32 0, i32 0
store i32 %26, ptr %28, align 4
%29 = call i32 @htons(i32 noundef 8080)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %29, ptr %30, align 4
%31 = load i32, ptr %6, align 4
%32 = call i64 @bind(i32 noundef %31, ptr noundef %7, i32 noundef 12)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %21
%35 = call i32 @error(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %21
%37 = load i32, ptr %6, align 4
%38 = call i64 @listen(i32 noundef %37, i32 noundef 5)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @error(ptr noundef @.str.3)
br label %42
42: ; preds = %40, %36
br label %43
43: ; preds = %42, %71
%44 = load i32, ptr %6, align 4
%45 = call i32 @accept(i32 noundef %44, ptr noundef null, ptr noundef null)
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @error(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %43
%51 = call i64 (...) @fork()
store i64 %51, ptr %9, align 8
%52 = load i64, ptr %9, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load i32, ptr %6, align 4
%56 = call i64 @close(i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 @error(ptr noundef @.str.5)
br label %60
60: ; preds = %58, %54
%61 = load i32, ptr %8, align 4
%62 = call i32 @handle_request(i32 noundef %61)
%63 = call i32 @exit(i32 noundef 0) #3
unreachable
64: ; preds = %50
%65 = load i32, ptr %8, align 4
%66 = call i64 @close(i32 noundef %65)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @error(ptr noundef @.str.6)
br label %70
70: ; preds = %68, %64
br label %71
71: ; preds = %70
br label %43
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i64 @close(i32 noundef) #1
declare i32 @handle_request(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpydp4nc7k.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [50 x i8] c"Chromoting client webserver: http://localhost:%d\0A\00", align 1
@SIGCHLD = dso_local global i32 0, align 4
@SIG_IGN = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Unable to open socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"Unable to bind socket\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Unable to listen to socket\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"Unable to accept connection\00", align 1
@.str.5 = private unnamed_addr constant [32 x i8] c"Unable to close socket in child\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"Unable to close connection in parent\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 %struct.sockaddr_in, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call i32 @printf(ptr noundef @.str, i32 noundef 8080)
%11 = load i32, ptr @SIGCHLD, align 4
%12 = load i32, ptr @SIG_IGN, align 4
%13 = call i32 @signal(i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @AF_INET, align 4
%15 = load i32, ptr @SOCK_STREAM, align 4
%16 = call i32 @socket(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @error(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %2
%22 = call i32 @bzero(ptr noundef %7, i32 noundef 12)
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %23, ptr %24, align 4
%25 = load i32, ptr @INADDR_ANY, align 4
%26 = call i32 @htonl(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%28 = getelementptr inbounds %struct.TYPE_2__, ptr %27, i32 0, i32 0
store i32 %26, ptr %28, align 4
%29 = call i32 @htons(i32 noundef 8080)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %29, ptr %30, align 4
%31 = load i32, ptr %6, align 4
%32 = call i64 @bind(i32 noundef %31, ptr noundef %7, i32 noundef 12)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %21
%35 = call i32 @error(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %21
%37 = load i32, ptr %6, align 4
%38 = call i64 @listen(i32 noundef %37, i32 noundef 5)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @error(ptr noundef @.str.3)
br label %42
42: ; preds = %40, %36
br label %43
43: ; preds = %71, %42
%44 = load i32, ptr %6, align 4
%45 = call i32 @accept(i32 noundef %44, ptr noundef null, ptr noundef null)
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @error(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %43
%51 = call i64 (...) @fork()
store i64 %51, ptr %9, align 8
%52 = load i64, ptr %9, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load i32, ptr %6, align 4
%56 = call i64 @close(i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 @error(ptr noundef @.str.5)
br label %60
60: ; preds = %58, %54
%61 = load i32, ptr %8, align 4
%62 = call i32 @handle_request(i32 noundef %61)
%63 = call i32 @exit(i32 noundef 0) #3
unreachable
64: ; preds = %50
%65 = load i32, ptr %8, align 4
%66 = call i64 @close(i32 noundef %65)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @error(ptr noundef @.str.6)
br label %70
70: ; preds = %68, %64
br label %71
71: ; preds = %70
br label %43
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @signal(i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i64 @close(i32 noundef) #1
declare i32 @handle_request(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnfs0fwbj.c'
source_filename = "/tmp/tmpnfs0fwbj.c"
target datalayout = "e-m:e-p270: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/tmpnfs0fwbj.c"
target datalayout = "e-m:e-p270: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/tmpb0s0aber.c'
source_filename = "/tmp/tmpb0s0aber.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Good String\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Not Good String\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 1
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %2, align 8
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %16)
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %34, %0
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %37
22: ; preds = %18
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %4, align 4
%25 = sub nsw i32 %24, 1
%26 = load i32, ptr %6, align 4
%27 = sub nsw i32 %25, %26
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %23, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %32
store i8 %30, ptr %33, align 1
br label %34
34: ; preds = %22
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %18, !llvm.loop !6
37: ; preds = %18
store i32 1, ptr %7, align 4
br label %38
38: ; preds = %99, %37
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %102
42: ; preds = %38
%43 = load ptr, ptr %2, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %45, %46
%48 = load ptr, ptr %2, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = sub nsw i32 %47, %50
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %51, %52
%54 = sub nsw i32 %53, 1
%55 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%56 = load i8, ptr %55, align 16
%57 = sext i8 %56 to i32
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %57, %58
%60 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%61 = load i8, ptr %60, align 16
%62 = sext i8 %61 to i32
%63 = sub nsw i32 %59, %62
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %63, %64
%66 = sub nsw i32 %65, 1
%67 = icmp eq i32 %54, %66
br i1 %67, label %95, label %68
68: ; preds = %42
%69 = load ptr, ptr %2, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %71, %72
%74 = load ptr, ptr %2, align 8
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = sub nsw i32 %73, %76
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %77, %78
%80 = sub nsw i32 %79, 1
%81 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%82 = load i8, ptr %81, align 16
%83 = sext i8 %82 to i32
%84 = load i32, ptr %7, align 4
%85 = add nsw i32 %83, %84
%86 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%87 = load i8, ptr %86, align 16
%88 = sext i8 %87 to i32
%89 = sub nsw i32 %85, %88
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %89, %90
%92 = sub nsw i32 %91, 1
%93 = add nsw i32 %80, %92
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %68, %42
%96 = load i32, ptr %5, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %5, align 4
br label %98
98: ; preds = %95, %68
br label %99
99: ; preds = %98
%100 = load i32, ptr %7, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %7, align 4
br label %38, !llvm.loop !8
102: ; preds = %38
%103 = load i32, ptr %5, align 4
%104 = load i32, ptr %4, align 4
%105 = sub nsw i32 %104, 1
%106 = icmp eq i32 %103, %105
br i1 %106, label %107, label %109
107: ; preds = %102
%108 = call i32 @printf(ptr noundef @.str.2)
br label %111
109: ; preds = %102
%110 = call i32 @printf(ptr noundef @.str.3)
br label %111
111: ; preds = %109, %107
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb0s0aber.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Good String\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Not Good String\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 1
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %2, align 8
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %16)
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %21
21: ; preds = %.lr.ph, %33
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %4, align 4
%24 = sub nsw i32 %23, 1
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %22, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %31
store i8 %29, ptr %32, align 1
br label %33
33: ; preds = %21
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %0
store i32 1, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %106
.lr.ph2: ; preds = %39
br label %43
43: ; preds = %.lr.ph2, %100
%44 = load ptr, ptr %2, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %46, %47
%49 = load ptr, ptr %2, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = sub nsw i32 %48, %51
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %52, %53
%55 = sub nsw i32 %54, 1
%56 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%57 = load i8, ptr %56, align 16
%58 = sext i8 %57 to i32
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %58, %59
%61 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%62 = load i8, ptr %61, align 16
%63 = sext i8 %62 to i32
%64 = sub nsw i32 %60, %63
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %64, %65
%67 = sub nsw i32 %66, 1
%68 = icmp eq i32 %55, %67
br i1 %68, label %96, label %69
69: ; preds = %43
%70 = load ptr, ptr %2, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %72, %73
%75 = load ptr, ptr %2, align 8
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = sub nsw i32 %74, %77
%79 = load i32, ptr %7, align 4
%80 = add nsw i32 %78, %79
%81 = sub nsw i32 %80, 1
%82 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%83 = load i8, ptr %82, align 16
%84 = sext i8 %83 to i32
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %84, %85
%87 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%88 = load i8, ptr %87, align 16
%89 = sext i8 %88 to i32
%90 = sub nsw i32 %86, %89
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %90, %91
%93 = sub nsw i32 %92, 1
%94 = add nsw i32 %81, %93
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %69, %43
%97 = load i32, ptr %5, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %5, align 4
br label %99
99: ; preds = %96, %69
br label %100
100: ; preds = %99
%101 = load i32, ptr %7, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %7, align 4
%103 = load i32, ptr %7, align 4
%104 = load i32, ptr %4, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %100
br label %106
106: ; preds = %._crit_edge3, %39
%107 = load i32, ptr %5, align 4
%108 = load i32, ptr %4, align 4
%109 = sub nsw i32 %108, 1
%110 = icmp eq i32 %107, %109
br i1 %110, label %111, label %113
111: ; preds = %106
%112 = call i32 @printf(ptr noundef @.str.2)
br label %115
113: ; preds = %106
%114 = call i32 @printf(ptr noundef @.str.3)
br label %115
115: ; preds = %113, %111
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 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}
|
; ModuleID = '/tmp/tmp_q_9ei6g.c'
source_filename = "/tmp/tmp_q_9ei6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ui %zu l %zu\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"l %ld (%lx) s? %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef 4, i64 noundef 8)
store i64 0, ptr %3, align 8
store i32 1, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sub i32 0, %5
%7 = zext i32 %6 to i64
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, %7
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %10, i64 noundef %11, i32 noundef 0, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_q_9ei6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ui %zu l %zu\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"l %ld (%lx) s? %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str, i64 noundef 4, i64 noundef 8)
store i64 0, ptr %3, align 8
store i32 1, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sub i32 0, %5
%7 = zext i32 %6 to i64
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, %7
store i64 %9, ptr %3, align 8
%10 = load i64, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = call i32 (ptr, i64, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %10, i64 noundef %11, i32 noundef 0, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv3lsslu0.c'
source_filename = "/tmp/tmpv3lsslu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_operation_cancel\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_operation_cancel() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv3lsslu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_operation_cancel\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_operation_cancel() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnezv85ul.c'
source_filename = "/tmp/tmpnezv85ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"This program translates a line into Morse code.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @morseCodeGenerator()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @morseCodeGenerator(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnezv85ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"This program translates a line into Morse code.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @morseCodeGenerator()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @morseCodeGenerator(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph_vmvqcx.c'
source_filename = "/tmp/tmph_vmvqcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { i16 }
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"hz1\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"hz0\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @encode_file(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i16 noundef zeroext %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca [65536 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i8, align 1
%18 = alloca i8, align 1
%19 = alloca [2 x i32], align 4
%20 = alloca %union.anon, align 2
%21 = alloca ptr, align 8
%22 = alloca i8, align 1
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i16 %4, ptr %12, align 2
store ptr %5, ptr %13, align 8
store i32 0, ptr %16, align 4
%25 = load ptr, ptr %13, align 8
store ptr %25, ptr %21, align 8
%26 = load ptr, ptr %11, align 8
%27 = load ptr, ptr %13, align 8
%28 = icmp ne ptr %27, null
%29 = zext i1 %28 to i64
%30 = select i1 %28, ptr @.str.1, ptr @.str.2
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str, ptr noundef %30)
%32 = load i32, ptr %9, align 4
%33 = and i32 %32, 255
%34 = trunc i32 %33 to i8
store i8 %34, ptr %17, align 1
%35 = load i32, ptr %9, align 4
%36 = ashr i32 %35, 8
%37 = trunc i32 %36 to i8
store i8 %37, ptr %18, align 1
%38 = load ptr, ptr %13, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %84
40: ; preds = %6
store i8 0, ptr %22, align 1
br label %41
41: ; preds = %53, %40
%42 = load ptr, ptr %21, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %56
45: ; preds = %41
%46 = load ptr, ptr %21, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = load i8, ptr %22, align 1
%50 = zext i8 %49 to i32
%51 = xor i32 %50, %48
%52 = trunc i32 %51 to i8
store i8 %52, ptr %22, align 1
br label %53
53: ; preds = %45
%54 = load ptr, ptr %21, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %21, align 8
br label %41, !llvm.loop !6
56: ; preds = %41
%57 = load ptr, ptr %11, align 8
%58 = load i8, ptr %22, align 1
%59 = zext i8 %58 to i32
%60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.3, i32 noundef %59)
%61 = load ptr, ptr %13, align 8
store ptr %61, ptr %21, align 8
%62 = load ptr, ptr %21, align 8
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = load i8, ptr %18, align 1
%66 = zext i8 %65 to i32
%67 = xor i32 %66, %64
%68 = trunc i32 %67 to i8
store i8 %68, ptr %18, align 1
%69 = load ptr, ptr %21, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %21, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %56
%75 = load ptr, ptr %13, align 8
store ptr %75, ptr %21, align 8
br label %76
76: ; preds = %74, %56
%77 = load ptr, ptr %21, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = load i8, ptr %17, align 1
%81 = zext i8 %80 to i32
%82 = xor i32 %81, %79
%83 = trunc i32 %82 to i8
store i8 %83, ptr %17, align 1
br label %84
84: ; preds = %76, %6
%85 = load ptr, ptr %11, align 8
%86 = load i8, ptr %18, align 1
%87 = zext i8 %86 to i32
%88 = load i8, ptr %17, align 1
%89 = zext i8 %88 to i32
%90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.4, i32 noundef %87, i32 noundef %89)
store i32 0, ptr %15, align 4
br label %91
91: ; preds = %98, %84
%92 = load i32, ptr %15, align 4
%93 = icmp slt i32 %92, 65536
br i1 %93, label %94, label %101
94: ; preds = %91
%95 = load i32, ptr %15, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 %96
store i8 0, ptr %97, align 1
br label %98
98: ; preds = %94
%99 = load i32, ptr %15, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %15, align 4
br label %91, !llvm.loop !8
101: ; preds = %91
store i32 0, ptr %15, align 4
br label %102
102: ; preds = %245, %101
%103 = load i32, ptr %15, align 4
%104 = icmp slt i32 %103, 65537
br i1 %104, label %105, label %248
105: ; preds = %102
%106 = load ptr, ptr %8, align 8
%107 = load i32, ptr %15, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds ptr, ptr %106, i64 %108
%110 = load ptr, ptr %109, align 8
%111 = icmp ne ptr %110, null
br i1 %111, label %112, label %244
112: ; preds = %105
%113 = load i32, ptr %15, align 4
%114 = trunc i32 %113 to i16
store i16 %114, ptr %20, align 2
%115 = load i32, ptr %15, align 4
%116 = icmp eq i32 %115, 65536
br i1 %116, label %117, label %119
117: ; preds = %112
%118 = load i16, ptr %12, align 2
store i16 %118, ptr %20, align 2
br label %119
119: ; preds = %117, %112
%120 = load ptr, ptr %13, align 8
%121 = icmp ne ptr %120, null
br i1 %121, label %122, label %155
122: ; preds = %119
%123 = load ptr, ptr %21, align 8
%124 = getelementptr inbounds i8, ptr %123, i32 1
store ptr %124, ptr %21, align 8
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %122
%129 = load ptr, ptr %13, align 8
store ptr %129, ptr %21, align 8
br label %130
130: ; preds = %128, %122
%131 = load ptr, ptr %21, align 8
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
%135 = load i8, ptr %134, align 2
%136 = sext i8 %135 to i32
%137 = xor i32 %136, %133
%138 = trunc i32 %137 to i8
store i8 %138, ptr %134, align 2
%139 = load ptr, ptr %21, align 8
%140 = getelementptr inbounds i8, ptr %139, i32 1
store ptr %140, ptr %21, align 8
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %146
144: ; preds = %130
%145 = load ptr, ptr %13, align 8
store ptr %145, ptr %21, align 8
br label %146
146: ; preds = %144, %130
%147 = load ptr, ptr %21, align 8
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
%150 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = xor i32 %152, %149
%154 = trunc i32 %153 to i8
store i8 %154, ptr %150, align 1
br label %155
155: ; preds = %146, %119
%156 = load ptr, ptr %11, align 8
%157 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
%158 = load i8, ptr %157, align 2
%159 = sext i8 %158 to i32
%160 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
%161 = load i8, ptr %160, align 1
%162 = sext i8 %161 to i32
%163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.4, i32 noundef %159, i32 noundef %162)
store i32 0, ptr %16, align 4
%164 = load ptr, ptr %11, align 8
%165 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%166 = load ptr, ptr %8, align 8
%167 = load i32, ptr %15, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds ptr, ptr %166, i64 %168
%170 = load ptr, ptr %169, align 8
%171 = call i64 @write_bits(ptr noundef %164, ptr noundef %165, ptr noundef %16, ptr noundef %170)
%172 = icmp ne i64 %171, 0
br i1 %172, label %173, label %174
173: ; preds = %155
store i32 1, ptr %7, align 4
br label %306
174: ; preds = %155
%175 = load ptr, ptr %13, align 8
%176 = icmp ne ptr %175, null
br i1 %176, label %177, label %224
177: ; preds = %174
%178 = load ptr, ptr %21, align 8
%179 = getelementptr inbounds i8, ptr %178, i32 1
store ptr %179, ptr %21, align 8
%180 = load i8, ptr %179, align 1
%181 = sext i8 %180 to i32
%182 = icmp eq i32 %181, 0
br i1 %182, label %183, label %185
183: ; preds = %177
%184 = load ptr, ptr %13, align 8
store ptr %184, ptr %21, align 8
br label %185
185: ; preds = %183, %177
%186 = load ptr, ptr %11, align 8
%187 = load i32, ptr %16, align 4
%188 = trunc i32 %187 to i8
%189 = zext i8 %188 to i32
%190 = load ptr, ptr %21, align 8
%191 = load i8, ptr %190, align 1
%192 = sext i8 %191 to i32
%193 = xor i32 %189, %192
%194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.3, i32 noundef %193)
store i8 0, ptr %17, align 1
br label %195
195: ; preds = %220, %185
%196 = load i8, ptr %17, align 1
%197 = zext i8 %196 to i32
%198 = load i32, ptr %16, align 4
%199 = sdiv i32 %198, 8
%200 = icmp sle i32 %197, %199
br i1 %200, label %201, label %223
201: ; preds = %195
%202 = load ptr, ptr %21, align 8
%203 = getelementptr inbounds i8, ptr %202, i32 1
store ptr %203, ptr %21, align 8
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %209
207: ; preds = %201
%208 = load ptr, ptr %13, align 8
store ptr %208, ptr %21, align 8
br label %209
209: ; preds = %207, %201
%210 = load ptr, ptr %21, align 8
%211 = load i8, ptr %210, align 1
%212 = sext i8 %211 to i32
%213 = load i8, ptr %17, align 1
%214 = zext i8 %213 to i64
%215 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 %214
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = xor i32 %217, %212
%219 = trunc i32 %218 to i8
store i8 %219, ptr %215, align 1
br label %220
220: ; preds = %209
%221 = load i8, ptr %17, align 1
%222 = add i8 %221, 1
store i8 %222, ptr %17, align 1
br label %195, !llvm.loop !9
223: ; preds = %195
br label %230
224: ; preds = %174
%225 = load ptr, ptr %11, align 8
%226 = load i32, ptr %16, align 4
%227 = trunc i32 %226 to i8
%228 = zext i8 %227 to i32
%229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.3, i32 noundef %228)
br label %230
230: ; preds = %224, %223
%231 = load i32, ptr %16, align 4
%232 = sdiv i32 %231, 8
%233 = add nsw i32 %232, 1
store i32 %233, ptr %23, align 4
%234 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%235 = load i32, ptr %16, align 4
%236 = sdiv i32 %235, 8
%237 = add nsw i32 %236, 1
%238 = load ptr, ptr %11, align 8
%239 = call i32 @fwrite(ptr noundef %234, i32 noundef 1, i32 noundef %237, ptr noundef %238)
%240 = load i32, ptr %23, align 4
%241 = icmp ne i32 %239, %240
br i1 %241, label %242, label %243
242: ; preds = %230
store i32 1, ptr %7, align 4
br label %306
243: ; preds = %230
br label %244
244: ; preds = %243, %105
br label %245
245: ; preds = %244
%246 = load i32, ptr %15, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %15, align 4
br label %102, !llvm.loop !10
248: ; preds = %102
store i32 0, ptr %16, align 4
br label %249
249: ; preds = %280, %248
%250 = load ptr, ptr %10, align 8
%251 = call i32 @getc(ptr noundef %250)
%252 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 0
store i32 %251, ptr %252, align 4
%253 = icmp ne i32 %251, -1
br i1 %253, label %254, label %259
254: ; preds = %249
%255 = load ptr, ptr %10, align 8
%256 = call i32 @getc(ptr noundef %255)
%257 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 1
store i32 %256, ptr %257, align 4
%258 = icmp ne i32 %256, -1
br label %259
259: ; preds = %254, %249
%260 = phi i1 [ false, %249 ], [ %258, %254 ]
br i1 %260, label %261, label %281
261: ; preds = %259
%262 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 0
%263 = load i32, ptr %262, align 4
%264 = trunc i32 %263 to i8
%265 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
store i8 %264, ptr %265, align 2
%266 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 1
%267 = load i32, ptr %266, align 4
%268 = trunc i32 %267 to i8
%269 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
store i8 %268, ptr %269, align 1
%270 = load ptr, ptr %11, align 8
%271 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%272 = load ptr, ptr %8, align 8
%273 = load i16, ptr %20, align 2
%274 = zext i16 %273 to i64
%275 = getelementptr inbounds ptr, ptr %272, i64 %274
%276 = load ptr, ptr %275, align 8
%277 = call i64 @write_bits(ptr noundef %270, ptr noundef %271, ptr noundef %16, ptr noundef %276)
%278 = icmp ne i64 %277, 0
br i1 %278, label %279, label %280
279: ; preds = %261
store i32 1, ptr %7, align 4
br label %306
280: ; preds = %261
br label %249, !llvm.loop !11
281: ; preds = %259
%282 = load ptr, ptr %11, align 8
%283 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%284 = load ptr, ptr %8, align 8
%285 = getelementptr inbounds ptr, ptr %284, i64 65536
%286 = load ptr, ptr %285, align 8
%287 = call i64 @write_bits(ptr noundef %282, ptr noundef %283, ptr noundef %16, ptr noundef %286)
%288 = icmp ne i64 %287, 0
br i1 %288, label %289, label %290
289: ; preds = %281
store i32 1, ptr %7, align 4
br label %306
290: ; preds = %281
%291 = load i32, ptr %16, align 4
%292 = icmp sgt i32 %291, 0
br i1 %292, label %293, label %305
293: ; preds = %290
%294 = load i32, ptr %16, align 4
%295 = sdiv i32 %294, 8
%296 = add nsw i32 %295, 1
store i32 %296, ptr %24, align 4
%297 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%298 = load i32, ptr %24, align 4
%299 = load ptr, ptr %11, align 8
%300 = call i32 @fwrite(ptr noundef %297, i32 noundef 1, i32 noundef %298, ptr noundef %299)
%301 = load i32, ptr %24, align 4
%302 = icmp ne i32 %300, %301
br i1 %302, label %303, label %304
303: ; preds = %293
store i32 1, ptr %7, align 4
br label %306
304: ; preds = %293
br label %305
305: ; preds = %304, %290
store i32 0, ptr %7, align 4
br label %306
306: ; preds = %305, %303, %289, %279, %242, %173
%307 = load i32, ptr %7, align 4
ret i32 %307
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @write_bits(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph_vmvqcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { i16 }
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"hz1\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"hz0\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @encode_file(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i16 noundef zeroext %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca [65536 x i8], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i8, align 1
%18 = alloca i8, align 1
%19 = alloca [2 x i32], align 4
%20 = alloca %union.anon, align 2
%21 = alloca ptr, align 8
%22 = alloca i8, align 1
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i16 %4, ptr %12, align 2
store ptr %5, ptr %13, align 8
store i32 0, ptr %16, align 4
%25 = load ptr, ptr %13, align 8
store ptr %25, ptr %21, align 8
%26 = load ptr, ptr %11, align 8
%27 = load ptr, ptr %13, align 8
%28 = icmp ne ptr %27, null
%29 = zext i1 %28 to i64
%30 = select i1 %28, ptr @.str.1, ptr @.str.2
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str, ptr noundef %30)
%32 = load i32, ptr %9, align 4
%33 = and i32 %32, 255
%34 = trunc i32 %33 to i8
store i8 %34, ptr %17, align 1
%35 = load i32, ptr %9, align 4
%36 = ashr i32 %35, 8
%37 = trunc i32 %36 to i8
store i8 %37, ptr %18, align 1
%38 = load ptr, ptr %13, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %86
40: ; preds = %6
store i8 0, ptr %22, align 1
%41 = load ptr, ptr %21, align 8
%42 = load i8, ptr %41, align 1
%43 = icmp ne i8 %42, 0
br i1 %43, label %.lr.ph, label %58
.lr.ph: ; preds = %40
br label %44
44: ; preds = %.lr.ph, %52
%45 = load ptr, ptr %21, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = load i8, ptr %22, align 1
%49 = zext i8 %48 to i32
%50 = xor i32 %49, %47
%51 = trunc i32 %50 to i8
store i8 %51, ptr %22, align 1
br label %52
52: ; preds = %44
%53 = load ptr, ptr %21, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %21, align 8
%55 = load ptr, ptr %21, align 8
%56 = load i8, ptr %55, align 1
%57 = icmp ne i8 %56, 0
br i1 %57, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %40
%59 = load ptr, ptr %11, align 8
%60 = load i8, ptr %22, align 1
%61 = zext i8 %60 to i32
%62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.3, i32 noundef %61)
%63 = load ptr, ptr %13, align 8
store ptr %63, ptr %21, align 8
%64 = load ptr, ptr %21, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load i8, ptr %18, align 1
%68 = zext i8 %67 to i32
%69 = xor i32 %68, %66
%70 = trunc i32 %69 to i8
store i8 %70, ptr %18, align 1
%71 = load ptr, ptr %21, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %21, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %58
%77 = load ptr, ptr %13, align 8
store ptr %77, ptr %21, align 8
br label %78
78: ; preds = %76, %58
%79 = load ptr, ptr %21, align 8
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = load i8, ptr %17, align 1
%83 = zext i8 %82 to i32
%84 = xor i32 %83, %81
%85 = trunc i32 %84 to i8
store i8 %85, ptr %17, align 1
br label %86
86: ; preds = %78, %6
%87 = load ptr, ptr %11, align 8
%88 = load i8, ptr %18, align 1
%89 = zext i8 %88 to i32
%90 = load i8, ptr %17, align 1
%91 = zext i8 %90 to i32
%92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.4, i32 noundef %89, i32 noundef %91)
store i32 0, ptr %15, align 4
%93 = load i32, ptr %15, align 4
%94 = icmp slt i32 %93, 65536
br i1 %94, label %.lr.ph2, label %104
.lr.ph2: ; preds = %86
br label %95
95: ; preds = %.lr.ph2, %99
%96 = load i32, ptr %15, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 %97
store i8 0, ptr %98, align 1
br label %99
99: ; preds = %95
%100 = load i32, ptr %15, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %15, align 4
%102 = load i32, ptr %15, align 4
%103 = icmp slt i32 %102, 65536
br i1 %103, label %95, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %99
br label %104
104: ; preds = %._crit_edge3, %86
store i32 0, ptr %15, align 4
%105 = load i32, ptr %15, align 4
%106 = icmp slt i32 %105, 65537
br i1 %106, label %.lr.ph8, label %256
.lr.ph8: ; preds = %104
br label %107
107: ; preds = %.lr.ph8, %251
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %15, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds ptr, ptr %108, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = icmp ne ptr %112, null
br i1 %113, label %114, label %250
114: ; preds = %107
%115 = load i32, ptr %15, align 4
%116 = trunc i32 %115 to i16
store i16 %116, ptr %20, align 2
%117 = load i32, ptr %15, align 4
%118 = icmp eq i32 %117, 65536
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = load i16, ptr %12, align 2
store i16 %120, ptr %20, align 2
br label %121
121: ; preds = %119, %114
%122 = load ptr, ptr %13, align 8
%123 = icmp ne ptr %122, null
br i1 %123, label %124, label %157
124: ; preds = %121
%125 = load ptr, ptr %21, align 8
%126 = getelementptr inbounds i8, ptr %125, i32 1
store ptr %126, ptr %21, align 8
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 0
br i1 %129, label %130, label %132
130: ; preds = %124
%131 = load ptr, ptr %13, align 8
store ptr %131, ptr %21, align 8
br label %132
132: ; preds = %130, %124
%133 = load ptr, ptr %21, align 8
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
%137 = load i8, ptr %136, align 2
%138 = sext i8 %137 to i32
%139 = xor i32 %138, %135
%140 = trunc i32 %139 to i8
store i8 %140, ptr %136, align 2
%141 = load ptr, ptr %21, align 8
%142 = getelementptr inbounds i8, ptr %141, i32 1
store ptr %142, ptr %21, align 8
%143 = load i8, ptr %142, align 1
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %144, 0
br i1 %145, label %146, label %148
146: ; preds = %132
%147 = load ptr, ptr %13, align 8
store ptr %147, ptr %21, align 8
br label %148
148: ; preds = %146, %132
%149 = load ptr, ptr %21, align 8
%150 = load i8, ptr %149, align 1
%151 = sext i8 %150 to i32
%152 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = xor i32 %154, %151
%156 = trunc i32 %155 to i8
store i8 %156, ptr %152, align 1
br label %157
157: ; preds = %148, %121
%158 = load ptr, ptr %11, align 8
%159 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
%160 = load i8, ptr %159, align 2
%161 = sext i8 %160 to i32
%162 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
%163 = load i8, ptr %162, align 1
%164 = sext i8 %163 to i32
%165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.4, i32 noundef %161, i32 noundef %164)
store i32 0, ptr %16, align 4
%166 = load ptr, ptr %11, align 8
%167 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%168 = load ptr, ptr %8, align 8
%169 = load i32, ptr %15, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds ptr, ptr %168, i64 %170
%172 = load ptr, ptr %171, align 8
%173 = call i64 @write_bits(ptr noundef %166, ptr noundef %167, ptr noundef %16, ptr noundef %172)
%174 = icmp ne i64 %173, 0
br i1 %174, label %175, label %176
175: ; preds = %157
store i32 1, ptr %7, align 4
br label %313
176: ; preds = %157
%177 = load ptr, ptr %13, align 8
%178 = icmp ne ptr %177, null
br i1 %178, label %179, label %230
179: ; preds = %176
%180 = load ptr, ptr %21, align 8
%181 = getelementptr inbounds i8, ptr %180, i32 1
store ptr %181, ptr %21, align 8
%182 = load i8, ptr %181, align 1
%183 = sext i8 %182 to i32
%184 = icmp eq i32 %183, 0
br i1 %184, label %185, label %187
185: ; preds = %179
%186 = load ptr, ptr %13, align 8
store ptr %186, ptr %21, align 8
br label %187
187: ; preds = %185, %179
%188 = load ptr, ptr %11, align 8
%189 = load i32, ptr %16, align 4
%190 = trunc i32 %189 to i8
%191 = zext i8 %190 to i32
%192 = load ptr, ptr %21, align 8
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = xor i32 %191, %194
%196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.3, i32 noundef %195)
store i8 0, ptr %17, align 1
%197 = load i8, ptr %17, align 1
%198 = zext i8 %197 to i32
%199 = load i32, ptr %16, align 4
%200 = sdiv i32 %199, 8
%201 = icmp sle i32 %198, %200
br i1 %201, label %.lr.ph5, label %229
.lr.ph5: ; preds = %187
br label %202
202: ; preds = %.lr.ph5, %221
%203 = load ptr, ptr %21, align 8
%204 = getelementptr inbounds i8, ptr %203, i32 1
store ptr %204, ptr %21, align 8
%205 = load i8, ptr %204, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 0
br i1 %207, label %208, label %210
208: ; preds = %202
%209 = load ptr, ptr %13, align 8
store ptr %209, ptr %21, align 8
br label %210
210: ; preds = %208, %202
%211 = load ptr, ptr %21, align 8
%212 = load i8, ptr %211, align 1
%213 = sext i8 %212 to i32
%214 = load i8, ptr %17, align 1
%215 = zext i8 %214 to i64
%216 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 %215
%217 = load i8, ptr %216, align 1
%218 = sext i8 %217 to i32
%219 = xor i32 %218, %213
%220 = trunc i32 %219 to i8
store i8 %220, ptr %216, align 1
br label %221
221: ; preds = %210
%222 = load i8, ptr %17, align 1
%223 = add i8 %222, 1
store i8 %223, ptr %17, align 1
%224 = load i8, ptr %17, align 1
%225 = zext i8 %224 to i32
%226 = load i32, ptr %16, align 4
%227 = sdiv i32 %226, 8
%228 = icmp sle i32 %225, %227
br i1 %228, label %202, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %221
br label %229
229: ; preds = %._crit_edge6, %187
br label %236
230: ; preds = %176
%231 = load ptr, ptr %11, align 8
%232 = load i32, ptr %16, align 4
%233 = trunc i32 %232 to i8
%234 = zext i8 %233 to i32
%235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.3, i32 noundef %234)
br label %236
236: ; preds = %230, %229
%237 = load i32, ptr %16, align 4
%238 = sdiv i32 %237, 8
%239 = add nsw i32 %238, 1
store i32 %239, ptr %23, align 4
%240 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%241 = load i32, ptr %16, align 4
%242 = sdiv i32 %241, 8
%243 = add nsw i32 %242, 1
%244 = load ptr, ptr %11, align 8
%245 = call i32 @fwrite(ptr noundef %240, i32 noundef 1, i32 noundef %243, ptr noundef %244)
%246 = load i32, ptr %23, align 4
%247 = icmp ne i32 %245, %246
br i1 %247, label %248, label %249
248: ; preds = %236
store i32 1, ptr %7, align 4
br label %313
249: ; preds = %236
br label %250
250: ; preds = %249, %107
br label %251
251: ; preds = %250
%252 = load i32, ptr %15, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr %15, align 4
%254 = load i32, ptr %15, align 4
%255 = icmp slt i32 %254, 65537
br i1 %255, label %107, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %251
br label %256
256: ; preds = %._crit_edge9, %104
store i32 0, ptr %16, align 4
br label %257
257: ; preds = %269, %256
%258 = load ptr, ptr %10, align 8
%259 = call i32 @getc(ptr noundef %258)
%260 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 0
store i32 %259, ptr %260, align 4
%261 = icmp ne i32 %259, -1
br i1 %261, label %262, label %267
262: ; preds = %257
%263 = load ptr, ptr %10, align 8
%264 = call i32 @getc(ptr noundef %263)
%265 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 1
store i32 %264, ptr %265, align 4
%266 = icmp ne i32 %264, -1
br label %267
267: ; preds = %262, %257
%268 = phi i1 [ false, %257 ], [ %266, %262 ]
br i1 %268, label %269, label %288
269: ; preds = %267
%270 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 0
%271 = load i32, ptr %270, align 4
%272 = trunc i32 %271 to i8
%273 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
store i8 %272, ptr %273, align 2
%274 = getelementptr inbounds [2 x i32], ptr %19, i64 0, i64 1
%275 = load i32, ptr %274, align 4
%276 = trunc i32 %275 to i8
%277 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 1
store i8 %276, ptr %277, align 1
%278 = load ptr, ptr %11, align 8
%279 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%280 = load ptr, ptr %8, align 8
%281 = load i16, ptr %20, align 2
%282 = zext i16 %281 to i64
%283 = getelementptr inbounds ptr, ptr %280, i64 %282
%284 = load ptr, ptr %283, align 8
%285 = call i64 @write_bits(ptr noundef %278, ptr noundef %279, ptr noundef %16, ptr noundef %284)
%286 = icmp ne i64 %285, 0
br i1 %286, label %287, label %257, !llvm.loop !11
287: ; preds = %269
store i32 1, ptr %7, align 4
br label %313
288: ; preds = %267
%289 = load ptr, ptr %11, align 8
%290 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%291 = load ptr, ptr %8, align 8
%292 = getelementptr inbounds ptr, ptr %291, i64 65536
%293 = load ptr, ptr %292, align 8
%294 = call i64 @write_bits(ptr noundef %289, ptr noundef %290, ptr noundef %16, ptr noundef %293)
%295 = icmp ne i64 %294, 0
br i1 %295, label %296, label %297
296: ; preds = %288
store i32 1, ptr %7, align 4
br label %313
297: ; preds = %288
%298 = load i32, ptr %16, align 4
%299 = icmp sgt i32 %298, 0
br i1 %299, label %300, label %312
300: ; preds = %297
%301 = load i32, ptr %16, align 4
%302 = sdiv i32 %301, 8
%303 = add nsw i32 %302, 1
store i32 %303, ptr %24, align 4
%304 = getelementptr inbounds [65536 x i8], ptr %14, i64 0, i64 0
%305 = load i32, ptr %24, align 4
%306 = load ptr, ptr %11, align 8
%307 = call i32 @fwrite(ptr noundef %304, i32 noundef 1, i32 noundef %305, ptr noundef %306)
%308 = load i32, ptr %24, align 4
%309 = icmp ne i32 %307, %308
br i1 %309, label %310, label %311
310: ; preds = %300
store i32 1, ptr %7, align 4
br label %313
311: ; preds = %300
br label %312
312: ; preds = %311, %297
store i32 0, ptr %7, align 4
br label %313
313: ; preds = %312, %310, %296, %287, %248, %175
%314 = load i32, ptr %7, align 4
ret i32 %314
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @write_bits(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpe9tc0ph0.c'
source_filename = "/tmp/tmpe9tc0ph0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = and i32 %8, 1
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %11, %7
%15 = load i32, ptr %2, align 4
%16 = ashr i32 %15, 1
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
%18 = load i32, ptr %3, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe9tc0ph0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, 1
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %13
13: ; preds = %10, %6
%14 = load i32, ptr %2, align 4
%15 = ashr i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i32, ptr %3, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_nunhwe8.c'
source_filename = "/tmp/tmp_nunhwe8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@generateBlumBlumShub.xn = internal global double 0x425CEC194FB28000, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @generateBlumBlumShub() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
store double 0x425DD4E9C3924000, ptr %1, align 8
%3 = load double, ptr @generateBlumBlumShub.xn, align 8
store double %3, ptr %2, align 8
%4 = load double, ptr @generateBlumBlumShub.xn, align 8
%5 = call i32 @pow(double noundef %4, i32 noundef 2)
%6 = load double, ptr %1, align 8
%7 = call double @fmod(i32 noundef %5, double noundef %6)
store double %7, ptr @generateBlumBlumShub.xn, align 8
%8 = load double, ptr %2, align 8
ret double %8
}
declare double @fmod(i32 noundef, double noundef) #1
declare i32 @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_nunhwe8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@generateBlumBlumShub.xn = internal global double 0x425CEC194FB28000, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @generateBlumBlumShub() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
store double 0x425DD4E9C3924000, ptr %1, align 8
%3 = load double, ptr @generateBlumBlumShub.xn, align 8
store double %3, ptr %2, align 8
%4 = load double, ptr @generateBlumBlumShub.xn, align 8
%5 = call i32 @pow(double noundef %4, i32 noundef 2)
%6 = load double, ptr %1, align 8
%7 = call double @fmod(i32 noundef %5, double noundef %6)
store double %7, ptr @generateBlumBlumShub.xn, align 8
%8 = load double, ptr %2, align 8
ret double %8
}
declare double @fmod(i32 noundef, double noundef) #1
declare i32 @pow(double 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/tmpfqncmbgc.c'
source_filename = "/tmp/tmpfqncmbgc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_string(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %6, align 8
br label %11
11: ; preds = %34, %2
%12 = load i32, ptr @stdin, align 4
%13 = call signext i8 @getc(i32 noundef %12)
store i8 %13, ptr %7, align 1
%14 = sext i8 %13 to i32
%15 = load i64, ptr @EOF, align 8
%16 = trunc i64 %15 to i8
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %14, %17
br i1 %18, label %19, label %23
19: ; preds = %11
%20 = load i8, ptr %7, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 10
br label %23
23: ; preds = %19, %11
%24 = phi i1 [ false, %11 ], [ %22, %19 ]
br i1 %24, label %25, label %35
25: ; preds = %23
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %26, %28
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load i8, ptr %7, align 1
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %6, align 8
store i8 %31, ptr %32, align 1
br label %34
34: ; preds = %30, %25
br label %11, !llvm.loop !6
35: ; preds = %23
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %9, align 4
br label %37
37: ; preds = %44, %35
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load ptr, ptr %6, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %6, align 8
store i8 32, ptr %42, align 1
br label %44
44: ; preds = %41
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %9, align 4
br label %37, !llvm.loop !8
47: ; preds = %37
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 94
br i1 %52, label %53, label %66
53: ; preds = %47
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 1
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 68
br i1 %58, label %65, label %59
59: ; preds = %53
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 1
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 100
br i1 %64, label %65, label %66
65: ; preds = %59, %53
store i32 0, ptr %3, align 4
br label %73
66: ; preds = %59, %47
%67 = load i8, ptr %7, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 10
br i1 %69, label %70, label %71
70: ; preds = %66
store i32 -1, ptr %3, align 4
br label %73
71: ; preds = %66
%72 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %73
73: ; preds = %71, %70, %65
%74 = load i32, ptr %3, align 4
ret i32 %74
}
declare signext i8 @getc(i32 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfqncmbgc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_string(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %6, align 8
br label %11
11: ; preds = %34, %2
%12 = load i32, ptr @stdin, align 4
%13 = call signext i8 @getc(i32 noundef %12)
store i8 %13, ptr %7, align 1
%14 = sext i8 %13 to i32
%15 = load i64, ptr @EOF, align 8
%16 = trunc i64 %15 to i8
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %14, %17
br i1 %18, label %19, label %23
19: ; preds = %11
%20 = load i8, ptr %7, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 10
br label %23
23: ; preds = %19, %11
%24 = phi i1 [ false, %11 ], [ %22, %19 ]
br i1 %24, label %25, label %35
25: ; preds = %23
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %26, %28
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load i8, ptr %7, align 1
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %6, align 8
store i8 %31, ptr %32, align 1
br label %34
34: ; preds = %30, %25
br label %11, !llvm.loop !6
35: ; preds = %23
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %5, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %49
.lr.ph: ; preds = %35
br label %40
40: ; preds = %.lr.ph, %43
%41 = load ptr, ptr %6, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %6, align 8
store i8 32, ptr %41, align 1
br label %43
43: ; preds = %40
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %5, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %40, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %35
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 0
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 94
br i1 %54, label %55, label %68
55: ; preds = %49
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 1
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 68
br i1 %60, label %67, label %61
61: ; preds = %55
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 1
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 100
br i1 %66, label %67, label %68
67: ; preds = %61, %55
store i32 0, ptr %3, align 4
br label %75
68: ; preds = %61, %49
%69 = load i8, ptr %7, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 10
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 -1, ptr %3, align 4
br label %75
73: ; preds = %68
%74 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %75
75: ; preds = %73, %72, %67
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare signext i8 @getc(i32 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}
|
; ModuleID = '/tmp/tmpld5stj_9.c'
source_filename = "/tmp/tmpld5stj_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @knn_cluster(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store double 1.000000e-01, ptr %12, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %13, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %14, align 8
store i32 0, ptr %11, align 4
br label %27
27: ; preds = %73, %4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %76
31: ; preds = %27
store i32 0, ptr %9, align 4
br label %32
32: ; preds = %69, %31
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %72
36: ; preds = %32
store i32 0, ptr %10, align 4
br label %37
37: ; preds = %65, %36
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %68
41: ; preds = %37
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %14, align 8
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds float, ptr %51, i64 %53
%55 = load float, ptr %54, align 4
%56 = call double @distance(i32 noundef %50, float noundef %55)
%57 = fcmp olt double %56, 1.000000e-01
br i1 %57, label %58, label %64
58: ; preds = %41
%59 = load i32, ptr %9, align 4
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %10, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 %59, ptr %63, align 4
br label %64
64: ; preds = %58, %41
br label %65
65: ; preds = %64
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4
br label %37, !llvm.loop !6
68: ; preds = %37
br label %69
69: ; preds = %68
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
br label %32, !llvm.loop !8
72: ; preds = %32
br label %73
73: ; preds = %72
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
br label %27, !llvm.loop !9
76: ; preds = %27
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @distance(i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpld5stj_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @knn_cluster(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store double 1.000000e-01, ptr %12, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %13, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %14, align 8
store i32 0, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph5, label %82
.lr.ph5: ; preds = %4
br label %30
30: ; preds = %.lr.ph5, %76
store i32 0, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %75
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %69
store i32 0, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %68
.lr.ph: ; preds = %34
br label %38
38: ; preds = %.lr.ph, %62
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %14, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, ptr %48, i64 %50
%52 = load float, ptr %51, align 4
%53 = call double @distance(i32 noundef %47, float noundef %52)
%54 = fcmp olt double %53, 1.000000e-01
br i1 %54, label %55, label %61
55: ; preds = %38
%56 = load i32, ptr %9, align 4
%57 = load ptr, ptr %13, align 8
%58 = load i32, ptr %10, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
store i32 %56, ptr %60, align 4
br label %61
61: ; preds = %55, %38
br label %62
62: ; preds = %61
%63 = load i32, ptr %10, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %10, align 4
%65 = load i32, ptr %10, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %34
br label %69
69: ; preds = %68
%70 = load i32, ptr %9, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %30
br label %76
76: ; preds = %75
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %11, align 4
%79 = load i32, ptr %11, align 4
%80 = load i32, ptr %8, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %30, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %76
br label %82
82: ; preds = %._crit_edge6, %4
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @distance(i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp7j1eoyoz.c'
source_filename = "/tmp/tmp7j1eoyoz.c"
target datalayout = "e-m:e-p270: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/tmp7j1eoyoz.c"
target datalayout = "e-m:e-p270: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/tmpp1xgjw0z.c'
source_filename = "/tmp/tmpp1xgjw0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr() #0 {
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/tmpp1xgjw0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchr() #0 {
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/tmpoit6e5cx.c'
source_filename = "/tmp/tmpoit6e5cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_stack(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %45, %1
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 20
br i1 %10, label %11, label %48
11: ; preds = %8
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %30, %11
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i8], ptr %16, i64 %18
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i8], ptr %19, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %15
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %26, %15
br label %30
30: ; preds = %29
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %12, !llvm.loop !6
33: ; preds = %12
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %44
36: ; preds = %33
%37 = load i32, ptr %6, align 4
%38 = load ptr, ptr %3, align 8
%39 = call i32 @shift_stack(i32 noundef %37, ptr noundef %38)
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %36, %33
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
br label %8, !llvm.loop !8
48: ; preds = %8
%49 = load i32, ptr %5, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = load i32, ptr %5, align 4
store i32 %52, ptr %2, align 4
br label %54
53: ; preds = %48
store i32 0, ptr %2, align 4
br label %54
54: ; preds = %53, %51
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @shift_stack(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoit6e5cx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_stack(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 20
br i1 %9, label %.lr.ph2, label %50
.lr.ph2: ; preds = %1
br label %10
10: ; preds = %.lr.ph2, %45
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 10
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %28
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i8], ptr %14, i64 %16
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i8], ptr %17, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %13
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %27
27: ; preds = %24, %13
br label %28
28: ; preds = %27
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %10
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %44
36: ; preds = %33
%37 = load i32, ptr %6, align 4
%38 = load ptr, ptr %3, align 8
%39 = call i32 @shift_stack(i32 noundef %37, ptr noundef %38)
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %36, %33
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %48, 20
br i1 %49, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %50
50: ; preds = %._crit_edge3, %1
%51 = load i32, ptr %5, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = load i32, ptr %5, align 4
store i32 %54, ptr %2, align 4
br label %56
55: ; preds = %50
store i32 0, ptr %2, align 4
br label %56
56: ; preds = %55, %53
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i32 @shift_stack(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwjrjmngh.c'
source_filename = "/tmp/tmpwjrjmngh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_TRANSIENT = 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/tmpwjrjmngh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_TRANSIENT = 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/tmpjau4xktw.c'
source_filename = "/tmp/tmpjau4xktw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @minimum_image_triclinic(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x double], align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [2 x double], align 16
%10 = alloca [3 x double], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 24, i1 false)
%14 = load double, ptr @FLT_MAX, align 8
store double %14, ptr %6, align 8
store i32 -1, ptr %11, align 4
br label %15
15: ; preds = %132, %2
%16 = load i32, ptr %11, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %135
18: ; preds = %15
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds double, ptr %19, i64 0
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds float, ptr %22, i64 0
%24 = load float, ptr %23, align 4
%25 = load i32, ptr %11, align 4
%26 = sitofp i32 %25 to float
%27 = fmul float %24, %26
%28 = fpext float %27 to double
%29 = fadd double %21, %28
store double %29, ptr %8, align 8
store i32 -1, ptr %12, align 4
br label %30
30: ; preds = %128, %18
%31 = load i32, ptr %12, align 4
%32 = icmp slt i32 %31, 2
br i1 %32, label %33, label %131
33: ; preds = %30
%34 = load double, ptr %8, align 8
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds float, ptr %35, i64 3
%37 = load float, ptr %36, align 4
%38 = load i32, ptr %12, align 4
%39 = sitofp i32 %38 to float
%40 = fmul float %37, %39
%41 = fpext float %40 to double
%42 = fadd double %34, %41
%43 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
store double %42, ptr %43, align 16
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds double, ptr %44, i64 1
%46 = load double, ptr %45, align 8
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds float, ptr %47, i64 4
%49 = load float, ptr %48, align 4
%50 = load i32, ptr %12, align 4
%51 = sitofp i32 %50 to float
%52 = fmul float %49, %51
%53 = fpext float %52 to double
%54 = fadd double %46, %53
%55 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
store double %54, ptr %55, align 8
store i32 -1, ptr %13, align 4
br label %56
56: ; preds = %124, %33
%57 = load i32, ptr %13, align 4
%58 = icmp slt i32 %57, 2
br i1 %58, label %59, label %127
59: ; preds = %56
%60 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%61 = load double, ptr %60, align 16
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds float, ptr %62, i64 6
%64 = load float, ptr %63, align 4
%65 = load i32, ptr %13, align 4
%66 = sitofp i32 %65 to float
%67 = fmul float %64, %66
%68 = fpext float %67 to double
%69 = fadd double %61, %68
%70 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
store double %69, ptr %70, align 16
%71 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
%72 = load double, ptr %71, align 8
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds float, ptr %73, i64 7
%75 = load float, ptr %74, align 4
%76 = load i32, ptr %13, align 4
%77 = sitofp i32 %76 to float
%78 = fmul float %75, %77
%79 = fpext float %78 to double
%80 = fadd double %72, %79
%81 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
store double %80, ptr %81, align 8
%82 = load ptr, ptr %3, align 8
%83 = getelementptr inbounds double, ptr %82, i64 2
%84 = load double, ptr %83, align 8
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds float, ptr %85, i64 8
%87 = load float, ptr %86, align 4
%88 = load i32, ptr %13, align 4
%89 = sitofp i32 %88 to float
%90 = fmul float %87, %89
%91 = fpext float %90 to double
%92 = fadd double %84, %91
%93 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
store double %92, ptr %93, align 16
%94 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%95 = load double, ptr %94, align 16
%96 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%97 = load double, ptr %96, align 16
%98 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%99 = load double, ptr %98, align 8
%100 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%101 = load double, ptr %100, align 8
%102 = fmul double %99, %101
%103 = call double @llvm.fmuladd.f64(double %95, double %97, double %102)
%104 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%105 = load double, ptr %104, align 16
%106 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%107 = load double, ptr %106, align 16
%108 = call double @llvm.fmuladd.f64(double %105, double %107, double %103)
store double %108, ptr %7, align 8
%109 = load double, ptr %7, align 8
%110 = load double, ptr %6, align 8
%111 = fcmp olt double %109, %110
br i1 %111, label %112, label %123
112: ; preds = %59
%113 = load double, ptr %7, align 8
store double %113, ptr %6, align 8
%114 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%115 = load double, ptr %114, align 16
%116 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
store double %115, ptr %116, align 16
%117 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%118 = load double, ptr %117, align 8
%119 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
store double %118, ptr %119, align 8
%120 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%121 = load double, ptr %120, align 16
%122 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
store double %121, ptr %122, align 16
br label %123
123: ; preds = %112, %59
br label %124
124: ; preds = %123
%125 = load i32, ptr %13, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %13, align 4
br label %56, !llvm.loop !6
127: ; preds = %56
br label %128
128: ; preds = %127
%129 = load i32, ptr %12, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %12, align 4
br label %30, !llvm.loop !8
131: ; preds = %30
br label %132
132: ; preds = %131
%133 = load i32, ptr %11, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %11, align 4
br label %15, !llvm.loop !9
135: ; preds = %15
%136 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%137 = load double, ptr %136, align 16
%138 = load ptr, ptr %3, align 8
%139 = getelementptr inbounds double, ptr %138, i64 0
store double %137, ptr %139, align 8
%140 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
%141 = load double, ptr %140, align 8
%142 = load ptr, ptr %3, align 8
%143 = getelementptr inbounds double, ptr %142, i64 1
store double %141, ptr %143, align 8
%144 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
%145 = load double, ptr %144, align 16
%146 = load ptr, ptr %3, align 8
%147 = getelementptr inbounds double, ptr %146, i64 2
store double %145, ptr %147, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjau4xktw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @minimum_image_triclinic(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x double], align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca [2 x double], align 16
%10 = alloca [3 x double], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 24, i1 false)
%14 = load double, ptr @FLT_MAX, align 8
store double %14, ptr %6, align 8
store i32 -1, ptr %11, align 4
%15 = load i32, ptr %11, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label %.lr.ph5, label %138
.lr.ph5: ; preds = %2
br label %17
17: ; preds = %.lr.ph5, %133
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds double, ptr %18, i64 0
%20 = load double, ptr %19, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds float, ptr %21, i64 0
%23 = load float, ptr %22, align 4
%24 = load i32, ptr %11, align 4
%25 = sitofp i32 %24 to float
%26 = fmul float %23, %25
%27 = fpext float %26 to double
%28 = fadd double %20, %27
store double %28, ptr %8, align 8
store i32 -1, ptr %12, align 4
%29 = load i32, ptr %12, align 4
%30 = icmp slt i32 %29, 2
br i1 %30, label %.lr.ph2, label %132
.lr.ph2: ; preds = %17
br label %31
31: ; preds = %.lr.ph2, %127
%32 = load double, ptr %8, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds float, ptr %33, i64 3
%35 = load float, ptr %34, align 4
%36 = load i32, ptr %12, align 4
%37 = sitofp i32 %36 to float
%38 = fmul float %35, %37
%39 = fpext float %38 to double
%40 = fadd double %32, %39
%41 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
store double %40, ptr %41, align 16
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds double, ptr %42, i64 1
%44 = load double, ptr %43, align 8
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds float, ptr %45, i64 4
%47 = load float, ptr %46, align 4
%48 = load i32, ptr %12, align 4
%49 = sitofp i32 %48 to float
%50 = fmul float %47, %49
%51 = fpext float %50 to double
%52 = fadd double %44, %51
%53 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
store double %52, ptr %53, align 8
store i32 -1, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = icmp slt i32 %54, 2
br i1 %55, label %.lr.ph, label %126
.lr.ph: ; preds = %31
br label %56
56: ; preds = %.lr.ph, %121
%57 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%58 = load double, ptr %57, align 16
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds float, ptr %59, i64 6
%61 = load float, ptr %60, align 4
%62 = load i32, ptr %13, align 4
%63 = sitofp i32 %62 to float
%64 = fmul float %61, %63
%65 = fpext float %64 to double
%66 = fadd double %58, %65
%67 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
store double %66, ptr %67, align 16
%68 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %4, align 8
%71 = getelementptr inbounds float, ptr %70, i64 7
%72 = load float, ptr %71, align 4
%73 = load i32, ptr %13, align 4
%74 = sitofp i32 %73 to float
%75 = fmul float %72, %74
%76 = fpext float %75 to double
%77 = fadd double %69, %76
%78 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
store double %77, ptr %78, align 8
%79 = load ptr, ptr %3, align 8
%80 = getelementptr inbounds double, ptr %79, i64 2
%81 = load double, ptr %80, align 8
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds float, ptr %82, i64 8
%84 = load float, ptr %83, align 4
%85 = load i32, ptr %13, align 4
%86 = sitofp i32 %85 to float
%87 = fmul float %84, %86
%88 = fpext float %87 to double
%89 = fadd double %81, %88
%90 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
store double %89, ptr %90, align 16
%91 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%92 = load double, ptr %91, align 16
%93 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%94 = load double, ptr %93, align 16
%95 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%96 = load double, ptr %95, align 8
%97 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%98 = load double, ptr %97, align 8
%99 = fmul double %96, %98
%100 = call double @llvm.fmuladd.f64(double %92, double %94, double %99)
%101 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%102 = load double, ptr %101, align 16
%103 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%104 = load double, ptr %103, align 16
%105 = call double @llvm.fmuladd.f64(double %102, double %104, double %100)
store double %105, ptr %7, align 8
%106 = load double, ptr %7, align 8
%107 = load double, ptr %6, align 8
%108 = fcmp olt double %106, %107
br i1 %108, label %109, label %120
109: ; preds = %56
%110 = load double, ptr %7, align 8
store double %110, ptr %6, align 8
%111 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
%112 = load double, ptr %111, align 16
%113 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
store double %112, ptr %113, align 16
%114 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
%115 = load double, ptr %114, align 8
%116 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
store double %115, ptr %116, align 8
%117 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
%118 = load double, ptr %117, align 16
%119 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
store double %118, ptr %119, align 16
br label %120
120: ; preds = %109, %56
br label %121
121: ; preds = %120
%122 = load i32, ptr %13, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %13, align 4
%124 = load i32, ptr %13, align 4
%125 = icmp slt i32 %124, 2
br i1 %125, label %56, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %121
br label %126
126: ; preds = %._crit_edge, %31
br label %127
127: ; preds = %126
%128 = load i32, ptr %12, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %12, align 4
%130 = load i32, ptr %12, align 4
%131 = icmp slt i32 %130, 2
br i1 %131, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %127
br label %132
132: ; preds = %._crit_edge3, %17
br label %133
133: ; preds = %132
%134 = load i32, ptr %11, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %11, align 4
%136 = load i32, ptr %11, align 4
%137 = icmp slt i32 %136, 2
br i1 %137, label %17, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %133
br label %138
138: ; preds = %._crit_edge6, %2
%139 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 0
%140 = load double, ptr %139, align 16
%141 = load ptr, ptr %3, align 8
%142 = getelementptr inbounds double, ptr %141, i64 0
store double %140, ptr %142, align 8
%143 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 1
%144 = load double, ptr %143, align 8
%145 = load ptr, ptr %3, align 8
%146 = getelementptr inbounds double, ptr %145, i64 1
store double %144, ptr %146, align 8
%147 = getelementptr inbounds [3 x double], ptr %5, i64 0, i64 2
%148 = load double, ptr %147, align 16
%149 = load ptr, ptr %3, align 8
%150 = getelementptr inbounds double, ptr %149, i64 2
store double %148, ptr %150, align 8
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp913zmv09.c'
source_filename = "/tmp/tmp913zmv09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello, world...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @init()
%2 = call i32 @vty_puts(ptr noundef @.str)
%3 = call i32 (...) @bmmap_print()
%4 = call i32 (...) @pmmap_print()
%5 = call i32 (...) @halt()
ret void
}
declare i32 @init(...) #1
declare i32 @vty_puts(ptr noundef) #1
declare i32 @bmmap_print(...) #1
declare i32 @pmmap_print(...) #1
declare i32 @halt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp913zmv09.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello, world...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 (...) @init()
%2 = call i32 @vty_puts(ptr noundef @.str)
%3 = call i32 (...) @bmmap_print()
%4 = call i32 (...) @pmmap_print()
%5 = call i32 (...) @halt()
ret void
}
declare i32 @init(...) #1
declare i32 @vty_puts(ptr noundef) #1
declare i32 @bmmap_print(...) #1
declare i32 @pmmap_print(...) #1
declare i32 @halt(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplkhb5xyw.c'
source_filename = "/tmp/tmplkhb5xyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@ESRCH = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_pid(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @read_pid(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = call i32 (...) @getpid()
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %25
14: ; preds = %9
%15 = load i32, ptr %4, align 4
%16 = call i64 @kill(i32 noundef %15, i32 noundef 0)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i64, ptr @errno, align 8
%20 = load i64, ptr @ESRCH, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 0, ptr %2, align 4
br label %25
23: ; preds = %18, %14
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %23, %22, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @read_pid(ptr noundef) #1
declare i32 @getpid(...) #1
declare i64 @kill(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/tmplkhb5xyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@ESRCH = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_pid(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @read_pid(ptr noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, ptr %4, align 4
%11 = call i32 (...) @getpid()
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %25
14: ; preds = %9
%15 = load i32, ptr %4, align 4
%16 = call i64 @kill(i32 noundef %15, i32 noundef 0)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i64, ptr @errno, align 8
%20 = load i64, ptr @ESRCH, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 0, ptr %2, align 4
br label %25
23: ; preds = %18, %14
%24 = load i32, ptr %4, align 4
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %23, %22, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @read_pid(ptr noundef) #1
declare i32 @getpid(...) #1
declare i64 @kill(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/tmpaud3gmrc.c'
source_filename = "/tmp/tmpaud3gmrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACHashFilterBitCalculate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ASSERT(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @Crc32(i32 noundef -1, ptr noundef %8, i32 noundef 6)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = xor i32 %10, -1
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %24, %1
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 6
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load i32, ptr %4, align 4
%17 = shl i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = and i32 %18, 1
%20 = load i32, ptr %4, align 4
%21 = or i32 %20, %19
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %3, align 4
%23 = ashr i32 %22, 1
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %15
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %12, !llvm.loop !6
27: ; preds = %12
%28 = load i32, ptr %4, align 4
ret i32 %28
}
declare i32 @ASSERT(ptr noundef) #1
declare i32 @Crc32(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaud3gmrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACHashFilterBitCalculate(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ASSERT(ptr noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @Crc32(i32 noundef -1, ptr noundef %8, i32 noundef 6)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = xor i32 %10, -1
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 6
br i1 %13, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %23
%15 = load i32, ptr %4, align 4
%16 = shl i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = and i32 %17, 1
%19 = load i32, ptr %4, align 4
%20 = or i32 %19, %18
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = ashr i32 %21, 1
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %14
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 6
br i1 %27, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %1
%29 = load i32, ptr %4, align 4
ret i32 %29
}
declare i32 @ASSERT(ptr noundef) #1
declare i32 @Crc32(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp132w0z91.c'
source_filename = "/tmp/tmp132w0z91.c"
target datalayout = "e-m:e-p270: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/tmp132w0z91.c"
target datalayout = "e-m:e-p270: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/tmp7lbmvkm3.c'
source_filename = "/tmp/tmp7lbmvkm3.c"
target datalayout = "e-m:e-p270: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/tmp7lbmvkm3.c"
target datalayout = "e-m:e-p270: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/tmpprp379be.c'
source_filename = "/tmp/tmpprp379be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PIC18F4520_periferic() #0 {
%1 = call i32 (...) @p18_mssp()
%2 = call i32 (...) @p18_adc()
%3 = call i32 (...) @p18_int_pin()
%4 = call i32 (...) @p18_int_portb()
%5 = call i32 (...) @p18_tmr0()
%6 = call i32 (...) @p18_wdt()
%7 = call i32 (...) @p18_eeprom()
%8 = call i32 (...) @p18_tmr1()
%9 = call i32 (...) @p18_tmr2()
%10 = call i32 (...) @p18_tmr3()
%11 = call i32 @serial(i32 noundef 0)
ret void
}
declare i32 @p18_mssp(...) #1
declare i32 @p18_adc(...) #1
declare i32 @p18_int_pin(...) #1
declare i32 @p18_int_portb(...) #1
declare i32 @p18_tmr0(...) #1
declare i32 @p18_wdt(...) #1
declare i32 @p18_eeprom(...) #1
declare i32 @p18_tmr1(...) #1
declare i32 @p18_tmr2(...) #1
declare i32 @p18_tmr3(...) #1
declare i32 @serial(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/tmpprp379be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PIC18F4520_periferic() #0 {
%1 = call i32 (...) @p18_mssp()
%2 = call i32 (...) @p18_adc()
%3 = call i32 (...) @p18_int_pin()
%4 = call i32 (...) @p18_int_portb()
%5 = call i32 (...) @p18_tmr0()
%6 = call i32 (...) @p18_wdt()
%7 = call i32 (...) @p18_eeprom()
%8 = call i32 (...) @p18_tmr1()
%9 = call i32 (...) @p18_tmr2()
%10 = call i32 (...) @p18_tmr3()
%11 = call i32 @serial(i32 noundef 0)
ret void
}
declare i32 @p18_mssp(...) #1
declare i32 @p18_adc(...) #1
declare i32 @p18_int_pin(...) #1
declare i32 @p18_int_portb(...) #1
declare i32 @p18_tmr0(...) #1
declare i32 @p18_wdt(...) #1
declare i32 @p18_eeprom(...) #1
declare i32 @p18_tmr1(...) #1
declare i32 @p18_tmr2(...) #1
declare i32 @p18_tmr3(...) #1
declare i32 @serial(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/tmp8dtfo1yj.c'
source_filename = "/tmp/tmp8dtfo1yj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8dtfo1yj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1mr5sngp.c'
source_filename = "/tmp/tmp1mr5sngp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NMM_GET_CPU(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 @nmm_get_cpu(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @nmm_get_cpu(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/tmp1mr5sngp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NMM_GET_CPU(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 @nmm_get_cpu(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @nmm_get_cpu(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/tmp5cx1ejui.c'
source_filename = "/tmp/tmp5cx1ejui.c"
target datalayout = "e-m:e-p270: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/tmp5cx1ejui.c"
target datalayout = "e-m:e-p270: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/tmp3d_co6rg.c'
source_filename = "/tmp/tmp3d_co6rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%f%f\00", align 1
@.str.2 = private unnamed_addr constant [59 x i8] c"Property %d: This property will begin eroding in year %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"END OF OUTPUT.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%9 = call float @acos(i32 noundef -1)
store float %9, ptr %4, align 4
store i32 1, ptr %2, align 4
br label %10
10: ; preds = %30, %0
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %33
14: ; preds = %10
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
%16 = load float, ptr %4, align 4
%17 = load float, ptr %5, align 4
%18 = load float, ptr %5, align 4
%19 = load float, ptr %6, align 4
%20 = load float, ptr %6, align 4
%21 = fmul float %19, %20
%22 = call float @llvm.fmuladd.f32(float %17, float %18, float %21)
%23 = fmul float %16, %22
%24 = fdiv float %23, 1.000000e+02
store float %24, ptr %7, align 4
%25 = load i32, ptr %2, align 4
%26 = load float, ptr %7, align 4
%27 = fptosi float %26 to i32
%28 = add nsw i32 %27, 1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %25, i32 noundef %28)
br label %30
30: ; preds = %14
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare float @acos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
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/tmp3d_co6rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%f%f\00", align 1
@.str.2 = private unnamed_addr constant [59 x i8] c"Property %d: This property will begin eroding in year %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"END OF OUTPUT.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%9 = call float @acos(i32 noundef -1)
store float %9, ptr %4, align 4
store i32 1, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %29
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
%15 = load float, ptr %4, align 4
%16 = load float, ptr %5, align 4
%17 = load float, ptr %5, align 4
%18 = load float, ptr %6, align 4
%19 = load float, ptr %6, align 4
%20 = fmul float %18, %19
%21 = call float @llvm.fmuladd.f32(float %16, float %17, float %20)
%22 = fmul float %15, %21
%23 = fdiv float %22, 1.000000e+02
store float %23, ptr %7, align 4
%24 = load i32, ptr %2, align 4
%25 = load float, ptr %7, align 4
%26 = fptosi float %25 to i32
%27 = add nsw i32 %26, 1
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24, i32 noundef %27)
br label %29
29: ; preds = %13
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare float @acos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
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" }
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/tmpfmlmp6cn.c'
source_filename = "/tmp/tmpfmlmp6cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @y0(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_y0_f64(double noundef %3)
ret double %4
}
declare double @__ocml_y0_f64(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/tmpfmlmp6cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @y0(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_y0_f64(double noundef %3)
ret double %4
}
declare double @__ocml_y0_f64(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/tmpvzjludl8.c'
source_filename = "/tmp/tmpvzjludl8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DiffLitchfield(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 2.392000e+05, ptr %5, align 8
store double 3.156300e+03, ptr %6, align 8
store double 7.908200e+14, ptr %7, align 8
store double 1.570600e+01, ptr %8, align 8
store double 6.858900e-01, ptr %9, align 8
%11 = load double, ptr %5, align 8
%12 = load double, ptr %6, align 8
%13 = fneg double %12
%14 = load double, ptr %4, align 8
%15 = fdiv double %13, %14
%16 = call i32 @exp(double noundef %15)
%17 = sitofp i32 %16 to double
%18 = fmul double %11, %17
%19 = load double, ptr %7, align 8
%20 = fneg double %19
%21 = load double, ptr %3, align 8
%22 = load double, ptr %8, align 8
%23 = call i32 @pow(double noundef %21, double noundef %22)
%24 = sitofp i32 %23 to double
%25 = fmul double %20, %24
%26 = call i32 @exp(double noundef %25)
%27 = sub nsw i32 1, %26
%28 = load double, ptr %3, align 8
%29 = load double, ptr %9, align 8
%30 = call i32 @pow(double noundef %28, double noundef %29)
%31 = add nsw i32 %27, %30
%32 = sitofp i32 %31 to double
%33 = fmul double %18, %32
store double %33, ptr %10, align 8
%34 = load double, ptr %10, align 8
%35 = fmul double 0x3D719799812DEA11, %34
ret double %35
}
declare i32 @exp(double noundef) #1
declare i32 @pow(double 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/tmpvzjludl8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DiffLitchfield(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 2.392000e+05, ptr %5, align 8
store double 3.156300e+03, ptr %6, align 8
store double 7.908200e+14, ptr %7, align 8
store double 1.570600e+01, ptr %8, align 8
store double 6.858900e-01, ptr %9, align 8
%11 = load double, ptr %5, align 8
%12 = load double, ptr %6, align 8
%13 = fneg double %12
%14 = load double, ptr %4, align 8
%15 = fdiv double %13, %14
%16 = call i32 @exp(double noundef %15)
%17 = sitofp i32 %16 to double
%18 = fmul double %11, %17
%19 = load double, ptr %7, align 8
%20 = fneg double %19
%21 = load double, ptr %3, align 8
%22 = load double, ptr %8, align 8
%23 = call i32 @pow(double noundef %21, double noundef %22)
%24 = sitofp i32 %23 to double
%25 = fmul double %20, %24
%26 = call i32 @exp(double noundef %25)
%27 = sub nsw i32 1, %26
%28 = load double, ptr %3, align 8
%29 = load double, ptr %9, align 8
%30 = call i32 @pow(double noundef %28, double noundef %29)
%31 = add nsw i32 %27, %30
%32 = sitofp i32 %31 to double
%33 = fmul double %18, %32
store double %33, ptr %10, align 8
%34 = load double, ptr %10, align 8
%35 = fmul double 0x3D719799812DEA11, %34
ret double %35
}
declare i32 @exp(double noundef) #1
declare i32 @pow(double 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/tmp6o6ohm23.c'
source_filename = "/tmp/tmp6o6ohm23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @current_or_last_math(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 %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @isnan(double noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load double, ptr %5, align 8
store double %10, ptr %3, align 8
br label %13
11: ; preds = %2
%12 = load double, ptr %4, align 8
store double %12, ptr %3, align 8
br label %13
13: ; preds = %11, %9
%14 = load double, ptr %3, align 8
ret double %14
}
declare i64 @isnan(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/tmp6o6ohm23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @current_or_last_math(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 %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @isnan(double noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load double, ptr %5, align 8
store double %10, ptr %3, align 8
br label %13
11: ; preds = %2
%12 = load double, ptr %4, align 8
store double %12, ptr %3, align 8
br label %13
13: ; preds = %11, %9
%14 = load double, ptr %3, align 8
ret double %14
}
declare i64 @isnan(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/tmpr8q9stpk.c'
source_filename = "/tmp/tmpr8q9stpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Enter m, x, y separated by space (or newline);\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c" (units: pure, km, km; e.g. 10 100 40):\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"... input error; exiting\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"\0AResults from Test I:\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c" bed = %9.3f (m) tau_c = %10.3f (kPa)\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c" u = %9.3f (m/a) v = %10.3f (m/a)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0x417E1853E0000000, ptr %10, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
18: ; preds = %0
%19 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
store i32 %19, ptr %9, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp ne i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
24: ; preds = %18
%25 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
30: ; preds = %24
%31 = load double, ptr %2, align 8
%32 = load double, ptr %3, align 8
%33 = fmul double %32, 1.000000e+03
%34 = load double, ptr %4, align 8
%35 = fmul double %34, 1.000000e+03
%36 = call i32 @exactI(double noundef %31, double noundef %33, double noundef %35, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%38 = load double, ptr %5, align 8
%39 = load double, ptr %6, align 8
%40 = fdiv double %39, 1.000000e+03
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %38, double noundef %40)
%42 = load double, ptr %7, align 8
%43 = fmul double %42, 0x417E1853E0000000
%44 = load double, ptr %8, align 8
%45 = fmul double %44, 0x417E1853E0000000
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %43, double noundef %45)
store i32 0, ptr %1, align 4
br label %47
47: ; preds = %30, %28, %22, %16
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exactI(double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr8q9stpk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Enter m, x, y separated by space (or newline);\0A\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c" (units: pure, km, km; e.g. 10 100 40):\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"... input error; exiting\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"\0AResults from Test I:\0A\00", align 1
@.str.5 = private unnamed_addr constant [44 x i8] c" bed = %9.3f (m) tau_c = %10.3f (kPa)\0A\00", align 1
@.str.6 = private unnamed_addr constant [44 x i8] c" u = %9.3f (m/a) v = %10.3f (m/a)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0x417E1853E0000000, ptr %10, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %9, align 4
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
18: ; preds = %0
%19 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %3)
store i32 %19, ptr %9, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp ne i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
24: ; preds = %18
%25 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %4)
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %47
30: ; preds = %24
%31 = load double, ptr %2, align 8
%32 = load double, ptr %3, align 8
%33 = fmul double %32, 1.000000e+03
%34 = load double, ptr %4, align 8
%35 = fmul double %34, 1.000000e+03
%36 = call i32 @exactI(double noundef %31, double noundef %33, double noundef %35, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%38 = load double, ptr %5, align 8
%39 = load double, ptr %6, align 8
%40 = fdiv double %39, 1.000000e+03
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %38, double noundef %40)
%42 = load double, ptr %7, align 8
%43 = fmul double %42, 0x417E1853E0000000
%44 = load double, ptr %8, align 8
%45 = fmul double %44, 0x417E1853E0000000
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %43, double noundef %45)
store i32 0, ptr %1, align 4
br label %47
47: ; preds = %30, %28, %22, %16
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @exactI(double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmwq0mqp_.c'
source_filename = "/tmp/tmpmwq0mqp_.c"
target datalayout = "e-m:e-p270: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/tmpmwq0mqp_.c"
target datalayout = "e-m:e-p270: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/tmpetota5sp.c'
source_filename = "/tmp/tmpetota5sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Side 1 Side 2 Hypotenuse\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%6d %6d %10d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %2, align 4
br label %6
6: ; preds = %44, %0
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 1000
br i1 %8, label %9, label %47
9: ; preds = %6
%10 = load i32, ptr %2, align 4
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %40, %9
%12 = load i32, ptr %3, align 4
%13 = icmp sle i32 %12, 1000
br i1 %13, label %14, label %43
14: ; preds = %11
%15 = load i32, ptr %3, align 4
store i32 %15, ptr %4, align 4
br label %16
16: ; preds = %36, %14
%17 = load i32, ptr %4, align 4
%18 = icmp sle i32 %17, 1000
br i1 %18, label %19, label %39
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = mul nsw i32 %21, %22
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = mul nsw i32 %24, %25
%27 = add nsw i32 %23, %26
%28 = call i32 @sqrt(i32 noundef %27)
%29 = icmp eq i32 %20, %28
br i1 %29, label %30, label %35
30: ; preds = %19
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %4, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %31, i32 noundef %32, i32 noundef %33)
br label %35
35: ; preds = %30, %19
br label %36
36: ; preds = %35
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
br label %16, !llvm.loop !6
39: ; preds = %16
br label %40
40: ; preds = %39
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %11, !llvm.loop !8
43: ; preds = %11
br label %44
44: ; preds = %43
%45 = load i32, ptr %2, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %2, align 4
br label %6, !llvm.loop !9
47: ; preds = %6
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sqrt(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/tmpetota5sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Side 1 Side 2 Hypotenuse\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"%6d %6d %10d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 1000
br i1 %7, label %.lr.ph5, label %50
.lr.ph5: ; preds = %0
br label %8
8: ; preds = %.lr.ph5, %45
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sle i32 %10, 1000
br i1 %11, label %.lr.ph2, label %44
.lr.ph2: ; preds = %8
br label %12
12: ; preds = %.lr.ph2, %39
%13 = load i32, ptr %3, align 4
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %14, 1000
br i1 %15, label %.lr.ph, label %38
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %33
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = mul nsw i32 %21, %22
%24 = add nsw i32 %20, %23
%25 = call i32 @sqrt(i32 noundef %24)
%26 = icmp eq i32 %17, %25
br i1 %26, label %27, label %32
27: ; preds = %16
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %4, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %28, i32 noundef %29, i32 noundef %30)
br label %32
32: ; preds = %27, %16
br label %33
33: ; preds = %32
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp sle i32 %36, 1000
br i1 %37, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %38
38: ; preds = %._crit_edge, %12
br label %39
39: ; preds = %38
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp sle i32 %42, 1000
br i1 %43, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %44
44: ; preds = %._crit_edge3, %8
br label %45
45: ; preds = %44
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %48, 1000
br i1 %49, label %8, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %45
br label %50
50: ; preds = %._crit_edge6, %0
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sqrt(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/tmpjpq6lwpj.c'
source_filename = "/tmp/tmpjpq6lwpj.c"
target datalayout = "e-m:e-p270: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/tmpjpq6lwpj.c"
target datalayout = "e-m:e-p270: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/tmp0fn_q7nu.c'
source_filename = "/tmp/tmp0fn_q7nu.c"
target datalayout = "e-m:e-p270: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/tmp0fn_q7nu.c"
target datalayout = "e-m:e-p270: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/tmp8txhbl3i.c'
source_filename = "/tmp/tmp8txhbl3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %3, align 4
br label %5
5: ; preds = %13, %0
%6 = load i32, ptr %3, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = sub nsw i32 %10, 1
%12 = mul nsw i32 %9, %11
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %8
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
br label %5, !llvm.loop !6
16: ; preds = %5
%17 = load i32, ptr %2, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8txhbl3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sgt i32 %5, 1
br i1 %6, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %12
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = sub nsw i32 %9, 1
%11 = mul nsw i32 %8, %10
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %7
%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 = icmp sgt i32 %15, 1
br i1 %16, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
%18 = load i32, ptr %2, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_hfyxhf2.c'
source_filename = "/tmp/tmp_hfyxhf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @determinant(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca [4 x [4 x double]], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %9, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @__DSVERIFIER_assert(i32 noundef 0)
br label %126
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds [4 x double], ptr %19, i64 0
%21 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
%22 = load double, ptr %21, align 8
store double %22, ptr %9, align 8
br label %125
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %46
26: ; preds = %23
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds [4 x double], ptr %27, i64 0
%29 = getelementptr inbounds [4 x double], ptr %28, i64 0, i64 0
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds [4 x double], ptr %31, i64 1
%33 = getelementptr inbounds [4 x double], ptr %32, i64 0, i64 1
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds [4 x double], ptr %35, i64 1
%37 = getelementptr inbounds [4 x double], ptr %36, i64 0, i64 0
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds [4 x double], ptr %39, i64 0
%41 = getelementptr inbounds [4 x double], ptr %40, i64 0, i64 1
%42 = load double, ptr %41, align 8
%43 = fmul double %38, %42
%44 = fneg double %43
%45 = call double @llvm.fmuladd.f64(double %30, double %34, double %44)
store double %45, ptr %9, align 8
br label %124
46: ; preds = %23
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %47
47: ; preds = %120, %46
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %123
51: ; preds = %47
store i32 0, ptr %5, align 4
br label %52
52: ; preds = %98, %51
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %4, align 4
%55 = sub nsw i32 %54, 1
%56 = icmp slt i32 %53, %55
br i1 %56, label %57, label %101
57: ; preds = %52
store i32 1, ptr %5, align 4
br label %58
58: ; preds = %94, %57
%59 = load i32, ptr %5, align 4
%60 = load i32, ptr %4, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %97
62: ; preds = %58
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
br label %63
63: ; preds = %90, %62
%64 = load i32, ptr %6, align 4
%65 = load i32, ptr %4, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %93
67: ; preds = %63
%68 = load i32, ptr %6, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp eq i32 %68, %69
br i1 %70, label %71, label %72
71: ; preds = %67
br label %90
72: ; preds = %67
%73 = load ptr, ptr %3, align 8
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [4 x double], ptr %73, i64 %75
%77 = load i32, ptr %6, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x double], ptr %76, i64 0, i64 %78
%80 = load double, ptr %79, align 8
%81 = load i32, ptr %5, align 4
%82 = sub nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [4 x [4 x double]], ptr %10, i64 0, i64 %83
%85 = load i32, ptr %8, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [4 x double], ptr %84, i64 0, i64 %86
store double %80, ptr %87, align 8
%88 = load i32, ptr %8, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %8, align 4
br label %90
90: ; preds = %72, %71
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %6, align 4
br label %63, !llvm.loop !6
93: ; preds = %63
br label %94
94: ; preds = %93
%95 = load i32, ptr %5, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %5, align 4
br label %58, !llvm.loop !8
97: ; preds = %58
br label %98
98: ; preds = %97
%99 = load i32, ptr %5, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %5, align 4
br label %52, !llvm.loop !9
101: ; preds = %52
%102 = load i32, ptr %7, align 4
%103 = sitofp i32 %102 to double
%104 = fadd double 1.000000e+00, %103
%105 = fadd double %104, 1.000000e+00
%106 = call double @internal_pow(double noundef -1.000000e+00, double noundef %105)
%107 = load ptr, ptr %3, align 8
%108 = getelementptr inbounds [4 x double], ptr %107, i64 0
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [4 x double], ptr %108, i64 0, i64 %110
%112 = load double, ptr %111, align 8
%113 = fmul double %106, %112
%114 = getelementptr inbounds [4 x [4 x double]], ptr %10, i64 0, i64 0
%115 = load i32, ptr %4, align 4
%116 = sub nsw i32 %115, 1
%117 = call double @determinant(ptr noundef %114, i32 noundef %116)
%118 = load double, ptr %9, align 8
%119 = call double @llvm.fmuladd.f64(double %113, double %117, double %118)
store double %119, ptr %9, align 8
br label %120
120: ; preds = %101
%121 = load i32, ptr %7, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %7, align 4
br label %47, !llvm.loop !10
123: ; preds = %47
br label %124
124: ; preds = %123, %26
br label %125
125: ; preds = %124, %18
br label %126
126: ; preds = %125, %13
%127 = load double, ptr %9, align 8
ret double %127
}
declare i32 @__DSVERIFIER_assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @internal_pow(double 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" }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_hfyxhf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @determinant(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca [4 x [4 x double]], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store double 0.000000e+00, ptr %9, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @__DSVERIFIER_assert(i32 noundef 0)
br label %135
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds [4 x double], ptr %19, i64 0
%21 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
%22 = load double, ptr %21, align 8
store double %22, ptr %9, align 8
br label %134
23: ; preds = %15
%24 = load i32, ptr %4, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %46
26: ; preds = %23
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds [4 x double], ptr %27, i64 0
%29 = getelementptr inbounds [4 x double], ptr %28, i64 0, i64 0
%30 = load double, ptr %29, align 8
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds [4 x double], ptr %31, i64 1
%33 = getelementptr inbounds [4 x double], ptr %32, i64 0, i64 1
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds [4 x double], ptr %35, i64 1
%37 = getelementptr inbounds [4 x double], ptr %36, i64 0, i64 0
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds [4 x double], ptr %39, i64 0
%41 = getelementptr inbounds [4 x double], ptr %40, i64 0, i64 1
%42 = load double, ptr %41, align 8
%43 = fmul double %38, %42
%44 = fneg double %43
%45 = call double @llvm.fmuladd.f64(double %30, double %34, double %44)
store double %45, ptr %9, align 8
br label %133
46: ; preds = %23
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph8, label %132
.lr.ph8: ; preds = %46
br label %50
50: ; preds = %.lr.ph8, %126
store i32 0, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = sub nsw i32 %52, 1
%54 = icmp slt i32 %51, %53
br i1 %54, label %.lr.ph5, label %107
.lr.ph5: ; preds = %50
br label %55
55: ; preds = %.lr.ph5, %100
store i32 1, ptr %5, align 4
%56 = load i32, ptr %5, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph2, label %99
.lr.ph2: ; preds = %55
br label %59
59: ; preds = %.lr.ph2, %93
store i32 0, ptr %8, align 4
store i32 0, ptr %6, align 4
%60 = load i32, ptr %6, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph, label %92
.lr.ph: ; preds = %59
br label %63
63: ; preds = %.lr.ph, %86
%64 = load i32, ptr %6, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %68
67: ; preds = %63
br label %86
68: ; preds = %63
%69 = load ptr, ptr %3, align 8
%70 = load i32, ptr %5, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [4 x double], ptr %69, i64 %71
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [4 x double], ptr %72, i64 0, i64 %74
%76 = load double, ptr %75, align 8
%77 = load i32, ptr %5, align 4
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [4 x [4 x double]], ptr %10, i64 0, i64 %79
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [4 x double], ptr %80, i64 0, i64 %82
store double %76, ptr %83, align 8
%84 = load i32, ptr %8, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %8, align 4
br label %86
86: ; preds = %68, %67
%87 = load i32, ptr %6, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %6, align 4
%89 = load i32, ptr %6, align 4
%90 = load i32, ptr %4, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %63, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %86
br label %92
92: ; preds = %._crit_edge, %59
br label %93
93: ; preds = %92
%94 = load i32, ptr %5, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %5, align 4
%96 = load i32, ptr %5, align 4
%97 = load i32, ptr %4, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %59, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %93
br label %99
99: ; preds = %._crit_edge3, %55
br label %100
100: ; preds = %99
%101 = load i32, ptr %5, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %5, align 4
%103 = load i32, ptr %5, align 4
%104 = load i32, ptr %4, align 4
%105 = sub nsw i32 %104, 1
%106 = icmp slt i32 %103, %105
br i1 %106, label %55, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %100
br label %107
107: ; preds = %._crit_edge6, %50
%108 = load i32, ptr %7, align 4
%109 = sitofp i32 %108 to double
%110 = fadd double 1.000000e+00, %109
%111 = fadd double %110, 1.000000e+00
%112 = call double @internal_pow(double noundef -1.000000e+00, double noundef %111)
%113 = load ptr, ptr %3, align 8
%114 = getelementptr inbounds [4 x double], ptr %113, i64 0
%115 = load i32, ptr %7, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [4 x double], ptr %114, i64 0, i64 %116
%118 = load double, ptr %117, align 8
%119 = fmul double %112, %118
%120 = getelementptr inbounds [4 x [4 x double]], ptr %10, i64 0, i64 0
%121 = load i32, ptr %4, align 4
%122 = sub nsw i32 %121, 1
%123 = call double @determinant(ptr noundef %120, i32 noundef %122)
%124 = load double, ptr %9, align 8
%125 = call double @llvm.fmuladd.f64(double %119, double %123, double %124)
store double %125, ptr %9, align 8
br label %126
126: ; preds = %107
%127 = load i32, ptr %7, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %7, align 4
%129 = load i32, ptr %7, align 4
%130 = load i32, ptr %4, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %50, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %126
br label %132
132: ; preds = %._crit_edge9, %46
br label %133
133: ; preds = %132, %26
br label %134
134: ; preds = %133, %18
br label %135
135: ; preds = %134, %13
%136 = load double, ptr %9, align 8
ret double %136
}
declare i32 @__DSVERIFIER_assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @internal_pow(double 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" }
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpfs93zkwe.c'
source_filename = "/tmp/tmpfs93zkwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca 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 ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%10 = call i64 @mfspr(i32 noundef 17)
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %2, align 8
%12 = or i64 %11, 65536
%13 = trunc i64 %12 to i32
%14 = call i32 @mtspr(i32 noundef 17, i32 noundef %13)
%15 = call i32 @mtspr(i32 noundef 10241, i32 noundef -559038737)
%16 = call i32 @mtspr(i32 noundef 10242, i32 noundef -889275714)
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %45, %0
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 16
br i1 %19, label %20, label %48
20: ; preds = %17
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 1048576, %21
%23 = sext i32 %22 to i64
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %4, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 1114112, %25
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %5, align 8
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 1179648, %29
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %6, align 8
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 16, %33
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %4, align 8
store i8 %35, ptr %36, align 1
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 32, %37
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %5, align 8
store i8 %39, ptr %40, align 1
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 48, %41
%43 = trunc i32 %42 to i8
%44 = load ptr, ptr %6, align 8
store i8 %43, ptr %44, align 1
br label %45
45: ; preds = %20
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %3, align 4
br label %17, !llvm.loop !6
48: ; preds = %17
store ptr inttoptr (i64 2097144 to ptr), ptr %7, align 8
store ptr inttoptr (i64 4292870144 to ptr), ptr %8, align 8
store ptr inttoptr (i64 4294967288 to ptr), ptr %9, align 8
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
store i8 -34, ptr %50, align 1
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 1
store i8 -83, ptr %52, align 1
%53 = load ptr, ptr %7, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 2
store i8 -66, ptr %54, align 1
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 3
store i8 -17, ptr %56, align 1
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 4
store i8 -54, ptr %58, align 1
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 5
store i8 -2, ptr %60, align 1
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 6
store i8 -70, ptr %62, align 1
%63 = load ptr, ptr %7, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 7
store i8 -66, ptr %64, align 1
%65 = load ptr, ptr %8, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 0
store i8 -34, ptr %66, align 1
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
store i8 -83, ptr %68, align 1
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 2
store i8 -66, ptr %70, align 1
%71 = load ptr, ptr %8, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 3
store i8 -17, ptr %72, align 1
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 4
store i8 -54, ptr %74, align 1
%75 = load ptr, ptr %8, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 5
store i8 -2, ptr %76, align 1
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 6
store i8 -70, ptr %78, align 1
%79 = load ptr, ptr %8, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 7
store i8 -66, ptr %80, align 1
%81 = load ptr, ptr %9, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 0
store i8 -34, ptr %82, align 1
%83 = load ptr, ptr %9, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 1
store i8 -83, ptr %84, align 1
%85 = load ptr, ptr %9, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 2
store i8 -66, ptr %86, align 1
%87 = load ptr, ptr %9, align 8
%88 = getelementptr inbounds i8, ptr %87, i64 3
store i8 -17, ptr %88, align 1
%89 = load ptr, ptr %9, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 4
store i8 -54, ptr %90, align 1
%91 = load ptr, ptr %9, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 5
store i8 -2, ptr %92, align 1
%93 = load ptr, ptr %9, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 6
store i8 -70, ptr %94, align 1
%95 = load ptr, ptr %9, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 7
store i8 -66, ptr %96, align 1
br label %97
97: ; preds = %48, %97
br label %97
}
declare i64 @mfspr(i32 noundef) #1
declare i32 @mtspr(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfs93zkwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca 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 ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%10 = call i64 @mfspr(i32 noundef 17)
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %2, align 8
%12 = or i64 %11, 65536
%13 = trunc i64 %12 to i32
%14 = call i32 @mtspr(i32 noundef 17, i32 noundef %13)
%15 = call i32 @mtspr(i32 noundef 10241, i32 noundef -559038737)
%16 = call i32 @mtspr(i32 noundef 10242, i32 noundef -889275714)
store i32 0, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 16
br i1 %18, label %.lr.ph, label %49
.lr.ph: ; preds = %0
br label %19
19: ; preds = %.lr.ph, %44
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 1048576, %20
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %4, align 8
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 1114112, %24
%26 = sext i32 %25 to i64
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %5, align 8
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 1179648, %28
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %6, align 8
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 16, %32
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %4, align 8
store i8 %34, ptr %35, align 1
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 32, %36
%38 = trunc i32 %37 to i8
%39 = load ptr, ptr %5, align 8
store i8 %38, ptr %39, align 1
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 48, %40
%42 = trunc i32 %41 to i8
%43 = load ptr, ptr %6, align 8
store i8 %42, ptr %43, align 1
br label %44
44: ; preds = %19
%45 = load i32, ptr %3, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %47, 16
br i1 %48, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %49
49: ; preds = %._crit_edge, %0
store ptr inttoptr (i64 2097144 to ptr), ptr %7, align 8
store ptr inttoptr (i64 4292870144 to ptr), ptr %8, align 8
store ptr inttoptr (i64 4294967288 to ptr), ptr %9, align 8
%50 = load ptr, ptr %7, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 0
store i8 -34, ptr %51, align 1
%52 = load ptr, ptr %7, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
store i8 -83, ptr %53, align 1
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 2
store i8 -66, ptr %55, align 1
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 3
store i8 -17, ptr %57, align 1
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 4
store i8 -54, ptr %59, align 1
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 5
store i8 -2, ptr %61, align 1
%62 = load ptr, ptr %7, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 6
store i8 -70, ptr %63, align 1
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 7
store i8 -66, ptr %65, align 1
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 0
store i8 -34, ptr %67, align 1
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 1
store i8 -83, ptr %69, align 1
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %70, i64 2
store i8 -66, ptr %71, align 1
%72 = load ptr, ptr %8, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 3
store i8 -17, ptr %73, align 1
%74 = load ptr, ptr %8, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 4
store i8 -54, ptr %75, align 1
%76 = load ptr, ptr %8, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 5
store i8 -2, ptr %77, align 1
%78 = load ptr, ptr %8, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 6
store i8 -70, ptr %79, align 1
%80 = load ptr, ptr %8, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 7
store i8 -66, ptr %81, align 1
%82 = load ptr, ptr %9, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 0
store i8 -34, ptr %83, align 1
%84 = load ptr, ptr %9, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 1
store i8 -83, ptr %85, align 1
%86 = load ptr, ptr %9, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 2
store i8 -66, ptr %87, align 1
%88 = load ptr, ptr %9, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 3
store i8 -17, ptr %89, align 1
%90 = load ptr, ptr %9, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 4
store i8 -54, ptr %91, align 1
%92 = load ptr, ptr %9, align 8
%93 = getelementptr inbounds i8, ptr %92, i64 5
store i8 -2, ptr %93, align 1
%94 = load ptr, ptr %9, align 8
%95 = getelementptr inbounds i8, ptr %94, i64 6
store i8 -70, ptr %95, align 1
%96 = load ptr, ptr %9, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 7
store i8 -66, ptr %97, align 1
br label %98
98: ; preds = %98, %49
br label %98
}
declare i64 @mfspr(i32 noundef) #1
declare i32 @mtspr(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnzhww9gh.c'
source_filename = "/tmp/tmpnzhww9gh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Antes del intercambio: x=%d, y=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Despues del intercambio: x=%d, y=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 263, ptr %2, align 4
store i32 161, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %5)
%7 = call i32 @swap(ptr noundef %2, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @swap(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/tmpnzhww9gh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Antes del intercambio: x=%d, y=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"Despues del intercambio: x=%d, y=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 263, ptr %2, align 4
store i32 161, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %5)
%7 = call i32 @swap(ptr noundef %2, ptr noundef %3)
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @swap(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/tmp8i92uz9h.c'
source_filename = "/tmp/tmp8i92uz9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pack_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strcmp(ptr noundef %10, ptr noundef @.str)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = call ptr @malloc(i32 noundef 2)
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strcpy(ptr noundef %15, ptr noundef @.str)
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %2, align 8
br label %64
18: ; preds = %1
%19 = load ptr, ptr %3, align 8
%20 = call ptr @get_filename(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %3, align 8
%22 = call ptr @get_dir_path(ptr noundef %21)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call ptr @pack_path(ptr noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %6, align 8
%26 = call i32 @free(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.1)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %18
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %2, align 8
br label %64
32: ; preds = %18
%33 = load ptr, ptr %5, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.2)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %32
%37 = load ptr, ptr %7, align 8
%38 = call ptr @get_dir_path(ptr noundef %37)
store ptr %38, ptr %8, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @free(ptr noundef %39)
%41 = load ptr, ptr %8, align 8
store ptr %41, ptr %2, align 8
br label %64
42: ; preds = %32
%43 = load ptr, ptr %3, align 8
%44 = call i32 @strlen(ptr noundef %43)
%45 = call ptr @malloc(i32 noundef %44)
store ptr %45, ptr %9, align 8
%46 = load ptr, ptr %9, align 8
%47 = call i32 @strcpy(ptr noundef %46, ptr noundef @.str.3)
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %7, align 8
%50 = call i32 @strcat(ptr noundef %48, ptr noundef %49)
%51 = load ptr, ptr %7, align 8
%52 = call i64 @strcmp(ptr noundef %51, ptr noundef @.str)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %42
%55 = load ptr, ptr %9, align 8
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str)
br label %57
57: ; preds = %54, %42
%58 = load ptr, ptr %9, align 8
%59 = load ptr, ptr %5, align 8
%60 = call i32 @strcat(ptr noundef %58, ptr noundef %59)
%61 = load ptr, ptr %7, align 8
%62 = call i32 @free(ptr noundef %61)
%63 = load ptr, ptr %9, align 8
store ptr %63, ptr %2, align 8
br label %64
64: ; preds = %57, %36, %30, %13
%65 = load ptr, ptr %2, align 8
ret ptr %65
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @get_filename(ptr noundef) #1
declare ptr @get_dir_path(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @strlen(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/tmp8i92uz9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pack_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strcmp(ptr noundef %10, ptr noundef @.str)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = call ptr @malloc(i32 noundef 2)
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strcpy(ptr noundef %15, ptr noundef @.str)
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %2, align 8
br label %64
18: ; preds = %1
%19 = load ptr, ptr %3, align 8
%20 = call ptr @get_filename(ptr noundef %19)
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %3, align 8
%22 = call ptr @get_dir_path(ptr noundef %21)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call ptr @pack_path(ptr noundef %23)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %6, align 8
%26 = call i32 @free(ptr noundef %25)
%27 = load ptr, ptr %5, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.1)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %18
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %2, align 8
br label %64
32: ; preds = %18
%33 = load ptr, ptr %5, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.2)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %32
%37 = load ptr, ptr %7, align 8
%38 = call ptr @get_dir_path(ptr noundef %37)
store ptr %38, ptr %8, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @free(ptr noundef %39)
%41 = load ptr, ptr %8, align 8
store ptr %41, ptr %2, align 8
br label %64
42: ; preds = %32
%43 = load ptr, ptr %3, align 8
%44 = call i32 @strlen(ptr noundef %43)
%45 = call ptr @malloc(i32 noundef %44)
store ptr %45, ptr %9, align 8
%46 = load ptr, ptr %9, align 8
%47 = call i32 @strcpy(ptr noundef %46, ptr noundef @.str.3)
%48 = load ptr, ptr %9, align 8
%49 = load ptr, ptr %7, align 8
%50 = call i32 @strcat(ptr noundef %48, ptr noundef %49)
%51 = load ptr, ptr %7, align 8
%52 = call i64 @strcmp(ptr noundef %51, ptr noundef @.str)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %42
%55 = load ptr, ptr %9, align 8
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str)
br label %57
57: ; preds = %54, %42
%58 = load ptr, ptr %9, align 8
%59 = load ptr, ptr %5, align 8
%60 = call i32 @strcat(ptr noundef %58, ptr noundef %59)
%61 = load ptr, ptr %7, align 8
%62 = call i32 @free(ptr noundef %61)
%63 = load ptr, ptr %9, align 8
store ptr %63, ptr %2, align 8
br label %64
64: ; preds = %57, %36, %30, %13
%65 = load ptr, ptr %2, align 8
ret ptr %65
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @get_filename(ptr noundef) #1
declare ptr @get_dir_path(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @strlen(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/tmpdpl42b52.c'
source_filename = "/tmp/tmpdpl42b52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"vfork\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cat\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"PAGER\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"/usr/bin/pager\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"/usr/share/games/bsdgames/cribbage.instr\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"open %s\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"dup2\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"sh\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @instructions() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 @vfork() #4
store i32 %5, ptr %3, align 4
switch i32 %5, label %41 [
i32 -1, label %6
i32 0, label %8
]
6: ; preds = %0
%7 = call i32 @err(i32 noundef 1, ptr noundef @.str)
br label %8
8: ; preds = %0, %6
%9 = call i32 @isatty(i32 noundef 1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %8
store ptr @.str.1, ptr %4, align 8
br label %22
12: ; preds = %8
%13 = call ptr @getenv(ptr noundef @.str.2)
store ptr %13, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15, %12
store ptr @.str.3, ptr %4, align 8
br label %21
21: ; preds = %20, %15
br label %22
22: ; preds = %21, %11
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef @.str.4, i32 noundef %23)
store i32 %24, ptr %2, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = call i32 (ptr, ...) @warn(ptr noundef @.str.5, ptr noundef @.str.4)
%28 = call i32 @_exit(i32 noundef 1) #5
unreachable
29: ; preds = %22
%30 = load i32, ptr %2, align 4
%31 = call i32 @dup2(i32 noundef %30, i32 noundef 0)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i32 (ptr, ...) @warn(ptr noundef @.str.6)
%35 = call i32 @_exit(i32 noundef 1) #5
unreachable
36: ; preds = %29
%37 = load ptr, ptr %4, align 8
%38 = call i32 @execl(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef %37, ptr noundef null)
%39 = call i32 (ptr, ...) @warn(ptr noundef null)
%40 = call i32 @_exit(i32 noundef 1) #5
unreachable
41: ; preds = %0
br label %42
42: ; preds = %52, %41
%43 = load i32, ptr %3, align 4
%44 = call i32 @waitpid(i32 noundef %43, ptr noundef %1, i32 noundef 0)
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %42
%46 = load i32, ptr %3, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load i32, ptr @errno, align 4
%50 = load i32, ptr @EINTR, align 4
%51 = icmp eq i32 %49, %50
br label %52
52: ; preds = %48, %45
%53 = phi i1 [ false, %45 ], [ %51, %48 ]
br i1 %53, label %42, label %54, !llvm.loop !6
54: ; preds = %52
%55 = load i32, ptr %3, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %61, label %57
57: ; preds = %54
%58 = load i32, ptr %1, align 4
%59 = call i32 @WEXITSTATUS(i32 noundef %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57, %54
%62 = call i32 @exit(i32 noundef 1) #5
unreachable
63: ; preds = %57
br label %64
64: ; preds = %63
ret void
}
; Function Attrs: returns_twice
declare i32 @vfork() #1
declare i32 @err(i32 noundef, ptr noundef) #2
declare i32 @isatty(i32 noundef) #2
declare ptr @getenv(ptr noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @warn(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @dup2(i32 noundef, i32 noundef) #2
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @WEXITSTATUS(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { returns_twice "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { returns_twice }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdpl42b52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"vfork\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cat\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"PAGER\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"/usr/bin/pager\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"/usr/share/games/bsdgames/cribbage.instr\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [8 x i8] c"open %s\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"dup2\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"/bin/sh\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"sh\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @instructions() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 @vfork() #4
store i32 %5, ptr %3, align 4
switch i32 %5, label %41 [
i32 -1, label %6
i32 0, label %8
]
6: ; preds = %0
%7 = call i32 @err(i32 noundef 1, ptr noundef @.str)
br label %8
8: ; preds = %6, %0
%9 = call i32 @isatty(i32 noundef 1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %8
store ptr @.str.1, ptr %4, align 8
br label %22
12: ; preds = %8
%13 = call ptr @getenv(ptr noundef @.str.2)
store ptr %13, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15, %12
store ptr @.str.3, ptr %4, align 8
br label %21
21: ; preds = %20, %15
br label %22
22: ; preds = %21, %11
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef @.str.4, i32 noundef %23)
store i32 %24, ptr %2, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = call i32 (ptr, ...) @warn(ptr noundef @.str.5, ptr noundef @.str.4)
%28 = call i32 @_exit(i32 noundef 1) #5
unreachable
29: ; preds = %22
%30 = load i32, ptr %2, align 4
%31 = call i32 @dup2(i32 noundef %30, i32 noundef 0)
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i32 (ptr, ...) @warn(ptr noundef @.str.6)
%35 = call i32 @_exit(i32 noundef 1) #5
unreachable
36: ; preds = %29
%37 = load ptr, ptr %4, align 8
%38 = call i32 @execl(ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef %37, ptr noundef null)
%39 = call i32 (ptr, ...) @warn(ptr noundef null)
%40 = call i32 @_exit(i32 noundef 1) #5
unreachable
41: ; preds = %0
br label %42
42: ; preds = %52, %41
%43 = load i32, ptr %3, align 4
%44 = call i32 @waitpid(i32 noundef %43, ptr noundef %1, i32 noundef 0)
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %42
%46 = load i32, ptr %3, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load i32, ptr @errno, align 4
%50 = load i32, ptr @EINTR, align 4
%51 = icmp eq i32 %49, %50
br label %52
52: ; preds = %48, %45
%53 = phi i1 [ false, %45 ], [ %51, %48 ]
br i1 %53, label %42, label %54, !llvm.loop !6
54: ; preds = %52
%55 = load i32, ptr %3, align 4
%56 = icmp eq i32 %55, -1
br i1 %56, label %61, label %57
57: ; preds = %54
%58 = load i32, ptr %1, align 4
%59 = call i32 @WEXITSTATUS(i32 noundef %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57, %54
%62 = call i32 @exit(i32 noundef 1) #5
unreachable
63: ; preds = %57
br label %64
64: ; preds = %63
ret void
}
; Function Attrs: returns_twice
declare i32 @vfork() #1
declare i32 @err(i32 noundef, ptr noundef) #2
declare i32 @isatty(i32 noundef) #2
declare ptr @getenv(ptr noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i32 @warn(ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @dup2(i32 noundef, i32 noundef) #2
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @WEXITSTATUS(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { returns_twice "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { returns_twice }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp403wf6ac.c'
source_filename = "/tmp/tmp403wf6ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_me() #0 {
%1 = call i32 (...) @foo()
%2 = sub nsw i32 %1, 42
ret i32 %2
}
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp403wf6ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @call_me() #0 {
%1 = call i32 (...) @foo()
%2 = sub nsw i32 %1, 42
ret i32 %2
}
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjn7o0jyi.c'
source_filename = "/tmp/tmpjn7o0jyi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @movmask_unsafe(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = and i32 %5, 2139062143
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
store i32 33818640, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = mul nsw i32 %10, 33818640
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = ashr i32 %12, 32
%14 = and i32 %13, 15
ret i32 %14
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjn7o0jyi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @movmask_unsafe(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = and i32 %5, 2139062143
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
store i32 33818640, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = mul nsw i32 %10, 33818640
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = ashr i32 %12, 32
%14 = and i32 %13, 15
ret i32 %14
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxa47vxc6.c'
source_filename = "/tmp/tmpxa47vxc6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @liste()
ret i32 0
}
declare i32 @liste(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxa47vxc6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @liste()
ret i32 0
}
declare i32 @liste(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77gfeh37.c'
source_filename = "/tmp/tmp77gfeh37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"/usr/lib/vmware-vmca/lib64/libvmcaclient.so.0.0.0\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"errno[%d], errmsg[%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"\0Avmca Lib loaded successfully\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 = load i32, ptr @RTLD_LAZY, align 4
%4 = call ptr @dlopen(ptr noundef @.str, i32 noundef %3)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i32, ptr @errno, align 4
%9 = call ptr (...) @dlerror()
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, ptr noundef %9)
store i32 -1, ptr %1, align 4
br label %16
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11
%14 = load ptr, ptr %2, align 8
%15 = call i32 @dlclose(ptr noundef %14)
store i32 0, ptr %1, align 4
br label %16
16: ; preds = %13, %7
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @dlerror(...) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp77gfeh37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"/usr/lib/vmware-vmca/lib64/libvmcaclient.so.0.0.0\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"errno[%d], errmsg[%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"\0Avmca Lib loaded successfully\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 = load i32, ptr @RTLD_LAZY, align 4
%4 = call ptr @dlopen(ptr noundef @.str, i32 noundef %3)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i32, ptr @errno, align 4
%9 = call ptr (...) @dlerror()
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, ptr noundef %9)
store i32 -1, ptr %1, align 4
br label %16
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11
%14 = load ptr, ptr %2, align 8
%15 = call i32 @dlclose(ptr noundef %14)
store i32 0, ptr %1, align 4
br label %16
16: ; preds = %13, %7
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @dlerror(...) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.