llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp3co1qhbj.c'
source_filename = "/tmp/tmp3co1qhbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"STN-ON\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"STN-OFF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_TemmaStandbyState(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @portWrite(ptr noundef @.str)
store i32 %7, ptr %2, align 4
br label %10
8: ; preds = %1
%9 = call i32 @portWrite(ptr noundef @.str.1)
store i32 %9, ptr %2, align 4
br label %10
10: ; preds = %8, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @portWrite(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3co1qhbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"STN-ON\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"STN-OFF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_TemmaStandbyState(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @portWrite(ptr noundef @.str)
store i32 %7, ptr %2, align 4
br label %10
8: ; preds = %1
%9 = call i32 @portWrite(ptr noundef @.str.1)
store i32 %9, ptr %2, align 4
br label %10
10: ; preds = %8, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @portWrite(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpycpbve07.c'
source_filename = "/tmp/tmpycpbve07.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_append_standard_solution(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load i32, ptr %5, align 4
%13 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %6, align 8
%17 = call i32 @_ada_use_c2phc(i32 noundef 36, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
ret i32 %18
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpycpbve07.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_append_standard_solution(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [2 x i32], align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %10, ptr %11, align 4
%12 = load i32, ptr %5, align 4
%13 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%16 = load ptr, ptr %6, align 8
%17 = call i32 @_ada_use_c2phc(i32 noundef 36, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
ret i32 %18
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5bxoqh7s.c'
source_filename = "/tmp/tmp5bxoqh7s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @pthread_self()
%7 = call i32 @pthread_detach(i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load i32, ptr %3, align 4
%11 = call i32 @echo(i32 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = call i32 @close(i32 noundef %12)
ret ptr null
}
declare i32 @pthread_detach(i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @free(ptr noundef) #1
declare i32 @echo(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5bxoqh7s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @pthread_self()
%7 = call i32 @pthread_detach(i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
%10 = load i32, ptr %3, align 4
%11 = call i32 @echo(i32 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = call i32 @close(i32 noundef %12)
ret ptr null
}
declare i32 @pthread_detach(i32 noundef) #1
declare i32 @pthread_self(...) #1
declare i32 @free(ptr noundef) #1
declare i32 @echo(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6wfgkx0p.c'
source_filename = "/tmp/tmp6wfgkx0p.c"
target datalayout = "e-m:e-p270: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/tmp6wfgkx0p.c"
target datalayout = "e-m:e-p270: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/tmpqeoxjmbw.c'
source_filename = "/tmp/tmpqeoxjmbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SAI3_RX_IRQHandler() #0 {
%1 = call i32 (...) @SAI3_RX_DriverIRQHandler()
ret void
}
declare i32 @SAI3_RX_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqeoxjmbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @SAI3_RX_IRQHandler() #0 {
%1 = call i32 (...) @SAI3_RX_DriverIRQHandler()
ret void
}
declare i32 @SAI3_RX_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5nfyo7xk.c'
source_filename = "/tmp/tmp5nfyo7xk.c"
target datalayout = "e-m:e-p270: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 { i64 }
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"fixdep: \00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"fixdep: mmap\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_config_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %1
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @perror(ptr noundef %14)
%16 = call i32 @exit(i32 noundef 2) #3
unreachable
17: ; preds = %1
%18 = load i32, ptr %4, align 4
%19 = call i32 @fstat(i32 noundef %18, ptr noundef %3)
%20 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = call i32 @close(i32 noundef %24)
br label %51
26: ; preds = %17
%27 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = load i32, ptr @PROT_READ, align 4
%30 = load i32, ptr @MAP_PRIVATE, align 4
%31 = load i32, ptr %4, align 4
%32 = call ptr @mmap(ptr noundef null, i64 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 0)
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %5, align 8
%34 = ptrtoint ptr %33 to i64
%35 = icmp eq i64 %34, -1
br i1 %35, label %36, label %40
36: ; preds = %26
%37 = call i32 @perror(ptr noundef @.str.1)
%38 = load i32, ptr %4, align 4
%39 = call i32 @close(i32 noundef %38)
br label %51
40: ; preds = %26
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = call i32 @parse_config_file(ptr noundef %41, i64 noundef %43)
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%47 = load i64, ptr %46, align 8
%48 = call i32 @munmap(ptr noundef %45, i64 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = call i32 @close(i32 noundef %49)
br label %51
51: ; preds = %40, %36, %23
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_config_file(ptr noundef, i64 noundef) #1
declare i32 @munmap(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" }
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/tmp5nfyo7xk.c"
target datalayout = "e-m:e-p270: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 { i64 }
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [9 x i8] c"fixdep: \00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"fixdep: mmap\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_config_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %1
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
%14 = load ptr, ptr %2, align 8
%15 = call i32 @perror(ptr noundef %14)
%16 = call i32 @exit(i32 noundef 2) #3
unreachable
17: ; preds = %1
%18 = load i32, ptr %4, align 4
%19 = call i32 @fstat(i32 noundef %18, ptr noundef %3)
%20 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = call i32 @close(i32 noundef %24)
br label %51
26: ; preds = %17
%27 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%28 = load i64, ptr %27, align 8
%29 = load i32, ptr @PROT_READ, align 4
%30 = load i32, ptr @MAP_PRIVATE, align 4
%31 = load i32, ptr %4, align 4
%32 = call ptr @mmap(ptr noundef null, i64 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef 0)
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %5, align 8
%34 = ptrtoint ptr %33 to i64
%35 = icmp eq i64 %34, -1
br i1 %35, label %36, label %40
36: ; preds = %26
%37 = call i32 @perror(ptr noundef @.str.1)
%38 = load i32, ptr %4, align 4
%39 = call i32 @close(i32 noundef %38)
br label %51
40: ; preds = %26
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%43 = load i64, ptr %42, align 8
%44 = call i32 @parse_config_file(ptr noundef %41, i64 noundef %43)
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%47 = load i64, ptr %46, align 8
%48 = call i32 @munmap(ptr noundef %45, i64 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = call i32 @close(i32 noundef %49)
br label %51
51: ; preds = %40, %36, %23
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @parse_config_file(ptr noundef, i64 noundef) #1
declare i32 @munmap(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" }
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/tmpm_9n__xz.c'
source_filename = "/tmp/tmpm_9n__xz.c"
target datalayout = "e-m:e-p270: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/tmpm_9n__xz.c"
target datalayout = "e-m:e-p270: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/tmpko53c8dx.c'
source_filename = "/tmp/tmpko53c8dx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @negativeWeight(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call i32 @min(float noundef %5, float noundef %6)
%8 = load float, ptr %3, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @max(float noundef %8, float noundef %9)
%11 = sdiv i32 %7, %10
%12 = sub nsw i32 1, %11
%13 = sitofp i32 %12 to float
ret float %13
}
declare i32 @min(float noundef, float noundef) #1
declare i32 @max(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpko53c8dx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @negativeWeight(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call i32 @min(float noundef %5, float noundef %6)
%8 = load float, ptr %3, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @max(float noundef %8, float noundef %9)
%11 = sdiv i32 %7, %10
%12 = sub nsw i32 1, %11
%13 = sitofp i32 %12 to float
ret float %13
}
declare i32 @min(float noundef, float noundef) #1
declare i32 @max(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpitvybj6z.c'
source_filename = "/tmp/tmpitvybj6z.c"
target datalayout = "e-m:e-p270: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/tmpitvybj6z.c"
target datalayout = "e-m:e-p270: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/tmp0j9r2wmo.c'
source_filename = "/tmp/tmp0j9r2wmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dc_freq(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %23, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i64 @huff_class(i32 noundef %18)
%20 = getelementptr inbounds i32, ptr %13, i64 %19
%21 = load i32, ptr %20, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %20, align 4
br label %23
23: ; preds = %12
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 64
store i32 %25, ptr %7, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
ret void
}
declare i64 @huff_class(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/tmp0j9r2wmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dc_freq(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %22
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i64 @huff_class(i32 noundef %17)
%19 = getelementptr inbounds i32, ptr %12, i64 %18
%20 = load i32, ptr %19, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 4
br label %22
22: ; preds = %11
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 64
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %3
ret void
}
declare i64 @huff_class(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/tmpk3kt2unp.c'
source_filename = "/tmp/tmpk3kt2unp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @createArray(i32 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 i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %23, %1
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
store i32 %18, ptr %22, align 4
br label %23
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
store i32 0, ptr %5, align 4
br label %27
27: ; preds = %59, %26
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %62
31: ; preds = %27
%32 = call i32 (...) @rand()
%33 = load i32, ptr %2, align 4
%34 = srem i32 %32, %33
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %58
38: ; preds = %31
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %7, align 4
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %5, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
store i32 %48, ptr %52, align 4
%53 = load i32, ptr %7, align 4
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %53, ptr %57, align 4
br label %58
58: ; preds = %38, %31
br label %59
59: ; preds = %58
%60 = load i32, ptr %5, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %5, align 4
br label %27, !llvm.loop !8
62: ; preds = %27
%63 = load ptr, ptr %3, align 8
ret ptr %63
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk3kt2unp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @createArray(i32 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 i32 %0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 %9, 4
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %3, align 8
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %22
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
store i32 %17, ptr %21, align 4
br label %22
22: ; preds = %16
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %1
store i32 0, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph2, label %66
.lr.ph2: ; preds = %28
br label %32
32: ; preds = %.lr.ph2, %60
%33 = call i32 (...) @rand()
%34 = load i32, ptr %2, align 4
%35 = srem i32 %33, %34
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %6, align 4
%38 = icmp ne i32 %36, %37
br i1 %38, label %39, label %59
39: ; preds = %32
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
store i32 %44, ptr %7, align 4
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
store i32 %49, ptr %53, align 4
%54 = load i32, ptr %7, align 4
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 %54, ptr %58, align 4
br label %59
59: ; preds = %39, %32
br label %60
60: ; preds = %59
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
%63 = load i32, ptr %5, align 4
%64 = load i32, ptr %2, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %66
66: ; preds = %._crit_edge3, %28
%67 = load ptr, ptr %3, align 8
ret ptr %67
}
declare ptr @malloc(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3ff0qktl.c'
source_filename = "/tmp/tmp3ff0qktl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @htoi(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
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %80
16: ; preds = %9
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 48
br i1 %21, label %22, label %30
22: ; preds = %16
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i8, ptr %24, align 1
%26 = call signext i8 @tolower(i8 noundef signext %25)
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 120
br i1 %28, label %29, label %30
29: ; preds = %22
store i32 2, ptr %4, align 4
br label %31
30: ; preds = %22, %16
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %30, %29
br label %32
32: ; preds = %31
store i32 0, ptr %5, align 4
br label %33
33: ; preds = %75, %32
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %78
41: ; preds = %33
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = call signext i8 @tolower(i8 noundef signext %46)
%48 = sext i8 %47 to i32
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp sge i32 %49, 48
br i1 %50, label %51, label %60
51: ; preds = %41
%52 = load i32, ptr %6, align 4
%53 = icmp sle i32 %52, 57
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load i32, ptr %5, align 4
%56 = mul nsw i32 %55, 16
%57 = load i32, ptr %6, align 4
%58 = sub nsw i32 %57, 48
%59 = add nsw i32 %56, %58
store i32 %59, ptr %5, align 4
br label %74
60: ; preds = %51, %41
%61 = load i32, ptr %6, align 4
%62 = icmp sge i32 %61, 97
br i1 %62, label %63, label %73
63: ; preds = %60
%64 = load i32, ptr %6, align 4
%65 = icmp sle i32 %64, 102
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load i32, ptr %5, align 4
%68 = mul nsw i32 %67, 16
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 10, %69
%71 = sub nsw i32 %70, 97
%72 = add nsw i32 %68, %71
store i32 %72, ptr %5, align 4
br label %73
73: ; preds = %66, %63, %60
br label %74
74: ; preds = %73, %54
br label %75
75: ; preds = %74
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %33, !llvm.loop !6
78: ; preds = %33
%79 = load i32, ptr %5, align 4
store i32 %79, ptr %2, align 4
br label %80
80: ; preds = %78, %15
%81 = load i32, ptr %2, align 4
ret i32 %81
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ff0qktl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @htoi(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
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %9, %1
store i32 0, ptr %2, align 4
br label %86
16: ; preds = %9
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 0
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 48
br i1 %21, label %22, label %30
22: ; preds = %16
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i8, ptr %24, align 1
%26 = call signext i8 @tolower(i8 noundef signext %25)
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 120
br i1 %28, label %29, label %30
29: ; preds = %22
store i32 2, ptr %4, align 4
br label %31
30: ; preds = %22, %16
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %30, %29
br label %32
32: ; preds = %31
store i32 0, ptr %5, align 4
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %.lr.ph, label %84
.lr.ph: ; preds = %32
br label %40
40: ; preds = %.lr.ph, %74
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call signext i8 @tolower(i8 noundef signext %45)
%47 = sext i8 %46 to i32
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp sge i32 %48, 48
br i1 %49, label %50, label %59
50: ; preds = %40
%51 = load i32, ptr %6, align 4
%52 = icmp sle i32 %51, 57
br i1 %52, label %53, label %59
53: ; preds = %50
%54 = load i32, ptr %5, align 4
%55 = mul nsw i32 %54, 16
%56 = load i32, ptr %6, align 4
%57 = sub nsw i32 %56, 48
%58 = add nsw i32 %55, %57
store i32 %58, ptr %5, align 4
br label %73
59: ; preds = %50, %40
%60 = load i32, ptr %6, align 4
%61 = icmp sge i32 %60, 97
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = load i32, ptr %6, align 4
%64 = icmp sle i32 %63, 102
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = load i32, ptr %5, align 4
%67 = mul nsw i32 %66, 16
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 10, %68
%70 = sub nsw i32 %69, 97
%71 = add nsw i32 %67, %70
store i32 %71, ptr %5, align 4
br label %72
72: ; preds = %65, %62, %59
br label %73
73: ; preds = %72, %53
br label %74
74: ; preds = %73
%75 = load i32, ptr %4, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %4, align 4
%77 = load ptr, ptr %3, align 8
%78 = load i32, ptr %4, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %84
84: ; preds = %._crit_edge, %32
%85 = load i32, ptr %5, align 4
store i32 %85, ptr %2, align 4
br label %86
86: ; preds = %84, %15
%87 = load i32, ptr %2, align 4
ret i32 %87
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp86b1iwks.c'
source_filename = "/tmp/tmp86b1iwks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter tuition fee : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"Press (1) for Cash, (2) for Two-Installment, (3) for Three-Installment\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Cash (1) = 10 percent discount\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Two-Installment (2) = 5 percent interest\0A\00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"Three \E2\80\93 Installment(3) = 15 percent interest\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Enter mode of payment : \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"Your total tuition fee is : %.1f\0A\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"Invalid option. Choose 1,2 or 3 only.\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 float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %2)
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
switch i32 %14, label %46 [
i32 49, label %15
i32 50, label %26
i32 51, label %36
]
15: ; preds = %0
%16 = load float, ptr %3, align 4
%17 = fpext float %16 to double
%18 = load float, ptr %3, align 4
%19 = fpext float %18 to double
%20 = fneg double %19
%21 = call double @llvm.fmuladd.f64(double %20, double 1.000000e-01, double %17)
%22 = fptrunc double %21 to float
store float %22, ptr %4, align 4
%23 = load float, ptr %4, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %24)
br label %48
26: ; preds = %0
%27 = load float, ptr %3, align 4
%28 = fpext float %27 to double
%29 = load float, ptr %3, align 4
%30 = fpext float %29 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 5.000000e-02, double %28)
%32 = fptrunc double %31 to float
store float %32, ptr %4, align 4
%33 = load float, ptr %4, align 4
%34 = fpext float %33 to double
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %34)
br label %48
36: ; preds = %0
%37 = load float, ptr %3, align 4
%38 = fpext float %37 to double
%39 = load float, ptr %3, align 4
%40 = fpext float %39 to double
%41 = call double @llvm.fmuladd.f64(double %40, double 1.500000e-01, double %38)
%42 = fptrunc double %41 to float
store float %42, ptr %4, align 4
%43 = load float, ptr %4, align 4
%44 = fpext float %43 to double
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %44)
br label %48
46: ; preds = %0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %48
48: ; preds = %46, %36, %26, %15
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86b1iwks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter tuition fee : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [73 x i8] c"Press (1) for Cash, (2) for Two-Installment, (3) for Three-Installment\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Cash (1) = 10 percent discount\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Two-Installment (2) = 5 percent interest\0A\00", align 1
@.str.5 = private unnamed_addr constant [49 x i8] c"Three \E2\80\93 Installment(3) = 15 percent interest\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"Enter mode of payment : \00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"Your total tuition fee is : %.1f\0A\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"Invalid option. Choose 1,2 or 3 only.\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 float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %2)
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
switch i32 %14, label %46 [
i32 49, label %15
i32 50, label %26
i32 51, label %36
]
15: ; preds = %0
%16 = load float, ptr %3, align 4
%17 = fpext float %16 to double
%18 = load float, ptr %3, align 4
%19 = fpext float %18 to double
%20 = fneg double %19
%21 = call double @llvm.fmuladd.f64(double %20, double 1.000000e-01, double %17)
%22 = fptrunc double %21 to float
store float %22, ptr %4, align 4
%23 = load float, ptr %4, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %24)
br label %48
26: ; preds = %0
%27 = load float, ptr %3, align 4
%28 = fpext float %27 to double
%29 = load float, ptr %3, align 4
%30 = fpext float %29 to double
%31 = call double @llvm.fmuladd.f64(double %30, double 5.000000e-02, double %28)
%32 = fptrunc double %31 to float
store float %32, ptr %4, align 4
%33 = load float, ptr %4, align 4
%34 = fpext float %33 to double
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %34)
br label %48
36: ; preds = %0
%37 = load float, ptr %3, align 4
%38 = fpext float %37 to double
%39 = load float, ptr %3, align 4
%40 = fpext float %39 to double
%41 = call double @llvm.fmuladd.f64(double %40, double 1.500000e-01, double %38)
%42 = fptrunc double %41 to float
store float %42, ptr %4, align 4
%43 = load float, ptr %4, align 4
%44 = fpext float %43 to double
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %44)
br label %48
46: ; preds = %0
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %48
48: ; preds = %46, %36, %26, %15
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ax6t08n.c'
source_filename = "/tmp/tmp6ax6t08n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AUDIO_SET_AV_SYNC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"AUDIO_SET_AV_SYNC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @audioSetAVSync(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %21
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @AUDIO_SET_AV_SYNC, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @ioctl(i32 noundef %13, i32 noundef %14, i32 noundef %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @perror(ptr noundef @.str)
br label %20
20: ; preds = %18, %10
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %20, %9
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @atoi(ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ax6t08n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AUDIO_SET_AV_SYNC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"AUDIO_SET_AV_SYNC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @audioSetAVSync(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %21
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @AUDIO_SET_AV_SYNC, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @ioctl(i32 noundef %13, i32 noundef %14, i32 noundef %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @perror(ptr noundef @.str)
br label %20
20: ; preds = %18, %10
store i32 0, ptr %3, align 4
br label %21
21: ; preds = %20, %9
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @atoi(ptr noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp18lvdd5j.c'
source_filename = "/tmp/tmp18lvdd5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%f\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @teste1(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %30, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = mul nsw i32 %10, %11
%13 = icmp slt i32 %9, %12
br i1 %13, label %14, label %33
14: ; preds = %8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = srem i32 %16, %17
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %15, i64 %21
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %5, align 4
%25 = sdiv i32 %23, %24
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, ptr %22, i64 %26
%28 = load float, ptr %27, align 4
%29 = call i32 @printf(ptr noundef @.str, float noundef %28)
br label %30
30: ; preds = %14
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %8, !llvm.loop !6
33: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp18lvdd5j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%f\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @teste1(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = mul nsw i32 %9, %10
%12 = icmp slt i32 %8, %11
br i1 %12, label %.lr.ph, label %37
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %29
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = srem i32 %15, %16
%18 = load i32, ptr %6, align 4
%19 = mul nsw i32 %17, %18
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, ptr %14, i64 %20
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %5, align 4
%24 = sdiv i32 %22, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds float, ptr %21, i64 %25
%27 = load float, ptr %26, align 4
%28 = call i32 @printf(ptr noundef @.str, float noundef %27)
br label %29
29: ; preds = %13
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %6, align 4
%35 = mul nsw i32 %33, %34
%36 = icmp slt i32 %32, %35
br i1 %36, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %37
37: ; preds = %._crit_edge, %3
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7h43x77e.c'
source_filename = "/tmp/tmp7h43x77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__aeabi_unwind_cpp_pr2() #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/tmp7h43x77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__aeabi_unwind_cpp_pr2() #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/tmpvk_b0ft2.c'
source_filename = "/tmp/tmpvk_b0ft2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"%c%c%c\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%c%c\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
store i32 1, ptr %3, align 4
br label %68
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i32 1
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %6, align 8
br label %23
23: ; preds = %66, %18
%24 = load ptr, ptr %6, align 8
%25 = call i64 @fscanf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %7)
%26 = load i64, ptr @EOF, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %67
28: ; preds = %23
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %7, align 4
%31 = srem i32 %30, 26
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sge i32 %32, 26
br i1 %33, label %34, label %62
34: ; preds = %28
%35 = load i32, ptr %7, align 4
%36 = sdiv i32 %35, 26
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %7, align 4
%39 = srem i32 %38, 26
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp sge i32 %40, 26
br i1 %41, label %42, label %55
42: ; preds = %34
%43 = load i32, ptr %7, align 4
%44 = sdiv i32 %43, 26
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %7, align 4
%47 = srem i32 %46, 26
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 65, %48
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 65, %50
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 65, %52
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %49, i32 noundef %51, i32 noundef %53)
br label %61
55: ; preds = %34
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 65, %56
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 65, %58
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %57, i32 noundef %59)
br label %61
61: ; preds = %55, %42
br label %66
62: ; preds = %28
%63 = load i32, ptr %10, align 4
%64 = add nsw i32 65, %63
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %64)
br label %66
66: ; preds = %62, %61
br label %23, !llvm.loop !6
67: ; preds = %23
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %13
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvk_b0ft2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"%c%c%c\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%c%c\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
store i32 1, ptr %3, align 4
br label %71
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i32 1
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i64 @fscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %7)
%25 = load i64, ptr @EOF, align 8
%26 = icmp ne i64 %24, %25
br i1 %26, label %.lr.ph, label %70
.lr.ph: ; preds = %18
br label %27
27: ; preds = %.lr.ph, %65
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %7, align 4
%30 = srem i32 %29, 26
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp sge i32 %31, 26
br i1 %32, label %33, label %61
33: ; preds = %27
%34 = load i32, ptr %7, align 4
%35 = sdiv i32 %34, 26
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %7, align 4
%38 = srem i32 %37, 26
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp sge i32 %39, 26
br i1 %40, label %41, label %54
41: ; preds = %33
%42 = load i32, ptr %7, align 4
%43 = sdiv i32 %42, 26
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %7, align 4
%46 = srem i32 %45, 26
store i32 %46, ptr %8, align 4
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 65, %47
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 65, %49
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 65, %51
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %48, i32 noundef %50, i32 noundef %52)
br label %60
54: ; preds = %33
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 65, %55
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 65, %57
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %56, i32 noundef %58)
br label %60
60: ; preds = %54, %41
br label %65
61: ; preds = %27
%62 = load i32, ptr %10, align 4
%63 = add nsw i32 65, %62
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %63)
br label %65
65: ; preds = %61, %60
%66 = load ptr, ptr %6, align 8
%67 = call i64 @fscanf(ptr noundef %66, ptr noundef @.str.2, ptr noundef %7)
%68 = load i64, ptr @EOF, align 8
%69 = icmp ne i64 %67, %68
br i1 %69, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %70
70: ; preds = %._crit_edge, %18
store i32 0, ptr %3, align 4
br label %71
71: ; preds = %70, %13
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmxgckvux.c'
source_filename = "/tmp/tmpmxgckvux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmxgckvux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd72c1mnm.c'
source_filename = "/tmp/tmpd72c1mnm.c"
target datalayout = "e-m:e-p270: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.ip_tunnel_parm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_get(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.ip_tunnel_parm, align 4
store ptr %0, ptr %3, align 8
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 4)
%6 = load ptr, ptr %3, align 8
%7 = call i64 @do_get_ioctl(ptr noundef %6, ptr noundef %4)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %11
10: ; preds = %1
store i32 1, ptr %2, align 4
br label %11
11: ; preds = %10, %9
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @do_get_ioctl(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/tmpd72c1mnm.c"
target datalayout = "e-m:e-p270: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.ip_tunnel_parm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_get(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.ip_tunnel_parm, align 4
store ptr %0, ptr %3, align 8
%5 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 4)
%6 = load ptr, ptr %3, align 8
%7 = call i64 @do_get_ioctl(ptr noundef %6, ptr noundef %4)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %11
10: ; preds = %1
store i32 1, ptr %2, align 4
br label %11
11: ; preds = %10, %9
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @do_get_ioctl(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/tmpwwhplg31.c'
source_filename = "/tmp/tmpwwhplg31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOTSUP = 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/tmpwwhplg31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOTSUP = 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/tmpoi_7v2tv.c'
source_filename = "/tmp/tmpoi_7v2tv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@TIOCSCTTY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcsetsid(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = call i64 @getsid(i32 noundef 0)
%8 = icmp ne i64 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @EINVAL, align 4
store i32 %10, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %15
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr @TIOCSCTTY, align 4
%14 = call i32 @_ioctl(i32 noundef %12, i32 noundef %13, ptr noundef null)
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %11, %9
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i64 @getsid(i32 noundef) #1
declare i32 @_ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoi_7v2tv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@TIOCSCTTY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcsetsid(i32 noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = call i64 @getsid(i32 noundef 0)
%8 = icmp ne i64 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @EINVAL, align 4
store i32 %10, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %15
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr @TIOCSCTTY, align 4
%14 = call i32 @_ioctl(i32 noundef %12, i32 noundef %13, ptr noundef null)
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %11, %9
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i64 @getsid(i32 noundef) #1
declare i32 @_ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_hoyavcg.c'
source_filename = "/tmp/tmp_hoyavcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrap_send(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
br label %9
9: ; preds = %13, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %16, %17
%19 = call i64 @send(i32 noundef %14, ptr noundef %15, i32 noundef %18, i32 noundef 0)
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %5, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @send(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/tmp_hoyavcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrap_send(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i32, ptr %3, align 4
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %15, %16
%18 = call i64 @send(i32 noundef %13, ptr noundef %14, i32 noundef %17, i32 noundef 0)
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = add nsw i64 %20, %18
%22 = trunc i64 %21 to i32
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @send(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/tmp_82zr0mx.c'
source_filename = "/tmp/tmp_82zr0mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %20, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 1000
br i1 %6, label %7, label %23
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 3
%10 = icmp eq i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 5
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11, %7
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %16, %17
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %15, %11
br label %20
20: ; preds = %19
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %4, !llvm.loop !6
23: ; preds = %4
%24 = load i32, ptr %3, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
%26 = load i32, ptr %1, align 4
ret i32 %26
}
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/tmp_82zr0mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 1000
br i1 %5, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %19
%7 = load i32, ptr %2, align 4
%8 = srem i32 %7, 3
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = srem i32 %11, 5
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10, %6
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %15, %16
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %14, %10
br label %19
19: ; preds = %18
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 1000
br i1 %23, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %25)
%27 = load i32, ptr %1, align 4
ret i32 %27
}
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/tmpq0068rs0.c'
source_filename = "/tmp/tmpq0068rs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initRanks(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @countBytes(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 4
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = call i32 @setIByte(i32 noundef %9, i32 noundef 32)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @setIByte(i32 noundef %11, i32 noundef 31)
store i32 %12, ptr %2, align 4
br label %27
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = call i32 @setIByte(i32 noundef %17, i32 noundef 32)
store i32 %18, ptr %2, align 4
br label %26
19: ; preds = %13
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = call i32 @setIByte(i32 noundef %23, i32 noundef 31)
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26, %8
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @countBytes(i32 noundef) #1
declare i32 @setIByte(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/tmpq0068rs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initRanks(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @countBytes(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 4
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = call i32 @setIByte(i32 noundef %9, i32 noundef 32)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = call i32 @setIByte(i32 noundef %11, i32 noundef 31)
store i32 %12, ptr %2, align 4
br label %27
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = call i32 @setIByte(i32 noundef %17, i32 noundef 32)
store i32 %18, ptr %2, align 4
br label %26
19: ; preds = %13
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = call i32 @setIByte(i32 noundef %23, i32 noundef 31)
store i32 %24, ptr %2, align 4
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26, %8
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @countBytes(i32 noundef) #1
declare i32 @setIByte(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/tmpe4id7_nr.c'
source_filename = "/tmp/tmpe4id7_nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4id7_nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7eqrvr8y.c'
source_filename = "/tmp/tmp7eqrvr8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freePacketSeen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @freez(ptr noundef %3)
ret void
}
declare i32 @freez(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7eqrvr8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freePacketSeen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @freez(ptr noundef %3)
ret void
}
declare i32 @freez(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph5k45gxm.c'
source_filename = "/tmp/tmph5k45gxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\0AVavedi razbarkano teste:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"J \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"Q \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"K \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"A \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 13, ptr %5, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %53, %0
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 13
br i1 %11, label %12, label %56
12: ; preds = %9
%13 = call signext i8 (...) @getchar()
store i8 %13, ptr %7, align 1
%14 = load i8, ptr %7, align 1
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 57
br i1 %16, label %17, label %28
17: ; preds = %12
%18 = load i8, ptr %7, align 1
%19 = sext i8 %18 to i32
%20 = icmp sgt i32 %19, 49
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i8, ptr %7, align 1
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 48
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %26
store i32 %24, ptr %27, align 4
br label %52
28: ; preds = %17, %12
%29 = load i8, ptr %7, align 1
%30 = sext i8 %29 to i32
switch i32 %30, label %51 [
i32 84, label %31
i32 74, label %35
i32 81, label %39
i32 75, label %43
i32 65, label %47
]
31: ; preds = %28
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %33
store i32 10, ptr %34, align 4
br label %51
35: ; preds = %28
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %37
store i32 11, ptr %38, align 4
br label %51
39: ; preds = %28
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %41
store i32 12, ptr %42, align 4
br label %51
43: ; preds = %28
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %45
store i32 13, ptr %46, align 4
br label %51
47: ; preds = %28
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %49
store i32 14, ptr %50, align 4
br label %51
51: ; preds = %28, %47, %43, %39, %35, %31
br label %52
52: ; preds = %51, %21
br label %53
53: ; preds = %52
%54 = load i32, ptr %3, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %3, align 4
br label %9, !llvm.loop !6
56: ; preds = %9
br label %57
57: ; preds = %99, %56
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
br i1 %60, label %61, label %102
61: ; preds = %57
store i32 1, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %96, %61
%63 = load i32, ptr %3, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %99
66: ; preds = %62
%67 = load i32, ptr %3, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %68
%70 = load i32, ptr %69, align 4
%71 = load i32, ptr %3, align 4
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp sgt i32 %70, %75
br i1 %76, label %77, label %95
77: ; preds = %66
store i32 0, ptr %4, align 4
%78 = load i32, ptr %3, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
store i32 %81, ptr %6, align 4
%82 = load i32, ptr %3, align 4
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %84
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %3, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %88
store i32 %86, ptr %89, align 4
%90 = load i32, ptr %6, align 4
%91 = load i32, ptr %3, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %93
store i32 %90, ptr %94, align 4
br label %95
95: ; preds = %77, %66
br label %96
96: ; preds = %95
%97 = load i32, ptr %3, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %3, align 4
br label %62, !llvm.loop !8
99: ; preds = %62
%100 = load i32, ptr %5, align 4
%101 = add nsw i32 %100, -1
store i32 %101, ptr %5, align 4
br label %57, !llvm.loop !9
102: ; preds = %57
store i32 0, ptr %3, align 4
br label %103
103: ; preds = %139, %102
%104 = load i32, ptr %3, align 4
%105 = icmp slt i32 %104, 13
br i1 %105, label %106, label %142
106: ; preds = %103
%107 = load i32, ptr %3, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %108
%110 = load i32, ptr %109, align 4
%111 = icmp sge i32 %110, 2
br i1 %111, label %112, label %124
112: ; preds = %106
%113 = load i32, ptr %3, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %114
%116 = load i32, ptr %115, align 4
%117 = icmp sle i32 %116, 10
br i1 %117, label %118, label %124
118: ; preds = %112
%119 = load i32, ptr %3, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %120
%122 = load i32, ptr %121, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %122)
br label %138
124: ; preds = %112, %106
%125 = load i32, ptr %3, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %126
%128 = load i32, ptr %127, align 4
switch i32 %128, label %137 [
i32 11, label %129
i32 12, label %131
i32 13, label %133
i32 14, label %135
]
129: ; preds = %124
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %137
131: ; preds = %124
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %137
133: ; preds = %124
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %137
135: ; preds = %124
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %137
137: ; preds = %124, %135, %133, %131, %129
br label %138
138: ; preds = %137, %118
br label %139
139: ; preds = %138
%140 = load i32, ptr %3, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %3, align 4
br label %103, !llvm.loop !10
142: ; preds = %103
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%144 = load i32, ptr %1, align 4
ret i32 %144
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph5k45gxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"\0AVavedi razbarkano teste:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"J \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"Q \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"K \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"A \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 13, ptr %5, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 13
br i1 %10, label %.lr.ph, label %57
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %52
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %7, align 1
%13 = load i8, ptr %7, align 1
%14 = sext i8 %13 to i32
%15 = icmp sle i32 %14, 57
br i1 %15, label %16, label %27
16: ; preds = %11
%17 = load i8, ptr %7, align 1
%18 = sext i8 %17 to i32
%19 = icmp sgt i32 %18, 49
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load i8, ptr %7, align 1
%22 = sext i8 %21 to i32
%23 = sub nsw i32 %22, 48
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %25
store i32 %23, ptr %26, align 4
br label %51
27: ; preds = %16, %11
%28 = load i8, ptr %7, align 1
%29 = sext i8 %28 to i32
switch i32 %29, label %50 [
i32 84, label %30
i32 74, label %34
i32 81, label %38
i32 75, label %42
i32 65, label %46
]
30: ; preds = %27
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %32
store i32 10, ptr %33, align 4
br label %50
34: ; preds = %27
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %36
store i32 11, ptr %37, align 4
br label %50
38: ; preds = %27
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %40
store i32 12, ptr %41, align 4
br label %50
42: ; preds = %27
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %44
store i32 13, ptr %45, align 4
br label %50
46: ; preds = %27
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %48
store i32 14, ptr %49, align 4
br label %50
50: ; preds = %46, %42, %38, %34, %30, %27
br label %51
51: ; preds = %50, %20
br label %52
52: ; preds = %51
%53 = load i32, ptr %3, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %3, align 4
%55 = load i32, ptr %3, align 4
%56 = icmp slt i32 %55, 13
br i1 %56, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %0
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
br i1 %60, label %.lr.ph5, label %107
.lr.ph5: ; preds = %57
br label %61
61: ; preds = %.lr.ph5, %101
store i32 1, ptr %4, align 4
store i32 0, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %5, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %.lr.ph2, label %101
.lr.ph2: ; preds = %61
br label %65
65: ; preds = %.lr.ph2, %95
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = load i32, ptr %3, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = icmp sgt i32 %69, %74
br i1 %75, label %76, label %94
76: ; preds = %65
store i32 0, ptr %4, align 4
%77 = load i32, ptr %3, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %78
%80 = load i32, ptr %79, align 4
store i32 %80, ptr %6, align 4
%81 = load i32, ptr %3, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load i32, ptr %3, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %87
store i32 %85, ptr %88, align 4
%89 = load i32, ptr %6, align 4
%90 = load i32, ptr %3, align 4
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %92
store i32 %89, ptr %93, align 4
br label %94
94: ; preds = %76, %65
br label %95
95: ; preds = %94
%96 = load i32, ptr %3, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %3, align 4
%98 = load i32, ptr %3, align 4
%99 = load i32, ptr %5, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %65, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %95
br label %101
101: ; preds = %._crit_edge3, %61
%102 = load i32, ptr %5, align 4
%103 = add nsw i32 %102, -1
store i32 %103, ptr %5, align 4
%104 = load i32, ptr %4, align 4
%105 = icmp ne i32 %104, 0
%106 = xor i1 %105, true
br i1 %106, label %61, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %101
br label %107
107: ; preds = %._crit_edge6, %57
store i32 0, ptr %3, align 4
%108 = load i32, ptr %3, align 4
%109 = icmp slt i32 %108, 13
br i1 %109, label %.lr.ph8, label %148
.lr.ph8: ; preds = %107
br label %110
110: ; preds = %.lr.ph8, %143
%111 = load i32, ptr %3, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %112
%114 = load i32, ptr %113, align 4
%115 = icmp sge i32 %114, 2
br i1 %115, label %116, label %128
116: ; preds = %110
%117 = load i32, ptr %3, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %118
%120 = load i32, ptr %119, align 4
%121 = icmp sle i32 %120, 10
br i1 %121, label %122, label %128
122: ; preds = %116
%123 = load i32, ptr %3, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %126)
br label %142
128: ; preds = %116, %110
%129 = load i32, ptr %3, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 %130
%132 = load i32, ptr %131, align 4
switch i32 %132, label %141 [
i32 11, label %133
i32 12, label %135
i32 13, label %137
i32 14, label %139
]
133: ; preds = %128
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %141
135: ; preds = %128
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %141
137: ; preds = %128
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %141
139: ; preds = %128
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %141
141: ; preds = %139, %137, %135, %133, %128
br label %142
142: ; preds = %141, %122
br label %143
143: ; preds = %142
%144 = load i32, ptr %3, align 4
%145 = add nsw i32 %144, 1
store i32 %145, ptr %3, align 4
%146 = load i32, ptr %3, align 4
%147 = icmp slt i32 %146, 13
br i1 %147, label %110, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %143
br label %148
148: ; preds = %._crit_edge9, %107
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%150 = load i32, ptr %1, align 4
ret i32 %150
}
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmppera_re_.c'
source_filename = "/tmp/tmppera_re_.c"
target datalayout = "e-m:e-p270: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/tmppera_re_.c"
target datalayout = "e-m:e-p270: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/tmpc_q6h_h_.c'
source_filename = "/tmp/tmpc_q6h_h_.c"
target datalayout = "e-m:e-p270: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/tmpc_q6h_h_.c"
target datalayout = "e-m:e-p270: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/tmpyei9698v.c'
source_filename = "/tmp/tmpyei9698v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".vgz\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c".vgz not supported\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"-ay.vgm\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"File cannot be opened.\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [32 x i8] c"Cannot initialize file buffer.\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"DEBUG: Curr addr 0x%X\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"DEBUG: Offset Data Block 0x%X\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"DEBUG: New addr 0x%X\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [80 x i8], align 16
%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 i64, align 8
%15 = alloca i64, align 8
%16 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store ptr null, ptr %13, align 8
store i64 0, ptr %14, align 8
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sub nsw i32 %19, 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %17, i64 %21
%23 = call i64 @strcmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %3
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %27, ptr %4, align 4
br label %247
28: ; preds = %3
%29 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strncpy(ptr noundef %29, ptr noundef %30, i32 noundef 80)
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = sub nsw i32 %33, 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 %35
%37 = call i32 @strncpy(ptr noundef %36, ptr noundef @.str.2, i32 noundef 80)
%38 = load ptr, ptr %5, align 8
%39 = call ptr @fopen(ptr noundef %38, ptr noundef @.str.3)
store ptr %39, ptr %12, align 8
%40 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 0
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.4)
store ptr %41, ptr %13, align 8
%42 = load ptr, ptr %12, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %47, label %44
44: ; preds = %28
%45 = load ptr, ptr %13, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %44, %28
%48 = call i32 @perror(ptr noundef @.str.5)
%49 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %49, ptr %4, align 4
br label %247
50: ; preds = %44
%51 = load ptr, ptr %12, align 8
%52 = load i32, ptr @SEEK_END, align 4
%53 = call i32 @fseek(ptr noundef %51, i32 noundef 0, i32 noundef %52)
%54 = load ptr, ptr %12, align 8
%55 = call i64 @ftell(ptr noundef %54)
store i64 %55, ptr %14, align 8
%56 = load ptr, ptr %12, align 8
%57 = load i32, ptr @SEEK_SET, align 4
%58 = call i32 @fseek(ptr noundef %56, i32 noundef 0, i32 noundef %57)
%59 = load i64, ptr %14, align 8
%60 = call ptr @calloc(i32 noundef 1, i64 noundef %59)
store ptr %60, ptr %9, align 8
%61 = load ptr, ptr %9, align 8
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %66
63: ; preds = %50
%64 = call i32 @perror(ptr noundef @.str.6)
%65 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %65, ptr %4, align 4
br label %247
66: ; preds = %50
%67 = load ptr, ptr %9, align 8
%68 = load i64, ptr %14, align 8
%69 = load ptr, ptr %12, align 8
%70 = call i32 @fread(ptr noundef %67, i32 noundef 1, i64 noundef %68, ptr noundef %69)
%71 = load ptr, ptr %12, align 8
%72 = call i32 @fclose(ptr noundef %71)
%73 = load ptr, ptr %9, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 224
store ptr %74, ptr %10, align 8
%75 = load ptr, ptr %9, align 8
%76 = load i64, ptr %14, align 8
%77 = sub i64 %76, 1
%78 = getelementptr inbounds i8, ptr %75, i64 %77
store ptr %78, ptr %11, align 8
br label %79
79: ; preds = %235, %66
%80 = load ptr, ptr %10, align 8
%81 = load ptr, ptr %11, align 8
%82 = icmp ule ptr %80, %81
br i1 %82, label %83, label %239
83: ; preds = %79
%84 = load ptr, ptr %10, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 0
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
switch i32 %87, label %225 [
i32 85, label %88
i32 86, label %88
i32 98, label %195
i32 99, label %195
i32 87, label %196
i32 97, label %196
i32 102, label %197
i32 103, label %199
]
88: ; preds = %83, %83
store i64 3, ptr %15, align 8
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 1
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp sge i32 %92, 0
br i1 %93, label %94, label %194
94: ; preds = %88
%95 = load ptr, ptr %10, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 1
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp sle i32 %98, 15
br i1 %99, label %100, label %194
100: ; preds = %94
store i8 0, ptr %16, align 1
%101 = load i32, ptr %6, align 4
%102 = icmp sgt i32 %101, 2
br i1 %102, label %103, label %180
103: ; preds = %100
%104 = load ptr, ptr %7, align 8
%105 = getelementptr inbounds ptr, ptr %104, i64 2
%106 = load ptr, ptr %105, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 0
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
switch i32 %109, label %176 [
i32 48, label %110
i32 49, label %132
i32 50, label %154
]
110: ; preds = %103
%111 = load ptr, ptr %10, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 1
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 0
br i1 %115, label %128, label %116
116: ; preds = %110
%117 = load ptr, ptr %10, align 8
%118 = getelementptr inbounds i8, ptr %117, i64 1
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 1
br i1 %121, label %128, label %122
122: ; preds = %116
%123 = load ptr, ptr %10, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 1
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 8
br i1 %127, label %128, label %131
128: ; preds = %122, %116, %110
%129 = load i8, ptr %16, align 1
%130 = add i8 %129, 1
store i8 %130, ptr %16, align 1
br label %131
131: ; preds = %128, %122
br label %179
132: ; preds = %103
%133 = load ptr, ptr %10, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 1
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 2
br i1 %137, label %150, label %138
138: ; preds = %132
%139 = load ptr, ptr %10, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 1
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 3
br i1 %143, label %150, label %144
144: ; preds = %138
%145 = load ptr, ptr %10, align 8
%146 = getelementptr inbounds i8, ptr %145, i64 1
%147 = load i8, ptr %146, align 1
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 9
br i1 %149, label %150, label %153
150: ; preds = %144, %138, %132
%151 = load i8, ptr %16, align 1
%152 = add i8 %151, 1
store i8 %152, ptr %16, align 1
br label %153
153: ; preds = %150, %144
br label %179
154: ; preds = %103
%155 = load ptr, ptr %10, align 8
%156 = getelementptr inbounds i8, ptr %155, i64 1
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 4
br i1 %159, label %172, label %160
160: ; preds = %154
%161 = load ptr, ptr %10, align 8
%162 = getelementptr inbounds i8, ptr %161, i64 1
%163 = load i8, ptr %162, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 5
br i1 %165, label %172, label %166
166: ; preds = %160
%167 = load ptr, ptr %10, align 8
%168 = getelementptr inbounds i8, ptr %167, i64 1
%169 = load i8, ptr %168, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 10
br i1 %171, label %172, label %175
172: ; preds = %166, %160, %154
%173 = load i8, ptr %16, align 1
%174 = add i8 %173, 1
store i8 %174, ptr %16, align 1
br label %175
175: ; preds = %172, %166
br label %179
176: ; preds = %103
%177 = load i8, ptr %16, align 1
%178 = add i8 %177, 1
store i8 %178, ptr %16, align 1
br label %179
179: ; preds = %176, %175, %153, %131
br label %183
180: ; preds = %100
%181 = load i8, ptr %16, align 1
%182 = add i8 %181, 1
store i8 %182, ptr %16, align 1
br label %183
183: ; preds = %180, %179
%184 = load i8, ptr %16, align 1
%185 = icmp ne i8 %184, 0
br i1 %185, label %187, label %186
186: ; preds = %183
br label %235
187: ; preds = %183
%188 = load ptr, ptr %10, align 8
%189 = getelementptr inbounds i8, ptr %188, i64 0
store i8 97, ptr %189, align 1
%190 = load ptr, ptr %10, align 8
%191 = getelementptr inbounds i8, ptr %190, i64 1
store i8 0, ptr %191, align 1
%192 = load ptr, ptr %10, align 8
%193 = getelementptr inbounds i8, ptr %192, i64 2
store i8 0, ptr %193, align 1
br label %194
194: ; preds = %187, %94, %88
br label %235
195: ; preds = %83, %83
store i64 1, ptr %15, align 8
br label %235
196: ; preds = %83, %83
store i64 3, ptr %15, align 8
br label %235
197: ; preds = %83
store i64 1, ptr %15, align 8
%198 = load ptr, ptr %11, align 8
store ptr %198, ptr %10, align 8
br label %235
199: ; preds = %83
%200 = load ptr, ptr %10, align 8
%201 = load ptr, ptr %9, align 8
%202 = ptrtoint ptr %200 to i64
%203 = ptrtoint ptr %201 to i64
%204 = sub i64 %202, %203
%205 = trunc i64 %204 to i32
%206 = call i32 @printf(ptr noundef @.str.7, i32 noundef %205)
%207 = load ptr, ptr %10, align 8
%208 = getelementptr inbounds i8, ptr %207, i64 3
%209 = load i32, ptr %208, align 4
%210 = sext i32 %209 to i64
store i64 %210, ptr %15, align 8
%211 = load i64, ptr %15, align 8
%212 = trunc i64 %211 to i32
%213 = call i32 @printf(ptr noundef @.str.8, i32 noundef %212)
%214 = load i64, ptr %15, align 8
%215 = add i64 %214, 7
%216 = load ptr, ptr %10, align 8
%217 = getelementptr inbounds i8, ptr %216, i64 %215
store ptr %217, ptr %10, align 8
%218 = load ptr, ptr %10, align 8
%219 = load ptr, ptr %9, align 8
%220 = ptrtoint ptr %218 to i64
%221 = ptrtoint ptr %219 to i64
%222 = sub i64 %220, %221
%223 = trunc i64 %222 to i32
%224 = call i32 @printf(ptr noundef @.str.9, i32 noundef %223)
store i64 0, ptr %15, align 8
br label %235
225: ; preds = %83
%226 = load ptr, ptr %10, align 8
%227 = getelementptr inbounds i8, ptr %226, i64 0
%228 = load i8, ptr %227, align 1
%229 = sext i8 %228 to i32
%230 = and i32 %229, 112
%231 = icmp ne i32 %230, 0
br i1 %231, label %232, label %233
232: ; preds = %225
store i64 1, ptr %15, align 8
br label %234
233: ; preds = %225
store i64 3, ptr %15, align 8
br label %234
234: ; preds = %233, %232
br label %235
235: ; preds = %234, %199, %197, %196, %195, %194, %186
%236 = load i64, ptr %15, align 8
%237 = load ptr, ptr %10, align 8
%238 = getelementptr inbounds i8, ptr %237, i64 %236
store ptr %238, ptr %10, align 8
br label %79, !llvm.loop !6
239: ; preds = %79
%240 = load ptr, ptr %9, align 8
%241 = load i64, ptr %14, align 8
%242 = load ptr, ptr %13, align 8
%243 = call i32 @fwrite(ptr noundef %240, i32 noundef 1, i64 noundef %241, ptr noundef %242)
%244 = load ptr, ptr %13, align 8
%245 = call i32 @fclose(ptr noundef %244)
%246 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %246, ptr %4, align 4
br label %247
247: ; preds = %239, %63, %47, %25
%248 = load i32, ptr %4, align 4
ret i32 %248
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @calloc(i32 noundef, i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyei9698v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".vgz\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c".vgz not supported\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"-ay.vgm\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"File cannot be opened.\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [32 x i8] c"Cannot initialize file buffer.\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"DEBUG: Curr addr 0x%X\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"DEBUG: Offset Data Block 0x%X\0A\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"DEBUG: New addr 0x%X\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [80 x i8], align 16
%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 i64, align 8
%15 = alloca i64, align 8
%16 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store ptr null, ptr %13, align 8
store i64 0, ptr %14, align 8
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = sub nsw i32 %19, 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %17, i64 %21
%23 = call i64 @strcmp(ptr noundef @.str, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %3
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %27, ptr %4, align 4
br label %249
28: ; preds = %3
%29 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strncpy(ptr noundef %29, ptr noundef %30, i32 noundef 80)
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = sub nsw i32 %33, 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 %35
%37 = call i32 @strncpy(ptr noundef %36, ptr noundef @.str.2, i32 noundef 80)
%38 = load ptr, ptr %5, align 8
%39 = call ptr @fopen(ptr noundef %38, ptr noundef @.str.3)
store ptr %39, ptr %12, align 8
%40 = getelementptr inbounds [80 x i8], ptr %8, i64 0, i64 0
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.4)
store ptr %41, ptr %13, align 8
%42 = load ptr, ptr %12, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %47, label %44
44: ; preds = %28
%45 = load ptr, ptr %13, align 8
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %44, %28
%48 = call i32 @perror(ptr noundef @.str.5)
%49 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %49, ptr %4, align 4
br label %249
50: ; preds = %44
%51 = load ptr, ptr %12, align 8
%52 = load i32, ptr @SEEK_END, align 4
%53 = call i32 @fseek(ptr noundef %51, i32 noundef 0, i32 noundef %52)
%54 = load ptr, ptr %12, align 8
%55 = call i64 @ftell(ptr noundef %54)
store i64 %55, ptr %14, align 8
%56 = load ptr, ptr %12, align 8
%57 = load i32, ptr @SEEK_SET, align 4
%58 = call i32 @fseek(ptr noundef %56, i32 noundef 0, i32 noundef %57)
%59 = load i64, ptr %14, align 8
%60 = call ptr @calloc(i32 noundef 1, i64 noundef %59)
store ptr %60, ptr %9, align 8
%61 = load ptr, ptr %9, align 8
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %66
63: ; preds = %50
%64 = call i32 @perror(ptr noundef @.str.6)
%65 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %65, ptr %4, align 4
br label %249
66: ; preds = %50
%67 = load ptr, ptr %9, align 8
%68 = load i64, ptr %14, align 8
%69 = load ptr, ptr %12, align 8
%70 = call i32 @fread(ptr noundef %67, i32 noundef 1, i64 noundef %68, ptr noundef %69)
%71 = load ptr, ptr %12, align 8
%72 = call i32 @fclose(ptr noundef %71)
%73 = load ptr, ptr %9, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 224
store ptr %74, ptr %10, align 8
%75 = load ptr, ptr %9, align 8
%76 = load i64, ptr %14, align 8
%77 = sub i64 %76, 1
%78 = getelementptr inbounds i8, ptr %75, i64 %77
store ptr %78, ptr %11, align 8
%79 = load ptr, ptr %10, align 8
%80 = load ptr, ptr %11, align 8
%81 = icmp ule ptr %79, %80
br i1 %81, label %.lr.ph, label %241
.lr.ph: ; preds = %66
br label %82
82: ; preds = %.lr.ph, %234
%83 = load ptr, ptr %10, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 0
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
switch i32 %86, label %224 [
i32 85, label %87
i32 86, label %87
i32 98, label %194
i32 99, label %194
i32 87, label %195
i32 97, label %195
i32 102, label %196
i32 103, label %198
]
87: ; preds = %82, %82
store i64 3, ptr %15, align 8
%88 = load ptr, ptr %10, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 1
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp sge i32 %91, 0
br i1 %92, label %93, label %193
93: ; preds = %87
%94 = load ptr, ptr %10, align 8
%95 = getelementptr inbounds i8, ptr %94, i64 1
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp sle i32 %97, 15
br i1 %98, label %99, label %193
99: ; preds = %93
store i8 0, ptr %16, align 1
%100 = load i32, ptr %6, align 4
%101 = icmp sgt i32 %100, 2
br i1 %101, label %102, label %179
102: ; preds = %99
%103 = load ptr, ptr %7, align 8
%104 = getelementptr inbounds ptr, ptr %103, i64 2
%105 = load ptr, ptr %104, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 0
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
switch i32 %108, label %175 [
i32 48, label %109
i32 49, label %131
i32 50, label %153
]
109: ; preds = %102
%110 = load ptr, ptr %10, align 8
%111 = getelementptr inbounds i8, ptr %110, i64 1
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 0
br i1 %114, label %127, label %115
115: ; preds = %109
%116 = load ptr, ptr %10, align 8
%117 = getelementptr inbounds i8, ptr %116, i64 1
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 1
br i1 %120, label %127, label %121
121: ; preds = %115
%122 = load ptr, ptr %10, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 1
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 8
br i1 %126, label %127, label %130
127: ; preds = %121, %115, %109
%128 = load i8, ptr %16, align 1
%129 = add i8 %128, 1
store i8 %129, ptr %16, align 1
br label %130
130: ; preds = %127, %121
br label %178
131: ; preds = %102
%132 = load ptr, ptr %10, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 1
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 2
br i1 %136, label %149, label %137
137: ; preds = %131
%138 = load ptr, ptr %10, align 8
%139 = getelementptr inbounds i8, ptr %138, i64 1
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %141, 3
br i1 %142, label %149, label %143
143: ; preds = %137
%144 = load ptr, ptr %10, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 1
%146 = load i8, ptr %145, align 1
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 9
br i1 %148, label %149, label %152
149: ; preds = %143, %137, %131
%150 = load i8, ptr %16, align 1
%151 = add i8 %150, 1
store i8 %151, ptr %16, align 1
br label %152
152: ; preds = %149, %143
br label %178
153: ; preds = %102
%154 = load ptr, ptr %10, align 8
%155 = getelementptr inbounds i8, ptr %154, i64 1
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 4
br i1 %158, label %171, label %159
159: ; preds = %153
%160 = load ptr, ptr %10, align 8
%161 = getelementptr inbounds i8, ptr %160, i64 1
%162 = load i8, ptr %161, align 1
%163 = sext i8 %162 to i32
%164 = icmp eq i32 %163, 5
br i1 %164, label %171, label %165
165: ; preds = %159
%166 = load ptr, ptr %10, align 8
%167 = getelementptr inbounds i8, ptr %166, i64 1
%168 = load i8, ptr %167, align 1
%169 = sext i8 %168 to i32
%170 = icmp eq i32 %169, 10
br i1 %170, label %171, label %174
171: ; preds = %165, %159, %153
%172 = load i8, ptr %16, align 1
%173 = add i8 %172, 1
store i8 %173, ptr %16, align 1
br label %174
174: ; preds = %171, %165
br label %178
175: ; preds = %102
%176 = load i8, ptr %16, align 1
%177 = add i8 %176, 1
store i8 %177, ptr %16, align 1
br label %178
178: ; preds = %175, %174, %152, %130
br label %182
179: ; preds = %99
%180 = load i8, ptr %16, align 1
%181 = add i8 %180, 1
store i8 %181, ptr %16, align 1
br label %182
182: ; preds = %179, %178
%183 = load i8, ptr %16, align 1
%184 = icmp ne i8 %183, 0
br i1 %184, label %186, label %185
185: ; preds = %182
br label %234
186: ; preds = %182
%187 = load ptr, ptr %10, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 0
store i8 97, ptr %188, align 1
%189 = load ptr, ptr %10, align 8
%190 = getelementptr inbounds i8, ptr %189, i64 1
store i8 0, ptr %190, align 1
%191 = load ptr, ptr %10, align 8
%192 = getelementptr inbounds i8, ptr %191, i64 2
store i8 0, ptr %192, align 1
br label %193
193: ; preds = %186, %93, %87
br label %234
194: ; preds = %82, %82
store i64 1, ptr %15, align 8
br label %234
195: ; preds = %82, %82
store i64 3, ptr %15, align 8
br label %234
196: ; preds = %82
store i64 1, ptr %15, align 8
%197 = load ptr, ptr %11, align 8
store ptr %197, ptr %10, align 8
br label %234
198: ; preds = %82
%199 = load ptr, ptr %10, align 8
%200 = load ptr, ptr %9, align 8
%201 = ptrtoint ptr %199 to i64
%202 = ptrtoint ptr %200 to i64
%203 = sub i64 %201, %202
%204 = trunc i64 %203 to i32
%205 = call i32 @printf(ptr noundef @.str.7, i32 noundef %204)
%206 = load ptr, ptr %10, align 8
%207 = getelementptr inbounds i8, ptr %206, i64 3
%208 = load i32, ptr %207, align 4
%209 = sext i32 %208 to i64
store i64 %209, ptr %15, align 8
%210 = load i64, ptr %15, align 8
%211 = trunc i64 %210 to i32
%212 = call i32 @printf(ptr noundef @.str.8, i32 noundef %211)
%213 = load i64, ptr %15, align 8
%214 = add i64 %213, 7
%215 = load ptr, ptr %10, align 8
%216 = getelementptr inbounds i8, ptr %215, i64 %214
store ptr %216, ptr %10, align 8
%217 = load ptr, ptr %10, align 8
%218 = load ptr, ptr %9, align 8
%219 = ptrtoint ptr %217 to i64
%220 = ptrtoint ptr %218 to i64
%221 = sub i64 %219, %220
%222 = trunc i64 %221 to i32
%223 = call i32 @printf(ptr noundef @.str.9, i32 noundef %222)
store i64 0, ptr %15, align 8
br label %234
224: ; preds = %82
%225 = load ptr, ptr %10, align 8
%226 = getelementptr inbounds i8, ptr %225, i64 0
%227 = load i8, ptr %226, align 1
%228 = sext i8 %227 to i32
%229 = and i32 %228, 112
%230 = icmp ne i32 %229, 0
br i1 %230, label %231, label %232
231: ; preds = %224
store i64 1, ptr %15, align 8
br label %233
232: ; preds = %224
store i64 3, ptr %15, align 8
br label %233
233: ; preds = %232, %231
br label %234
234: ; preds = %233, %198, %196, %195, %194, %193, %185
%235 = load i64, ptr %15, align 8
%236 = load ptr, ptr %10, align 8
%237 = getelementptr inbounds i8, ptr %236, i64 %235
store ptr %237, ptr %10, align 8
%238 = load ptr, ptr %10, align 8
%239 = load ptr, ptr %11, align 8
%240 = icmp ule ptr %238, %239
br i1 %240, label %82, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %234
br label %241
241: ; preds = %._crit_edge, %66
%242 = load ptr, ptr %9, align 8
%243 = load i64, ptr %14, align 8
%244 = load ptr, ptr %13, align 8
%245 = call i32 @fwrite(ptr noundef %242, i32 noundef 1, i64 noundef %243, ptr noundef %244)
%246 = load ptr, ptr %13, align 8
%247 = call i32 @fclose(ptr noundef %246)
%248 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %248, ptr %4, align 4
br label %249
249: ; preds = %241, %63, %47, %25
%250 = load i32, ptr %4, align 4
ret i32 %250
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @calloc(i32 noundef, i64 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyab7extj.c'
source_filename = "/tmp/tmpyab7extj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"TMPDIR\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"/tmp\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@__const.make_temp_devnode.filename = private unnamed_addr constant [13 x i8] c"zgetdump0000\00", align 1
@S_IFBLK = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"zgetdump%04d\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [43 x i8] c"Unable to create temporary device node: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_temp_devnode(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 [5 x ptr], align 16
%8 = alloca [13 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
%15 = call ptr @getenv(ptr noundef @.str)
store ptr %15, ptr %14, align 8
%16 = getelementptr inbounds ptr, ptr %14, i64 1
store ptr @.str.1, ptr %16, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = call ptr @getenv(ptr noundef @.str.2)
store ptr %18, ptr %17, align 8
%19 = getelementptr inbounds ptr, ptr %17, i64 1
store ptr @.str.3, ptr %19, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
store ptr @.str.4, ptr %20, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.make_temp_devnode.filename, i64 13, i1 false)
%21 = load i32, ptr @S_IFBLK, align 4
%22 = load i32, ptr @S_IRWXU, align 4
%23 = or i32 %21, %22
store i32 %23, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %24
24: ; preds = %86, %2
%25 = load i32, ptr %10, align 4
%26 = zext i32 %25 to i64
%27 = icmp ult i64 %26, 5
br i1 %27, label %28, label %89
28: ; preds = %24
%29 = load i32, ptr %10, align 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %28
br label %86
35: ; preds = %28
store i32 0, ptr %11, align 4
br label %36
36: ; preds = %82, %35
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %37, 1000
br i1 %38, label %39, label %85
39: ; preds = %36
%40 = getelementptr inbounds [13 x i8], ptr %8, i64 0, i64 0
%41 = load i32, ptr %11, align 4
%42 = call i32 @sprintf(ptr noundef %40, ptr noundef @.str.5, i32 noundef %41)
%43 = load i32, ptr %10, align 4
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds [13 x i8], ptr %8, i64 0, i64 0
%48 = call ptr @misc_make_path(ptr noundef %46, ptr noundef %47)
store ptr %48, ptr %6, align 8
%49 = load ptr, ptr %6, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %52
51: ; preds = %39
store i32 1, ptr %3, align 4
br label %94
52: ; preds = %39
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %4, align 4
%56 = call i32 @mknod(ptr noundef %53, i32 noundef %54, i32 noundef %55)
store i32 %56, ptr %12, align 4
%57 = load i32, ptr %12, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %73
59: ; preds = %52
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr @O_RDWR, align 4
%62 = call i32 @open(ptr noundef %60, i32 noundef %61)
store i32 %62, ptr %13, align 4
%63 = load i32, ptr %13, align 4
%64 = icmp ne i32 %63, -1
br i1 %64, label %65, label %70
65: ; preds = %59
%66 = load i32, ptr %13, align 4
%67 = call i32 @close(i32 noundef %66)
%68 = load ptr, ptr %6, align 8
%69 = load ptr, ptr %5, align 8
store ptr %68, ptr %69, align 8
store i32 0, ptr %3, align 4
br label %94
70: ; preds = %59
%71 = load ptr, ptr %6, align 8
%72 = call i32 @remove(ptr noundef %71)
store i32 1000, ptr %11, align 4
br label %79
73: ; preds = %52
%74 = load i64, ptr @errno, align 8
%75 = load i64, ptr @EEXIST, align 8
%76 = icmp ne i64 %74, %75
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 1000, ptr %11, align 4
br label %78
78: ; preds = %77, %73
br label %79
79: ; preds = %78, %70
%80 = load ptr, ptr %6, align 8
%81 = call i32 @free(ptr noundef %80)
br label %82
82: ; preds = %79
%83 = load i32, ptr %11, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %11, align 4
br label %36, !llvm.loop !6
85: ; preds = %36
br label %86
86: ; preds = %85, %34
%87 = load i32, ptr %10, align 4
%88 = add i32 %87, 1
store i32 %88, ptr %10, align 4
br label %24, !llvm.loop !8
89: ; preds = %24
%90 = load i32, ptr @stderr, align 4
%91 = load i64, ptr @errno, align 8
%92 = call ptr @strerror(i64 noundef %91)
%93 = call i32 @fprintf(i32 noundef %90, ptr noundef @.str.6, ptr noundef %92)
store i32 1, ptr %3, align 4
br label %94
94: ; preds = %89, %65, %51
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare ptr @getenv(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 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @misc_make_path(ptr noundef, ptr noundef) #1
declare i32 @mknod(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyab7extj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"TMPDIR\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"/tmp\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@__const.make_temp_devnode.filename = private unnamed_addr constant [13 x i8] c"zgetdump0000\00", align 1
@S_IFBLK = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [13 x i8] c"zgetdump%04d\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [43 x i8] c"Unable to create temporary device node: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @make_temp_devnode(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 [5 x ptr], align 16
%8 = alloca [13 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
%15 = call ptr @getenv(ptr noundef @.str)
store ptr %15, ptr %14, align 8
%16 = getelementptr inbounds ptr, ptr %14, i64 1
store ptr @.str.1, ptr %16, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = call ptr @getenv(ptr noundef @.str.2)
store ptr %18, ptr %17, align 8
%19 = getelementptr inbounds ptr, ptr %17, i64 1
store ptr @.str.3, ptr %19, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
store ptr @.str.4, ptr %20, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.make_temp_devnode.filename, i64 13, i1 false)
%21 = load i32, ptr @S_IFBLK, align 4
%22 = load i32, ptr @S_IRWXU, align 4
%23 = or i32 %21, %22
store i32 %23, ptr %9, align 4
store i32 0, ptr %10, align 4
%24 = load i32, ptr %10, align 4
%25 = zext i32 %24 to i64
%26 = icmp ult i64 %25, 5
br i1 %26, label %.lr.ph2, label %92
.lr.ph2: ; preds = %2
br label %27
27: ; preds = %.lr.ph2, %86
%28 = load i32, ptr %10, align 4
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %34
33: ; preds = %27
br label %86
34: ; preds = %27
store i32 0, ptr %11, align 4
%35 = load i32, ptr %11, align 4
%36 = icmp slt i32 %35, 1000
br i1 %36, label %.lr.ph, label %85
.lr.ph: ; preds = %34
br label %37
37: ; preds = %.lr.ph, %80
%38 = getelementptr inbounds [13 x i8], ptr %8, i64 0, i64 0
%39 = load i32, ptr %11, align 4
%40 = call i32 @sprintf(ptr noundef %38, ptr noundef @.str.5, i32 noundef %39)
%41 = load i32, ptr %10, align 4
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds [13 x i8], ptr %8, i64 0, i64 0
%46 = call ptr @misc_make_path(ptr noundef %44, ptr noundef %45)
store ptr %46, ptr %6, align 8
%47 = load ptr, ptr %6, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %50
49: ; preds = %37
store i32 1, ptr %3, align 4
br label %97
50: ; preds = %37
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %4, align 4
%54 = call i32 @mknod(ptr noundef %51, i32 noundef %52, i32 noundef %53)
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %12, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %71
57: ; preds = %50
%58 = load ptr, ptr %6, align 8
%59 = load i32, ptr @O_RDWR, align 4
%60 = call i32 @open(ptr noundef %58, i32 noundef %59)
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %13, align 4
%62 = icmp ne i32 %61, -1
br i1 %62, label %63, label %68
63: ; preds = %57
%64 = load i32, ptr %13, align 4
%65 = call i32 @close(i32 noundef %64)
%66 = load ptr, ptr %6, align 8
%67 = load ptr, ptr %5, align 8
store ptr %66, ptr %67, align 8
store i32 0, ptr %3, align 4
br label %97
68: ; preds = %57
%69 = load ptr, ptr %6, align 8
%70 = call i32 @remove(ptr noundef %69)
store i32 1000, ptr %11, align 4
br label %77
71: ; preds = %50
%72 = load i64, ptr @errno, align 8
%73 = load i64, ptr @EEXIST, align 8
%74 = icmp ne i64 %72, %73
br i1 %74, label %75, label %76
75: ; preds = %71
store i32 1000, ptr %11, align 4
br label %76
76: ; preds = %75, %71
br label %77
77: ; preds = %76, %68
%78 = load ptr, ptr %6, align 8
%79 = call i32 @free(ptr noundef %78)
br label %80
80: ; preds = %77
%81 = load i32, ptr %11, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %11, align 4
%83 = load i32, ptr %11, align 4
%84 = icmp slt i32 %83, 1000
br i1 %84, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %85
85: ; preds = %._crit_edge, %34
br label %86
86: ; preds = %85, %33
%87 = load i32, ptr %10, align 4
%88 = add i32 %87, 1
store i32 %88, ptr %10, align 4
%89 = load i32, ptr %10, align 4
%90 = zext i32 %89 to i64
%91 = icmp ult i64 %90, 5
br i1 %91, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %92
92: ; preds = %._crit_edge3, %2
%93 = load i32, ptr @stderr, align 4
%94 = load i64, ptr @errno, align 8
%95 = call ptr @strerror(i64 noundef %94)
%96 = call i32 @fprintf(i32 noundef %93, ptr noundef @.str.6, ptr noundef %95)
store i32 1, ptr %3, align 4
br label %97
97: ; preds = %92, %63, %49
%98 = load i32, ptr %3, align 4
ret i32 %98
}
declare ptr @getenv(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 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @misc_make_path(ptr noundef, ptr noundef) #1
declare i32 @mknod(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpps2abp8r.c'
source_filename = "/tmp/tmpps2abp8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"genromfs %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"0.5.1\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTIONS] -f IMAGE\0A\00", align 1
@.str.3 = private unnamed_addr constant [50 x i8] c"Create a romfs filesystem image from a directory\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [58 x i8] c" -f IMAGE Output the image into this file\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c" -d DIRECTORY Use this directory as source\0A\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c" -v (Too) verbose operation\0A\00", align 1
@.str.8 = private unnamed_addr constant [56 x i8] c" -V VOLUME Use the specified volume name\0A\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" -a ALIGN Align regular file data to ALIGN bytes\0A\00", align 1
@.str.10 = private unnamed_addr constant [85 x i8] c" -A ALIGN,PATTERN Align all objects matching pattern to at least ALIGN bytes\0A\00", align 1
@.str.11 = private unnamed_addr constant [63 x i8] c" -x PATTERN Exclude all objects matching pattern\0A\00", align 1
@.str.12 = private unnamed_addr constant [41 x i8] c" -h Show this help\0A\00", align 1
@.str.13 = private unnamed_addr constant [39 x i8] c"Report bugs to [email protected]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showhelp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpps2abp8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"genromfs %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"0.5.1\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTIONS] -f IMAGE\0A\00", align 1
@.str.3 = private unnamed_addr constant [50 x i8] c"Create a romfs filesystem image from a directory\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [58 x i8] c" -f IMAGE Output the image into this file\0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c" -d DIRECTORY Use this directory as source\0A\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c" -v (Too) verbose operation\0A\00", align 1
@.str.8 = private unnamed_addr constant [56 x i8] c" -V VOLUME Use the specified volume name\0A\00", align 1
@.str.9 = private unnamed_addr constant [65 x i8] c" -a ALIGN Align regular file data to ALIGN bytes\0A\00", align 1
@.str.10 = private unnamed_addr constant [85 x i8] c" -A ALIGN,PATTERN Align all objects matching pattern to at least ALIGN bytes\0A\00", align 1
@.str.11 = private unnamed_addr constant [63 x i8] c" -x PATTERN Exclude all objects matching pattern\0A\00", align 1
@.str.12 = private unnamed_addr constant [41 x i8] c" -h Show this help\0A\00", align 1
@.str.13 = private unnamed_addr constant [39 x i8] c"Report bugs to [email protected]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showhelp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %4)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxd4y_t5w.c'
source_filename = "/tmp/tmpxd4y_t5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j2k_read_tlm() #0 {
%1 = alloca i32, align 4
%2 = call i32 @cio_read(i32 noundef 2)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = sub nsw i32 %3, 2
%5 = call i32 @cio_skip(i32 noundef %4)
ret void
}
declare i32 @cio_read(i32 noundef) #1
declare i32 @cio_skip(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/tmpxd4y_t5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j2k_read_tlm() #0 {
%1 = alloca i32, align 4
%2 = call i32 @cio_read(i32 noundef 2)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = sub nsw i32 %3, 2
%5 = call i32 @cio_skip(i32 noundef %4)
ret void
}
declare i32 @cio_read(i32 noundef) #1
declare i32 @cio_skip(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/tmpby78m7ey.c'
source_filename = "/tmp/tmpby78m7ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @f(i32 noundef 0)
%2 = call i32 @g(i32 noundef 0)
%3 = call i32 @g(i32 noundef 0)
%4 = call i32 @g(i32 noundef 0)
%5 = call i32 @g(i32 noundef 0)
%6 = call i32 @g(i32 noundef 0)
%7 = call i32 @g(i32 noundef 0)
ret i32 0
}
declare i32 @f(i32 noundef) #1
declare i32 @g(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/tmpby78m7ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @f(i32 noundef 0)
%2 = call i32 @g(i32 noundef 0)
%3 = call i32 @g(i32 noundef 0)
%4 = call i32 @g(i32 noundef 0)
%5 = call i32 @g(i32 noundef 0)
%6 = call i32 @g(i32 noundef 0)
%7 = call i32 @g(i32 noundef 0)
ret i32 0
}
declare i32 @f(i32 noundef) #1
declare i32 @g(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/tmpjxz2genl.c'
source_filename = "/tmp/tmpjxz2genl.c"
target datalayout = "e-m:e-p270: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/tmpjxz2genl.c"
target datalayout = "e-m:e-p270: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/tmpe4jgctw4.c'
source_filename = "/tmp/tmpe4jgctw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter number of city: \00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @check_intInput(ptr noundef %2)
store ptr null, ptr %3, align 8
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = call ptr @calloc(i64 noundef %12, i32 noundef 8)
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %23, label %16
16: ; preds = %0
%17 = load i32, ptr @stderr, align 4
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %19)
%21 = load i32, ptr @EXIT_FAILURE, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
23: ; preds = %0
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %24
24: ; preds = %74, %23
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %77
28: ; preds = %24
%29 = call ptr @line_reading(i32 noundef 50)
store ptr %29, ptr %3, align 8
%30 = load ptr, ptr %3, align 8
%31 = call ptr @strtok(ptr noundef %30, ptr noundef @.str.2)
store ptr %31, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %32
32: ; preds = %67, %28
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %36, label %71
36: ; preds = %32
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %67
40: ; preds = %36
%41 = load ptr, ptr %7, align 8
%42 = call i64 @strlen(ptr noundef %41)
store i64 %42, ptr %5, align 8
%43 = load i64, ptr %5, align 8
%44 = add i64 %43, 1
%45 = call ptr @calloc(i64 noundef %44, i32 noundef 1)
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
store ptr %45, ptr %49, align 8
%50 = load ptr, ptr %4, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %59, label %52
52: ; preds = %40
%53 = load i32, ptr @stderr, align 4
%54 = load i32, ptr @errno, align 4
%55 = call ptr @strerror(i32 noundef %54)
%56 = call i32 @fprintf(i32 noundef %53, ptr noundef @.str.1, ptr noundef %55)
%57 = load i32, ptr @EXIT_FAILURE, align 4
%58 = call i32 @exit(i32 noundef %57) #3
unreachable
59: ; preds = %40
%60 = load ptr, ptr %4, align 8
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = load ptr, ptr %7, align 8
%66 = call i32 @strcpy(ptr noundef %64, ptr noundef %65)
br label %67
67: ; preds = %59, %36
%68 = call ptr @strtok(ptr noundef null, ptr noundef @.str.2)
store ptr %68, ptr %7, align 8
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %8, align 4
br label %32, !llvm.loop !6
71: ; preds = %32
%72 = load ptr, ptr %3, align 8
%73 = call i32 @free(ptr noundef %72)
br label %74
74: ; preds = %71
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %6, align 4
br label %24, !llvm.loop !8
77: ; preds = %24
%78 = load ptr, ptr %4, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %87
80: ; preds = %77
%81 = load ptr, ptr %4, align 8
%82 = load i32, ptr %2, align 4
%83 = call i32 @print_array(ptr noundef %81, i32 noundef %82)
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %2, align 4
%86 = call i32 @free_array(ptr noundef %84, i32 noundef %85)
br label %87
87: ; preds = %80, %77
%88 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %88
}
declare i32 @printf(ptr noundef) #1
declare i32 @check_intInput(ptr noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @line_reading(i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @print_array(ptr noundef, i32 noundef) #1
declare i32 @free_array(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4jgctw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter number of city: \00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @check_intInput(ptr noundef %2)
store ptr null, ptr %3, align 8
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = call ptr @calloc(i64 noundef %12, i32 noundef 8)
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %23, label %16
16: ; preds = %0
%17 = load i32, ptr @stderr, align 4
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %19)
%21 = load i32, ptr @EXIT_FAILURE, align 4
%22 = call i32 @exit(i32 noundef %21) #3
unreachable
23: ; preds = %0
store i64 0, ptr %5, align 8
store i32 0, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph2, label %81
.lr.ph2: ; preds = %23
br label %27
27: ; preds = %.lr.ph2, %75
%28 = call ptr @line_reading(i32 noundef 50)
store ptr %28, ptr %3, align 8
%29 = load ptr, ptr %3, align 8
%30 = call ptr @strtok(ptr noundef %29, ptr noundef @.str.2)
store ptr %30, ptr %7, align 8
store i32 0, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp sle i32 %31, %32
br i1 %33, label %.lr.ph, label %72
.lr.ph: ; preds = %27
br label %34
34: ; preds = %.lr.ph, %65
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %65
38: ; preds = %34
%39 = load ptr, ptr %7, align 8
%40 = call i64 @strlen(ptr noundef %39)
store i64 %40, ptr %5, align 8
%41 = load i64, ptr %5, align 8
%42 = add i64 %41, 1
%43 = call ptr @calloc(i64 noundef %42, i32 noundef 1)
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
store ptr %43, ptr %47, align 8
%48 = load ptr, ptr %4, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %57, label %50
50: ; preds = %38
%51 = load i32, ptr @stderr, align 4
%52 = load i32, ptr @errno, align 4
%53 = call ptr @strerror(i32 noundef %52)
%54 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str.1, ptr noundef %53)
%55 = load i32, ptr @EXIT_FAILURE, align 4
%56 = call i32 @exit(i32 noundef %55) #3
unreachable
57: ; preds = %38
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = load ptr, ptr %7, align 8
%64 = call i32 @strcpy(ptr noundef %62, ptr noundef %63)
br label %65
65: ; preds = %57, %34
%66 = call ptr @strtok(ptr noundef null, ptr noundef @.str.2)
store ptr %66, ptr %7, align 8
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %6, align 4
%71 = icmp sle i32 %69, %70
br i1 %71, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %72
72: ; preds = %._crit_edge, %27
%73 = load ptr, ptr %3, align 8
%74 = call i32 @free(ptr noundef %73)
br label %75
75: ; preds = %72
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
%78 = load i32, ptr %6, align 4
%79 = load i32, ptr %2, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %23
%82 = load ptr, ptr %4, align 8
%83 = icmp ne ptr %82, null
br i1 %83, label %84, label %91
84: ; preds = %81
%85 = load ptr, ptr %4, align 8
%86 = load i32, ptr %2, align 4
%87 = call i32 @print_array(ptr noundef %85, i32 noundef %86)
%88 = load ptr, ptr %4, align 8
%89 = load i32, ptr %2, align 4
%90 = call i32 @free_array(ptr noundef %88, i32 noundef %89)
br label %91
91: ; preds = %84, %81
%92 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %92
}
declare i32 @printf(ptr noundef) #1
declare i32 @check_intInput(ptr noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @line_reading(i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @print_array(ptr noundef, i32 noundef) #1
declare i32 @free_array(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe5a2wq78.c'
source_filename = "/tmp/tmpe5a2wq78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { i32, ptr, i32 }
@V_ASN1_INTEGER = dso_local global i32 0, align 4
@ASN1_R_BAD_OBJECT_HEADER = dso_local global i32 0, align 4
@ASN1_R_EXPECTING_AN_INTEGER = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@ASN1_F_D2I_ASN1_UINTEGER = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @d2i_ASN1_UINTEGER(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr null, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %19, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %30
22: ; preds = %18, %3
%23 = call ptr (...) @M_ASN1_INTEGER_new()
store ptr %23, ptr %8, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %22
store ptr null, ptr %4, align 8
br label %124
26: ; preds = %22
%27 = load i32, ptr @V_ASN1_INTEGER, align 4
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %28, i32 0, i32 0
store i32 %27, ptr %29, align 8
br label %33
30: ; preds = %18
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %8, align 8
br label %33
33: ; preds = %30, %26
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %9, align 8
%36 = load i64, ptr %7, align 8
%37 = call i32 @ASN1_get_object(ptr noundef %9, ptr noundef %11, ptr noundef %13, ptr noundef %14, i64 noundef %36)
store i32 %37, ptr %12, align 4
%38 = load i32, ptr %12, align 4
%39 = and i32 %38, 128
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = load i32, ptr @ASN1_R_BAD_OBJECT_HEADER, align 4
store i32 %42, ptr %15, align 4
br label %106
43: ; preds = %33
%44 = load i32, ptr %13, align 4
%45 = load i32, ptr @V_ASN1_INTEGER, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32, ptr @ASN1_R_EXPECTING_AN_INTEGER, align 4
store i32 %48, ptr %15, align 4
br label %106
49: ; preds = %43
%50 = load i64, ptr %11, align 8
%51 = trunc i64 %50 to i32
%52 = add nsw i32 %51, 1
%53 = call ptr @malloc(i32 noundef %52)
store ptr %53, ptr %10, align 8
%54 = load ptr, ptr %10, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %49
%57 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
store i32 %57, ptr %15, align 4
br label %106
58: ; preds = %49
%59 = load i32, ptr @V_ASN1_INTEGER, align 4
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds %struct.TYPE_6__, ptr %60, i32 0, i32 0
store i32 %59, ptr %61, align 8
%62 = load i64, ptr %11, align 8
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %85
64: ; preds = %58
%65 = load ptr, ptr %9, align 8
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %64
%70 = load i64, ptr %11, align 8
%71 = icmp ne i64 %70, 1
br i1 %71, label %72, label %77
72: ; preds = %69
%73 = load ptr, ptr %9, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %9, align 8
%75 = load i64, ptr %11, align 8
%76 = add nsw i64 %75, -1
store i64 %76, ptr %11, align 8
br label %77
77: ; preds = %72, %69, %64
%78 = load ptr, ptr %10, align 8
%79 = load ptr, ptr %9, align 8
%80 = load i64, ptr %11, align 8
%81 = call i32 @memcpy(ptr noundef %78, ptr noundef %79, i64 noundef %80)
%82 = load i64, ptr %11, align 8
%83 = load ptr, ptr %9, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 %82
store ptr %84, ptr %9, align 8
br label %85
85: ; preds = %77, %58
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds %struct.TYPE_6__, ptr %86, i32 0, i32 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load ptr, ptr %10, align 8
%91 = load ptr, ptr %8, align 8
%92 = getelementptr inbounds %struct.TYPE_6__, ptr %91, i32 0, i32 1
store ptr %90, ptr %92, align 8
%93 = load i64, ptr %11, align 8
%94 = trunc i64 %93 to i32
%95 = load ptr, ptr %8, align 8
%96 = getelementptr inbounds %struct.TYPE_6__, ptr %95, i32 0, i32 2
store i32 %94, ptr %96, align 8
%97 = load ptr, ptr %5, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %85
%100 = load ptr, ptr %8, align 8
%101 = load ptr, ptr %5, align 8
store ptr %100, ptr %101, align 8
br label %102
102: ; preds = %99, %85
%103 = load ptr, ptr %9, align 8
%104 = load ptr, ptr %6, align 8
store ptr %103, ptr %104, align 8
%105 = load ptr, ptr %8, align 8
store ptr %105, ptr %4, align 8
br label %124
106: ; preds = %56, %47, %41
%107 = load i32, ptr @ASN1_F_D2I_ASN1_UINTEGER, align 4
%108 = load i32, ptr %15, align 4
%109 = call i32 @ASN1err(i32 noundef %107, i32 noundef %108)
%110 = load ptr, ptr %8, align 8
%111 = icmp ne ptr %110, null
br i1 %111, label %112, label %123
112: ; preds = %106
%113 = load ptr, ptr %5, align 8
%114 = icmp eq ptr %113, null
br i1 %114, label %120, label %115
115: ; preds = %112
%116 = load ptr, ptr %5, align 8
%117 = load ptr, ptr %116, align 8
%118 = load ptr, ptr %8, align 8
%119 = icmp ne ptr %117, %118
br i1 %119, label %120, label %123
120: ; preds = %115, %112
%121 = load ptr, ptr %8, align 8
%122 = call i32 @M_ASN1_INTEGER_free(ptr noundef %121)
br label %123
123: ; preds = %120, %115, %106
store ptr null, ptr %4, align 8
br label %124
124: ; preds = %123, %102, %25
%125 = load ptr, ptr %4, align 8
ret ptr %125
}
declare ptr @M_ASN1_INTEGER_new(...) #1
declare i32 @ASN1_get_object(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @ASN1err(i32 noundef, i32 noundef) #1
declare i32 @M_ASN1_INTEGER_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe5a2wq78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { i32, ptr, i32 }
@V_ASN1_INTEGER = dso_local global i32 0, align 4
@ASN1_R_BAD_OBJECT_HEADER = dso_local global i32 0, align 4
@ASN1_R_EXPECTING_AN_INTEGER = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@ASN1_F_D2I_ASN1_UINTEGER = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @d2i_ASN1_UINTEGER(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr null, ptr %8, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %19, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %30
22: ; preds = %18, %3
%23 = call ptr (...) @M_ASN1_INTEGER_new()
store ptr %23, ptr %8, align 8
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %22
store ptr null, ptr %4, align 8
br label %124
26: ; preds = %22
%27 = load i32, ptr @V_ASN1_INTEGER, align 4
%28 = load ptr, ptr %8, align 8
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %28, i32 0, i32 0
store i32 %27, ptr %29, align 8
br label %33
30: ; preds = %18
%31 = load ptr, ptr %5, align 8
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %8, align 8
br label %33
33: ; preds = %30, %26
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %9, align 8
%36 = load i64, ptr %7, align 8
%37 = call i32 @ASN1_get_object(ptr noundef %9, ptr noundef %11, ptr noundef %13, ptr noundef %14, i64 noundef %36)
store i32 %37, ptr %12, align 4
%38 = load i32, ptr %12, align 4
%39 = and i32 %38, 128
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = load i32, ptr @ASN1_R_BAD_OBJECT_HEADER, align 4
store i32 %42, ptr %15, align 4
br label %106
43: ; preds = %33
%44 = load i32, ptr %13, align 4
%45 = load i32, ptr @V_ASN1_INTEGER, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load i32, ptr @ASN1_R_EXPECTING_AN_INTEGER, align 4
store i32 %48, ptr %15, align 4
br label %106
49: ; preds = %43
%50 = load i64, ptr %11, align 8
%51 = trunc i64 %50 to i32
%52 = add nsw i32 %51, 1
%53 = call ptr @malloc(i32 noundef %52)
store ptr %53, ptr %10, align 8
%54 = load ptr, ptr %10, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %58
56: ; preds = %49
%57 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
store i32 %57, ptr %15, align 4
br label %106
58: ; preds = %49
%59 = load i32, ptr @V_ASN1_INTEGER, align 4
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds %struct.TYPE_6__, ptr %60, i32 0, i32 0
store i32 %59, ptr %61, align 8
%62 = load i64, ptr %11, align 8
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %85
64: ; preds = %58
%65 = load ptr, ptr %9, align 8
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %77
69: ; preds = %64
%70 = load i64, ptr %11, align 8
%71 = icmp ne i64 %70, 1
br i1 %71, label %72, label %77
72: ; preds = %69
%73 = load ptr, ptr %9, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %9, align 8
%75 = load i64, ptr %11, align 8
%76 = add nsw i64 %75, -1
store i64 %76, ptr %11, align 8
br label %77
77: ; preds = %72, %69, %64
%78 = load ptr, ptr %10, align 8
%79 = load ptr, ptr %9, align 8
%80 = load i64, ptr %11, align 8
%81 = call i32 @memcpy(ptr noundef %78, ptr noundef %79, i64 noundef %80)
%82 = load i64, ptr %11, align 8
%83 = load ptr, ptr %9, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 %82
store ptr %84, ptr %9, align 8
br label %85
85: ; preds = %77, %58
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds %struct.TYPE_6__, ptr %86, i32 0, i32 1
%88 = load ptr, ptr %87, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load ptr, ptr %10, align 8
%91 = load ptr, ptr %8, align 8
%92 = getelementptr inbounds %struct.TYPE_6__, ptr %91, i32 0, i32 1
store ptr %90, ptr %92, align 8
%93 = load i64, ptr %11, align 8
%94 = trunc i64 %93 to i32
%95 = load ptr, ptr %8, align 8
%96 = getelementptr inbounds %struct.TYPE_6__, ptr %95, i32 0, i32 2
store i32 %94, ptr %96, align 8
%97 = load ptr, ptr %5, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %85
%100 = load ptr, ptr %8, align 8
%101 = load ptr, ptr %5, align 8
store ptr %100, ptr %101, align 8
br label %102
102: ; preds = %99, %85
%103 = load ptr, ptr %9, align 8
%104 = load ptr, ptr %6, align 8
store ptr %103, ptr %104, align 8
%105 = load ptr, ptr %8, align 8
store ptr %105, ptr %4, align 8
br label %124
106: ; preds = %56, %47, %41
%107 = load i32, ptr @ASN1_F_D2I_ASN1_UINTEGER, align 4
%108 = load i32, ptr %15, align 4
%109 = call i32 @ASN1err(i32 noundef %107, i32 noundef %108)
%110 = load ptr, ptr %8, align 8
%111 = icmp ne ptr %110, null
br i1 %111, label %112, label %123
112: ; preds = %106
%113 = load ptr, ptr %5, align 8
%114 = icmp eq ptr %113, null
br i1 %114, label %120, label %115
115: ; preds = %112
%116 = load ptr, ptr %5, align 8
%117 = load ptr, ptr %116, align 8
%118 = load ptr, ptr %8, align 8
%119 = icmp ne ptr %117, %118
br i1 %119, label %120, label %123
120: ; preds = %115, %112
%121 = load ptr, ptr %8, align 8
%122 = call i32 @M_ASN1_INTEGER_free(ptr noundef %121)
br label %123
123: ; preds = %120, %115, %106
store ptr null, ptr %4, align 8
br label %124
124: ; preds = %123, %102, %25
%125 = load ptr, ptr %4, align 8
ret ptr %125
}
declare ptr @M_ASN1_INTEGER_new(...) #1
declare i32 @ASN1_get_object(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @ASN1err(i32 noundef, i32 noundef) #1
declare i32 @M_ASN1_INTEGER_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdstjdw8x.c'
source_filename = "/tmp/tmpdstjdw8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"501 Method Not Implemented\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_501_not_implemented(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @send_http_error(i32 noundef %3, ptr noundef @.str, ptr noundef null)
ret void
}
declare i32 @send_http_error(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdstjdw8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"501 Method Not Implemented\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_501_not_implemented(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @send_http_error(i32 noundef %3, ptr noundef @.str, ptr noundef null)
ret void
}
declare i32 @send_http_error(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmz0znedz.c'
source_filename = "/tmp/tmpmz0znedz.c"
target datalayout = "e-m:e-p270: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/tmpmz0znedz.c"
target datalayout = "e-m:e-p270: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/tmptzn8h5u_.c'
source_filename = "/tmp/tmptzn8h5u_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @md_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptzn8h5u_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @md_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4ej3n2r3.c'
source_filename = "/tmp/tmp4ej3n2r3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f77skip(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @ftell(ptr noundef %7)
store i64 %8, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @fread(ptr noundef %5, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %35
13: ; preds = %1
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr @SEEK_CUR, align 4
%17 = call i64 @fseek(ptr noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i64, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = zext i32 %19 to i64
%21 = add nsw i64 %18, %20
%22 = add i64 %21, 4
%23 = icmp ne i64 %17, %22
br i1 %23, label %24, label %25
24: ; preds = %13
store i32 0, ptr %2, align 4
br label %35
25: ; preds = %13
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %26)
%28 = icmp ne i32 %27, 1
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 0, ptr %2, align 4
br label %35
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %31, %32
%34 = zext i1 %33 to i32
store i32 %34, ptr %2, align 4
br label %35
35: ; preds = %30, %29, %24, %12
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ej3n2r3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f77skip(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @ftell(ptr noundef %7)
store i64 %8, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @fread(ptr noundef %5, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %35
13: ; preds = %1
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr @SEEK_CUR, align 4
%17 = call i64 @fseek(ptr noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i64, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = zext i32 %19 to i64
%21 = add nsw i64 %18, %20
%22 = add i64 %21, 4
%23 = icmp ne i64 %17, %22
br i1 %23, label %24, label %25
24: ; preds = %13
store i32 0, ptr %2, align 4
br label %35
25: ; preds = %13
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %26)
%28 = icmp ne i32 %27, 1
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 0, ptr %2, align 4
br label %35
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp eq i32 %31, %32
%34 = zext i1 %33 to i32
store i32 %34, ptr %2, align 4
br label %35
35: ; preds = %30, %29, %24, %12
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpli40sa5i.c'
source_filename = "/tmp/tmpli40sa5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_ends_with(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr null, %8
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store i32 0, ptr %3, align 4
br label %39
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strlen(ptr noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
br label %37
23: ; preds = %14
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = sub i64 0, %29
%31 = getelementptr inbounds i8, ptr %27, i64 %30
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strcmp(ptr noundef %31, ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
%36 = zext i1 %35 to i32
br label %37
37: ; preds = %23, %22
%38 = phi i32 [ 0, %22 ], [ %36, %23 ]
store i32 %38, ptr %3, align 4
br label %39
39: ; preds = %37, %13
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpli40sa5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_ends_with(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr null, %8
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store i32 0, ptr %3, align 4
br label %39
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @strlen(ptr noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
br label %37
23: ; preds = %14
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = sub i64 0, %29
%31 = getelementptr inbounds i8, ptr %27, i64 %30
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strcmp(ptr noundef %31, ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
%36 = zext i1 %35 to i32
br label %37
37: ; preds = %23, %22
%38 = phi i32 [ 0, %22 ], [ %36, %23 ]
store i32 %38, ptr %3, align 4
br label %39
39: ; preds = %37, %13
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjwitts74.c'
source_filename = "/tmp/tmpjwitts74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Dumping input and output data to file : %s.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"# Not created by Octave\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"# name: input\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"# type: matrix\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"# rows: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"# columns: 1\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"% g\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"# name: output\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @save_oct_double(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %11, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %19, label %18
18: ; preds = %5
br label %74
19: ; preds = %5
%20 = load ptr, ptr %11, align 8
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %11, align 8
%23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.3)
%24 = load ptr, ptr %11, align 8
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.4)
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %8, align 4
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.5, i32 noundef %27)
%29 = load ptr, ptr %11, align 8
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.6)
store i32 0, ptr %12, align 4
br label %31
31: ; preds = %43, %19
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = load ptr, ptr %11, align 8
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %12, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
%41 = load double, ptr %40, align 8
%42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.7, double noundef %41)
br label %43
43: ; preds = %35
%44 = load i32, ptr %12, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %12, align 4
br label %31, !llvm.loop !6
46: ; preds = %31
%47 = load ptr, ptr %11, align 8
%48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.8)
%49 = load ptr, ptr %11, align 8
%50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.4)
%51 = load ptr, ptr %11, align 8
%52 = load i32, ptr %10, align 4
%53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.5, i32 noundef %52)
%54 = load ptr, ptr %11, align 8
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.6)
store i32 0, ptr %12, align 4
br label %56
56: ; preds = %68, %46
%57 = load i32, ptr %12, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %71
60: ; preds = %56
%61 = load ptr, ptr %11, align 8
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %62, i64 %64
%66 = load double, ptr %65, align 8
%67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.7, double noundef %66)
br label %68
68: ; preds = %60
%69 = load i32, ptr %12, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %12, align 4
br label %56, !llvm.loop !8
71: ; preds = %56
%72 = load ptr, ptr %11, align 8
%73 = call i32 @fclose(ptr noundef %72)
br label %74
74: ; preds = %71, %18
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjwitts74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Dumping input and output data to file : %s.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"# Not created by Octave\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"# name: input\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"# type: matrix\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"# rows: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"# columns: 1\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"% g\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"# name: output\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @save_oct_double(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call ptr @fopen(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %11, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %19, label %18
18: ; preds = %5
br label %78
19: ; preds = %5
%20 = load ptr, ptr %11, align 8
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %11, align 8
%23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.3)
%24 = load ptr, ptr %11, align 8
%25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.4)
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %8, align 4
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.5, i32 noundef %27)
%29 = load ptr, ptr %11, align 8
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.6)
store i32 0, ptr %12, align 4
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %48
.lr.ph: ; preds = %19
br label %34
34: ; preds = %.lr.ph, %42
%35 = load ptr, ptr %11, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %12, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.7, double noundef %40)
br label %42
42: ; preds = %34
%43 = load i32, ptr %12, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %12, align 4
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %19
%49 = load ptr, ptr %11, align 8
%50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.8)
%51 = load ptr, ptr %11, align 8
%52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.4)
%53 = load ptr, ptr %11, align 8
%54 = load i32, ptr %10, align 4
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.5, i32 noundef %54)
%56 = load ptr, ptr %11, align 8
%57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.6)
store i32 0, ptr %12, align 4
%58 = load i32, ptr %12, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph2, label %75
.lr.ph2: ; preds = %48
br label %61
61: ; preds = %.lr.ph2, %69
%62 = load ptr, ptr %11, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, ptr %63, i64 %65
%67 = load double, ptr %66, align 8
%68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.7, double noundef %67)
br label %69
69: ; preds = %61
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %12, align 4
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %48
%76 = load ptr, ptr %11, align 8
%77 = call i32 @fclose(ptr noundef %76)
br label %78
78: ; preds = %75, %18
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpws7hsmxn.c'
source_filename = "/tmp/tmpws7hsmxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"do2 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpws7hsmxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"do2 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2mtf3k9p.c'
source_filename = "/tmp/tmp2mtf3k9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_r(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
%7 = call i32 @do_rand(ptr noundef %3)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
store i32 %8, ptr %9, align 4
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @do_rand(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2mtf3k9p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_r(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
store i32 %6, ptr %3, align 4
%7 = call i32 @do_rand(ptr noundef %3)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
store i32 %8, ptr %9, align 4
%10 = load i32, ptr %4, align 4
ret i32 %10
}
declare i32 @do_rand(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm79qub9f.c'
source_filename = "/tmp/tmpm79qub9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Ingrese x0:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Ingrese margen de error:\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"x0: %lf, x1: %lf, cota: %lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Tom\C3\A1: %lf\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
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store double 5.000000e+01, ptr %4, align 8
br label %10
10: ; preds = %13, %0
%11 = load double, ptr %4, align 8
%12 = fcmp ogt double %11, 0.000000e+00
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = load double, ptr %2, align 8
%15 = call double @cos(double noundef %14) #4
store double %15, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = load double, ptr %2, align 8
%18 = fsub double %16, %17
%19 = call double @llvm.fabs.f64(double %18)
store double %19, ptr %4, align 8
%20 = load double, ptr %2, align 8
%21 = load double, ptr %3, align 8
%22 = load double, ptr %4, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %20, double noundef %21, double noundef %22)
%24 = load double, ptr %3, align 8
store double %24, ptr %2, align 8
br label %10, !llvm.loop !6
25: ; preds = %10
%26 = load double, ptr %2, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %26)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm79qub9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Ingrese x0:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Ingrese margen de error:\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"x0: %lf, x1: %lf, cota: %lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Tom\C3\A1: %lf\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
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store double 5.000000e+01, ptr %4, align 8
%10 = load double, ptr %4, align 8
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %12
%13 = load double, ptr %2, align 8
%14 = call double @cos(double noundef %13) #4
store double %14, ptr %3, align 8
%15 = load double, ptr %3, align 8
%16 = load double, ptr %2, align 8
%17 = fsub double %15, %16
%18 = call double @llvm.fabs.f64(double %17)
store double %18, ptr %4, align 8
%19 = load double, ptr %2, align 8
%20 = load double, ptr %3, align 8
%21 = load double, ptr %4, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %19, double noundef %20, double noundef %21)
%23 = load double, ptr %3, align 8
store double %23, ptr %2, align 8
%24 = load double, ptr %4, align 8
%25 = fcmp ogt double %24, 0.000000e+00
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %26
26: ; preds = %._crit_edge, %0
%27 = load double, ptr %2, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %27)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbt7roafc.c'
source_filename = "/tmp/tmpbt7roafc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbt7roafc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg_es4fmi.c'
source_filename = "/tmp/tmpg_es4fmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @str_rtrim(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @str_ltrim(ptr noundef %6)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare ptr @str_rtrim(ptr noundef) #1
declare ptr @str_ltrim(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg_es4fmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @str_rtrim(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @str_ltrim(ptr noundef %6)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
declare ptr @str_rtrim(ptr noundef) #1
declare ptr @str_ltrim(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe6ai_1h3.c'
source_filename = "/tmp/tmpe6ai_1h3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlog10(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %24, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %14, i64 %16
%18 = load double, ptr %17, align 8
%19 = call double @log10(double noundef %18) #2
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
store double %19, ptr %23, align 8
br label %24
24: ; preds = %13
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
%28 = load double, ptr %4, align 8
ret double %28
}
; Function Attrs: nounwind
declare double @log10(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe6ai_1h3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlog10(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, ptr %13, i64 %15
%17 = load double, ptr %16, align 8
%18 = call double @log10(double noundef %17) #2
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
store double %18, ptr %22, align 8
br label %23
23: ; preds = %12
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
%30 = load double, ptr %4, align 8
ret double %30
}
; Function Attrs: nounwind
declare double @log10(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcr7r4lar.c'
source_filename = "/tmp/tmpcr7r4lar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ShowMsg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcr7r4lar.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ShowMsg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6p486bkr.c'
source_filename = "/tmp/tmp6p486bkr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @form_field_validate_phone(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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %45, %3
%11 = load ptr, ptr %8, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %49
14: ; preds = %10
%15 = load ptr, ptr %8, align 8
%16 = load i8, ptr %15, align 1
%17 = call i32 @isdigit(i8 noundef signext %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %44, label %19
19: ; preds = %14
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 88
br i1 %23, label %24, label %44
24: ; preds = %19
%25 = load ptr, ptr %8, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 120
br i1 %28, label %29, label %44
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %5, align 8
%32 = ptrtoint ptr %30 to i64
%33 = ptrtoint ptr %31 to i64
%34 = sub i64 %32, %33
%35 = icmp ult i64 %34, 17
br i1 %35, label %36, label %44
36: ; preds = %29
%37 = load ptr, ptr %8, align 8
%38 = load ptr, ptr %5, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
%42 = trunc i64 %41 to i32
%43 = load ptr, ptr %6, align 8
store i32 %42, ptr %43, align 4
store i32 -1, ptr %4, align 4
br label %50
44: ; preds = %29, %24, %19, %14
br label %45
45: ; preds = %44
%46 = load ptr, ptr %8, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %8, align 8
%48 = load i8, ptr %46, align 1
br label %10, !llvm.loop !6
49: ; preds = %10
store i32 0, ptr %4, align 4
br label %50
50: ; preds = %49, %36
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare i32 @isdigit(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/tmp6p486bkr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @form_field_validate_phone(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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %.lr.ph, label %51
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %44
%14 = load ptr, ptr %8, align 8
%15 = load i8, ptr %14, align 1
%16 = call i32 @isdigit(i8 noundef signext %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %43, label %18
18: ; preds = %13
%19 = load ptr, ptr %8, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 88
br i1 %22, label %23, label %43
23: ; preds = %18
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 120
br i1 %27, label %28, label %43
28: ; preds = %23
%29 = load ptr, ptr %8, align 8
%30 = load ptr, ptr %5, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = icmp ult i64 %33, 17
br i1 %34, label %35, label %43
35: ; preds = %28
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %5, align 8
%38 = ptrtoint ptr %36 to i64
%39 = ptrtoint ptr %37 to i64
%40 = sub i64 %38, %39
%41 = trunc i64 %40 to i32
%42 = load ptr, ptr %6, align 8
store i32 %41, ptr %42, align 4
store i32 -1, ptr %4, align 4
br label %52
43: ; preds = %28, %23, %18, %13
br label %44
44: ; preds = %43
%45 = load ptr, ptr %8, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %8, align 8
%47 = load i8, ptr %45, align 1
%48 = load ptr, ptr %8, align 8
%49 = load i8, ptr %48, align 1
%50 = icmp ne i8 %49, 0
br i1 %50, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %51
51: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %52
52: ; preds = %51, %35
%53 = load i32, ptr %4, align 4
ret i32 %53
}
declare i32 @isdigit(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/tmpq75s8jcn.c'
source_filename = "/tmp/tmpq75s8jcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"+---+---+---+ Bit +---+---+---+\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"+---+---+---+ Value +---+---+---+\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"+---+---+---+---+---+---+---+---+\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_byte(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.1)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.2)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = call i32 @each_byte(i8 noundef zeroext %11)
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
%15 = load i8, ptr %14, align 1
%16 = call i32 @each_byte(i8 noundef zeroext %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @each_byte(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq75s8jcn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"+---+---+---+ Bit +---+---+---+\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"+---+---+---+ Value +---+---+---+\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"+---+---+---+---+---+---+---+---+\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_byte(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.1)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.2)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = call i32 @each_byte(i8 noundef zeroext %11)
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
%15 = load i8, ptr %14, align 1
%16 = call i32 @each_byte(i8 noundef zeroext %15)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @each_byte(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfi3dkw94.c'
source_filename = "/tmp/tmpfi3dkw94.c"
target datalayout = "e-m:e-p270: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.in6_addr = type { i32 }
%struct.sockaddr_in6 = type { i32, %struct.in6_addr }
@AF_INET6 = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EALREADY = dso_local global i64 0, align 8
@EINPROGRESS = dso_local global i64 0, align 8
; 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 %struct.in6_addr, align 4
%5 = alloca %struct.sockaddr_in6, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 8)
%7 = getelementptr inbounds %struct.sockaddr_in6, ptr %5, i32 0, i32 1
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %4, i64 4, i1 false)
%8 = getelementptr inbounds %struct.sockaddr_in6, ptr %5, i32 0, i32 0
store i32 1026, ptr %8, align 4
%9 = load i32, ptr @AF_INET6, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %0
store i32 111, ptr %1, align 4
br label %38
15: ; preds = %0
br label %16
16: ; preds = %26, %15
%17 = load i32, ptr %2, align 4
%18 = call i32 @connect(i32 noundef %17, ptr noundef %5, i32 noundef 8)
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load i64, ptr @errno, align 8
%24 = load i64, ptr @EINTR, align 8
%25 = icmp eq i64 %23, %24
br label %26
26: ; preds = %22, %19
%27 = phi i1 [ false, %19 ], [ %25, %22 ]
br i1 %27, label %16, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i64, ptr @errno, align 8
%33 = load i64, ptr @EALREADY, align 8
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i64, ptr @EINPROGRESS, align 8
store i64 %36, ptr @errno, align 8
br label %37
37: ; preds = %35, %31, %28
store i32 0, ptr %1, align 4
br label %38
38: ; preds = %37, %14
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(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" }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfi3dkw94.c"
target datalayout = "e-m:e-p270: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.in6_addr = type { i32 }
%struct.sockaddr_in6 = type { i32, %struct.in6_addr }
@AF_INET6 = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@EALREADY = dso_local global i64 0, align 8
@EINPROGRESS = dso_local global i64 0, align 8
; 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 %struct.in6_addr, align 4
%5 = alloca %struct.sockaddr_in6, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 8)
%7 = getelementptr inbounds %struct.sockaddr_in6, ptr %5, i32 0, i32 1
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %4, i64 4, i1 false)
%8 = getelementptr inbounds %struct.sockaddr_in6, ptr %5, i32 0, i32 0
store i32 1026, ptr %8, align 4
%9 = load i32, ptr @AF_INET6, align 4
%10 = load i32, ptr @SOCK_STREAM, align 4
%11 = call i32 @socket(i32 noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %0
store i32 111, ptr %1, align 4
br label %38
15: ; preds = %0
br label %16
16: ; preds = %26, %15
%17 = load i32, ptr %2, align 4
%18 = call i32 @connect(i32 noundef %17, ptr noundef %5, i32 noundef 8)
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load i64, ptr @errno, align 8
%24 = load i64, ptr @EINTR, align 8
%25 = icmp eq i64 %23, %24
br label %26
26: ; preds = %22, %19
%27 = phi i1 [ false, %19 ], [ %25, %22 ]
br i1 %27, label %16, label %28, !llvm.loop !6
28: ; preds = %26
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i64, ptr @errno, align 8
%33 = load i64, ptr @EALREADY, align 8
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i64, ptr @EINPROGRESS, align 8
store i64 %36, ptr @errno, align 8
br label %37
37: ; preds = %35, %31, %28
store i32 0, ptr %1, align 4
br label %38
38: ; preds = %37, %14
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(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" }
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9trdicyo.c'
source_filename = "/tmp/tmp9trdicyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0AMerci de saisir un nombre entier, exiting\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_prompt_error(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @free_tab(ptr noundef %9)
%11 = load i32, ptr @EXIT_FAILURE, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %2
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @free_tab(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/tmp9trdicyo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0AMerci de saisir un nombre entier, exiting\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_prompt_error(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @free_tab(ptr noundef %9)
%11 = load i32, ptr @EXIT_FAILURE, align 4
%12 = call i32 @exit(i32 noundef %11) #3
unreachable
13: ; preds = %2
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @free_tab(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/tmpx7o0deo9.c'
source_filename = "/tmp/tmpx7o0deo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"got signal %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_eater(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx7o0deo9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"got signal %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_eater(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2p90768a.c'
source_filename = "/tmp/tmp2p90768a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [58 x i8] c"Stencil: Time =%18.16f sec, MLups/s=%18.16f, sum=%18.16f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store double 2.500000e-01, ptr %9, align 8
store i32 2, ptr %10, align 4
store double 0.000000e+00, ptr %11, align 8
store i32 1022, ptr %12, align 4
store i32 1022, ptr %13, align 4
%21 = load i32, ptr %12, align 4
%22 = add nsw i32 %21, 2
%23 = load i32, ptr %13, align 4
%24 = add nsw i32 %23, 2
%25 = call ptr @malloc_2d(i32 noundef %22, i32 noundef %24)
store ptr %25, ptr %7, align 8
%26 = load i32, ptr %12, align 4
%27 = add nsw i32 %26, 2
%28 = load i32, ptr %13, align 4
%29 = add nsw i32 %28, 2
%30 = call ptr @malloc_2d(i32 noundef %27, i32 noundef %29)
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %13, align 4
%34 = call i32 @init(ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr %13, align 4
%38 = call i32 @init(ptr noundef %35, i32 noundef %36, i32 noundef %37)
%39 = call i64 (...) @clock()
store i64 %39, ptr %14, align 8
store i32 0, ptr %20, align 4
br label %40
40: ; preds = %188, %2
%41 = load i32, ptr %20, align 4
%42 = icmp slt i32 %41, 2
br i1 %42, label %43, label %191
43: ; preds = %40
store i32 1, ptr %18, align 4
br label %44
44: ; preds = %112, %43
%45 = load i32, ptr %18, align 4
%46 = load i32, ptr %12, align 4
%47 = add nsw i32 %46, 1
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %115
49: ; preds = %44
store i32 1, ptr %19, align 4
br label %50
50: ; preds = %108, %49
%51 = load i32, ptr %19, align 4
%52 = load i32, ptr %13, align 4
%53 = add nsw i32 %52, 1
%54 = icmp slt i32 %51, %53
br i1 %54, label %55, label %111
55: ; preds = %50
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %18, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %56, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = load i32, ptr %19, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load double, ptr %64, align 8
%66 = load ptr, ptr %7, align 8
%67 = load i32, ptr %18, align 4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %66, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = load i32, ptr %19, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, ptr %71, i64 %73
%75 = load double, ptr %74, align 8
%76 = fadd double %65, %75
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %18, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %77, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %19, align 4
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %81, i64 %84
%86 = load double, ptr %85, align 8
%87 = fadd double %76, %86
%88 = load ptr, ptr %7, align 8
%89 = load i32, ptr %18, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds ptr, ptr %88, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = load i32, ptr %19, align 4
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %92, i64 %95
%97 = load double, ptr %96, align 8
%98 = fadd double %87, %97
%99 = fmul double 2.500000e-01, %98
%100 = load ptr, ptr %8, align 8
%101 = load i32, ptr %18, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds ptr, ptr %100, i64 %102
%104 = load ptr, ptr %103, align 8
%105 = load i32, ptr %19, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, ptr %104, i64 %106
store double %99, ptr %107, align 8
br label %108
108: ; preds = %55
%109 = load i32, ptr %19, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %19, align 4
br label %50, !llvm.loop !6
111: ; preds = %50
br label %112
112: ; preds = %111
%113 = load i32, ptr %18, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %18, align 4
br label %44, !llvm.loop !8
115: ; preds = %44
store i32 1, ptr %18, align 4
br label %116
116: ; preds = %184, %115
%117 = load i32, ptr %18, align 4
%118 = load i32, ptr %12, align 4
%119 = add nsw i32 %118, 1
%120 = icmp slt i32 %117, %119
br i1 %120, label %121, label %187
121: ; preds = %116
store i32 1, ptr %19, align 4
br label %122
122: ; preds = %180, %121
%123 = load i32, ptr %19, align 4
%124 = load i32, ptr %13, align 4
%125 = add nsw i32 %124, 1
%126 = icmp slt i32 %123, %125
br i1 %126, label %127, label %183
127: ; preds = %122
%128 = load ptr, ptr %8, align 8
%129 = load i32, ptr %18, align 4
%130 = sub nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds ptr, ptr %128, i64 %131
%133 = load ptr, ptr %132, align 8
%134 = load i32, ptr %19, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %133, i64 %135
%137 = load double, ptr %136, align 8
%138 = load ptr, ptr %8, align 8
%139 = load i32, ptr %18, align 4
%140 = add nsw i32 %139, 1
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds ptr, ptr %138, i64 %141
%143 = load ptr, ptr %142, align 8
%144 = load i32, ptr %19, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %143, i64 %145
%147 = load double, ptr %146, align 8
%148 = fadd double %137, %147
%149 = load ptr, ptr %8, align 8
%150 = load i32, ptr %18, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds ptr, ptr %149, i64 %151
%153 = load ptr, ptr %152, align 8
%154 = load i32, ptr %19, align 4
%155 = sub nsw i32 %154, 1
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, ptr %153, i64 %156
%158 = load double, ptr %157, align 8
%159 = fadd double %148, %158
%160 = load ptr, ptr %8, align 8
%161 = load i32, ptr %18, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds ptr, ptr %160, i64 %162
%164 = load ptr, ptr %163, align 8
%165 = load i32, ptr %19, align 4
%166 = add nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, ptr %164, i64 %167
%169 = load double, ptr %168, align 8
%170 = fadd double %159, %169
%171 = fmul double 2.500000e-01, %170
%172 = load ptr, ptr %7, align 8
%173 = load i32, ptr %18, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds ptr, ptr %172, i64 %174
%176 = load ptr, ptr %175, align 8
%177 = load i32, ptr %19, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %176, i64 %178
store double %171, ptr %179, align 8
br label %180
180: ; preds = %127
%181 = load i32, ptr %19, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %19, align 4
br label %122, !llvm.loop !9
183: ; preds = %122
br label %184
184: ; preds = %183
%185 = load i32, ptr %18, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %18, align 4
br label %116, !llvm.loop !10
187: ; preds = %116
br label %188
188: ; preds = %187
%189 = load i32, ptr %20, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %20, align 4
br label %40, !llvm.loop !11
191: ; preds = %40
store double 0.000000e+00, ptr %17, align 8
store i32 1, ptr %18, align 4
br label %192
192: ; preds = %219, %191
%193 = load i32, ptr %18, align 4
%194 = load i32, ptr %12, align 4
%195 = add nsw i32 %194, 1
%196 = icmp slt i32 %193, %195
br i1 %196, label %197, label %222
197: ; preds = %192
store i32 1, ptr %19, align 4
br label %198
198: ; preds = %215, %197
%199 = load i32, ptr %19, align 4
%200 = load i32, ptr %13, align 4
%201 = add nsw i32 %200, 1
%202 = icmp slt i32 %199, %201
br i1 %202, label %203, label %218
203: ; preds = %198
%204 = load ptr, ptr %7, align 8
%205 = load i32, ptr %18, align 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds ptr, ptr %204, i64 %206
%208 = load ptr, ptr %207, align 8
%209 = load i32, ptr %19, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %208, i64 %210
%212 = load double, ptr %211, align 8
%213 = load double, ptr %17, align 8
%214 = fadd double %213, %212
store double %214, ptr %17, align 8
br label %215
215: ; preds = %203
%216 = load i32, ptr %19, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %19, align 4
br label %198, !llvm.loop !12
218: ; preds = %198
br label %219
219: ; preds = %218
%220 = load i32, ptr %18, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %18, align 4
br label %192, !llvm.loop !13
222: ; preds = %192
%223 = load ptr, ptr %7, align 8
%224 = call i32 @free_2d(ptr noundef %223)
%225 = load ptr, ptr %8, align 8
%226 = call i32 @free_2d(ptr noundef %225)
%227 = load i32, ptr %12, align 4
%228 = mul nsw i32 2, %227
%229 = load i32, ptr %13, align 4
%230 = mul nsw i32 %228, %229
%231 = sitofp i32 %230 to double
%232 = fmul double %231, 0x3EB0C6F7A0B5ED8D
store double %232, ptr %11, align 8
%233 = call i64 (...) @clock()
store i64 %233, ptr %15, align 8
%234 = load i64, ptr %15, align 8
%235 = load i64, ptr %14, align 8
%236 = sub nsw i64 %234, %235
%237 = sitofp i64 %236 to double
%238 = load double, ptr @CLOCKS_PER_SEC, align 8
%239 = fdiv double %237, %238
store double %239, ptr %16, align 8
%240 = load double, ptr %16, align 8
%241 = load double, ptr %11, align 8
%242 = load double, ptr %16, align 8
%243 = fdiv double %241, %242
%244 = load double, ptr %17, align 8
%245 = call i32 @printf(ptr noundef @.str, double noundef %240, double noundef %243, double noundef %244)
ret i32 0
}
declare ptr @malloc_2d(i32 noundef, i32 noundef) #1
declare i32 @init(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @free_2d(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2p90768a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@.str = private unnamed_addr constant [58 x i8] c"Stencil: Time =%18.16f sec, MLups/s=%18.16f, sum=%18.16f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store double 2.500000e-01, ptr %9, align 8
store i32 2, ptr %10, align 4
store double 0.000000e+00, ptr %11, align 8
store i32 1022, ptr %12, align 4
store i32 1022, ptr %13, align 4
%21 = load i32, ptr %12, align 4
%22 = add nsw i32 %21, 2
%23 = load i32, ptr %13, align 4
%24 = add nsw i32 %23, 2
%25 = call ptr @malloc_2d(i32 noundef %22, i32 noundef %24)
store ptr %25, ptr %7, align 8
%26 = load i32, ptr %12, align 4
%27 = add nsw i32 %26, 2
%28 = load i32, ptr %13, align 4
%29 = add nsw i32 %28, 2
%30 = call ptr @malloc_2d(i32 noundef %27, i32 noundef %29)
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %13, align 4
%34 = call i32 @init(ptr noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %12, align 4
%37 = load i32, ptr %13, align 4
%38 = call i32 @init(ptr noundef %35, i32 noundef %36, i32 noundef %37)
%39 = call i64 (...) @clock()
store i64 %39, ptr %14, align 8
store i32 0, ptr %20, align 4
%40 = load i32, ptr %20, align 4
%41 = icmp slt i32 %40, 2
br i1 %41, label %.lr.ph11, label %204
.lr.ph11: ; preds = %2
br label %42
42: ; preds = %.lr.ph11, %199
store i32 1, ptr %18, align 4
%43 = load i32, ptr %18, align 4
%44 = load i32, ptr %12, align 4
%45 = add nsw i32 %44, 1
%46 = icmp slt i32 %43, %45
br i1 %46, label %.lr.ph2, label %120
.lr.ph2: ; preds = %42
br label %47
47: ; preds = %.lr.ph2, %113
store i32 1, ptr %19, align 4
%48 = load i32, ptr %19, align 4
%49 = load i32, ptr %13, align 4
%50 = add nsw i32 %49, 1
%51 = icmp slt i32 %48, %50
br i1 %51, label %.lr.ph, label %112
.lr.ph: ; preds = %47
br label %52
52: ; preds = %.lr.ph, %105
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %18, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %53, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %19, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, ptr %58, i64 %60
%62 = load double, ptr %61, align 8
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %18, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %63, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %19, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = fadd double %62, %72
%74 = load ptr, ptr %7, align 8
%75 = load i32, ptr %18, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %74, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %19, align 4
%80 = sub nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %78, i64 %81
%83 = load double, ptr %82, align 8
%84 = fadd double %73, %83
%85 = load ptr, ptr %7, align 8
%86 = load i32, ptr %18, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds ptr, ptr %85, i64 %87
%89 = load ptr, ptr %88, align 8
%90 = load i32, ptr %19, align 4
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, ptr %89, i64 %92
%94 = load double, ptr %93, align 8
%95 = fadd double %84, %94
%96 = fmul double 2.500000e-01, %95
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %18, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds ptr, ptr %97, i64 %99
%101 = load ptr, ptr %100, align 8
%102 = load i32, ptr %19, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, ptr %101, i64 %103
store double %96, ptr %104, align 8
br label %105
105: ; preds = %52
%106 = load i32, ptr %19, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %19, align 4
%108 = load i32, ptr %19, align 4
%109 = load i32, ptr %13, align 4
%110 = add nsw i32 %109, 1
%111 = icmp slt i32 %108, %110
br i1 %111, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %105
br label %112
112: ; preds = %._crit_edge, %47
br label %113
113: ; preds = %112
%114 = load i32, ptr %18, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %18, align 4
%116 = load i32, ptr %18, align 4
%117 = load i32, ptr %12, align 4
%118 = add nsw i32 %117, 1
%119 = icmp slt i32 %116, %118
br i1 %119, label %47, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %113
br label %120
120: ; preds = %._crit_edge3, %42
store i32 1, ptr %18, align 4
%121 = load i32, ptr %18, align 4
%122 = load i32, ptr %12, align 4
%123 = add nsw i32 %122, 1
%124 = icmp slt i32 %121, %123
br i1 %124, label %.lr.ph8, label %198
.lr.ph8: ; preds = %120
br label %125
125: ; preds = %.lr.ph8, %191
store i32 1, ptr %19, align 4
%126 = load i32, ptr %19, align 4
%127 = load i32, ptr %13, align 4
%128 = add nsw i32 %127, 1
%129 = icmp slt i32 %126, %128
br i1 %129, label %.lr.ph5, label %190
.lr.ph5: ; preds = %125
br label %130
130: ; preds = %.lr.ph5, %183
%131 = load ptr, ptr %8, align 8
%132 = load i32, ptr %18, align 4
%133 = sub nsw i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds ptr, ptr %131, i64 %134
%136 = load ptr, ptr %135, align 8
%137 = load i32, ptr %19, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, ptr %136, i64 %138
%140 = load double, ptr %139, align 8
%141 = load ptr, ptr %8, align 8
%142 = load i32, ptr %18, align 4
%143 = add nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds ptr, ptr %141, i64 %144
%146 = load ptr, ptr %145, align 8
%147 = load i32, ptr %19, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, ptr %146, i64 %148
%150 = load double, ptr %149, align 8
%151 = fadd double %140, %150
%152 = load ptr, ptr %8, align 8
%153 = load i32, ptr %18, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds ptr, ptr %152, i64 %154
%156 = load ptr, ptr %155, align 8
%157 = load i32, ptr %19, align 4
%158 = sub nsw i32 %157, 1
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %156, i64 %159
%161 = load double, ptr %160, align 8
%162 = fadd double %151, %161
%163 = load ptr, ptr %8, align 8
%164 = load i32, ptr %18, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds ptr, ptr %163, i64 %165
%167 = load ptr, ptr %166, align 8
%168 = load i32, ptr %19, align 4
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %167, i64 %170
%172 = load double, ptr %171, align 8
%173 = fadd double %162, %172
%174 = fmul double 2.500000e-01, %173
%175 = load ptr, ptr %7, align 8
%176 = load i32, ptr %18, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds ptr, ptr %175, i64 %177
%179 = load ptr, ptr %178, align 8
%180 = load i32, ptr %19, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, ptr %179, i64 %181
store double %174, ptr %182, align 8
br label %183
183: ; preds = %130
%184 = load i32, ptr %19, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %19, align 4
%186 = load i32, ptr %19, align 4
%187 = load i32, ptr %13, align 4
%188 = add nsw i32 %187, 1
%189 = icmp slt i32 %186, %188
br i1 %189, label %130, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %183
br label %190
190: ; preds = %._crit_edge6, %125
br label %191
191: ; preds = %190
%192 = load i32, ptr %18, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %18, align 4
%194 = load i32, ptr %18, align 4
%195 = load i32, ptr %12, align 4
%196 = add nsw i32 %195, 1
%197 = icmp slt i32 %194, %196
br i1 %197, label %125, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %191
br label %198
198: ; preds = %._crit_edge9, %120
br label %199
199: ; preds = %198
%200 = load i32, ptr %20, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %20, align 4
%202 = load i32, ptr %20, align 4
%203 = icmp slt i32 %202, 2
br i1 %203, label %42, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %199
br label %204
204: ; preds = %._crit_edge12, %2
store double 0.000000e+00, ptr %17, align 8
store i32 1, ptr %18, align 4
%205 = load i32, ptr %18, align 4
%206 = load i32, ptr %12, align 4
%207 = add nsw i32 %206, 1
%208 = icmp slt i32 %205, %207
br i1 %208, label %.lr.ph17, label %241
.lr.ph17: ; preds = %204
br label %209
209: ; preds = %.lr.ph17, %234
store i32 1, ptr %19, align 4
%210 = load i32, ptr %19, align 4
%211 = load i32, ptr %13, align 4
%212 = add nsw i32 %211, 1
%213 = icmp slt i32 %210, %212
br i1 %213, label %.lr.ph14, label %233
.lr.ph14: ; preds = %209
br label %214
214: ; preds = %.lr.ph14, %226
%215 = load ptr, ptr %7, align 8
%216 = load i32, ptr %18, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds ptr, ptr %215, i64 %217
%219 = load ptr, ptr %218, align 8
%220 = load i32, ptr %19, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
%223 = load double, ptr %222, align 8
%224 = load double, ptr %17, align 8
%225 = fadd double %224, %223
store double %225, ptr %17, align 8
br label %226
226: ; preds = %214
%227 = load i32, ptr %19, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %19, align 4
%229 = load i32, ptr %19, align 4
%230 = load i32, ptr %13, align 4
%231 = add nsw i32 %230, 1
%232 = icmp slt i32 %229, %231
br i1 %232, label %214, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %226
br label %233
233: ; preds = %._crit_edge15, %209
br label %234
234: ; preds = %233
%235 = load i32, ptr %18, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %18, align 4
%237 = load i32, ptr %18, align 4
%238 = load i32, ptr %12, align 4
%239 = add nsw i32 %238, 1
%240 = icmp slt i32 %237, %239
br i1 %240, label %209, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %234
br label %241
241: ; preds = %._crit_edge18, %204
%242 = load ptr, ptr %7, align 8
%243 = call i32 @free_2d(ptr noundef %242)
%244 = load ptr, ptr %8, align 8
%245 = call i32 @free_2d(ptr noundef %244)
%246 = load i32, ptr %12, align 4
%247 = mul nsw i32 2, %246
%248 = load i32, ptr %13, align 4
%249 = mul nsw i32 %247, %248
%250 = sitofp i32 %249 to double
%251 = fmul double %250, 0x3EB0C6F7A0B5ED8D
store double %251, ptr %11, align 8
%252 = call i64 (...) @clock()
store i64 %252, ptr %15, align 8
%253 = load i64, ptr %15, align 8
%254 = load i64, ptr %14, align 8
%255 = sub nsw i64 %253, %254
%256 = sitofp i64 %255 to double
%257 = load double, ptr @CLOCKS_PER_SEC, align 8
%258 = fdiv double %256, %257
store double %258, ptr %16, align 8
%259 = load double, ptr %16, align 8
%260 = load double, ptr %11, align 8
%261 = load double, ptr %16, align 8
%262 = fdiv double %260, %261
%263 = load double, ptr %17, align 8
%264 = call i32 @printf(ptr noundef @.str, double noundef %259, double noundef %262, double noundef %263)
ret i32 0
}
declare ptr @malloc_2d(i32 noundef, i32 noundef) #1
declare i32 @init(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @clock(...) #1
declare i32 @free_2d(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpludk5v3d.c'
source_filename = "/tmp/tmpludk5v3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 @system(ptr noundef @.str)
ret i32 %2
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpludk5v3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; 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 @system(ptr noundef @.str)
ret i32 %2
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp62svnfqy.c'
source_filename = "/tmp/tmp62svnfqy.c"
target datalayout = "e-m:e-p270: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.test_shift_right.a = private unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], align 16
@.str = private unnamed_addr constant [10 x i8] c"a[0] != 4\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"a[1] != 1\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"a[2] != 2\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"a[3] != 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test_shift_right() #0 {
%1 = alloca ptr, align 8
%2 = alloca [4 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_shift_right.a, i64 16, i1 false)
%3 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @shift(ptr noundef %3, i32 noundef 4, i32 noundef 1)
br label %5
5: ; preds = %0
%6 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%7 = load i32, ptr %6, align 16
%8 = icmp eq i32 %7, 4
br i1 %8, label %10, label %9
9: ; preds = %5
store ptr @.str, ptr %1, align 8
br label %33
10: ; preds = %5
br label %11
11: ; preds = %10
br label %12
12: ; preds = %11
%13 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%14 = load i32, ptr %13, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %17, label %16
16: ; preds = %12
store ptr @.str.1, ptr %1, align 8
br label %33
17: ; preds = %12
br label %18
18: ; preds = %17
br label %19
19: ; preds = %18
%20 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%21 = load i32, ptr %20, align 8
%22 = icmp eq i32 %21, 2
br i1 %22, label %24, label %23
23: ; preds = %19
store ptr @.str.2, ptr %1, align 8
br label %33
24: ; preds = %19
br label %25
25: ; preds = %24
br label %26
26: ; preds = %25
%27 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%28 = load i32, ptr %27, align 4
%29 = icmp eq i32 %28, 3
br i1 %29, label %31, label %30
30: ; preds = %26
store ptr @.str.3, ptr %1, align 8
br label %33
31: ; preds = %26
br label %32
32: ; preds = %31
store ptr null, ptr %1, align 8
br label %33
33: ; preds = %32, %30, %23, %16, %9
%34 = load ptr, ptr %1, align 8
ret ptr %34
}
; 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 @shift(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp62svnfqy.c"
target datalayout = "e-m:e-p270: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.test_shift_right.a = private unnamed_addr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], align 16
@.str = private unnamed_addr constant [10 x i8] c"a[0] != 4\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"a[1] != 1\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"a[2] != 2\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"a[3] != 3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test_shift_right() #0 {
%1 = alloca ptr, align 8
%2 = alloca [4 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_shift_right.a, i64 16, i1 false)
%3 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @shift(ptr noundef %3, i32 noundef 4, i32 noundef 1)
br label %5
5: ; preds = %0
%6 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%7 = load i32, ptr %6, align 16
%8 = icmp eq i32 %7, 4
br i1 %8, label %10, label %9
9: ; preds = %5
store ptr @.str, ptr %1, align 8
br label %33
10: ; preds = %5
br label %11
11: ; preds = %10
br label %12
12: ; preds = %11
%13 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%14 = load i32, ptr %13, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %17, label %16
16: ; preds = %12
store ptr @.str.1, ptr %1, align 8
br label %33
17: ; preds = %12
br label %18
18: ; preds = %17
br label %19
19: ; preds = %18
%20 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%21 = load i32, ptr %20, align 8
%22 = icmp eq i32 %21, 2
br i1 %22, label %24, label %23
23: ; preds = %19
store ptr @.str.2, ptr %1, align 8
br label %33
24: ; preds = %19
br label %25
25: ; preds = %24
br label %26
26: ; preds = %25
%27 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%28 = load i32, ptr %27, align 4
%29 = icmp eq i32 %28, 3
br i1 %29, label %31, label %30
30: ; preds = %26
store ptr @.str.3, ptr %1, align 8
br label %33
31: ; preds = %26
br label %32
32: ; preds = %31
store ptr null, ptr %1, align 8
br label %33
33: ; preds = %32, %30, %23, %16, %9
%34 = load ptr, ptr %1, align 8
ret ptr %34
}
; 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 @shift(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgehffy9q.c'
source_filename = "/tmp/tmpgehffy9q.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_fatal_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @fprintf(i32 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/tmpgehffy9q.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handle_fatal_error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @fprintf(i32 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/tmpzmtjdq0h.c'
source_filename = "/tmp/tmpzmtjdq0h.c"
target datalayout = "e-m:e-p270: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
@ECHILD = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"wait\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_waitall() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
br label %3
3: ; preds = %15, %0
%4 = call i32 @wait(ptr noundef %2)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %15
7: ; preds = %3
%8 = load i64, ptr @errno, align 8
%9 = load i64, ptr @ECHILD, align 8
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %7
br label %16
12: ; preds = %7
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
15: ; preds = %3
br label %3
16: ; preds = %11
ret void
}
declare i32 @wait(ptr noundef) #1
declare i32 @perror(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/tmpzmtjdq0h.c"
target datalayout = "e-m:e-p270: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
@ECHILD = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"wait\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_waitall() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
br label %3
3: ; preds = %3, %0
%4 = call i32 @wait(ptr noundef %2)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %3
7: ; preds = %3
%8 = load i64, ptr @errno, align 8
%9 = load i64, ptr @ECHILD, align 8
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %7
br label %15
12: ; preds = %7
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef -1) #3
unreachable
15: ; preds = %11
ret void
}
declare i32 @wait(ptr noundef) #1
declare i32 @perror(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/tmptsqi9q4n.c'
source_filename = "/tmp/tmptsqi9q4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c" Env String = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putenv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptsqi9q4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c" Env String = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putenv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiai1kpvx.c'
source_filename = "/tmp/tmpiai1kpvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"\0AOhhh! exceeded the limit of the deque\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showErr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %8 [
i32 0, label %4
i32 1, label %6
i32 2, label %7
]
4: ; preds = %1
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %1
br label %8
7: ; preds = %1
br label %8
8: ; preds = %1, %7, %6, %4
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiai1kpvx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"\0AOhhh! exceeded the limit of the deque\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showErr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %8 [
i32 0, label %4
i32 1, label %6
i32 2, label %7
]
4: ; preds = %1
%5 = call i32 @printf(ptr noundef @.str)
br label %8
6: ; preds = %1
br label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %6, %4, %1
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc3ln69fk.c'
source_filename = "/tmp/tmpc3ln69fk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store volatile i32 -1, ptr %1, align 4
%2 = load volatile i32, ptr %1, align 4
%3 = call i32 @foo(i32 noundef -1, i32 noundef %2)
ret i32 0
}
declare i32 @foo(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/tmpc3ln69fk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store volatile i32 -1, ptr %1, align 4
%2 = load volatile i32, ptr %1, align 4
%3 = call i32 @foo(i32 noundef -1, i32 noundef %2)
ret i32 0
}
declare i32 @foo(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/tmpf5m0l3hr.c'
source_filename = "/tmp/tmpf5m0l3hr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@read_outdoor_temp_tp.cache = internal global [6 x i8] zeroinitializer, align 1
@read_outdoor_temp_tp.old_time = internal global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%3.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_outdoor_temp_tp() #0 {
%1 = alloca ptr, align 8
%2 = alloca [30 x i32], align 16
%3 = alloca i64, align 8
%4 = call i32 @time(ptr noundef null)
%5 = sdiv i32 %4, 6
%6 = sext i32 %5 to i64
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = load i64, ptr @read_outdoor_temp_tp.old_time, align 8
%9 = icmp sgt i64 %7, %8
br i1 %9, label %10, label %26
10: ; preds = %0
%11 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%12 = call i64 @vito_read(i32 noundef 21797, i32 noundef 2, ptr noundef %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store ptr @.str, ptr %1, align 8
br label %27
15: ; preds = %10
%16 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%17 = load i32, ptr %16, align 16
%18 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = shl i32 %19, 8
%21 = add nsw i32 %17, %20
%22 = sitofp i32 %21 to double
%23 = fdiv double %22, 1.000000e+01
%24 = call i32 @sprintf(ptr noundef @read_outdoor_temp_tp.cache, ptr noundef @.str.1, double noundef %23)
%25 = load i64, ptr %3, align 8
store i64 %25, ptr @read_outdoor_temp_tp.old_time, align 8
br label %26
26: ; preds = %15, %0
store ptr @read_outdoor_temp_tp.cache, ptr %1, align 8
br label %27
27: ; preds = %26, %14
%28 = load ptr, ptr %1, align 8
ret ptr %28
}
declare i32 @time(ptr noundef) #1
declare i64 @vito_read(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf5m0l3hr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@read_outdoor_temp_tp.cache = internal global [6 x i8] zeroinitializer, align 1
@read_outdoor_temp_tp.old_time = internal global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%3.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_outdoor_temp_tp() #0 {
%1 = alloca ptr, align 8
%2 = alloca [30 x i32], align 16
%3 = alloca i64, align 8
%4 = call i32 @time(ptr noundef null)
%5 = sdiv i32 %4, 6
%6 = sext i32 %5 to i64
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = load i64, ptr @read_outdoor_temp_tp.old_time, align 8
%9 = icmp sgt i64 %7, %8
br i1 %9, label %10, label %26
10: ; preds = %0
%11 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%12 = call i64 @vito_read(i32 noundef 21797, i32 noundef 2, ptr noundef %11)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store ptr @.str, ptr %1, align 8
br label %27
15: ; preds = %10
%16 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 0
%17 = load i32, ptr %16, align 16
%18 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = shl i32 %19, 8
%21 = add nsw i32 %17, %20
%22 = sitofp i32 %21 to double
%23 = fdiv double %22, 1.000000e+01
%24 = call i32 @sprintf(ptr noundef @read_outdoor_temp_tp.cache, ptr noundef @.str.1, double noundef %23)
%25 = load i64, ptr %3, align 8
store i64 %25, ptr @read_outdoor_temp_tp.old_time, align 8
br label %26
26: ; preds = %15, %0
store ptr @read_outdoor_temp_tp.cache, ptr %1, align 8
br label %27
27: ; preds = %26, %14
%28 = load ptr, ptr %1, align 8
ret ptr %28
}
declare i32 @time(ptr noundef) #1
declare i64 @vito_read(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifmxcftd.c'
source_filename = "/tmp/tmpifmxcftd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"heavy\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"light\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %6
6: ; preds = %9, %0
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = srem i32 %10, 10
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 %14, 10
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = sdiv i32 %19, %20
%22 = icmp sgt i32 %21, 7
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @printf(ptr noundef @.str.1)
br label %27
25: ; preds = %18
%26 = call i32 @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %23
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifmxcftd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"heavy\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"light\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i32, ptr %2, align 4
%10 = srem i32 %9, 10
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, %10
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = sdiv i32 %13, 10
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %4, align 4
%22 = sdiv i32 %20, %21
%23 = icmp sgt i32 %22, 7
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @printf(ptr noundef @.str.1)
br label %28
26: ; preds = %19
%27 = call i32 @printf(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4duwh001.c'
source_filename = "/tmp/tmp4duwh001.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @server_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 (...) @servtest()
%5 = load ptr, ptr %2, align 8
ret ptr %5
}
declare i32 @servtest(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4duwh001.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @server_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = call i32 (...) @servtest()
%5 = load ptr, ptr %2, align 8
ret ptr %5
}
declare i32 @servtest(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3xhxees4.c'
source_filename = "/tmp/tmp3xhxees4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @loop() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 10, ptr %1, align 1
br label %5
5: ; preds = %0, %52
%6 = call i32 (...) @doTick()
%7 = call i32 (...) @doSleep()
%8 = call i32 (...) @q_random()
%9 = srem i32 %8, 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %22
11: ; preds = %5
store i8 0, ptr %2, align 1
br label %12
12: ; preds = %18, %11
%13 = load i8, ptr %2, align 1
%14 = zext i8 %13 to i32
%15 = icmp slt i32 %14, 8
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = call i32 (...) @doSleep()
br label %18
18: ; preds = %16
%19 = load i8, ptr %2, align 1
%20 = add i8 %19, 1
store i8 %20, ptr %2, align 1
br label %12, !llvm.loop !6
21: ; preds = %12
br label %52
22: ; preds = %5
%23 = load i8, ptr %1, align 1
%24 = add i8 %23, -1
store i8 %24, ptr %1, align 1
%25 = zext i8 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %39
27: ; preds = %22
%28 = call i32 (...) @doTick()
store i8 0, ptr %3, align 1
br label %29
29: ; preds = %35, %27
%30 = load i8, ptr %3, align 1
%31 = zext i8 %30 to i32
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = call i32 (...) @doSleep()
br label %35
35: ; preds = %33
%36 = load i8, ptr %3, align 1
%37 = add i8 %36, 1
store i8 %37, ptr %3, align 1
br label %29, !llvm.loop !8
38: ; preds = %29
store i8 10, ptr %1, align 1
br label %41
39: ; preds = %22
%40 = call i32 (...) @doSleep()
br label %41
41: ; preds = %39, %38
store i8 0, ptr %4, align 1
br label %42
42: ; preds = %48, %41
%43 = load i8, ptr %4, align 1
%44 = zext i8 %43 to i32
%45 = icmp slt i32 %44, 8
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = call i32 (...) @doSleep()
br label %48
48: ; preds = %46
%49 = load i8, ptr %4, align 1
%50 = add i8 %49, 1
store i8 %50, ptr %4, align 1
br label %42, !llvm.loop !9
51: ; preds = %42
br label %52
52: ; preds = %51, %21
br label %5
}
declare i32 @doTick(...) #1
declare i32 @doSleep(...) #1
declare i32 @q_random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3xhxees4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @loop() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i8 10, ptr %1, align 1
br label %5
5: ; preds = %49, %0
%6 = call i32 (...) @doTick()
%7 = call i32 (...) @doSleep()
%8 = call i32 (...) @q_random()
%9 = srem i32 %8, 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %5
store i8 0, ptr %2, align 1
%12 = load i8, ptr %2, align 1
%13 = zext i8 %12 to i32
%14 = icmp slt i32 %13, 8
br i1 %14, label %.lr.ph5, label %23
.lr.ph5: ; preds = %11
br label %15
15: ; preds = %.lr.ph5, %17
%16 = call i32 (...) @doSleep()
br label %17
17: ; preds = %15
%18 = load i8, ptr %2, align 1
%19 = add i8 %18, 1
store i8 %19, ptr %2, align 1
%20 = load i8, ptr %2, align 1
%21 = zext i8 %20 to i32
%22 = icmp slt i32 %21, 8
br i1 %22, label %15, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %17
br label %23
23: ; preds = %._crit_edge6, %11
br label %49
24: ; preds = %5
%25 = load i8, ptr %1, align 1
%26 = add i8 %25, -1
store i8 %26, ptr %1, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = call i32 (...) @doTick()
store i8 0, ptr %3, align 1
%31 = load i8, ptr %3, align 1
%32 = zext i8 %31 to i32
br i1 false, label %.lr.ph, label %33
.lr.ph: ; preds = %29
br label %._crit_edge
._crit_edge: ; preds = %.lr.ph
br label %33
33: ; preds = %._crit_edge, %29
store i8 10, ptr %1, align 1
br label %36
34: ; preds = %24
%35 = call i32 (...) @doSleep()
br label %36
36: ; preds = %34, %33
store i8 0, ptr %4, align 1
%37 = load i8, ptr %4, align 1
%38 = zext i8 %37 to i32
%39 = icmp slt i32 %38, 8
br i1 %39, label %.lr.ph2, label %48
.lr.ph2: ; preds = %36
br label %40
40: ; preds = %.lr.ph2, %42
%41 = call i32 (...) @doSleep()
br label %42
42: ; preds = %40
%43 = load i8, ptr %4, align 1
%44 = add i8 %43, 1
store i8 %44, ptr %4, align 1
%45 = load i8, ptr %4, align 1
%46 = zext i8 %45 to i32
%47 = icmp slt i32 %46, 8
br i1 %47, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %36
br label %49
49: ; preds = %48, %23
br label %5
}
declare i32 @doTick(...) #1
declare i32 @doSleep(...) #1
declare i32 @q_random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkmqyftjj.c'
source_filename = "/tmp/tmpkmqyftjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FSE_NCountWriteBound(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = add i32 %6, 1
%8 = load i32, ptr %4, align 4
%9 = mul i32 %7, %8
%10 = lshr i32 %9, 3
%11 = add i32 %10, 3
%12 = zext i32 %11 to i64
store i64 %12, ptr %5, align 8
%13 = load i32, ptr %3, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i64, ptr %5, align 8
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %15
%19 = phi i64 [ %16, %15 ], [ 512, %17 ]
ret i64 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkmqyftjj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FSE_NCountWriteBound(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = add i32 %6, 1
%8 = load i32, ptr %4, align 4
%9 = mul i32 %7, %8
%10 = lshr i32 %9, 3
%11 = add i32 %10, 3
%12 = zext i32 %11 to i64
store i64 %12, ptr %5, align 8
%13 = load i32, ptr %3, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i64, ptr %5, align 8
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %15
%19 = phi i64 [ %16, %15 ], [ 512, %17 ]
ret i64 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmparwey2af.c'
source_filename = "/tmp/tmparwey2af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fs_exsists(ptr noalias noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 4, i1 false)
%5 = load ptr, ptr %3, align 8
%6 = call i32 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @stat(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmparwey2af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fs_exsists(ptr noalias noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 4, i1 false)
%5 = load ptr, ptr %3, align 8
%6 = call i32 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %2, align 4
ret i32 %11
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @stat(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0ttjxygk.c'
source_filename = "/tmp/tmp0ttjxygk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"\0A\0A*Alarm interrupt come on,the func running!*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @alarm_func() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ttjxygk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"\0A\0A*Alarm interrupt come on,the func running!*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @alarm_func() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2smbaele.c'
source_filename = "/tmp/tmp2smbaele.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leadingZeroCount(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = ashr i32 %3, 1
%5 = load i32, ptr %2, align 4
%6 = or i32 %5, %4
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = ashr i32 %7, 2
%9 = load i32, ptr %2, align 4
%10 = or i32 %9, %8
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = ashr i32 %11, 4
%13 = load i32, ptr %2, align 4
%14 = or i32 %13, %12
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = ashr i32 %15, 8
%17 = load i32, ptr %2, align 4
%18 = or i32 %17, %16
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = ashr i32 %19, 16
%21 = load i32, ptr %2, align 4
%22 = or i32 %21, %20
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = call i32 @ones(i32 noundef %23)
%25 = sub nsw i32 32, %24
ret i32 %25
}
declare i32 @ones(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/tmp2smbaele.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leadingZeroCount(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = ashr i32 %3, 1
%5 = load i32, ptr %2, align 4
%6 = or i32 %5, %4
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = ashr i32 %7, 2
%9 = load i32, ptr %2, align 4
%10 = or i32 %9, %8
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = ashr i32 %11, 4
%13 = load i32, ptr %2, align 4
%14 = or i32 %13, %12
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = ashr i32 %15, 8
%17 = load i32, ptr %2, align 4
%18 = or i32 %17, %16
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = ashr i32 %19, 16
%21 = load i32, ptr %2, align 4
%22 = or i32 %21, %20
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = call i32 @ones(i32 noundef %23)
%25 = sub nsw i32 32, %24
ret i32 %25
}
declare i32 @ones(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/tmpn18zwc37.c'
source_filename = "/tmp/tmpn18zwc37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @prime_sieve(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 4, %14
%16 = trunc i64 %15 to i32
%17 = call i32 @memset(ptr noundef %12, i32 noundef 1, i32 noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
store i32 0, ptr %19, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store i32 0, ptr %21, align 4
store i32 2, ptr %4, align 4
br label %22
22: ; preds = %43, %1
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %46
26: ; preds = %22
%27 = load i32, ptr %4, align 4
%28 = mul nsw i32 2, %27
store i32 %28, ptr %5, align 4
br label %29
29: ; preds = %38, %26
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %42
33: ; preds = %29
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
store i32 0, ptr %37, align 4
br label %38
38: ; preds = %33
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, %39
store i32 %41, ptr %5, align 4
br label %29, !llvm.loop !6
42: ; preds = %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %4, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %4, align 4
br label %22, !llvm.loop !8
46: ; preds = %22
%47 = load ptr, ptr %3, align 8
ret ptr %47
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn18zwc37.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @prime_sieve(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 4, %14
%16 = trunc i64 %15 to i32
%17 = call i32 @memset(ptr noundef %12, i32 noundef 1, i32 noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
store i32 0, ptr %19, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store i32 0, ptr %21, align 4
store i32 2, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph2, label %50
.lr.ph2: ; preds = %1
br label %25
25: ; preds = %.lr.ph2, %44
%26 = load i32, ptr %4, align 4
%27 = mul nsw i32 2, %26
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %43
.lr.ph: ; preds = %25
br label %31
31: ; preds = %.lr.ph, %36
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
store i32 0, ptr %35, align 4
br label %36
36: ; preds = %31
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, %37
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %43
43: ; preds = %._crit_edge, %25
br label %44
44: ; preds = %43
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %50
50: ; preds = %._crit_edge3, %1
%51 = load ptr, ptr %3, align 8
ret ptr %51
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpk9bvhwf5.c'
source_filename = "/tmp/tmpk9bvhwf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CANCEL_ENABLE = dso_local global i32 0, align 4
@PTHREAD_CANCEL_DISABLE = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setcancelstate(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr @PTHREAD_CANCEL_ENABLE, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @PTHREAD_CANCEL_DISABLE, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %9, %2
%14 = load i32, ptr @EINVAL, align 4
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %9
%16 = load i32, ptr @ENOSYS, align 4
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = load i32, ptr %3, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk9bvhwf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CANCEL_ENABLE = dso_local global i32 0, align 4
@PTHREAD_CANCEL_DISABLE = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pthread_setcancelstate(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 %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr @PTHREAD_CANCEL_ENABLE, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr @PTHREAD_CANCEL_DISABLE, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %9, %2
%14 = load i32, ptr @EINVAL, align 4
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %9
%16 = load i32, ptr @ENOSYS, align 4
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = load i32, ptr %3, align 4
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzyeolmgs.c'
source_filename = "/tmp/tmpzyeolmgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_fec_plid_128(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 = lshr i32 %5, 24
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %8)
%10 = load i32, ptr %3, align 4
%11 = lshr i32 %10, 16
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %13)
%15 = load i32, ptr %3, align 4
%16 = lshr i32 %15, 8
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %18)
%20 = load i32, ptr %3, align 4
%21 = and i32 %20, 255
%22 = trunc i32 %21 to i8
%23 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %22)
%24 = load i32, ptr %4, align 4
%25 = lshr i32 %24, 24
%26 = and i32 %25, 255
%27 = trunc i32 %26 to i8
%28 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %27)
%29 = load i32, ptr %4, align 4
%30 = lshr i32 %29, 16
%31 = and i32 %30, 255
%32 = trunc i32 %31 to i8
%33 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %32)
%34 = load i32, ptr %4, align 4
%35 = lshr i32 %34, 8
%36 = and i32 %35, 255
%37 = trunc i32 %36 to i8
%38 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %37)
%39 = load i32, ptr %4, align 4
%40 = and i32 %39, 255
%41 = trunc i32 %40 to i8
%42 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %41)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzyeolmgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_fec_plid_128(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 = lshr i32 %5, 24
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %8)
%10 = load i32, ptr %3, align 4
%11 = lshr i32 %10, 16
%12 = and i32 %11, 255
%13 = trunc i32 %12 to i8
%14 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %13)
%15 = load i32, ptr %3, align 4
%16 = lshr i32 %15, 8
%17 = and i32 %16, 255
%18 = trunc i32 %17 to i8
%19 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %18)
%20 = load i32, ptr %3, align 4
%21 = and i32 %20, 255
%22 = trunc i32 %21 to i8
%23 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %22)
%24 = load i32, ptr %4, align 4
%25 = lshr i32 %24, 24
%26 = and i32 %25, 255
%27 = trunc i32 %26 to i8
%28 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %27)
%29 = load i32, ptr %4, align 4
%30 = lshr i32 %29, 16
%31 = and i32 %30, 255
%32 = trunc i32 %31 to i8
%33 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %32)
%34 = load i32, ptr %4, align 4
%35 = lshr i32 %34, 8
%36 = and i32 %35, 255
%37 = trunc i32 %36 to i8
%38 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %37)
%39 = load i32, ptr %4, align 4
%40 = and i32 %39, 255
%41 = trunc i32 %40 to i8
%42 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %41)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdh2ijfl3.c'
source_filename = "/tmp/tmpdh2ijfl3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_write_of_access_disabled_region(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 = %2
%6 = call i32 @fflush(ptr noundef null)
br label %7
7: ; preds = %5
%8 = load i32, ptr %4, align 4
%9 = call i32 @pkey_access_deny(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
store i32 1019, ptr %10, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @expected_pk_fault(i32 noundef %11)
ret void
}
declare i32 @fflush(ptr noundef) #1
declare i32 @pkey_access_deny(i32 noundef) #1
declare i32 @expected_pk_fault(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/tmpdh2ijfl3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_write_of_access_disabled_region(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 = %2
%6 = call i32 @fflush(ptr noundef null)
br label %7
7: ; preds = %5
%8 = load i32, ptr %4, align 4
%9 = call i32 @pkey_access_deny(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
store i32 1019, ptr %10, align 4
%11 = load i32, ptr %4, align 4
%12 = call i32 @expected_pk_fault(i32 noundef %11)
ret void
}
declare i32 @fflush(ptr noundef) #1
declare i32 @pkey_access_deny(i32 noundef) #1
declare i32 @expected_pk_fault(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/tmp4v_k5p0r.c'
source_filename = "/tmp/tmp4v_k5p0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32 }
@FALSE = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_uint64_t(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2 x i32], align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.TYPE_5__, ptr %7, i32 0, i32 0
%9 = load i32, ptr %8, align 4
switch i32 %9, label %58 [
i32 129, label %10
i32 130, label %31
i32 128, label %56
]
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %11, align 4
%13 = ashr i32 %12, 32
%14 = and i32 %13, -1
%15 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %16, align 4
%18 = and i32 %17, -1
%19 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%22 = call i32 @XDR_PUTLONG(ptr noundef %20, ptr noundef %21)
%23 = load i32, ptr @FALSE, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %10
%26 = load i32, ptr @FALSE, align 4
store i32 %26, ptr %3, align 4
br label %60
27: ; preds = %10
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%30 = call i32 @XDR_PUTLONG(ptr noundef %28, ptr noundef %29)
store i32 %30, ptr %3, align 4
br label %60
31: ; preds = %2
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%34 = call i32 @XDR_GETLONG(ptr noundef %32, ptr noundef %33)
%35 = load i32, ptr @FALSE, align 4
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load i32, ptr @FALSE, align 4
store i32 %38, ptr %3, align 4
br label %60
39: ; preds = %31
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%42 = call i32 @XDR_GETLONG(ptr noundef %40, ptr noundef %41)
%43 = load i32, ptr @FALSE, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = load i32, ptr @FALSE, align 4
store i32 %46, ptr %3, align 4
br label %60
47: ; preds = %39
%48 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%49 = load i32, ptr %48, align 4
%50 = shl i32 %49, 32
%51 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%52 = load i32, ptr %51, align 4
%53 = or i32 %50, %52
%54 = load ptr, ptr %5, align 8
store i32 %53, ptr %54, align 4
%55 = load i32, ptr @TRUE, align 4
store i32 %55, ptr %3, align 4
br label %60
56: ; preds = %2
%57 = load i32, ptr @TRUE, align 4
store i32 %57, ptr %3, align 4
br label %60
58: ; preds = %2
%59 = load i32, ptr @FALSE, align 4
store i32 %59, ptr %3, align 4
br label %60
60: ; preds = %58, %56, %47, %45, %37, %27, %25
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @XDR_PUTLONG(ptr noundef, ptr noundef) #1
declare i32 @XDR_GETLONG(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/tmp4v_k5p0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32 }
@FALSE = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_uint64_t(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2 x i32], align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds %struct.TYPE_5__, ptr %7, i32 0, i32 0
%9 = load i32, ptr %8, align 4
switch i32 %9, label %58 [
i32 129, label %10
i32 130, label %31
i32 128, label %56
]
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %11, align 4
%13 = ashr i32 %12, 32
%14 = and i32 %13, -1
%15 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %16, align 4
%18 = and i32 %17, -1
%19 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%22 = call i32 @XDR_PUTLONG(ptr noundef %20, ptr noundef %21)
%23 = load i32, ptr @FALSE, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %10
%26 = load i32, ptr @FALSE, align 4
store i32 %26, ptr %3, align 4
br label %60
27: ; preds = %10
%28 = load ptr, ptr %4, align 8
%29 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%30 = call i32 @XDR_PUTLONG(ptr noundef %28, ptr noundef %29)
store i32 %30, ptr %3, align 4
br label %60
31: ; preds = %2
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%34 = call i32 @XDR_GETLONG(ptr noundef %32, ptr noundef %33)
%35 = load i32, ptr @FALSE, align 4
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load i32, ptr @FALSE, align 4
store i32 %38, ptr %3, align 4
br label %60
39: ; preds = %31
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%42 = call i32 @XDR_GETLONG(ptr noundef %40, ptr noundef %41)
%43 = load i32, ptr @FALSE, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = load i32, ptr @FALSE, align 4
store i32 %46, ptr %3, align 4
br label %60
47: ; preds = %39
%48 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%49 = load i32, ptr %48, align 4
%50 = shl i32 %49, 32
%51 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%52 = load i32, ptr %51, align 4
%53 = or i32 %50, %52
%54 = load ptr, ptr %5, align 8
store i32 %53, ptr %54, align 4
%55 = load i32, ptr @TRUE, align 4
store i32 %55, ptr %3, align 4
br label %60
56: ; preds = %2
%57 = load i32, ptr @TRUE, align 4
store i32 %57, ptr %3, align 4
br label %60
58: ; preds = %2
%59 = load i32, ptr @FALSE, align 4
store i32 %59, ptr %3, align 4
br label %60
60: ; preds = %58, %56, %47, %45, %37, %27, %25
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @XDR_PUTLONG(ptr noundef, ptr noundef) #1
declare i32 @XDR_GETLONG(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/tmpoz_mc7nr.c'
source_filename = "/tmp/tmpoz_mc7nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CG_DrawOatotStuff() #0 {
%1 = call i32 (...) @CG_DrawGameStageInfo()
%2 = call i32 (...) @CG_DrawOatotTimer()
%3 = call i32 (...) @CG_DrawBalance()
%4 = call i32 (...) @CG_DrawActiveBetsSums()
%5 = call i32 (...) @CG_DrawActiveBets()
ret void
}
declare i32 @CG_DrawGameStageInfo(...) #1
declare i32 @CG_DrawOatotTimer(...) #1
declare i32 @CG_DrawBalance(...) #1
declare i32 @CG_DrawActiveBetsSums(...) #1
declare i32 @CG_DrawActiveBets(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoz_mc7nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CG_DrawOatotStuff() #0 {
%1 = call i32 (...) @CG_DrawGameStageInfo()
%2 = call i32 (...) @CG_DrawOatotTimer()
%3 = call i32 (...) @CG_DrawBalance()
%4 = call i32 (...) @CG_DrawActiveBetsSums()
%5 = call i32 (...) @CG_DrawActiveBets()
ret void
}
declare i32 @CG_DrawGameStageInfo(...) #1
declare i32 @CG_DrawOatotTimer(...) #1
declare i32 @CG_DrawBalance(...) #1
declare i32 @CG_DrawActiveBetsSums(...) #1
declare i32 @CG_DrawActiveBets(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjacd2s97.c'
source_filename = "/tmp/tmpjacd2s97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
store i8 116, ptr %7, align 1
%8 = load ptr, ptr %4, align 8
ret ptr %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjacd2s97.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
store i8 116, ptr %7, align 1
%8 = load ptr, ptr %4, align 8
ret ptr %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2lsvpt2h.c'
source_filename = "/tmp/tmp2lsvpt2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10000, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %51, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %54
9: ; preds = %6
%10 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %13)
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp slt i32 %18, 100
br i1 %19, label %20, label %32
20: ; preds = %9
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %32
27: ; preds = %20
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %5, align 4
br label %32
32: ; preds = %27, %20, %9
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp sge i32 %36, 100
br i1 %37, label %38, label %50
38: ; preds = %32
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %50
45: ; preds = %38
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %45, %38, %32
br label %51
51: ; preds = %50
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %3, align 4
br label %6, !llvm.loop !6
54: ; preds = %6
%55 = load i32, ptr %5, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %54
br label %60
58: ; preds = %54
%59 = load i32, ptr %5, align 4
br label %60
60: ; preds = %58, %57
%61 = phi i32 [ 100, %57 ], [ %59, %58 ]
%62 = load i32, ptr %4, align 4
%63 = icmp eq i32 %62, 10000
br i1 %63, label %64, label %65
64: ; preds = %60
br label %67
65: ; preds = %60
%66 = load i32, ptr %4, align 4
br label %67
67: ; preds = %65, %64
%68 = phi i32 [ 100, %64 ], [ %66, %65 ]
%69 = call i32 @printf(ptr noundef @.str.1, i32 noundef %61, i32 noundef %68)
%70 = mul nsw i32 0, %69
ret i32 %70
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2lsvpt2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10000, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %.lr.ph, label %55
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %50
%9 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, ptr %9, i64 %11
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %12)
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp slt i32 %17, 100
br i1 %18, label %19, label %31
19: ; preds = %8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %26, %19, %8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp sge i32 %35, 100
br i1 %36, label %37, label %49
37: ; preds = %31
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %49
44: ; preds = %37
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
store i32 %48, ptr %4, align 4
br label %49
49: ; preds = %44, %37, %31
br label %50
50: ; preds = %49
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %3, align 4
%53 = load i32, ptr %3, align 4
%54 = icmp slt i32 %53, 10
br i1 %54, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %0
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
br label %61
59: ; preds = %55
%60 = load i32, ptr %5, align 4
br label %61
61: ; preds = %59, %58
%62 = phi i32 [ 100, %58 ], [ %60, %59 ]
%63 = load i32, ptr %4, align 4
%64 = icmp eq i32 %63, 10000
br i1 %64, label %65, label %66
65: ; preds = %61
br label %68
66: ; preds = %61
%67 = load i32, ptr %4, align 4
br label %68
68: ; preds = %66, %65
%69 = phi i32 [ 100, %65 ], [ %67, %66 ]
%70 = call i32 @printf(ptr noundef @.str.1, i32 noundef %62, i32 noundef %69)
%71 = mul nsw i32 0, %70
ret i32 %71
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptbsqc7l7.c'
source_filename = "/tmp/tmptbsqc7l7.c"
target datalayout = "e-m:e-p270: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/tmptbsqc7l7.c"
target datalayout = "e-m:e-p270: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/tmpstj9r6vk.c'
source_filename = "/tmp/tmpstj9r6vk.c"
target datalayout = "e-m:e-p270: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/tmpstj9r6vk.c"
target datalayout = "e-m:e-p270: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/tmpab2mh5fq.c'
source_filename = "/tmp/tmpab2mh5fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"15 seconds pass\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handler() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpab2mh5fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"15 seconds pass\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handler() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3wi24nhu.c'
source_filename = "/tmp/tmp3wi24nhu.c"
target datalayout = "e-m:e-p270: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/tmp3wi24nhu.c"
target datalayout = "e-m:e-p270: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/tmpx4fbtep4.c'
source_filename = "/tmp/tmpx4fbtep4.c"
target datalayout = "e-m:e-p270: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/tmpx4fbtep4.c"
target datalayout = "e-m:e-p270: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/tmp24crd99_.c'
source_filename = "/tmp/tmp24crd99_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strcpy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
br label %7
7: ; preds = %16, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = load ptr, ptr %5, align 8
store i8 %14, ptr %15, align 1
br label %16
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %4, align 8
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = load ptr, ptr %5, align 8
store i8 0, ptr %22, align 1
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp24crd99_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strcpy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %15
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = load ptr, ptr %5, align 8
store i8 %13, ptr %14, align 1
br label %15
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %24
24: ; preds = %._crit_edge, %2
%25 = load ptr, ptr %5, align 8
store i8 0, ptr %25, align 1
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppxg6rpx2.c'
source_filename = "/tmp/tmppxg6rpx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"xfree: NULL pointer given as argument\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden void @xfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @panic(ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
declare i32 @panic(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppxg6rpx2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"xfree: NULL pointer given as argument\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define hidden void @xfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @panic(ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
declare i32 @panic(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_hu_oabj.c'
source_filename = "/tmp/tmp_hu_oabj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"\0A\09 Enter String: \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"\0A\09 1 \0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"\0A\09 0 \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [500 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %33, %0
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %36
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = sub nsw i32 %22, %23
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %21, %29
br i1 %30, label %31, label %32
31: ; preds = %16
store i32 1, ptr %5, align 4
br label %36
32: ; preds = %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
br label %12, !llvm.loop !6
36: ; preds = %31, %12
%37 = load i32, ptr %5, align 4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(ptr noundef @.str.3)
br label %43
41: ; preds = %36
%42 = call i32 @printf(ptr noundef @.str.4)
br label %43
43: ; preds = %41, %39
%44 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_hu_oabj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"\0A\09 Enter String: \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"\0A\09 1 \0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"\0A\09 0 \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [500 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %32
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = sub nsw i32 %21, %22
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [500 x i8], ptr %2, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %20, %28
br i1 %29, label %30, label %31
30: ; preds = %15
store i32 1, ptr %5, align 4
br label %38
31: ; preds = %15
br label %32
32: ; preds = %31
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %15, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %32
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %38
38: ; preds = %.loopexit, %30
%39 = load i32, ptr %5, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(ptr noundef @.str.3)
br label %45
43: ; preds = %38
%44 = call i32 @printf(ptr noundef @.str.4)
br label %45
45: ; preds = %43, %41
%46 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8ivlptot.c'
source_filename = "/tmp/tmp8ivlptot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_table_line(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 ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, 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 i32 0, ptr %11, align 4
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %12, align 8
%17 = load ptr, ptr %12, align 8
%18 = call i32 @strlen(ptr noundef %17)
%19 = add nsw i32 %18, 1
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %13, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %14, align 8
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %46
25: ; preds = %4
%26 = sub i64 %20, 1
%27 = trunc i64 %26 to i32
%28 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %27)
%29 = call ptr @create_cnfnode(ptr noundef %28)
store ptr %29, ptr %9, align 8
br label %30
30: ; preds = %42, %25
%31 = load ptr, ptr %12, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %12, align 8
%37 = load i8, ptr %36, align 1
%38 = call i64 @isspace(i8 noundef signext %37)
%39 = icmp ne i64 %38, 0
br label %40
40: ; preds = %35, %30
%41 = phi i1 [ false, %30 ], [ %39, %35 ]
br i1 %41, label %42, label %45
42: ; preds = %40
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
br label %30, !llvm.loop !6
45: ; preds = %40
br label %59
46: ; preds = %4
%47 = load i32, ptr %8, align 4
%48 = sub i64 %20, 1
%49 = trunc i64 %48 to i32
%50 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %47, ptr noundef %22, i32 noundef %49)
%51 = call ptr @create_cnfnode(ptr noundef %50)
store ptr %51, ptr %9, align 8
%52 = load ptr, ptr %12, align 8
%53 = load i8, ptr %52, align 1
%54 = icmp ne i8 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %46
%56 = load ptr, ptr %12, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %12, align 8
br label %58
58: ; preds = %55, %46
br label %59
59: ; preds = %58, %45
store i32 1, ptr %11, align 4
br label %60
60: ; preds = %118, %59
%61 = load ptr, ptr %12, align 8
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %60
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %7, align 4
%68 = sub nsw i32 %67, 1
%69 = icmp slt i32 %66, %68
br label %70
70: ; preds = %65, %60
%71 = phi i1 [ false, %60 ], [ %69, %65 ]
br i1 %71, label %72, label %122
72: ; preds = %70
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = call ptr @create_cnfnode(ptr noundef %78)
store ptr %79, ptr %10, align 8
%80 = load i32, ptr %8, align 4
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %104
82: ; preds = %72
%83 = load ptr, ptr %10, align 8
%84 = sub i64 %20, 1
%85 = trunc i64 %84 to i32
%86 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %85)
%87 = call i32 @cnfnode_setval(ptr noundef %83, ptr noundef %86)
br label %88
88: ; preds = %100, %82
%89 = load ptr, ptr %12, align 8
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %98
93: ; preds = %88
%94 = load ptr, ptr %12, align 8
%95 = load i8, ptr %94, align 1
%96 = call i64 @isspace(i8 noundef signext %95)
%97 = icmp ne i64 %96, 0
br label %98
98: ; preds = %93, %88
%99 = phi i1 [ false, %88 ], [ %97, %93 ]
br i1 %99, label %100, label %103
100: ; preds = %98
%101 = load ptr, ptr %12, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %12, align 8
br label %88, !llvm.loop !8
103: ; preds = %98
br label %118
104: ; preds = %72
%105 = load ptr, ptr %10, align 8
%106 = load i32, ptr %8, align 4
%107 = sub i64 %20, 1
%108 = trunc i64 %107 to i32
%109 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %106, ptr noundef %22, i32 noundef %108)
%110 = call i32 @cnfnode_setval(ptr noundef %105, ptr noundef %109)
%111 = load ptr, ptr %12, align 8
%112 = load i8, ptr %111, align 1
%113 = icmp ne i8 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %104
%115 = load ptr, ptr %12, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %12, align 8
br label %117
117: ; preds = %114, %104
br label %118
118: ; preds = %117, %103
%119 = load ptr, ptr %9, align 8
%120 = load ptr, ptr %10, align 8
%121 = call i32 @append_node(ptr noundef %119, ptr noundef %120)
br label %60, !llvm.loop !9
122: ; preds = %70
br label %123
123: ; preds = %181, %122
%124 = load ptr, ptr %12, align 8
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %133
128: ; preds = %123
%129 = load i32, ptr %11, align 4
%130 = load i32, ptr %7, align 4
%131 = sub nsw i32 %130, 1
%132 = icmp slt i32 %129, %131
br label %133
133: ; preds = %128, %123
%134 = phi i1 [ false, %123 ], [ %132, %128 ]
br i1 %134, label %135, label %185
135: ; preds = %133
%136 = load ptr, ptr %6, align 8
%137 = load i32, ptr %11, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %11, align 4
%139 = sext i32 %137 to i64
%140 = getelementptr inbounds ptr, ptr %136, i64 %139
%141 = load ptr, ptr %140, align 8
%142 = call ptr @create_cnfnode(ptr noundef %141)
store ptr %142, ptr %10, align 8
%143 = load i32, ptr %8, align 4
%144 = icmp eq i32 %143, -1
br i1 %144, label %145, label %167
145: ; preds = %135
%146 = load ptr, ptr %10, align 8
%147 = sub i64 %20, 1
%148 = trunc i64 %147 to i32
%149 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %148)
%150 = call i32 @cnfnode_setval(ptr noundef %146, ptr noundef %149)
br label %151
151: ; preds = %163, %145
%152 = load ptr, ptr %12, align 8
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %161
156: ; preds = %151
%157 = load ptr, ptr %12, align 8
%158 = load i8, ptr %157, align 1
%159 = call i64 @isspace(i8 noundef signext %158)
%160 = icmp ne i64 %159, 0
br label %161
161: ; preds = %156, %151
%162 = phi i1 [ false, %151 ], [ %160, %156 ]
br i1 %162, label %163, label %166
163: ; preds = %161
%164 = load ptr, ptr %12, align 8
%165 = getelementptr inbounds i8, ptr %164, i32 1
store ptr %165, ptr %12, align 8
br label %151, !llvm.loop !10
166: ; preds = %161
br label %181
167: ; preds = %135
%168 = load ptr, ptr %10, align 8
%169 = load i32, ptr %8, align 4
%170 = sub i64 %20, 1
%171 = trunc i64 %170 to i32
%172 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %169, ptr noundef %22, i32 noundef %171)
%173 = call i32 @cnfnode_setval(ptr noundef %168, ptr noundef %172)
%174 = load ptr, ptr %12, align 8
%175 = load i8, ptr %174, align 1
%176 = icmp ne i8 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %167
%178 = load ptr, ptr %12, align 8
%179 = getelementptr inbounds i8, ptr %178, i32 1
store ptr %179, ptr %12, align 8
br label %180
180: ; preds = %177, %167
br label %181
181: ; preds = %180, %166
%182 = load ptr, ptr %9, align 8
%183 = load ptr, ptr %10, align 8
%184 = call i32 @append_node(ptr noundef %182, ptr noundef %183)
br label %123, !llvm.loop !11
185: ; preds = %133
%186 = load ptr, ptr %12, align 8
%187 = load i8, ptr %186, align 1
%188 = icmp ne i8 %187, 0
br i1 %188, label %189, label %205
189: ; preds = %185
%190 = load ptr, ptr %6, align 8
%191 = load i32, ptr %11, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %11, align 4
%193 = sext i32 %191 to i64
%194 = getelementptr inbounds ptr, ptr %190, i64 %193
%195 = load ptr, ptr %194, align 8
%196 = call ptr @create_cnfnode(ptr noundef %195)
store ptr %196, ptr %10, align 8
%197 = load ptr, ptr %10, align 8
%198 = sub i64 %20, 1
%199 = trunc i64 %198 to i32
%200 = call ptr @dup_next_line_b(ptr noundef %12, ptr noundef %22, i32 noundef %199)
%201 = call i32 @cnfnode_setval(ptr noundef %197, ptr noundef %200)
%202 = load ptr, ptr %9, align 8
%203 = load ptr, ptr %10, align 8
%204 = call i32 @append_node(ptr noundef %202, ptr noundef %203)
br label %205
205: ; preds = %189, %185
%206 = load ptr, ptr %12, align 8
%207 = load ptr, ptr %5, align 8
store ptr %206, ptr %207, align 8
%208 = load ptr, ptr %9, align 8
%209 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %209)
ret ptr %208
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @create_cnfnode(ptr noundef) #1
declare ptr @dup_next_word_b(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare ptr @dup_line_until_b(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @cnfnode_setval(ptr noundef, ptr noundef) #1
declare i32 @append_node(ptr noundef, ptr noundef) #1
declare ptr @dup_next_line_b(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmp8ivlptot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_table_line(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 ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, 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 i32 0, ptr %11, align 4
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
store ptr %16, ptr %12, align 8
%17 = load ptr, ptr %12, align 8
%18 = call i32 @strlen(ptr noundef %17)
%19 = add nsw i32 %18, 1
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %13, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %14, align 8
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %46
25: ; preds = %4
%26 = sub i64 %20, 1
%27 = trunc i64 %26 to i32
%28 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %27)
%29 = call ptr @create_cnfnode(ptr noundef %28)
store ptr %29, ptr %9, align 8
br label %30
30: ; preds = %42, %25
%31 = load ptr, ptr %12, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %12, align 8
%37 = load i8, ptr %36, align 1
%38 = call i64 @isspace(i8 noundef signext %37)
%39 = icmp ne i64 %38, 0
br label %40
40: ; preds = %35, %30
%41 = phi i1 [ false, %30 ], [ %39, %35 ]
br i1 %41, label %42, label %45
42: ; preds = %40
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
br label %30, !llvm.loop !6
45: ; preds = %40
br label %59
46: ; preds = %4
%47 = load i32, ptr %8, align 4
%48 = sub i64 %20, 1
%49 = trunc i64 %48 to i32
%50 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %47, ptr noundef %22, i32 noundef %49)
%51 = call ptr @create_cnfnode(ptr noundef %50)
store ptr %51, ptr %9, align 8
%52 = load ptr, ptr %12, align 8
%53 = load i8, ptr %52, align 1
%54 = icmp ne i8 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %46
%56 = load ptr, ptr %12, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %12, align 8
br label %58
58: ; preds = %55, %46
br label %59
59: ; preds = %58, %45
store i32 1, ptr %11, align 4
br label %60
60: ; preds = %118, %59
%61 = load ptr, ptr %12, align 8
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %70
65: ; preds = %60
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %7, align 4
%68 = sub nsw i32 %67, 1
%69 = icmp slt i32 %66, %68
br label %70
70: ; preds = %65, %60
%71 = phi i1 [ false, %60 ], [ %69, %65 ]
br i1 %71, label %72, label %122
72: ; preds = %70
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds ptr, ptr %73, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = call ptr @create_cnfnode(ptr noundef %78)
store ptr %79, ptr %10, align 8
%80 = load i32, ptr %8, align 4
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %104
82: ; preds = %72
%83 = load ptr, ptr %10, align 8
%84 = sub i64 %20, 1
%85 = trunc i64 %84 to i32
%86 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %85)
%87 = call i32 @cnfnode_setval(ptr noundef %83, ptr noundef %86)
br label %88
88: ; preds = %100, %82
%89 = load ptr, ptr %12, align 8
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %98
93: ; preds = %88
%94 = load ptr, ptr %12, align 8
%95 = load i8, ptr %94, align 1
%96 = call i64 @isspace(i8 noundef signext %95)
%97 = icmp ne i64 %96, 0
br label %98
98: ; preds = %93, %88
%99 = phi i1 [ false, %88 ], [ %97, %93 ]
br i1 %99, label %100, label %103
100: ; preds = %98
%101 = load ptr, ptr %12, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %12, align 8
br label %88, !llvm.loop !8
103: ; preds = %98
br label %118
104: ; preds = %72
%105 = load ptr, ptr %10, align 8
%106 = load i32, ptr %8, align 4
%107 = sub i64 %20, 1
%108 = trunc i64 %107 to i32
%109 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %106, ptr noundef %22, i32 noundef %108)
%110 = call i32 @cnfnode_setval(ptr noundef %105, ptr noundef %109)
%111 = load ptr, ptr %12, align 8
%112 = load i8, ptr %111, align 1
%113 = icmp ne i8 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %104
%115 = load ptr, ptr %12, align 8
%116 = getelementptr inbounds i8, ptr %115, i32 1
store ptr %116, ptr %12, align 8
br label %117
117: ; preds = %114, %104
br label %118
118: ; preds = %117, %103
%119 = load ptr, ptr %9, align 8
%120 = load ptr, ptr %10, align 8
%121 = call i32 @append_node(ptr noundef %119, ptr noundef %120)
br label %60, !llvm.loop !9
122: ; preds = %70
br label %123
123: ; preds = %181, %122
%124 = load ptr, ptr %12, align 8
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %133
128: ; preds = %123
%129 = load i32, ptr %11, align 4
%130 = load i32, ptr %7, align 4
%131 = sub nsw i32 %130, 1
%132 = icmp slt i32 %129, %131
br label %133
133: ; preds = %128, %123
%134 = phi i1 [ false, %123 ], [ %132, %128 ]
br i1 %134, label %135, label %185
135: ; preds = %133
%136 = load ptr, ptr %6, align 8
%137 = load i32, ptr %11, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %11, align 4
%139 = sext i32 %137 to i64
%140 = getelementptr inbounds ptr, ptr %136, i64 %139
%141 = load ptr, ptr %140, align 8
%142 = call ptr @create_cnfnode(ptr noundef %141)
store ptr %142, ptr %10, align 8
%143 = load i32, ptr %8, align 4
%144 = icmp eq i32 %143, -1
br i1 %144, label %145, label %167
145: ; preds = %135
%146 = load ptr, ptr %10, align 8
%147 = sub i64 %20, 1
%148 = trunc i64 %147 to i32
%149 = call ptr @dup_next_word_b(ptr noundef %12, ptr noundef %22, i32 noundef %148)
%150 = call i32 @cnfnode_setval(ptr noundef %146, ptr noundef %149)
br label %151
151: ; preds = %163, %145
%152 = load ptr, ptr %12, align 8
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %161
156: ; preds = %151
%157 = load ptr, ptr %12, align 8
%158 = load i8, ptr %157, align 1
%159 = call i64 @isspace(i8 noundef signext %158)
%160 = icmp ne i64 %159, 0
br label %161
161: ; preds = %156, %151
%162 = phi i1 [ false, %151 ], [ %160, %156 ]
br i1 %162, label %163, label %166
163: ; preds = %161
%164 = load ptr, ptr %12, align 8
%165 = getelementptr inbounds i8, ptr %164, i32 1
store ptr %165, ptr %12, align 8
br label %151, !llvm.loop !10
166: ; preds = %161
br label %181
167: ; preds = %135
%168 = load ptr, ptr %10, align 8
%169 = load i32, ptr %8, align 4
%170 = sub i64 %20, 1
%171 = trunc i64 %170 to i32
%172 = call ptr @dup_line_until_b(ptr noundef %12, i32 noundef %169, ptr noundef %22, i32 noundef %171)
%173 = call i32 @cnfnode_setval(ptr noundef %168, ptr noundef %172)
%174 = load ptr, ptr %12, align 8
%175 = load i8, ptr %174, align 1
%176 = icmp ne i8 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %167
%178 = load ptr, ptr %12, align 8
%179 = getelementptr inbounds i8, ptr %178, i32 1
store ptr %179, ptr %12, align 8
br label %180
180: ; preds = %177, %167
br label %181
181: ; preds = %180, %166
%182 = load ptr, ptr %9, align 8
%183 = load ptr, ptr %10, align 8
%184 = call i32 @append_node(ptr noundef %182, ptr noundef %183)
br label %123, !llvm.loop !11
185: ; preds = %133
%186 = load ptr, ptr %12, align 8
%187 = load i8, ptr %186, align 1
%188 = icmp ne i8 %187, 0
br i1 %188, label %189, label %205
189: ; preds = %185
%190 = load ptr, ptr %6, align 8
%191 = load i32, ptr %11, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %11, align 4
%193 = sext i32 %191 to i64
%194 = getelementptr inbounds ptr, ptr %190, i64 %193
%195 = load ptr, ptr %194, align 8
%196 = call ptr @create_cnfnode(ptr noundef %195)
store ptr %196, ptr %10, align 8
%197 = load ptr, ptr %10, align 8
%198 = sub i64 %20, 1
%199 = trunc i64 %198 to i32
%200 = call ptr @dup_next_line_b(ptr noundef %12, ptr noundef %22, i32 noundef %199)
%201 = call i32 @cnfnode_setval(ptr noundef %197, ptr noundef %200)
%202 = load ptr, ptr %9, align 8
%203 = load ptr, ptr %10, align 8
%204 = call i32 @append_node(ptr noundef %202, ptr noundef %203)
br label %205
205: ; preds = %189, %185
%206 = load ptr, ptr %12, align 8
%207 = load ptr, ptr %5, align 8
store ptr %206, ptr %207, align 8
%208 = load ptr, ptr %9, align 8
%209 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %209)
ret ptr %208
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @create_cnfnode(ptr noundef) #1
declare ptr @dup_next_word_b(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare ptr @dup_line_until_b(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @cnfnode_setval(ptr noundef, ptr noundef) #1
declare i32 @append_node(ptr noundef, ptr noundef) #1
declare ptr @dup_next_line_b(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmpe939hvas.c'
source_filename = "/tmp/tmpe939hvas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Float \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%i. '%f' do '%e' \0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Double \0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%i. '%lf' do '%le' \0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Long double \0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%i. '%Lf' do '%Le' \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca x86_fp80, align 16
store i32 0, ptr %1, align 4
store float 1.000000e+00, ptr %2, align 4
store i32 1, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %7
7: ; preds = %12, %0
%8 = load float, ptr %2, align 4
%9 = fpext float %8 to double
%10 = fadd double 1.000000e+00, %9
%11 = fcmp ogt double %10, 1.000000e+00
br i1 %11, label %12, label %25
12: ; preds = %7
%13 = load float, ptr %2, align 4
%14 = fpext float %13 to double
%15 = fdiv double %14, 2.000000e+00
%16 = fptrunc double %15 to float
store float %16, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = load float, ptr %2, align 4
%19 = fpext float %18 to double
%20 = load float, ptr %2, align 4
%21 = fpext float %20 to double
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17, double noundef %19, double noundef %21)
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %7, !llvm.loop !6
25: ; preds = %7
store i32 0, ptr %3, align 4
store double 1.000000e+00, ptr %4, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %31, %25
%28 = load double, ptr %4, align 8
%29 = fadd double 1.000000e+00, %28
%30 = fcmp ogt double %29, 1.000000e+00
br i1 %30, label %31, label %40
31: ; preds = %27
%32 = load double, ptr %4, align 8
%33 = fdiv double %32, 2.000000e+00
store double %33, ptr %4, align 8
%34 = load i32, ptr %3, align 4
%35 = load double, ptr %4, align 8
%36 = load double, ptr %4, align 8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %34, double noundef %35, double noundef %36)
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
br label %27, !llvm.loop !8
40: ; preds = %27
store x86_fp80 0xK3FFF8000000000000000, ptr %5, align 16
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %42
42: ; preds = %46, %40
%43 = load x86_fp80, ptr %5, align 16
%44 = fadd x86_fp80 0xK3FFF8000000000000000, %43
%45 = fcmp ogt x86_fp80 %44, 0xK3FFF8000000000000000
br i1 %45, label %46, label %55
46: ; preds = %42
%47 = load x86_fp80, ptr %5, align 16
%48 = fdiv x86_fp80 %47, 0xK40008000000000000000
store x86_fp80 %48, ptr %5, align 16
%49 = load i32, ptr %3, align 4
%50 = load x86_fp80, ptr %5, align 16
%51 = load x86_fp80, ptr %5, align 16
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %49, x86_fp80 noundef %50, x86_fp80 noundef %51)
%53 = load i32, ptr %3, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %3, align 4
br label %42, !llvm.loop !9
55: ; preds = %42
%56 = load i32, ptr %1, align 4
ret i32 %56
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe939hvas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Float \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%i. '%f' do '%e' \0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Double \0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%i. '%lf' do '%le' \0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Long double \0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"%i. '%Lf' do '%Le' \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca x86_fp80, align 16
store i32 0, ptr %1, align 4
store float 1.000000e+00, ptr %2, align 4
store i32 1, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load float, ptr %2, align 4
%8 = fpext float %7 to double
%9 = fadd double 1.000000e+00, %8
%10 = fcmp ogt double %9, 1.000000e+00
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load float, ptr %2, align 4
%13 = fpext float %12 to double
%14 = fdiv double %13, 2.000000e+00
%15 = fptrunc double %14 to float
store float %15, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = load float, ptr %2, align 4
%18 = fpext float %17 to double
%19 = load float, ptr %2, align 4
%20 = fpext float %19 to double
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, double noundef %18, double noundef %20)
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load float, ptr %2, align 4
%25 = fpext float %24 to double
%26 = fadd double 1.000000e+00, %25
%27 = fcmp ogt double %26, 1.000000e+00
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %28
28: ; preds = %._crit_edge, %0
store i32 0, ptr %3, align 4
store double 1.000000e+00, ptr %4, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = load double, ptr %4, align 8
%31 = fadd double 1.000000e+00, %30
%32 = fcmp ogt double %31, 1.000000e+00
br i1 %32, label %.lr.ph2, label %45
.lr.ph2: ; preds = %28
br label %33
33: ; preds = %.lr.ph2, %33
%34 = load double, ptr %4, align 8
%35 = fdiv double %34, 2.000000e+00
store double %35, ptr %4, align 8
%36 = load i32, ptr %3, align 4
%37 = load double, ptr %4, align 8
%38 = load double, ptr %4, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %36, double noundef %37, double noundef %38)
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
%42 = load double, ptr %4, align 8
%43 = fadd double 1.000000e+00, %42
%44 = fcmp ogt double %43, 1.000000e+00
br i1 %44, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %45
45: ; preds = %._crit_edge3, %28
store x86_fp80 0xK3FFF8000000000000000, ptr %5, align 16
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%47 = load x86_fp80, ptr %5, align 16
%48 = fadd x86_fp80 0xK3FFF8000000000000000, %47
%49 = fcmp ogt x86_fp80 %48, 0xK3FFF8000000000000000
br i1 %49, label %.lr.ph5, label %62
.lr.ph5: ; preds = %45
br label %50
50: ; preds = %.lr.ph5, %50
%51 = load x86_fp80, ptr %5, align 16
%52 = fdiv x86_fp80 %51, 0xK40008000000000000000
store x86_fp80 %52, ptr %5, align 16
%53 = load i32, ptr %3, align 4
%54 = load x86_fp80, ptr %5, align 16
%55 = load x86_fp80, ptr %5, align 16
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %53, x86_fp80 noundef %54, x86_fp80 noundef %55)
%57 = load i32, ptr %3, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %3, align 4
%59 = load x86_fp80, ptr %5, align 16
%60 = fadd x86_fp80 0xK3FFF8000000000000000, %59
%61 = fcmp ogt x86_fp80 %60, 0xK3FFF8000000000000000
br i1 %61, label %50, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %50
br label %62
62: ; preds = %._crit_edge6, %45
%63 = load i32, ptr %1, align 4
ret i32 %63
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp7ye7gjit.c'
source_filename = "/tmp/tmp7ye7gjit.c"
target datalayout = "e-m:e-p270: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/tmp7ye7gjit.c"
target datalayout = "e-m:e-p270: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/tmpx8fmtgmn.c'
source_filename = "/tmp/tmpx8fmtgmn.c"
target datalayout = "e-m:e-p270: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/tmpx8fmtgmn.c"
target datalayout = "e-m:e-p270: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_c1qiihw.c'
source_filename = "/tmp/tmp_c1qiihw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_c1qiihw.c"
target datalayout = "e-m:e-p270: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/tmpqjw58dmi.c'
source_filename = "/tmp/tmpqjw58dmi.c"
target datalayout = "e-m:e-p270: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 [82 x i8] c"usage: hsp <flags>* [ <algorithm> | -S <schedule> ] <problem.pddl> <domain.pddl>\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"where <flags> are among:\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c" -v <level>\09\09Verbose level >= 0 (default is 1).\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c" -w <weight>\09\09Float to weight the heuristic component of the cost function.\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"<algorithm> is:\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" -a <algorithm>\09Either 'bfs' or 'gbfs'.\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c" -d <direction>\09Either 'forward' or 'backward'.\0A\00", align 1
@.str.7 = private unnamed_addr constant [64 x i8] c" -h <heuristic>\09One of 'h1plus', 'h1max', 'h2plus', 'h2max'.\0A\00", align 1
@.str.8 = private unnamed_addr constant [69 x i8] c"<schedule> is a colon separated <option> list where each option has\0A\00", align 1
@.str.9 = private unnamed_addr constant [69 x i8] c"form '[<direction>,<heuristic>,<msecs>]'. The options are performed\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"sequentially until one finds a plan, or no more options are available\0A\00", align 1
@.str.11 = private unnamed_addr constant [60 x i8] c"(each option is attempted with the given time constraint).\0A\00", align 1
; 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 @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = call i32 @exit(i32 noundef -1) #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/tmpqjw58dmi.c"
target datalayout = "e-m:e-p270: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 [82 x i8] c"usage: hsp <flags>* [ <algorithm> | -S <schedule> ] <problem.pddl> <domain.pddl>\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"where <flags> are among:\0A\00", align 1
@.str.2 = private unnamed_addr constant [51 x i8] c" -v <level>\09\09Verbose level >= 0 (default is 1).\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c" -w <weight>\09\09Float to weight the heuristic component of the cost function.\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"<algorithm> is:\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c" -a <algorithm>\09Either 'bfs' or 'gbfs'.\0A\00", align 1
@.str.6 = private unnamed_addr constant [51 x i8] c" -d <direction>\09Either 'forward' or 'backward'.\0A\00", align 1
@.str.7 = private unnamed_addr constant [64 x i8] c" -h <heuristic>\09One of 'h1plus', 'h1max', 'h2plus', 'h2max'.\0A\00", align 1
@.str.8 = private unnamed_addr constant [69 x i8] c"<schedule> is a colon separated <option> list where each option has\0A\00", align 1
@.str.9 = private unnamed_addr constant [69 x i8] c"form '[<direction>,<heuristic>,<msecs>]'. The options are performed\0A\00", align 1
@.str.10 = private unnamed_addr constant [71 x i8] c"sequentially until one finds a plan, or no more options are available\0A\00", align 1
@.str.11 = private unnamed_addr constant [60 x i8] c"(each option is attempted with the given time constraint).\0A\00", align 1
; 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 @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = call i32 @exit(i32 noundef -1) #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/tmpte8a04dh.c'
source_filename = "/tmp/tmpte8a04dh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsncspn(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %6, align 8
%13 = call i64 @wcsnlen(ptr noundef %11, i64 noundef %12)
store i64 %13, ptr %8, align 8
br label %14
14: ; preds = %43, %3
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i64, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load i64, ptr %15, align 8
store i64 %17, ptr %10, align 8
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %44
19: ; preds = %14
store i64 0, ptr %7, align 8
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %9, align 8
br label %21
21: ; preds = %38, %19
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %43
25: ; preds = %21
%26 = load ptr, ptr %9, align 8
%27 = load i64, ptr %26, align 8
%28 = load i64, ptr %10, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %25
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %4, align 8
%33 = ptrtoint ptr %31 to i64
%34 = ptrtoint ptr %32 to i64
%35 = sub i64 %33, %34
%36 = sdiv exact i64 %35, 8
store i64 %36, ptr %8, align 8
br label %43
37: ; preds = %25
br label %38
38: ; preds = %37
%39 = load i64, ptr %7, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %7, align 8
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i64, ptr %41, i32 1
store ptr %42, ptr %9, align 8
br label %21, !llvm.loop !6
43: ; preds = %30, %21
br label %14, !llvm.loop !8
44: ; preds = %14
%45 = load i64, ptr %8, align 8
ret i64 %45
}
declare i64 @wcsnlen(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpte8a04dh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsncspn(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %6, align 8
%13 = call i64 @wcsnlen(ptr noundef %11, i64 noundef %12)
store i64 %13, ptr %8, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i64, ptr %14, i32 1
store ptr %15, ptr %5, align 8
%16 = load i64, ptr %14, align 8
store i64 %16, ptr %10, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %.lr.ph1, label %49
.lr.ph1: ; preds = %3
br label %18
18: ; preds = %.lr.ph1, %44
store i64 0, ptr %7, align 8
%19 = load ptr, ptr %4, align 8
store ptr %19, ptr %9, align 8
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %8, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %36
%24 = load ptr, ptr %9, align 8
%25 = load i64, ptr %24, align 8
%26 = load i64, ptr %10, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %35
28: ; preds = %23
%29 = load ptr, ptr %9, align 8
%30 = load ptr, ptr %4, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = sdiv exact i64 %33, 8
store i64 %34, ptr %8, align 8
br label %44
35: ; preds = %23
br label %36
36: ; preds = %35
%37 = load i64, ptr %7, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %7, align 8
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds i64, ptr %39, i32 1
store ptr %40, ptr %9, align 8
%41 = load i64, ptr %7, align 8
%42 = load i64, ptr %8, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %36
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %18
br label %44
44: ; preds = %.loopexit, %28
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds i64, ptr %45, i32 1
store ptr %46, ptr %5, align 8
%47 = load i64, ptr %45, align 8
store i64 %47, ptr %10, align 8
%48 = icmp ne i64 %47, 0
br i1 %48, label %18, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %44
br label %49
49: ; preds = %._crit_edge, %3
%50 = load i64, ptr %8, align 8
ret i64 %50
}
declare i64 @wcsnlen(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzj_qxfm_.c'
source_filename = "/tmp/tmpzj_qxfm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gram_schmidt(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = mul nsw i32 %14, %15
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %13, align 8
%22 = load ptr, ptr %13, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %3
store i32 1, ptr %4, align 4
br label %130
25: ; preds = %3
store i32 0, ptr %8, align 4
br label %26
26: ; preds = %115, %25
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %118
30: ; preds = %26
store i32 0, ptr %11, align 4
br label %31
31: ; preds = %103, %30
%32 = load i32, ptr %11, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %106
35: ; preds = %31
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %6, align 4
%39 = mul nsw i32 %37, %38
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %39, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds float, ptr %36, i64 %42
%44 = load float, ptr %43, align 4
store float %44, ptr %12, align 4
store i32 0, ptr %9, align 4
br label %45
45: ; preds = %90, %35
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %8, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %93
49: ; preds = %45
store i32 0, ptr %10, align 4
br label %50
50: ; preds = %86, %49
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %6, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %89
54: ; preds = %50
%55 = load ptr, ptr %13, align 8
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr %6, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %11, align 4
%60 = add nsw i32 %58, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, ptr %55, i64 %61
%63 = load float, ptr %62, align 4
%64 = load ptr, ptr %13, align 8
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %6, align 4
%67 = mul nsw i32 %65, %66
%68 = load i32, ptr %10, align 4
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, ptr %64, i64 %70
%72 = load float, ptr %71, align 4
%73 = fmul float %63, %72
%74 = load ptr, ptr %5, align 8
%75 = load i32, ptr %8, align 4
%76 = load i32, ptr %6, align 4
%77 = mul nsw i32 %75, %76
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %77, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds float, ptr %74, i64 %80
%82 = load float, ptr %81, align 4
%83 = load float, ptr %12, align 4
%84 = fneg float %73
%85 = call float @llvm.fmuladd.f32(float %84, float %82, float %83)
store float %85, ptr %12, align 4
br label %86
86: ; preds = %54
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %10, align 4
br label %50, !llvm.loop !6
89: ; preds = %50
br label %90
90: ; preds = %89
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %9, align 4
br label %45, !llvm.loop !8
93: ; preds = %45
%94 = load float, ptr %12, align 4
%95 = load ptr, ptr %13, align 8
%96 = load i32, ptr %8, align 4
%97 = load i32, ptr %6, align 4
%98 = mul nsw i32 %96, %97
%99 = load i32, ptr %11, align 4
%100 = add nsw i32 %98, %99
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %95, i64 %101
store float %94, ptr %102, align 4
br label %103
103: ; preds = %93
%104 = load i32, ptr %11, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %11, align 4
br label %31, !llvm.loop !9
106: ; preds = %31
%107 = load ptr, ptr %13, align 8
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %6, align 4
%110 = mul nsw i32 %108, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds float, ptr %107, i64 %111
%113 = load i32, ptr %6, align 4
%114 = call i32 @normalize(ptr noundef %112, i32 noundef %113)
br label %115
115: ; preds = %106
%116 = load i32, ptr %8, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %8, align 4
br label %26, !llvm.loop !10
118: ; preds = %26
%119 = load ptr, ptr %5, align 8
%120 = load ptr, ptr %13, align 8
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %7, align 4
%123 = mul nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = mul i64 %124, 4
%126 = trunc i64 %125 to i32
%127 = call i32 @memcpy(ptr noundef %119, ptr noundef %120, i32 noundef %126)
%128 = load ptr, ptr %13, align 8
%129 = call i32 @free(ptr noundef %128)
store i32 0, ptr %4, align 4
br label %130
130: ; preds = %118, %24
%131 = load i32, ptr %4, align 4
ret i32 %131
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @normalize(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpzj_qxfm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gram_schmidt(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca float, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = mul nsw i32 %14, %15
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %13, align 8
%22 = load ptr, ptr %13, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %25
24: ; preds = %3
store i32 1, ptr %4, align 4
br label %138
25: ; preds = %3
store i32 0, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph8, label %126
.lr.ph8: ; preds = %25
br label %29
29: ; preds = %.lr.ph8, %120
store i32 0, ptr %11, align 4
%30 = load i32, ptr %11, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph5, label %111
.lr.ph5: ; preds = %29
br label %33
33: ; preds = %.lr.ph5, %105
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %6, align 4
%37 = mul nsw i32 %35, %36
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %37, %38
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds float, ptr %34, i64 %40
%42 = load float, ptr %41, align 4
store float %42, ptr %12, align 4
store i32 0, ptr %9, align 4
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph2, label %95
.lr.ph2: ; preds = %33
br label %46
46: ; preds = %.lr.ph2, %89
store i32 0, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph, label %88
.lr.ph: ; preds = %46
br label %50
50: ; preds = %.lr.ph, %82
%51 = load ptr, ptr %13, align 8
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %6, align 4
%54 = mul nsw i32 %52, %53
%55 = load i32, ptr %11, align 4
%56 = add nsw i32 %54, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %51, i64 %57
%59 = load float, ptr %58, align 4
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %6, align 4
%63 = mul nsw i32 %61, %62
%64 = load i32, ptr %10, align 4
%65 = add nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, ptr %60, i64 %66
%68 = load float, ptr %67, align 4
%69 = fmul float %59, %68
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr %6, align 4
%73 = mul nsw i32 %71, %72
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, ptr %70, i64 %76
%78 = load float, ptr %77, align 4
%79 = load float, ptr %12, align 4
%80 = fneg float %69
%81 = call float @llvm.fmuladd.f32(float %80, float %78, float %79)
store float %81, ptr %12, align 4
br label %82
82: ; preds = %50
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %10, align 4
%85 = load i32, ptr %10, align 4
%86 = load i32, ptr %6, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %82
br label %88
88: ; preds = %._crit_edge, %46
br label %89
89: ; preds = %88
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %9, align 4
%93 = load i32, ptr %8, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %46, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %89
br label %95
95: ; preds = %._crit_edge3, %33
%96 = load float, ptr %12, align 4
%97 = load ptr, ptr %13, align 8
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %6, align 4
%100 = mul nsw i32 %98, %99
%101 = load i32, ptr %11, align 4
%102 = add nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds float, ptr %97, i64 %103
store float %96, ptr %104, align 4
br label %105
105: ; preds = %95
%106 = load i32, ptr %11, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %11, align 4
%108 = load i32, ptr %11, align 4
%109 = load i32, ptr %6, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %33, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %105
br label %111
111: ; preds = %._crit_edge6, %29
%112 = load ptr, ptr %13, align 8
%113 = load i32, ptr %8, align 4
%114 = load i32, ptr %6, align 4
%115 = mul nsw i32 %113, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds float, ptr %112, i64 %116
%118 = load i32, ptr %6, align 4
%119 = call i32 @normalize(ptr noundef %117, i32 noundef %118)
br label %120
120: ; preds = %111
%121 = load i32, ptr %8, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %8, align 4
%123 = load i32, ptr %8, align 4
%124 = load i32, ptr %7, align 4
%125 = icmp slt i32 %123, %124
br i1 %125, label %29, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %120
br label %126
126: ; preds = %._crit_edge9, %25
%127 = load ptr, ptr %5, align 8
%128 = load ptr, ptr %13, align 8
%129 = load i32, ptr %6, align 4
%130 = load i32, ptr %7, align 4
%131 = mul nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = mul i64 %132, 4
%134 = trunc i64 %133 to i32
%135 = call i32 @memcpy(ptr noundef %127, ptr noundef %128, i32 noundef %134)
%136 = load ptr, ptr %13, align 8
%137 = call i32 @free(ptr noundef %136)
store i32 0, ptr %4, align 4
br label %138
138: ; preds = %126, %24
%139 = load i32, ptr %4, align 4
ret i32 %139
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @normalize(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpy0ur_sf5.c'
source_filename = "/tmp/tmpy0ur_sf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UART_Init() #0 {
%1 = call i32 (...) @UART_UartInit()
ret void
}
declare i32 @UART_UartInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy0ur_sf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @UART_Init() #0 {
%1 = call i32 (...) @UART_UartInit()
ret void
}
declare i32 @UART_UartInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_kyvs9xp.c'
source_filename = "/tmp/tmp_kyvs9xp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_kyvs9xp.c"
target datalayout = "e-m:e-p270: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/tmpj43sv65v.c'
source_filename = "/tmp/tmpj43sv65v.c"
target datalayout = "e-m:e-p270: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/tmpj43sv65v.c"
target datalayout = "e-m:e-p270: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/tmpzpbawpf1.c'
source_filename = "/tmp/tmpzpbawpf1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"pa_threaded_mainloop_wait: waiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pa_threaded_mainloop_wait(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @empty_log(ptr noundef @.str)
%4 = call i32 @usleep(i32 noundef 10000)
ret void
}
declare i32 @empty_log(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzpbawpf1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"pa_threaded_mainloop_wait: waiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pa_threaded_mainloop_wait(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @empty_log(ptr noundef @.str)
%4 = call i32 @usleep(i32 noundef 10000)
ret void
}
declare i32 @empty_log(ptr noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptujcjh44.c'
source_filename = "/tmp/tmptujcjh44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"test_input.txt\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"0123456789\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"close\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"/tmp/short.txt\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"Failed to write data, length %d, written %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr @O_WRONLY, align 4
%15 = load i32, ptr @O_CREAT, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @O_TRUNC, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @S_IWUSR, align 4
%20 = load i32, ptr @S_IRUSR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @S_IWGRP, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRGRP, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = call i32 @open(ptr noundef %13, i32 noundef %18, i32 noundef %27)
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 @perror(ptr noundef @.str.2)
br label %33
33: ; preds = %31, %2
%34 = load i32, ptr %6, align 4
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %8, align 8
%37 = call i64 @strlen(ptr noundef %36)
%38 = call i32 (i32, ...) @write(i32 noundef %34, ptr noundef %35, i64 noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = call i32 @perror(ptr noundef @.str.3)
br label %43
43: ; preds = %41, %33
%44 = load i32, ptr %6, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 %45, ptr %10, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @perror(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %43
%51 = load i32, ptr @O_WRONLY, align 4
%52 = load i32, ptr @O_CREAT, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @O_TRUNC, align 4
%55 = or i32 %53, %54
%56 = load i32, ptr @S_IWUSR, align 4
%57 = load i32, ptr @S_IRUSR, align 4
%58 = or i32 %56, %57
%59 = load i32, ptr @S_IWGRP, align 4
%60 = or i32 %58, %59
%61 = load i32, ptr @S_IRGRP, align 4
%62 = or i32 %60, %61
%63 = load i32, ptr @S_IROTH, align 4
%64 = or i32 %62, %63
%65 = call i32 @open(ptr noundef @.str.5, i32 noundef %55, i32 noundef %64)
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %70
68: ; preds = %50
%69 = call i32 @perror(ptr noundef @.str.2)
br label %70
70: ; preds = %68, %50
store i64 1720, ptr %11, align 8
store i32 0, ptr %9, align 4
store i64 8, ptr %12, align 8
%71 = load i32, ptr %6, align 4
%72 = load i64, ptr %11, align 8
%73 = call i32 (i32, ...) @write(i32 noundef %71, ptr noundef %11, i64 noundef %72)
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %70
%77 = call i32 @perror(ptr noundef @.str.3)
br label %89
78: ; preds = %70
%79 = load i32, ptr %9, align 4
%80 = sext i32 %79 to i64
%81 = load i64, ptr %12, align 8
%82 = icmp ne i64 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %78
%84 = load i64, ptr %12, align 8
%85 = trunc i64 %84 to i32
%86 = load i32, ptr %9, align 4
%87 = call i32 @printf(ptr noundef @.str.6, i32 noundef %85, i32 noundef %86)
br label %88
88: ; preds = %83, %78
br label %89
89: ; preds = %88, %76
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptujcjh44.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"test_input.txt\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"0123456789\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWGRP = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"close\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"/tmp/short.txt\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"Failed to write data, length %d, written %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
store ptr @.str.1, ptr %8, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr @O_WRONLY, align 4
%15 = load i32, ptr @O_CREAT, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @O_TRUNC, align 4
%18 = or i32 %16, %17
%19 = load i32, ptr @S_IWUSR, align 4
%20 = load i32, ptr @S_IRUSR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @S_IWGRP, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @S_IRGRP, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @S_IROTH, align 4
%27 = or i32 %25, %26
%28 = call i32 @open(ptr noundef %13, i32 noundef %18, i32 noundef %27)
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 @perror(ptr noundef @.str.2)
br label %33
33: ; preds = %31, %2
%34 = load i32, ptr %6, align 4
%35 = load ptr, ptr %8, align 8
%36 = load ptr, ptr %8, align 8
%37 = call i64 @strlen(ptr noundef %36)
%38 = call i32 (i32, ...) @write(i32 noundef %34, ptr noundef %35, i64 noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = call i32 @perror(ptr noundef @.str.3)
br label %43
43: ; preds = %41, %33
%44 = load i32, ptr %6, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 %45, ptr %10, align 4
%46 = load i32, ptr %10, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @perror(ptr noundef @.str.4)
br label %50
50: ; preds = %48, %43
%51 = load i32, ptr @O_WRONLY, align 4
%52 = load i32, ptr @O_CREAT, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @O_TRUNC, align 4
%55 = or i32 %53, %54
%56 = load i32, ptr @S_IWUSR, align 4
%57 = load i32, ptr @S_IRUSR, align 4
%58 = or i32 %56, %57
%59 = load i32, ptr @S_IWGRP, align 4
%60 = or i32 %58, %59
%61 = load i32, ptr @S_IRGRP, align 4
%62 = or i32 %60, %61
%63 = load i32, ptr @S_IROTH, align 4
%64 = or i32 %62, %63
%65 = call i32 @open(ptr noundef @.str.5, i32 noundef %55, i32 noundef %64)
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %70
68: ; preds = %50
%69 = call i32 @perror(ptr noundef @.str.2)
br label %70
70: ; preds = %68, %50
store i64 1720, ptr %11, align 8
store i32 0, ptr %9, align 4
store i64 8, ptr %12, align 8
%71 = load i32, ptr %6, align 4
%72 = load i64, ptr %11, align 8
%73 = call i32 (i32, ...) @write(i32 noundef %71, ptr noundef %11, i64 noundef %72)
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %70
%77 = call i32 @perror(ptr noundef @.str.3)
br label %89
78: ; preds = %70
%79 = load i32, ptr %9, align 4
%80 = sext i32 %79 to i64
%81 = load i64, ptr %12, align 8
%82 = icmp ne i64 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %78
%84 = load i64, ptr %12, align 8
%85 = trunc i64 %84 to i32
%86 = load i32, ptr %9, align 4
%87 = call i32 @printf(ptr noundef @.str.6, i32 noundef %85, i32 noundef %86)
br label %88
88: ; preds = %83, %78
br label %89
89: ; preds = %88, %76
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @write(i32 noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits