llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpa8ba4ybo.c'
source_filename = "/tmp/tmpa8ba4ybo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/bin/ls ../Authorized/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Failed to run command\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Length : %d\00", align 1
@.str.5 = private unnamed_addr constant [93 x i8] c"br -algorithm FaceRecognition -compare ../uploads/myImage.png ../Authorized/U1/ > OUTPUT.txt\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"/n%s\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"OUTPUT.txt\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"OUTFILE DATA: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1035 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca [1024 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
br label %19
19: ; preds = %46, %18
%20 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%21 = load ptr, ptr %6, align 8
%22 = call ptr @fgets(ptr noundef %20, i32 noundef 1034, ptr noundef %21)
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %47
24: ; preds = %19
%25 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %25)
%27 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%28 = call i32 @strlen(ptr noundef %27)
store i32 %28, ptr %11, align 4
%29 = load i32, ptr %11, align 4
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %29)
%31 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%32 = call i32 @sprintf(ptr noundef %31, ptr noundef @.str.5)
%33 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%34 = call i32 @system(ptr noundef %33)
%35 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %35)
%37 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.1)
store ptr %37, ptr %7, align 8
br label %38
38: ; preds = %43, %24
%39 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%40 = load ptr, ptr %7, align 8
%41 = call ptr @fgets(ptr noundef %39, i32 noundef 1023, ptr noundef %40)
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %44)
br label %38, !llvm.loop !6
46: ; preds = %38
br label %19, !llvm.loop !8
47: ; preds = %19
%48 = load ptr, ptr %6, align 8
%49 = call i32 @pclose(ptr noundef %48)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpa8ba4ybo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/bin/ls ../Authorized/\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Failed to run command\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Length : %d\00", align 1
@.str.5 = private unnamed_addr constant [93 x i8] c"br -algorithm FaceRecognition -compare ../uploads/myImage.png ../Authorized/U1/ > OUTPUT.txt\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"/n%s\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"OUTPUT.txt\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"OUTFILE DATA: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1035 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca [1024 x i8], align 16
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%20 = load ptr, ptr %6, align 8
%21 = call ptr @fgets(ptr noundef %19, i32 noundef 1034, ptr noundef %20)
%22 = icmp ne ptr %21, null
br i1 %22, label %.lr.ph2, label %51
.lr.ph2: ; preds = %18
br label %23
23: ; preds = %.lr.ph2, %47
%24 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %24)
%26 = getelementptr inbounds [1035 x i8], ptr %8, i64 0, i64 0
%27 = call i32 @strlen(ptr noundef %26)
store i32 %27, ptr %11, align 4
%28 = load i32, ptr %11, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %28)
%30 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%31 = call i32 @sprintf(ptr noundef %30, ptr noundef @.str.5)
%32 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%33 = call i32 @system(ptr noundef %32)
%34 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %34)
%36 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.1)
store ptr %36, ptr %7, align 8
%37 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%38 = load ptr, ptr %7, align 8
%39 = call ptr @fgets(ptr noundef %37, i32 noundef 1023, ptr noundef %38)
%40 = icmp ne ptr %39, null
br i1 %40, label %.lr.ph, label %47
.lr.ph: ; preds = %23
br label %41
41: ; preds = %.lr.ph, %41
%42 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = call ptr @fgets(ptr noundef %37, i32 noundef 1023, ptr noundef %44)
%46 = icmp ne ptr %45, null
br i1 %46, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %23
%48 = load ptr, ptr %6, align 8
%49 = call ptr @fgets(ptr noundef %19, i32 noundef 1034, ptr noundef %48)
%50 = icmp ne ptr %49, null
br i1 %50, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %51
51: ; preds = %._crit_edge3, %18
%52 = load ptr, ptr %6, align 8
%53 = call i32 @pclose(ptr noundef %52)
ret i32 0
}
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @pclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpzqksl8ac.c'
source_filename = "/tmp/tmpzqksl8ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_neurogen_genome() #0 {
%1 = call i32 (...) @test_neurogen_genome_construct()
%2 = call i32 (...) @test_neurogen_genome_destruct()
%3 = call i32 (...) @test_neurogen_genome_duplicate()
%4 = call i32 (...) @test_neurogen_genome_set_fitness()
%5 = call i32 (...) @test_neurogen_genome_compare()
%6 = call i32 (...) @test_neurogen_genome_crossover_index()
%7 = call i32 (...) @test_neurogen_genome_crossover_random()
%8 = call i32 (...) @test_neurogen_genome_mutate()
ret void
}
declare i32 @test_neurogen_genome_construct(...) #1
declare i32 @test_neurogen_genome_destruct(...) #1
declare i32 @test_neurogen_genome_duplicate(...) #1
declare i32 @test_neurogen_genome_set_fitness(...) #1
declare i32 @test_neurogen_genome_compare(...) #1
declare i32 @test_neurogen_genome_crossover_index(...) #1
declare i32 @test_neurogen_genome_crossover_random(...) #1
declare i32 @test_neurogen_genome_mutate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzqksl8ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_neurogen_genome() #0 {
%1 = call i32 (...) @test_neurogen_genome_construct()
%2 = call i32 (...) @test_neurogen_genome_destruct()
%3 = call i32 (...) @test_neurogen_genome_duplicate()
%4 = call i32 (...) @test_neurogen_genome_set_fitness()
%5 = call i32 (...) @test_neurogen_genome_compare()
%6 = call i32 (...) @test_neurogen_genome_crossover_index()
%7 = call i32 (...) @test_neurogen_genome_crossover_random()
%8 = call i32 (...) @test_neurogen_genome_mutate()
ret void
}
declare i32 @test_neurogen_genome_construct(...) #1
declare i32 @test_neurogen_genome_destruct(...) #1
declare i32 @test_neurogen_genome_duplicate(...) #1
declare i32 @test_neurogen_genome_set_fitness(...) #1
declare i32 @test_neurogen_genome_compare(...) #1
declare i32 @test_neurogen_genome_crossover_index(...) #1
declare i32 @test_neurogen_genome_crossover_random(...) #1
declare i32 @test_neurogen_genome_mutate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8jngmswe.c'
source_filename = "/tmp/tmp8jngmswe.c"
target datalayout = "e-m:e-p270: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/tmp8jngmswe.c"
target datalayout = "e-m:e-p270: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/tmpyaoyngzd.c'
source_filename = "/tmp/tmpyaoyngzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyaoyngzd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp19ce_cfz.c'
source_filename = "/tmp/tmp19ce_cfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_masks_blur_5x5_coeff(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [5 x [5 x float]], align 16
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%13 = load float, ptr %4, align 4
%14 = call float @sqrf(float noundef %13)
%15 = fmul float -2.000000e+00, %14
store float %15, ptr %6, align 4
%16 = call float @sqrf(float noundef 0x400428F5C0000000)
store float %16, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
store i32 -2, ptr %9, align 4
br label %17
17: ; preds = %78, %2
%18 = load i32, ptr %9, align 4
%19 = icmp sle i32 %18, 2
br i1 %19, label %20, label %81
20: ; preds = %17
store i32 -2, ptr %10, align 4
br label %21
21: ; preds = %74, %20
%22 = load i32, ptr %10, align 4
%23 = icmp sle i32 %22, 2
br i1 %23, label %24, label %77
24: ; preds = %21
%25 = load i32, ptr %9, align 4
%26 = sitofp i32 %25 to float
%27 = call float @sqrf(float noundef %26)
%28 = load i32, ptr %10, align 4
%29 = sitofp i32 %28 to float
%30 = call float @sqrf(float noundef %29)
%31 = fadd float %27, %30
%32 = load float, ptr %7, align 4
%33 = fcmp ole float %31, %32
br i1 %33, label %34, label %64
34: ; preds = %24
%35 = load i32, ptr %9, align 4
%36 = sitofp i32 %35 to float
%37 = call float @sqrf(float noundef %36)
%38 = load i32, ptr %10, align 4
%39 = sitofp i32 %38 to float
%40 = call float @sqrf(float noundef %39)
%41 = fadd float %37, %40
%42 = load float, ptr %6, align 4
%43 = fdiv float %41, %42
%44 = call float @expf(float noundef %43) #3
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %45, 2
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %47
%49 = load i32, ptr %10, align 4
%50 = add nsw i32 %49, 2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x float], ptr %48, i64 0, i64 %51
store float %44, ptr %52, align 4
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %55
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [5 x float], ptr %56, i64 0, i64 %59
%61 = load float, ptr %60, align 4
%62 = load float, ptr %8, align 4
%63 = fadd float %62, %61
store float %63, ptr %8, align 4
br label %73
64: ; preds = %24
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %67
%69 = load i32, ptr %10, align 4
%70 = add nsw i32 %69, 2
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [5 x float], ptr %68, i64 0, i64 %71
store float 0.000000e+00, ptr %72, align 4
br label %73
73: ; preds = %64, %34
br label %74
74: ; preds = %73
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %10, align 4
br label %21, !llvm.loop !6
77: ; preds = %21
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
br label %17, !llvm.loop !8
81: ; preds = %17
store i32 0, ptr %11, align 4
br label %82
82: ; preds = %103, %81
%83 = load i32, ptr %11, align 4
%84 = icmp slt i32 %83, 5
br i1 %84, label %85, label %106
85: ; preds = %82
store i32 0, ptr %12, align 4
br label %86
86: ; preds = %99, %85
%87 = load i32, ptr %12, align 4
%88 = icmp slt i32 %87, 5
br i1 %88, label %89, label %102
89: ; preds = %86
%90 = load float, ptr %8, align 4
%91 = load i32, ptr %11, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %92
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [5 x float], ptr %93, i64 0, i64 %95
%97 = load float, ptr %96, align 4
%98 = fdiv float %97, %90
store float %98, ptr %96, align 4
br label %99
99: ; preds = %89
%100 = load i32, ptr %12, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %12, align 4
br label %86, !llvm.loop !9
102: ; preds = %86
br label %103
103: ; preds = %102
%104 = load i32, ptr %11, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %11, align 4
br label %82, !llvm.loop !10
106: ; preds = %82
%107 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 0
%108 = getelementptr inbounds [5 x float], ptr %107, i64 0, i64 1
%109 = load float, ptr %108, align 4
%110 = load ptr, ptr %3, align 8
%111 = getelementptr inbounds float, ptr %110, i64 0
store float %109, ptr %111, align 4
%112 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 0
%113 = getelementptr inbounds [5 x float], ptr %112, i64 0, i64 2
%114 = load float, ptr %113, align 8
%115 = load ptr, ptr %3, align 8
%116 = getelementptr inbounds float, ptr %115, i64 1
store float %114, ptr %116, align 4
%117 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 1
%118 = getelementptr inbounds [5 x float], ptr %117, i64 0, i64 1
%119 = load float, ptr %118, align 4
%120 = load ptr, ptr %3, align 8
%121 = getelementptr inbounds float, ptr %120, i64 2
store float %119, ptr %121, align 4
%122 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 1
%123 = getelementptr inbounds [5 x float], ptr %122, i64 0, i64 2
%124 = load float, ptr %123, align 4
%125 = load ptr, ptr %3, align 8
%126 = getelementptr inbounds float, ptr %125, i64 3
store float %124, ptr %126, align 4
%127 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 2
%128 = getelementptr inbounds [5 x float], ptr %127, i64 0, i64 2
%129 = load float, ptr %128, align 8
%130 = load ptr, ptr %3, align 8
%131 = getelementptr inbounds float, ptr %130, i64 4
store float %129, ptr %131, align 4
ret void
}
declare float @sqrf(float noundef) #1
; Function Attrs: nounwind
declare float @expf(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp19ce_cfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_masks_blur_5x5_coeff(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [5 x [5 x float]], align 16
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%13 = load float, ptr %4, align 4
%14 = call float @sqrf(float noundef %13)
%15 = fmul float -2.000000e+00, %14
store float %15, ptr %6, align 4
%16 = call float @sqrf(float noundef 0x400428F5C0000000)
store float %16, ptr %7, align 4
store float 0.000000e+00, ptr %8, align 4
store i32 -2, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp sle i32 %17, 2
br i1 %18, label %.lr.ph2, label %83
.lr.ph2: ; preds = %2
br label %19
19: ; preds = %.lr.ph2, %78
store i32 -2, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = icmp sle i32 %20, 2
br i1 %21, label %.lr.ph, label %77
.lr.ph: ; preds = %19
br label %22
22: ; preds = %.lr.ph, %72
%23 = load i32, ptr %9, align 4
%24 = sitofp i32 %23 to float
%25 = call float @sqrf(float noundef %24)
%26 = load i32, ptr %10, align 4
%27 = sitofp i32 %26 to float
%28 = call float @sqrf(float noundef %27)
%29 = fadd float %25, %28
%30 = load float, ptr %7, align 4
%31 = fcmp ole float %29, %30
br i1 %31, label %32, label %62
32: ; preds = %22
%33 = load i32, ptr %9, align 4
%34 = sitofp i32 %33 to float
%35 = call float @sqrf(float noundef %34)
%36 = load i32, ptr %10, align 4
%37 = sitofp i32 %36 to float
%38 = call float @sqrf(float noundef %37)
%39 = fadd float %35, %38
%40 = load float, ptr %6, align 4
%41 = fdiv float %39, %40
%42 = call float @expf(float noundef %41) #3
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %45
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 2
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x float], ptr %46, i64 0, i64 %49
store float %42, ptr %50, align 4
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %53
%55 = load i32, ptr %10, align 4
%56 = add nsw i32 %55, 2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [5 x float], ptr %54, i64 0, i64 %57
%59 = load float, ptr %58, align 4
%60 = load float, ptr %8, align 4
%61 = fadd float %60, %59
store float %61, ptr %8, align 4
br label %71
62: ; preds = %22
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 2
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %65
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x float], ptr %66, i64 0, i64 %69
store float 0.000000e+00, ptr %70, align 4
br label %71
71: ; preds = %62, %32
br label %72
72: ; preds = %71
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = icmp sle i32 %75, 2
br i1 %76, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %77
77: ; preds = %._crit_edge, %19
br label %78
78: ; preds = %77
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = icmp sle i32 %81, 2
br i1 %82, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %78
br label %83
83: ; preds = %._crit_edge3, %2
store i32 0, ptr %11, align 4
%84 = load i32, ptr %11, align 4
%85 = icmp slt i32 %84, 5
br i1 %85, label %.lr.ph8, label %110
.lr.ph8: ; preds = %83
br label %86
86: ; preds = %.lr.ph8, %105
store i32 0, ptr %12, align 4
%87 = load i32, ptr %12, align 4
%88 = icmp slt i32 %87, 5
br i1 %88, label %.lr.ph5, label %104
.lr.ph5: ; preds = %86
br label %89
89: ; preds = %.lr.ph5, %99
%90 = load float, ptr %8, align 4
%91 = load i32, ptr %11, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 %92
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [5 x float], ptr %93, i64 0, i64 %95
%97 = load float, ptr %96, align 4
%98 = fdiv float %97, %90
store float %98, ptr %96, align 4
br label %99
99: ; preds = %89
%100 = load i32, ptr %12, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %12, align 4
%102 = load i32, ptr %12, align 4
%103 = icmp slt i32 %102, 5
br i1 %103, label %89, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %99
br label %104
104: ; preds = %._crit_edge6, %86
br label %105
105: ; preds = %104
%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 = icmp slt i32 %108, 5
br i1 %109, label %86, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %105
br label %110
110: ; preds = %._crit_edge9, %83
%111 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 0
%112 = getelementptr inbounds [5 x float], ptr %111, i64 0, i64 1
%113 = load float, ptr %112, align 4
%114 = load ptr, ptr %3, align 8
%115 = getelementptr inbounds float, ptr %114, i64 0
store float %113, ptr %115, align 4
%116 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 0
%117 = getelementptr inbounds [5 x float], ptr %116, i64 0, i64 2
%118 = load float, ptr %117, align 8
%119 = load ptr, ptr %3, align 8
%120 = getelementptr inbounds float, ptr %119, i64 1
store float %118, ptr %120, align 4
%121 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 1
%122 = getelementptr inbounds [5 x float], ptr %121, i64 0, i64 1
%123 = load float, ptr %122, align 4
%124 = load ptr, ptr %3, align 8
%125 = getelementptr inbounds float, ptr %124, i64 2
store float %123, ptr %125, align 4
%126 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 1
%127 = getelementptr inbounds [5 x float], ptr %126, i64 0, i64 2
%128 = load float, ptr %127, align 4
%129 = load ptr, ptr %3, align 8
%130 = getelementptr inbounds float, ptr %129, i64 3
store float %128, ptr %130, align 4
%131 = getelementptr inbounds [5 x [5 x float]], ptr %5, i64 0, i64 2
%132 = getelementptr inbounds [5 x float], ptr %131, i64 0, i64 2
%133 = load float, ptr %132, align 8
%134 = load ptr, ptr %3, align 8
%135 = getelementptr inbounds float, ptr %134, i64 4
store float %133, ptr %135, align 4
ret void
}
declare float @sqrf(float noundef) #1
; Function Attrs: nounwind
declare float @expf(float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmplbmt4lpw.c'
source_filename = "/tmp/tmplbmt4lpw.c"
target datalayout = "e-m:e-p270: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/tmplbmt4lpw.c"
target datalayout = "e-m:e-p270: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/tmpolo9vsep.c'
source_filename = "/tmp/tmpolo9vsep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/ttyACM0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"error %d opening %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@B9600 = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"hello!\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"data is:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_port() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDWR, align 4
%8 = load i32, ptr @O_NOCTTY, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @O_SYNC, align 4
%11 = or i32 %9, %10
%12 = call i32 @open(ptr noundef %6, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16, ptr noundef %17, ptr noundef %19)
store i32 0, ptr %1, align 4
br label %34
21: ; preds = %0
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr @B9600, align 4
%24 = call i32 @set_interface_attribs(i32 noundef %22, i32 noundef %23, i32 noundef 0)
%25 = load i32, ptr %3, align 4
%26 = call i32 @set_blocking(i32 noundef %25, i32 noundef 0)
%27 = load i32, ptr %3, align 4
%28 = call i32 @write(i32 noundef %27, ptr noundef @.str.2, i32 noundef 7)
%29 = load i32, ptr %3, align 4
%30 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%31 = call i32 @read(i32 noundef %29, ptr noundef %30, i32 noundef 100)
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %3, align 4
%33 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %32)
br label %34
34: ; preds = %21, %15
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @set_interface_attribs(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @set_blocking(i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpolo9vsep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/ttyACM0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"error %d opening %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@B9600 = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"hello!\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"data is:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_port() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDWR, align 4
%8 = load i32, ptr @O_NOCTTY, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @O_SYNC, align 4
%11 = or i32 %9, %10
%12 = call i32 @open(ptr noundef %6, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %21
15: ; preds = %0
%16 = load i32, ptr @errno, align 4
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr @errno, align 4
%19 = call ptr @strerror(i32 noundef %18)
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %16, ptr noundef %17, ptr noundef %19)
store i32 0, ptr %1, align 4
br label %34
21: ; preds = %0
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr @B9600, align 4
%24 = call i32 @set_interface_attribs(i32 noundef %22, i32 noundef %23, i32 noundef 0)
%25 = load i32, ptr %3, align 4
%26 = call i32 @set_blocking(i32 noundef %25, i32 noundef 0)
%27 = load i32, ptr %3, align 4
%28 = call i32 @write(i32 noundef %27, ptr noundef @.str.2, i32 noundef 7)
%29 = load i32, ptr %3, align 4
%30 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%31 = call i32 @read(i32 noundef %29, ptr noundef %30, i32 noundef 100)
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %3, align 4
%33 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %32)
br label %34
34: ; preds = %21, %15
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @set_interface_attribs(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @set_blocking(i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgrbgiw95.c'
source_filename = "/tmp/tmpgrbgiw95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c" /0x : -0-1 -2-3 -4-5 -6-7 -8-9 -a-b -c-d -e-f 0123456789abcdef\0A\00", align 1
@.str.1 = private unnamed_addr constant [71 x i8] c"-----/----: --------------------------------------- ----------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %s\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%05d/%04x:\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBlock(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 [17 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%9 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 16
store i8 0, ptr %9, align 16
%10 = load ptr, ptr %4, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.1)
store i64 0, ptr %7, align 8
br label %14
14: ; preds = %92, %3
%15 = load i64, ptr %7, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %95
18: ; preds = %14
%19 = load i64, ptr %7, align 8
%20 = urem i64 %19, 16
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %50
22: ; preds = %18
%23 = load i64, ptr %7, align 8
%24 = icmp ugt i64 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 0
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.2, ptr noundef %27)
%29 = load ptr, ptr %4, align 8
%30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.3)
br label %31
31: ; preds = %25, %22
%32 = load i64, ptr %7, align 8
%33 = icmp ugt i64 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %31
%35 = load i64, ptr %7, align 8
%36 = urem i64 %35, 256
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.3)
%41 = load ptr, ptr %4, align 8
%42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str)
%43 = load ptr, ptr %4, align 8
%44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.1)
br label %45
45: ; preds = %38, %34, %31
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr %7, align 8
%48 = load i64, ptr %7, align 8
%49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.4, i64 noundef %47, i64 noundef %48)
br label %50
50: ; preds = %45, %18
%51 = load i64, ptr %7, align 8
%52 = urem i64 %51, 2
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.5)
br label %57
57: ; preds = %54, %50
%58 = load ptr, ptr %4, align 8
%59 = load ptr, ptr %5, align 8
%60 = load i64, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %59, i64 %60
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = ashr i32 %63, 4
%65 = and i32 %64, 15
%66 = load ptr, ptr %5, align 8
%67 = load i64, ptr %7, align 8
%68 = getelementptr inbounds i8, ptr %66, i64 %67
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = and i32 %70, 15
%72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.6, i32 noundef %65, i32 noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = load i64, ptr %7, align 8
%75 = getelementptr inbounds i8, ptr %73, i64 %74
%76 = load i8, ptr %75, align 1
%77 = call i64 @isprint(i8 noundef zeroext %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %57
%80 = load ptr, ptr %5, align 8
%81 = load i64, ptr %7, align 8
%82 = getelementptr inbounds i8, ptr %80, i64 %81
%83 = load i8, ptr %82, align 1
%84 = load i64, ptr %7, align 8
%85 = urem i64 %84, 16
%86 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 %85
store i8 %83, ptr %86, align 1
br label %91
87: ; preds = %57
%88 = load i64, ptr %7, align 8
%89 = urem i64 %88, 16
%90 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 %89
store i8 46, ptr %90, align 1
br label %91
91: ; preds = %87, %79
br label %92
92: ; preds = %91
%93 = load i64, ptr %7, align 8
%94 = add i64 %93, 1
store i64 %94, ptr %7, align 8
br label %14, !llvm.loop !6
95: ; preds = %14
%96 = load ptr, ptr %4, align 8
%97 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 0
%98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.2, ptr noundef %97)
%99 = load ptr, ptr %4, align 8
%100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @isprint(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgrbgiw95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c" /0x : -0-1 -2-3 -4-5 -6-7 -8-9 -a-b -c-d -e-f 0123456789abcdef\0A\00", align 1
@.str.1 = private unnamed_addr constant [71 x i8] c"-----/----: --------------------------------------- ----------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" %s\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%05d/%04x:\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"%x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBlock(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 [17 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%9 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 16
store i8 0, ptr %9, align 16
%10 = load ptr, ptr %4, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.1)
store i64 0, ptr %7, align 8
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %.lr.ph, label %97
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %91
%18 = load i64, ptr %7, align 8
%19 = urem i64 %18, 16
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %49
21: ; preds = %17
%22 = load i64, ptr %7, align 8
%23 = icmp ugt i64 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 0
%27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.2, ptr noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3)
br label %30
30: ; preds = %24, %21
%31 = load i64, ptr %7, align 8
%32 = icmp ugt i64 %31, 0
br i1 %32, label %33, label %44
33: ; preds = %30
%34 = load i64, ptr %7, align 8
%35 = urem i64 %34, 256
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.3)
%40 = load ptr, ptr %4, align 8
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str)
%42 = load ptr, ptr %4, align 8
%43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.1)
br label %44
44: ; preds = %37, %33, %30
%45 = load ptr, ptr %4, align 8
%46 = load i64, ptr %7, align 8
%47 = load i64, ptr %7, align 8
%48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.4, i64 noundef %46, i64 noundef %47)
br label %49
49: ; preds = %44, %17
%50 = load i64, ptr %7, align 8
%51 = urem i64 %50, 2
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load ptr, ptr %4, align 8
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.5)
br label %56
56: ; preds = %53, %49
%57 = load ptr, ptr %4, align 8
%58 = load ptr, ptr %5, align 8
%59 = load i64, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %58, i64 %59
%61 = load i8, ptr %60, align 1
%62 = zext i8 %61 to i32
%63 = ashr i32 %62, 4
%64 = and i32 %63, 15
%65 = load ptr, ptr %5, align 8
%66 = load i64, ptr %7, align 8
%67 = getelementptr inbounds i8, ptr %65, i64 %66
%68 = load i8, ptr %67, align 1
%69 = zext i8 %68 to i32
%70 = and i32 %69, 15
%71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.6, i32 noundef %64, i32 noundef %70)
%72 = load ptr, ptr %5, align 8
%73 = load i64, ptr %7, align 8
%74 = getelementptr inbounds i8, ptr %72, i64 %73
%75 = load i8, ptr %74, align 1
%76 = call i64 @isprint(i8 noundef zeroext %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %86
78: ; preds = %56
%79 = load ptr, ptr %5, align 8
%80 = load i64, ptr %7, align 8
%81 = getelementptr inbounds i8, ptr %79, i64 %80
%82 = load i8, ptr %81, align 1
%83 = load i64, ptr %7, align 8
%84 = urem i64 %83, 16
%85 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 %84
store i8 %82, ptr %85, align 1
br label %90
86: ; preds = %56
%87 = load i64, ptr %7, align 8
%88 = urem i64 %87, 16
%89 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 %88
store i8 46, ptr %89, align 1
br label %90
90: ; preds = %86, %78
br label %91
91: ; preds = %90
%92 = load i64, ptr %7, align 8
%93 = add i64 %92, 1
store i64 %93, ptr %7, align 8
%94 = load i64, ptr %7, align 8
%95 = load i64, ptr %6, align 8
%96 = icmp ult i64 %94, %95
br i1 %96, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %91
br label %97
97: ; preds = %._crit_edge, %3
%98 = load ptr, ptr %4, align 8
%99 = getelementptr inbounds [17 x i8], ptr %8, i64 0, i64 0
%100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.2, ptr noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i64 @isprint(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwc99qq3t.c'
source_filename = "/tmp/tmpwc99qq3t.c"
target datalayout = "e-m:e-p270: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/tmpwc99qq3t.c"
target datalayout = "e-m:e-p270: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/tmpit2gvhzh.c'
source_filename = "/tmp/tmpit2gvhzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %26, %1
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %29
11: ; preds = %8
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %22, %11
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %25
15: ; preds = %12
store i32 1, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %2, align 8
%21 = call i32 @findWord(i32 noundef %16, i32 noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %3)
br label %22
22: ; preds = %15
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %12, !llvm.loop !6
25: ; preds = %12
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %8, !llvm.loop !8
29: ; preds = %8
%30 = load ptr, ptr %3, align 8
ret ptr %30
}
declare i32 @findWord(i32 noundef, i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpit2gvhzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @findWords(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr null, ptr %3, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph2, label %31
.lr.ph2: ; preds = %1
br label %10
10: ; preds = %.lr.ph2, %26
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %20
store i32 1, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %2, align 8
%19 = call i32 @findWord(i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %3)
br label %20
20: ; preds = %13
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %23, 4
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %10
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 4
br i1 %30, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %26
br label %31
31: ; preds = %._crit_edge3, %1
%32 = load ptr, ptr %3, align 8
ret ptr %32
}
declare i32 @findWord(i32 noundef, i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzdvh3jbl.c'
source_filename = "/tmp/tmpzdvh3jbl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGTERM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hupchild(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGTERM, align 4
%5 = call i32 @kill(i32 noundef %3, i32 noundef %4)
ret void
}
declare i32 @kill(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzdvh3jbl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGTERM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hupchild(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SIGTERM, align 4
%5 = call i32 @kill(i32 noundef %3, i32 noundef %4)
ret void
}
declare i32 @kill(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphbc_s8bh.c'
source_filename = "/tmp/tmphbc_s8bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Incorrect usage. Usage: ./vigenere <key>\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"Invalid keyword. Use only alphabetical characters.\0A\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"Please enter text to be encrypted, up to 100 characters long: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"Error.\0A\00", align 1
@.str.4 = private unnamed_addr constant [97 x i8] c"Encrypting \22%s\22 with a keyword of \22%s\22, using Vigen\C3\A8re\E2\80\99s cipher, yields the ciphertext \22%s\22.\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 i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %250
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %25
25: ; preds = %45, %21
%26 = load i32, ptr %7, align 4
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = icmp slt i32 %26, %30
br i1 %31, label %32, label %48
32: ; preds = %25
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = call i64 @isalpha(i8 noundef signext %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %32
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %250
44: ; preds = %32
br label %45
45: ; preds = %44
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
br label %25, !llvm.loop !6
48: ; preds = %25
store i32 -1, ptr %8, align 4
store i64 100, ptr %9, align 8
%49 = load i64, ptr %9, align 8
%50 = add i64 %49, 1
%51 = call i64 @malloc(i64 noundef %50)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %10, align 8
br label %53
53: ; preds = %64, %48
%54 = load i32, ptr %8, align 4
%55 = icmp sle i32 %54, 0
br i1 %55, label %56, label %65
56: ; preds = %53
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%58 = load i32, ptr @stdin, align 4
%59 = call i32 @getline(ptr noundef %10, ptr noundef %9, i32 noundef %58)
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %8, align 4
%61 = icmp sle i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %56
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %64
64: ; preds = %62, %56
br label %53, !llvm.loop !8
65: ; preds = %53
%66 = load ptr, ptr %10, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = sext i32 %67 to i64
store i64 %68, ptr %11, align 8
%69 = load i64, ptr %11, align 8
%70 = call ptr @llvm.stacksave()
store ptr %70, ptr %12, align 8
%71 = alloca i8, i64 %69, align 16
store i64 %69, ptr %13, align 8
%72 = load ptr, ptr %10, align 8
%73 = load i64, ptr %11, align 8
%74 = sub i64 %73, 1
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 0, ptr %75, align 1
%76 = load i64, ptr %11, align 8
%77 = getelementptr inbounds i8, ptr %71, i64 %76
store i8 0, ptr %77, align 1
store i32 0, ptr %14, align 4
store i32 0, ptr %16, align 4
br label %78
78: ; preds = %240, %65
%79 = load i32, ptr %16, align 4
%80 = sext i32 %79 to i64
%81 = load i64, ptr %11, align 8
%82 = icmp ult i64 %80, %81
br i1 %82, label %83, label %243
83: ; preds = %78
%84 = load ptr, ptr %10, align 8
%85 = load i32, ptr %16, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = call i64 @isalpha(i8 noundef signext %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %230
91: ; preds = %83
%92 = load ptr, ptr %10, align 8
%93 = load i32, ptr %16, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
%96 = load i8, ptr %95, align 1
%97 = call i64 @isupper(i8 noundef signext %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %163
99: ; preds = %91
%100 = load ptr, ptr %6, align 8
%101 = load i32, ptr %14, align 4
%102 = load ptr, ptr %6, align 8
%103 = call i32 @strlen(ptr noundef %102)
%104 = srem i32 %101, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, ptr %100, i64 %105
%107 = load i8, ptr %106, align 1
%108 = call i64 @islower(i8 noundef signext %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %137
110: ; preds = %99
%111 = load ptr, ptr %6, align 8
%112 = load i32, ptr %14, align 4
%113 = load ptr, ptr %6, align 8
%114 = call i32 @strlen(ptr noundef %113)
%115 = srem i32 %112, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %111, i64 %116
%118 = load i8, ptr %117, align 1
%119 = call signext i8 @toupper(i8 noundef signext %118)
store i8 %119, ptr %15, align 1
%120 = load ptr, ptr %10, align 8
%121 = load i32, ptr %16, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = sub nsw i32 %125, 65
%127 = load i8, ptr %15, align 1
%128 = sext i8 %127 to i32
%129 = sub nsw i32 %128, 65
%130 = add nsw i32 %126, %129
%131 = srem i32 %130, 26
%132 = add nsw i32 %131, 65
%133 = trunc i32 %132 to i8
%134 = load i32, ptr %16, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %71, i64 %135
store i8 %133, ptr %136, align 1
br label %162
137: ; preds = %99
%138 = load ptr, ptr %10, align 8
%139 = load i32, ptr %16, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %138, i64 %140
%142 = load i8, ptr %141, align 1
%143 = sext i8 %142 to i32
%144 = sub nsw i32 %143, 65
%145 = load ptr, ptr %6, align 8
%146 = load i32, ptr %14, align 4
%147 = load ptr, ptr %6, align 8
%148 = call i32 @strlen(ptr noundef %147)
%149 = srem i32 %146, %148
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, ptr %145, i64 %150
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = sub nsw i32 %153, 65
%155 = add nsw i32 %144, %154
%156 = srem i32 %155, 26
%157 = add nsw i32 %156, 65
%158 = trunc i32 %157 to i8
%159 = load i32, ptr %16, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %71, i64 %160
store i8 %158, ptr %161, align 1
br label %162
162: ; preds = %137, %110
br label %227
163: ; preds = %91
%164 = load ptr, ptr %6, align 8
%165 = load i32, ptr %14, align 4
%166 = load ptr, ptr %6, align 8
%167 = call i32 @strlen(ptr noundef %166)
%168 = srem i32 %165, %167
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i8, ptr %164, i64 %169
%171 = load i8, ptr %170, align 1
%172 = call i64 @isupper(i8 noundef signext %171)
%173 = icmp ne i64 %172, 0
br i1 %173, label %174, label %201
174: ; preds = %163
%175 = load ptr, ptr %6, align 8
%176 = load i32, ptr %14, align 4
%177 = load ptr, ptr %6, align 8
%178 = call i32 @strlen(ptr noundef %177)
%179 = srem i32 %176, %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8, ptr %175, i64 %180
%182 = load i8, ptr %181, align 1
%183 = call signext i8 @tolower(i8 noundef signext %182)
store i8 %183, ptr %15, align 1
%184 = load ptr, ptr %10, align 8
%185 = load i32, ptr %16, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i8, ptr %184, i64 %186
%188 = load i8, ptr %187, align 1
%189 = sext i8 %188 to i32
%190 = sub nsw i32 %189, 97
%191 = load i8, ptr %15, align 1
%192 = sext i8 %191 to i32
%193 = sub nsw i32 %192, 97
%194 = add nsw i32 %190, %193
%195 = srem i32 %194, 26
%196 = add nsw i32 %195, 97
%197 = trunc i32 %196 to i8
%198 = load i32, ptr %16, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8, ptr %71, i64 %199
store i8 %197, ptr %200, align 1
br label %226
201: ; preds = %163
%202 = load ptr, ptr %10, align 8
%203 = load i32, ptr %16, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i8, ptr %202, i64 %204
%206 = load i8, ptr %205, align 1
%207 = sext i8 %206 to i32
%208 = sub nsw i32 %207, 97
%209 = load ptr, ptr %6, align 8
%210 = load i32, ptr %14, align 4
%211 = load ptr, ptr %6, align 8
%212 = call i32 @strlen(ptr noundef %211)
%213 = srem i32 %210, %212
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds i8, ptr %209, i64 %214
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = sub nsw i32 %217, 97
%219 = add nsw i32 %208, %218
%220 = srem i32 %219, 26
%221 = add nsw i32 %220, 97
%222 = trunc i32 %221 to i8
%223 = load i32, ptr %16, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i8, ptr %71, i64 %224
store i8 %222, ptr %225, align 1
br label %226
226: ; preds = %201, %174
br label %227
227: ; preds = %226, %162
%228 = load i32, ptr %14, align 4
%229 = add nsw i32 %228, 1
store i32 %229, ptr %14, align 4
br label %239
230: ; preds = %83
%231 = load ptr, ptr %10, align 8
%232 = load i32, ptr %16, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i8, ptr %231, i64 %233
%235 = load i8, ptr %234, align 1
%236 = load i32, ptr %16, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i8, ptr %71, i64 %237
store i8 %235, ptr %238, align 1
br label %239
239: ; preds = %230, %227
br label %240
240: ; preds = %239
%241 = load i32, ptr %16, align 4
%242 = add nsw i32 %241, 1
store i32 %242, ptr %16, align 4
br label %78, !llvm.loop !9
243: ; preds = %78
%244 = load ptr, ptr %10, align 8
%245 = load ptr, ptr %6, align 8
%246 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %244, ptr noundef %245, ptr noundef %71)
%247 = load ptr, ptr %10, align 8
%248 = call i32 @free(ptr noundef %247)
store i32 0, ptr %3, align 4
%249 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %249)
br label %250
250: ; preds = %243, %42, %19
%251 = load i32, ptr %3, align 4
ret i32 %251
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isalpha(i8 noundef signext) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @isupper(i8 noundef signext) #1
declare i64 @islower(i8 noundef signext) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @tolower(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphbc_s8bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Incorrect usage. Usage: ./vigenere <key>\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"Invalid keyword. Use only alphabetical characters.\0A\00", align 1
@.str.2 = private unnamed_addr constant [63 x i8] c"Please enter text to be encrypted, up to 100 characters long: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [8 x i8] c"Error.\0A\00", align 1
@.str.4 = private unnamed_addr constant [97 x i8] c"Encrypting \22%s\22 with a keyword of \22%s\22, using Vigen\C3\A8re\E2\80\99s cipher, yields the ciphertext \22%s\22.\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 i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i32, align 4
%15 = alloca i8, align 1
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %259
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strlen(ptr noundef %28)
%30 = icmp slt i32 %25, %29
br i1 %30, label %.lr.ph, label %53
.lr.ph: ; preds = %21
br label %31
31: ; preds = %.lr.ph, %44
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = call i64 @isalpha(i8 noundef signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %31
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %259
43: ; preds = %31
br label %44
44: ; preds = %43
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8
%51 = call i32 @strlen(ptr noundef %50)
%52 = icmp slt i32 %47, %51
br i1 %52, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %53
53: ; preds = %._crit_edge, %21
store i32 -1, ptr %8, align 4
store i64 100, ptr %9, align 8
%54 = load i64, ptr %9, align 8
%55 = add i64 %54, 1
%56 = call i64 @malloc(i64 noundef %55)
%57 = inttoptr i64 %56 to ptr
store ptr %57, ptr %10, align 8
%58 = load i32, ptr %8, align 4
%59 = icmp sle i32 %58, 0
br i1 %59, label %.lr.ph2, label %71
.lr.ph2: ; preds = %53
br label %60
60: ; preds = %.lr.ph2, %68
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%62 = load i32, ptr @stdin, align 4
%63 = call i32 @getline(ptr noundef %10, ptr noundef %9, i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp sle i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %60
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %68
68: ; preds = %66, %60
%69 = load i32, ptr %8, align 4
%70 = icmp sle i32 %69, 0
br i1 %70, label %60, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %68
br label %71
71: ; preds = %._crit_edge3, %53
%72 = load ptr, ptr %10, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = sext i32 %73 to i64
store i64 %74, ptr %11, align 8
%75 = load i64, ptr %11, align 8
%76 = call ptr @llvm.stacksave()
store ptr %76, ptr %12, align 8
%77 = alloca i8, i64 %75, align 16
store i64 %75, ptr %13, align 8
%78 = load ptr, ptr %10, align 8
%79 = load i64, ptr %11, align 8
%80 = sub i64 %79, 1
%81 = getelementptr inbounds i8, ptr %78, i64 %80
store i8 0, ptr %81, align 1
%82 = load i64, ptr %11, align 8
%83 = getelementptr inbounds i8, ptr %77, i64 %82
store i8 0, ptr %83, align 1
store i32 0, ptr %14, align 4
store i32 0, ptr %16, align 4
%84 = load i32, ptr %16, align 4
%85 = sext i32 %84 to i64
%86 = load i64, ptr %11, align 8
%87 = icmp ult i64 %85, %86
br i1 %87, label %.lr.ph5, label %252
.lr.ph5: ; preds = %71
br label %88
88: ; preds = %.lr.ph5, %245
%89 = load ptr, ptr %10, align 8
%90 = load i32, ptr %16, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = call i64 @isalpha(i8 noundef signext %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %235
96: ; preds = %88
%97 = load ptr, ptr %10, align 8
%98 = load i32, ptr %16, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %97, i64 %99
%101 = load i8, ptr %100, align 1
%102 = call i64 @isupper(i8 noundef signext %101)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %168
104: ; preds = %96
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %14, align 4
%107 = load ptr, ptr %6, align 8
%108 = call i32 @strlen(ptr noundef %107)
%109 = srem i32 %106, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %105, i64 %110
%112 = load i8, ptr %111, align 1
%113 = call i64 @islower(i8 noundef signext %112)
%114 = icmp ne i64 %113, 0
br i1 %114, label %115, label %142
115: ; preds = %104
%116 = load ptr, ptr %6, align 8
%117 = load i32, ptr %14, align 4
%118 = load ptr, ptr %6, align 8
%119 = call i32 @strlen(ptr noundef %118)
%120 = srem i32 %117, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %116, i64 %121
%123 = load i8, ptr %122, align 1
%124 = call signext i8 @toupper(i8 noundef signext %123)
store i8 %124, ptr %15, align 1
%125 = load ptr, ptr %10, align 8
%126 = load i32, ptr %16, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %125, i64 %127
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = sub nsw i32 %130, 65
%132 = load i8, ptr %15, align 1
%133 = sext i8 %132 to i32
%134 = sub nsw i32 %133, 65
%135 = add nsw i32 %131, %134
%136 = srem i32 %135, 26
%137 = add nsw i32 %136, 65
%138 = trunc i32 %137 to i8
%139 = load i32, ptr %16, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i8, ptr %77, i64 %140
store i8 %138, ptr %141, align 1
br label %167
142: ; preds = %104
%143 = load ptr, ptr %10, align 8
%144 = load i32, ptr %16, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %143, i64 %145
%147 = load i8, ptr %146, align 1
%148 = sext i8 %147 to i32
%149 = sub nsw i32 %148, 65
%150 = load ptr, ptr %6, align 8
%151 = load i32, ptr %14, align 4
%152 = load ptr, ptr %6, align 8
%153 = call i32 @strlen(ptr noundef %152)
%154 = srem i32 %151, %153
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, ptr %150, i64 %155
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = sub nsw i32 %158, 65
%160 = add nsw i32 %149, %159
%161 = srem i32 %160, 26
%162 = add nsw i32 %161, 65
%163 = trunc i32 %162 to i8
%164 = load i32, ptr %16, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i8, ptr %77, i64 %165
store i8 %163, ptr %166, align 1
br label %167
167: ; preds = %142, %115
br label %232
168: ; preds = %96
%169 = load ptr, ptr %6, align 8
%170 = load i32, ptr %14, align 4
%171 = load ptr, ptr %6, align 8
%172 = call i32 @strlen(ptr noundef %171)
%173 = srem i32 %170, %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, ptr %169, i64 %174
%176 = load i8, ptr %175, align 1
%177 = call i64 @isupper(i8 noundef signext %176)
%178 = icmp ne i64 %177, 0
br i1 %178, label %179, label %206
179: ; preds = %168
%180 = load ptr, ptr %6, align 8
%181 = load i32, ptr %14, align 4
%182 = load ptr, ptr %6, align 8
%183 = call i32 @strlen(ptr noundef %182)
%184 = srem i32 %181, %183
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8, ptr %180, i64 %185
%187 = load i8, ptr %186, align 1
%188 = call signext i8 @tolower(i8 noundef signext %187)
store i8 %188, ptr %15, align 1
%189 = load ptr, ptr %10, align 8
%190 = load i32, ptr %16, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %189, i64 %191
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = sub nsw i32 %194, 97
%196 = load i8, ptr %15, align 1
%197 = sext i8 %196 to i32
%198 = sub nsw i32 %197, 97
%199 = add nsw i32 %195, %198
%200 = srem i32 %199, 26
%201 = add nsw i32 %200, 97
%202 = trunc i32 %201 to i8
%203 = load i32, ptr %16, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i8, ptr %77, i64 %204
store i8 %202, ptr %205, align 1
br label %231
206: ; preds = %168
%207 = load ptr, ptr %10, align 8
%208 = load i32, ptr %16, align 4
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %207, i64 %209
%211 = load i8, ptr %210, align 1
%212 = sext i8 %211 to i32
%213 = sub nsw i32 %212, 97
%214 = load ptr, ptr %6, align 8
%215 = load i32, ptr %14, align 4
%216 = load ptr, ptr %6, align 8
%217 = call i32 @strlen(ptr noundef %216)
%218 = srem i32 %215, %217
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds i8, ptr %214, i64 %219
%221 = load i8, ptr %220, align 1
%222 = sext i8 %221 to i32
%223 = sub nsw i32 %222, 97
%224 = add nsw i32 %213, %223
%225 = srem i32 %224, 26
%226 = add nsw i32 %225, 97
%227 = trunc i32 %226 to i8
%228 = load i32, ptr %16, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds i8, ptr %77, i64 %229
store i8 %227, ptr %230, align 1
br label %231
231: ; preds = %206, %179
br label %232
232: ; preds = %231, %167
%233 = load i32, ptr %14, align 4
%234 = add nsw i32 %233, 1
store i32 %234, ptr %14, align 4
br label %244
235: ; preds = %88
%236 = load ptr, ptr %10, align 8
%237 = load i32, ptr %16, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i8, ptr %236, i64 %238
%240 = load i8, ptr %239, align 1
%241 = load i32, ptr %16, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i8, ptr %77, i64 %242
store i8 %240, ptr %243, align 1
br label %244
244: ; preds = %235, %232
br label %245
245: ; preds = %244
%246 = load i32, ptr %16, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %16, align 4
%248 = load i32, ptr %16, align 4
%249 = sext i32 %248 to i64
%250 = load i64, ptr %11, align 8
%251 = icmp ult i64 %249, %250
br i1 %251, label %88, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %245
br label %252
252: ; preds = %._crit_edge6, %71
%253 = load ptr, ptr %10, align 8
%254 = load ptr, ptr %6, align 8
%255 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %253, ptr noundef %254, ptr noundef %77)
%256 = load ptr, ptr %10, align 8
%257 = call i32 @free(ptr noundef %256)
store i32 0, ptr %3, align 4
%258 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %258)
br label %259
259: ; preds = %252, %41, %19
%260 = load i32, ptr %3, align 4
ret i32 %260
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isalpha(i8 noundef signext) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @getline(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @isupper(i8 noundef signext) #1
declare i64 @islower(i8 noundef signext) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @tolower(i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp6v4f05e5.c'
source_filename = "/tmp/tmp6v4f05e5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btree_free(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 ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6v4f05e5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btree_free(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 ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxn8ufqp8.c'
source_filename = "/tmp/tmpxn8ufqp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c" BF1DEVCFG3 = 0x%08X\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" BF2DEVCFG3 = 0x%08X\0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c" %01x VBUSON pin: controlled by USB1 module\0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c" %01x VBUSON pin: controlled by port function\0A\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c" %01x USBID pin: controlled by USB1 module\0A\00", align 1
@.str.5 = private unnamed_addr constant [68 x i8] c" %01x USBID pin: controlled by port function\0A\00", align 1
@.str.6 = private unnamed_addr constant [82 x i8] c" %01x Peripheral Pin Select - Allow only one configuration\0A\00", align 1
@.str.7 = private unnamed_addr constant [83 x i8] c" %01x Peripheral Pin Select - Allow multiple configurations\0A\00", align 1
@.str.8 = private unnamed_addr constant [86 x i8] c" %01x Permission Module Disable - Allow only one configuration\0A\00", align 1
@.str.9 = private unnamed_addr constant [87 x i8] c" %01x Permission Module Disable - Allow multiple configurations\0A\00", align 1
@.str.10 = private unnamed_addr constant [82 x i8] c" %01x Permission Group Lock - Allow only one configuration\0A\00", align 1
@.str.11 = private unnamed_addr constant [83 x i8] c" %01x Permission Group Lock - Allow multiple configurations\0A\00", align 1
@.str.12 = private unnamed_addr constant [67 x i8] c" %01x VBUSON pin: controlled by USB2 module\0A\00", align 1
@.str.13 = private unnamed_addr constant [69 x i8] c" %01x VBUSON pin: controlled by port function\0A\00", align 1
@.str.14 = private unnamed_addr constant [66 x i8] c" %01x USBID pin: controlled by USB2 module\0A\00", align 1
@.str.15 = private unnamed_addr constant [68 x i8] c" %01x USBID pin: controlled by port function\0A\00", align 1
@.str.16 = private unnamed_addr constant [67 x i8] c" %01x Write access to PWM IOCONx not locked\0A\00", align 1
@.str.17 = private unnamed_addr constant [63 x i8] c" %01x Write access to PWM IOCONx locked\0A\00", align 1
@.str.18 = private unnamed_addr constant [33 x i8] c" %04X USERID\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mk_devcfg3(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = icmp eq i64 0, %5
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, i64 noundef %8)
br label %13
10: ; preds = %2
%11 = load i64, ptr %3, align 8
%12 = call i32 @printf(ptr noundef @.str.1, i64 noundef %11)
br label %13
13: ; preds = %10, %7
%14 = load i64, ptr %3, align 8
%15 = and i64 %14, 2147483648
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(ptr noundef @.str.2, i64 noundef 8)
br label %21
19: ; preds = %13
%20 = call i32 @printf(ptr noundef @.str.3, i64 noundef 0)
br label %21
21: ; preds = %19, %17
%22 = load i64, ptr %3, align 8
%23 = and i64 %22, 1073741824
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.4, i64 noundef 4)
br label %29
27: ; preds = %21
%28 = call i32 @printf(ptr noundef @.str.5, i64 noundef 0)
br label %29
29: ; preds = %27, %25
%30 = load i64, ptr %3, align 8
%31 = and i64 %30, 536870912
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @printf(ptr noundef @.str.6, i64 noundef 2)
br label %37
35: ; preds = %29
%36 = call i32 @printf(ptr noundef @.str.7, i64 noundef 0)
br label %37
37: ; preds = %35, %33
%38 = load i64, ptr %3, align 8
%39 = and i64 %38, 268435456
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @printf(ptr noundef @.str.8, i64 noundef 1)
br label %45
43: ; preds = %37
%44 = call i32 @printf(ptr noundef @.str.9, i64 noundef 0)
br label %45
45: ; preds = %43, %41
%46 = load i64, ptr %3, align 8
%47 = and i64 %46, 134217728
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(ptr noundef @.str.10, i64 noundef 8)
br label %53
51: ; preds = %45
%52 = call i32 @printf(ptr noundef @.str.11, i64 noundef 0)
br label %53
53: ; preds = %51, %49
%54 = load i64, ptr %3, align 8
%55 = and i64 %54, 8388608
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 @printf(ptr noundef @.str.12, i64 noundef 8)
br label %61
59: ; preds = %53
%60 = call i32 @printf(ptr noundef @.str.13, i64 noundef 0)
br label %61
61: ; preds = %59, %57
%62 = load i64, ptr %3, align 8
%63 = and i64 %62, 4194304
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @printf(ptr noundef @.str.14, i64 noundef 4)
br label %69
67: ; preds = %61
%68 = call i32 @printf(ptr noundef @.str.15, i64 noundef 0)
br label %69
69: ; preds = %67, %65
%70 = load i64, ptr %3, align 8
%71 = and i64 %70, 1048576
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 @printf(ptr noundef @.str.16, i64 noundef 1)
br label %77
75: ; preds = %69
%76 = call i32 @printf(ptr noundef @.str.17, i64 noundef 0)
br label %77
77: ; preds = %75, %73
%78 = load i64, ptr %3, align 8
%79 = and i64 %78, 65535
%80 = call i32 @printf(ptr noundef @.str.18, i64 noundef %79)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxn8ufqp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c" BF1DEVCFG3 = 0x%08X\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" BF2DEVCFG3 = 0x%08X\0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c" %01x VBUSON pin: controlled by USB1 module\0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c" %01x VBUSON pin: controlled by port function\0A\00", align 1
@.str.4 = private unnamed_addr constant [66 x i8] c" %01x USBID pin: controlled by USB1 module\0A\00", align 1
@.str.5 = private unnamed_addr constant [68 x i8] c" %01x USBID pin: controlled by port function\0A\00", align 1
@.str.6 = private unnamed_addr constant [82 x i8] c" %01x Peripheral Pin Select - Allow only one configuration\0A\00", align 1
@.str.7 = private unnamed_addr constant [83 x i8] c" %01x Peripheral Pin Select - Allow multiple configurations\0A\00", align 1
@.str.8 = private unnamed_addr constant [86 x i8] c" %01x Permission Module Disable - Allow only one configuration\0A\00", align 1
@.str.9 = private unnamed_addr constant [87 x i8] c" %01x Permission Module Disable - Allow multiple configurations\0A\00", align 1
@.str.10 = private unnamed_addr constant [82 x i8] c" %01x Permission Group Lock - Allow only one configuration\0A\00", align 1
@.str.11 = private unnamed_addr constant [83 x i8] c" %01x Permission Group Lock - Allow multiple configurations\0A\00", align 1
@.str.12 = private unnamed_addr constant [67 x i8] c" %01x VBUSON pin: controlled by USB2 module\0A\00", align 1
@.str.13 = private unnamed_addr constant [69 x i8] c" %01x VBUSON pin: controlled by port function\0A\00", align 1
@.str.14 = private unnamed_addr constant [66 x i8] c" %01x USBID pin: controlled by USB2 module\0A\00", align 1
@.str.15 = private unnamed_addr constant [68 x i8] c" %01x USBID pin: controlled by port function\0A\00", align 1
@.str.16 = private unnamed_addr constant [67 x i8] c" %01x Write access to PWM IOCONx not locked\0A\00", align 1
@.str.17 = private unnamed_addr constant [63 x i8] c" %01x Write access to PWM IOCONx locked\0A\00", align 1
@.str.18 = private unnamed_addr constant [33 x i8] c" %04X USERID\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mk_devcfg3(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = icmp eq i64 0, %5
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, i64 noundef %8)
br label %13
10: ; preds = %2
%11 = load i64, ptr %3, align 8
%12 = call i32 @printf(ptr noundef @.str.1, i64 noundef %11)
br label %13
13: ; preds = %10, %7
%14 = load i64, ptr %3, align 8
%15 = and i64 %14, 2147483648
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(ptr noundef @.str.2, i64 noundef 8)
br label %21
19: ; preds = %13
%20 = call i32 @printf(ptr noundef @.str.3, i64 noundef 0)
br label %21
21: ; preds = %19, %17
%22 = load i64, ptr %3, align 8
%23 = and i64 %22, 1073741824
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.4, i64 noundef 4)
br label %29
27: ; preds = %21
%28 = call i32 @printf(ptr noundef @.str.5, i64 noundef 0)
br label %29
29: ; preds = %27, %25
%30 = load i64, ptr %3, align 8
%31 = and i64 %30, 536870912
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @printf(ptr noundef @.str.6, i64 noundef 2)
br label %37
35: ; preds = %29
%36 = call i32 @printf(ptr noundef @.str.7, i64 noundef 0)
br label %37
37: ; preds = %35, %33
%38 = load i64, ptr %3, align 8
%39 = and i64 %38, 268435456
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @printf(ptr noundef @.str.8, i64 noundef 1)
br label %45
43: ; preds = %37
%44 = call i32 @printf(ptr noundef @.str.9, i64 noundef 0)
br label %45
45: ; preds = %43, %41
%46 = load i64, ptr %3, align 8
%47 = and i64 %46, 134217728
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(ptr noundef @.str.10, i64 noundef 8)
br label %53
51: ; preds = %45
%52 = call i32 @printf(ptr noundef @.str.11, i64 noundef 0)
br label %53
53: ; preds = %51, %49
%54 = load i64, ptr %3, align 8
%55 = and i64 %54, 8388608
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 @printf(ptr noundef @.str.12, i64 noundef 8)
br label %61
59: ; preds = %53
%60 = call i32 @printf(ptr noundef @.str.13, i64 noundef 0)
br label %61
61: ; preds = %59, %57
%62 = load i64, ptr %3, align 8
%63 = and i64 %62, 4194304
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @printf(ptr noundef @.str.14, i64 noundef 4)
br label %69
67: ; preds = %61
%68 = call i32 @printf(ptr noundef @.str.15, i64 noundef 0)
br label %69
69: ; preds = %67, %65
%70 = load i64, ptr %3, align 8
%71 = and i64 %70, 1048576
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 @printf(ptr noundef @.str.16, i64 noundef 1)
br label %77
75: ; preds = %69
%76 = call i32 @printf(ptr noundef @.str.17, i64 noundef 0)
br label %77
77: ; preds = %75, %73
%78 = load i64, ptr %3, align 8
%79 = and i64 %78, 65535
%80 = call i32 @printf(ptr noundef @.str.18, i64 noundef %79)
ret void
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1aai8wzd.c'
source_filename = "/tmp/tmp1aai8wzd.c"
target datalayout = "e-m:e-p270: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/tmp1aai8wzd.c"
target datalayout = "e-m:e-p270: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/tmpox2h_ihz.c'
source_filename = "/tmp/tmpox2h_ihz.c"
target datalayout = "e-m:e-p270: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/tmpox2h_ihz.c"
target datalayout = "e-m:e-p270: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/tmplaw9fzsw.c'
source_filename = "/tmp/tmplaw9fzsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Failed to setup i2c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @open_i2c_dev(ptr noundef %2, ptr noundef %6, i32 noundef 19)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 @piups_printstats(i32 noundef %12)
br label %14
14: ; preds = %11, %9
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i64 @open_i2c_dev(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @piups_printstats(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/tmplaw9fzsw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Failed to setup i2c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @open_i2c_dev(ptr noundef %2, ptr noundef %6, i32 noundef 19)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %14
11: ; preds = %0
%12 = load i32, ptr %2, align 4
%13 = call i32 @piups_printstats(i32 noundef %12)
br label %14
14: ; preds = %11, %9
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i64 @open_i2c_dev(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @piups_printstats(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/tmp_t9_x3sz.c'
source_filename = "/tmp/tmp_t9_x3sz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeByte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @writePulse(ptr noundef %6, i32 noundef 1200)
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %26, %2
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 8
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, 1
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call i32 @writePulse(ptr noundef %16, i32 noundef 2400)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @writePulse(ptr noundef %18, i32 noundef 2400)
br label %23
20: ; preds = %11
%21 = load ptr, ptr %3, align 8
%22 = call i32 @writePulse(ptr noundef %21, i32 noundef 1200)
br label %23
23: ; preds = %20, %15
%24 = load i32, ptr %4, align 4
%25 = ashr i32 %24, 1
store i32 %25, ptr %4, align 4
br label %26
26: ; preds = %23
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %8, !llvm.loop !6
29: ; preds = %8
store i32 0, ptr %5, align 4
br label %30
30: ; preds = %36, %29
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load ptr, ptr %3, align 8
%35 = call i32 @writePulse(ptr noundef %34, i32 noundef 2400)
br label %36
36: ; preds = %33
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
br label %30, !llvm.loop !8
39: ; preds = %30
ret void
}
declare i32 @writePulse(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_t9_x3sz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeByte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @writePulse(ptr noundef %6, i32 noundef 1200)
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 8
br i1 %9, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %25
%11 = load i32, ptr %4, align 4
%12 = and i32 %11, 1
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = call i32 @writePulse(ptr noundef %15, i32 noundef 2400)
%17 = load ptr, ptr %3, align 8
%18 = call i32 @writePulse(ptr noundef %17, i32 noundef 2400)
br label %22
19: ; preds = %10
%20 = load ptr, ptr %3, align 8
%21 = call i32 @writePulse(ptr noundef %20, i32 noundef 1200)
br label %22
22: ; preds = %19, %14
%23 = load i32, ptr %4, align 4
%24 = ashr i32 %23, 1
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %22
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %28, 8
br i1 %29, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %2
store i32 0, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %.lr.ph2, label %41
.lr.ph2: ; preds = %30
br label %33
33: ; preds = %.lr.ph2, %36
%34 = load ptr, ptr %3, align 8
%35 = call i32 @writePulse(ptr noundef %34, i32 noundef 2400)
br label %36
36: ; preds = %33
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %39, 4
br i1 %40, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %41
41: ; preds = %._crit_edge3, %30
ret void
}
declare i32 @writePulse(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsmisrco7.c'
source_filename = "/tmp/tmpsmisrco7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@LOCK_EX = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsmisrco7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@LOCK_EX = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp0zwipih.c'
source_filename = "/tmp/tmpp0zwipih.c"
target datalayout = "e-m:e-p270: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/tmpp0zwipih.c"
target datalayout = "e-m:e-p270: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/tmpvhhtquom.c'
source_filename = "/tmp/tmpvhhtquom.c"
target datalayout = "e-m:e-p270: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/tmpvhhtquom.c"
target datalayout = "e-m:e-p270: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/tmp4f126xkc.c'
source_filename = "/tmp/tmp4f126xkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"--------------\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bayesianNetPrintSquereMatrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @sqrt(i32 noundef %8)
store i32 %9, ptr %5, align 4
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %20, %2
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 65, %17
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %18)
br label %20
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
br label %12, !llvm.loop !6
23: ; preds = %12
%24 = call i32 @puts(ptr noundef @.str.3)
store i32 0, ptr %6, align 4
br label %25
25: ; preds = %53, %23
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %56
29: ; preds = %25
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 65, %30
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
store i32 0, ptr %7, align 4
br label %33
33: ; preds = %48, %29
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %5, align 4
%41 = mul nsw i32 %39, %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %38, i64 %44
%46 = load i32, ptr %45, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %46)
br label %48
48: ; preds = %37
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %33, !llvm.loop !8
51: ; preds = %33
%52 = call i32 @puts(ptr noundef @.str.3)
br label %53
53: ; preds = %51
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
br label %25, !llvm.loop !9
56: ; preds = %25
%57 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @sqrt(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4f126xkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"--------------\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bayesianNetPrintSquereMatrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @sqrt(i32 noundef %8)
store i32 %9, ptr %5, align 4
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %19
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 65, %16
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17)
br label %19
19: ; preds = %15
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = call i32 @puts(ptr noundef @.str.3)
store i32 0, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph5, label %62
.lr.ph5: ; preds = %25
br label %30
30: ; preds = %.lr.ph5, %56
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 65, %31
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
store i32 0, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph2, label %54
.lr.ph2: ; preds = %30
br label %37
37: ; preds = %.lr.ph2, %48
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %5, align 4
%41 = mul nsw i32 %39, %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %38, i64 %44
%46 = load i32, ptr %45, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %46)
br label %48
48: ; preds = %37
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %37, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %54
54: ; preds = %._crit_edge3, %30
%55 = call i32 @puts(ptr noundef @.str.3)
br label %56
56: ; preds = %54
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
%59 = load i32, ptr %6, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %30, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %56
br label %62
62: ; preds = %._crit_edge6, %25
%63 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @sqrt(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp2f_zzuor.c'
source_filename = "/tmp/tmp2f_zzuor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %30
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %12, %16
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
call void @mergeSort(ptr noundef %18, i32 noundef %19, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @mergeSort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @merge(ptr noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
br label %30
30: ; preds = %11, %3
ret void
}
declare i32 @merge(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2f_zzuor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %30
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %12, %16
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
call void @mergeSort(ptr noundef %18, i32 noundef %19, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @mergeSort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @merge(ptr noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
br label %30
30: ; preds = %11, %3
ret void
}
declare i32 @merge(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplbf1dnad.c'
source_filename = "/tmp/tmplbf1dnad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__getc(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 = call i32 @flockfile(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @__sgetc(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @funlockfile(ptr noundef %8)
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i32 @flockfile(ptr noundef) #1
declare i32 @__sgetc(ptr noundef) #1
declare i32 @funlockfile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplbf1dnad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__getc(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 = call i32 @flockfile(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @__sgetc(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load ptr, ptr %2, align 8
%9 = call i32 @funlockfile(ptr noundef %8)
%10 = load i32, ptr %3, align 4
ret i32 %10
}
declare i32 @flockfile(ptr noundef) #1
declare i32 @__sgetc(ptr noundef) #1
declare i32 @funlockfile(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoqz4z5zx.c'
source_filename = "/tmp/tmpoqz4z5zx.c"
target datalayout = "e-m:e-p270: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/tmpoqz4z5zx.c"
target datalayout = "e-m:e-p270: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/tmpe8lrpbfj.c'
source_filename = "/tmp/tmpe8lrpbfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"whoami\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @appaserver_library_get_whoami() #0 {
%1 = alloca [64 x i8], align 16
%2 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @strcpy(ptr noundef %2, ptr noundef @.str)
%4 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%5 = call ptr @pipe2string(ptr noundef %4)
ret ptr %5
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @pipe2string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe8lrpbfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"whoami\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @appaserver_library_get_whoami() #0 {
%1 = alloca [64 x i8], align 16
%2 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @strcpy(ptr noundef %2, ptr noundef @.str)
%4 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%5 = call ptr @pipe2string(ptr noundef %4)
ret ptr %5
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @pipe2string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpctwbx4bf.c'
source_filename = "/tmp/tmpctwbx4bf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @geom_igam_sph_rtp_B(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds double, ptr %7, i64 0
%9 = load double, ptr %8, align 8
store double %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds double, ptr %10, i64 1
%12 = load double, ptr %11, align 8
%13 = call double @sin(double noundef %12) #2
store double %13, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds [3 x double], ptr %14, i64 0
%16 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
store double 1.000000e+00, ptr %16, align 8
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds [3 x double], ptr %17, i64 0
%19 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 1
store double 0.000000e+00, ptr %19, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [3 x double], ptr %20, i64 0
%22 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
store double 0.000000e+00, ptr %22, align 8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds [3 x double], ptr %23, i64 1
%25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 0
store double 0.000000e+00, ptr %25, align 8
%26 = load double, ptr %5, align 8
%27 = load double, ptr %5, align 8
%28 = fmul double %26, %27
%29 = fdiv double 1.000000e+00, %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds [3 x double], ptr %30, i64 1
%32 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 1
store double %29, ptr %32, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [3 x double], ptr %33, i64 1
%35 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 2
store double 0.000000e+00, ptr %35, align 8
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds [3 x double], ptr %36, i64 2
%38 = getelementptr inbounds [3 x double], ptr %37, i64 0, i64 0
store double 0.000000e+00, ptr %38, align 8
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds [3 x double], ptr %39, i64 2
%41 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 1
store double 0.000000e+00, ptr %41, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %5, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %6, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %6, align 8
%48 = fmul double %46, %47
%49 = fdiv double 1.000000e+00, %48
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds [3 x double], ptr %50, i64 2
%52 = getelementptr inbounds [3 x double], ptr %51, i64 0, i64 2
store double %49, ptr %52, align 8
ret void
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpctwbx4bf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @geom_igam_sph_rtp_B(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds double, ptr %7, i64 0
%9 = load double, ptr %8, align 8
store double %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds double, ptr %10, i64 1
%12 = load double, ptr %11, align 8
%13 = call double @sin(double noundef %12) #2
store double %13, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds [3 x double], ptr %14, i64 0
%16 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
store double 1.000000e+00, ptr %16, align 8
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds [3 x double], ptr %17, i64 0
%19 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 1
store double 0.000000e+00, ptr %19, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds [3 x double], ptr %20, i64 0
%22 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
store double 0.000000e+00, ptr %22, align 8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds [3 x double], ptr %23, i64 1
%25 = getelementptr inbounds [3 x double], ptr %24, i64 0, i64 0
store double 0.000000e+00, ptr %25, align 8
%26 = load double, ptr %5, align 8
%27 = load double, ptr %5, align 8
%28 = fmul double %26, %27
%29 = fdiv double 1.000000e+00, %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds [3 x double], ptr %30, i64 1
%32 = getelementptr inbounds [3 x double], ptr %31, i64 0, i64 1
store double %29, ptr %32, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds [3 x double], ptr %33, i64 1
%35 = getelementptr inbounds [3 x double], ptr %34, i64 0, i64 2
store double 0.000000e+00, ptr %35, align 8
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds [3 x double], ptr %36, i64 2
%38 = getelementptr inbounds [3 x double], ptr %37, i64 0, i64 0
store double 0.000000e+00, ptr %38, align 8
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds [3 x double], ptr %39, i64 2
%41 = getelementptr inbounds [3 x double], ptr %40, i64 0, i64 1
store double 0.000000e+00, ptr %41, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %5, align 8
%44 = fmul double %42, %43
%45 = load double, ptr %6, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %6, align 8
%48 = fmul double %46, %47
%49 = fdiv double 1.000000e+00, %48
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds [3 x double], ptr %50, i64 2
%52 = getelementptr inbounds [3 x double], ptr %51, i64 0, i64 2
store double %49, ptr %52, align 8
ret void
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph8mrxbsz.c'
source_filename = "/tmp/tmph8mrxbsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"equal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @if_eq() #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/tmph8mrxbsz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"equal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @if_eq() #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/tmp9wqjrxmo.c'
source_filename = "/tmp/tmp9wqjrxmo.c"
target datalayout = "e-m:e-p270: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/tmp9wqjrxmo.c"
target datalayout = "e-m:e-p270: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/tmpyuwqnavk.c'
source_filename = "/tmp/tmpyuwqnavk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @grow_array_impl(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %3
store i32 8, ptr %7, align 4
br label %16
13: ; preds = %3
%14 = load i32, ptr %7, align 4
%15 = mul nsw i32 %14, 2
store i32 %15, ptr %7, align 4
br label %16
16: ; preds = %13, %12
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = mul nsw i32 %19, %20
%22 = call ptr @realloc(ptr noundef %18, i32 noundef %21)
%23 = load ptr, ptr %4, align 8
store ptr %22, ptr %23, align 8
%24 = load i32, ptr %7, align 4
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
ret void
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyuwqnavk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @grow_array_impl(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %3
store i32 8, ptr %7, align 4
br label %16
13: ; preds = %3
%14 = load i32, ptr %7, align 4
%15 = mul nsw i32 %14, 2
store i32 %15, ptr %7, align 4
br label %16
16: ; preds = %13, %12
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %17, align 8
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = mul nsw i32 %19, %20
%22 = call ptr @realloc(ptr noundef %18, i32 noundef %21)
%23 = load ptr, ptr %4, align 8
store ptr %22, ptr %23, align 8
%24 = load i32, ptr %7, align 4
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
ret void
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1_awc0w_.c'
source_filename = "/tmp/tmp1_awc0w_.c"
target datalayout = "e-m:e-p270: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_MUTEX_RECURSIVE = 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/tmp1_awc0w_.c"
target datalayout = "e-m:e-p270: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_MUTEX_RECURSIVE = 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/tmplz7wi0vg.c'
source_filename = "/tmp/tmplz7wi0vg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skipws() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %22, %0
%3 = call i32 (...) @ncss_Getchar()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %20
6: ; preds = %2
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 257
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 10
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = load i32, ptr %1, align 4
%14 = icmp eq i32 %13, 9
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %1, align 4
%17 = icmp eq i32 %16, 32
br label %18
18: ; preds = %15, %12, %9, %6
%19 = phi i1 [ true, %12 ], [ true, %9 ], [ true, %6 ], [ %17, %15 ]
br label %20
20: ; preds = %18, %2
%21 = phi i1 [ false, %2 ], [ %19, %18 ]
br i1 %21, label %22, label %23
22: ; preds = %20
br label %2, !llvm.loop !6
23: ; preds = %20
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @ncss_Getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplz7wi0vg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skipws() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %20, %0
%3 = call i32 (...) @ncss_Getchar()
store i32 %3, ptr %1, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %20
6: ; preds = %2
%7 = load i32, ptr %1, align 4
%8 = icmp eq i32 %7, 257
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = load i32, ptr %1, align 4
%11 = icmp eq i32 %10, 10
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = load i32, ptr %1, align 4
%14 = icmp eq i32 %13, 9
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, ptr %1, align 4
%17 = icmp eq i32 %16, 32
br label %18
18: ; preds = %15, %12, %9, %6
%19 = phi i1 [ true, %12 ], [ true, %9 ], [ true, %6 ], [ %17, %15 ]
br label %20
20: ; preds = %18, %2
%21 = phi i1 [ false, %2 ], [ %19, %18 ]
br i1 %21, label %2, label %22, !llvm.loop !6
22: ; preds = %20
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @ncss_Getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7qpdo59v.c'
source_filename = "/tmp/tmp7qpdo59v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_description(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %13
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp sgt i32 %9, 250
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 -1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11, %6
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7qpdo59v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @validate_description(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 -1, ptr %2, align 4
br label %13
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp sgt i32 %9, 250
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 -1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11, %6
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuylgiqbv.c'
source_filename = "/tmp/tmpuylgiqbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"ch = %c,i = %d, fl = %2.2f \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Now ch = %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 i8, align 1
%7 = alloca i32, align 4
%8 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 67, ptr %6, align 1
store i32 67, ptr %7, align 4
store float 6.700000e+01, ptr %8, align 4
%9 = load i8, ptr %6, align 1
%10 = load i32, ptr %7, align 4
%11 = load float, ptr %8, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %9, i32 noundef %10, double noundef %12)
%14 = load i8, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = add nsw i32 %15, 1
%17 = trunc i32 %16 to i8
store i8 %17, ptr %6, align 1
%18 = load float, ptr %8, align 4
%19 = load i8, ptr %6, align 1
%20 = sext i8 %19 to i32
%21 = mul nsw i32 2, %20
%22 = sitofp i32 %21 to float
%23 = fadd float %18, %22
%24 = fptosi float %23 to i32
store i32 %24, ptr %7, align 4
%25 = load i8, ptr %6, align 1
%26 = sext i8 %25 to i32
%27 = sitofp i32 %26 to double
%28 = load i32, ptr %7, align 4
%29 = sitofp i32 %28 to double
%30 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %27, double %29)
%31 = fptrunc double %30 to float
store float %31, ptr %8, align 4
%32 = load i8, ptr %6, align 1
%33 = load i32, ptr %7, align 4
%34 = load float, ptr %8, align 4
%35 = fpext float %34 to double
%36 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %32, i32 noundef %33, double noundef %35)
store i8 poison, ptr %6, align 1
%37 = load i8, ptr %6, align 1
%38 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %37)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #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/tmpuylgiqbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"ch = %c,i = %d, fl = %2.2f \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Now ch = %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 i8, align 1
%7 = alloca i32, align 4
%8 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i8 67, ptr %6, align 1
store i32 67, ptr %7, align 4
store float 6.700000e+01, ptr %8, align 4
%9 = load i8, ptr %6, align 1
%10 = load i32, ptr %7, align 4
%11 = load float, ptr %8, align 4
%12 = fpext float %11 to double
%13 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %9, i32 noundef %10, double noundef %12)
%14 = load i8, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = add nsw i32 %15, 1
%17 = trunc i32 %16 to i8
store i8 %17, ptr %6, align 1
%18 = load float, ptr %8, align 4
%19 = load i8, ptr %6, align 1
%20 = sext i8 %19 to i32
%21 = mul nsw i32 2, %20
%22 = sitofp i32 %21 to float
%23 = fadd float %18, %22
%24 = fptosi float %23 to i32
store i32 %24, ptr %7, align 4
%25 = load i8, ptr %6, align 1
%26 = sext i8 %25 to i32
%27 = sitofp i32 %26 to double
%28 = load i32, ptr %7, align 4
%29 = sitofp i32 %28 to double
%30 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %27, double %29)
%31 = fptrunc double %30 to float
store float %31, ptr %8, align 4
%32 = load i8, ptr %6, align 1
%33 = load i32, ptr %7, align 4
%34 = load float, ptr %8, align 4
%35 = fpext float %34 to double
%36 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %32, i32 noundef %33, double noundef %35)
store i8 poison, ptr %6, align 1
%37 = load i8, ptr %6, align 1
%38 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %37)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #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/tmpk1vkyatz.c'
source_filename = "/tmp/tmpk1vkyatz.c"
target datalayout = "e-m:e-p270: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/tmpk1vkyatz.c"
target datalayout = "e-m:e-p270: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/tmpe_kd8kju.c'
source_filename = "/tmp/tmpe_kd8kju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"sigpipe\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = 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/tmpe_kd8kju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"sigpipe\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hand(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = 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/tmpymzaykqs.c'
source_filename = "/tmp/tmpymzaykqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpymzaykqs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa8js3cun.c'
source_filename = "/tmp/tmpa8js3cun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @macan_unwrap_key(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @macan_aes_unwrap(ptr noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
ret void
}
declare i32 @macan_aes_unwrap(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa8js3cun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @macan_unwrap_key(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @macan_aes_unwrap(ptr noundef %9, i64 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
ret void
}
declare i32 @macan_aes_unwrap(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppl42n1up.c'
source_filename = "/tmp/tmppl42n1up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Generating CodeLite workspace and project files:\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"...%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"c++\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"** Error: unsupported language '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @codelite_generate() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @puts(ptr noundef @.str)
%4 = call i32 (...) @writeWorkspace()
%5 = icmp ne i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %35
7: ; preds = %0
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %31, %7
%9 = load i32, ptr %2, align 4
%10 = call i32 (...) @prj_get_numpackages()
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %34
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = call i32 @prj_select_package(i32 noundef %13)
%15 = call ptr (...) @prj_get_pkgname()
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
%17 = call i64 @prj_is_lang(ptr noundef @.str.2)
%18 = icmp ne i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %12
%20 = call i64 @prj_is_lang(ptr noundef @.str.3)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %19, %12
%23 = call i32 (...) @codelite_cpp()
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %22
store i32 0, ptr %1, align 4
br label %35
26: ; preds = %22
br label %30
27: ; preds = %19
%28 = call ptr (...) @prj_get_language()
%29 = call i32 @printf(ptr noundef @.str.4, ptr noundef %28)
store i32 0, ptr %1, align 4
br label %35
30: ; preds = %26
br label %31
31: ; preds = %30
%32 = load i32, ptr %2, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %2, align 4
br label %8, !llvm.loop !6
34: ; preds = %8
store i32 1, ptr %1, align 4
br label %35
35: ; preds = %34, %27, %25, %6
%36 = load i32, ptr %1, align 4
ret i32 %36
}
declare i32 @puts(ptr noundef) #1
declare i32 @writeWorkspace(...) #1
declare i32 @prj_get_numpackages(...) #1
declare i32 @prj_select_package(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @prj_get_pkgname(...) #1
declare i64 @prj_is_lang(ptr noundef) #1
declare i32 @codelite_cpp(...) #1
declare ptr @prj_get_language(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppl42n1up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Generating CodeLite workspace and project files:\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"...%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"c++\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"c\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"** Error: unsupported language '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @codelite_generate() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @puts(ptr noundef @.str)
%4 = call i32 (...) @writeWorkspace()
%5 = icmp ne i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %37
7: ; preds = %0
store i32 0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 (...) @prj_get_numpackages()
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %30
%12 = load i32, ptr %2, align 4
%13 = call i32 @prj_select_package(i32 noundef %12)
%14 = call ptr (...) @prj_get_pkgname()
%15 = call i32 @printf(ptr noundef @.str.1, ptr noundef %14)
%16 = call i64 @prj_is_lang(ptr noundef @.str.2)
%17 = icmp ne i64 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %11
%19 = call i64 @prj_is_lang(ptr noundef @.str.3)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %18, %11
%22 = call i32 (...) @codelite_cpp()
%23 = icmp ne i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i32 0, ptr %1, align 4
br label %37
25: ; preds = %21
br label %29
26: ; preds = %18
%27 = call ptr (...) @prj_get_language()
%28 = call i32 @printf(ptr noundef @.str.4, ptr noundef %27)
store i32 0, ptr %1, align 4
br label %37
29: ; preds = %25
br label %30
30: ; preds = %29
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = call i32 (...) @prj_get_numpackages()
%35 = icmp slt i32 %33, %34
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %7
store i32 1, ptr %1, align 4
br label %37
37: ; preds = %36, %26, %24, %6
%38 = load i32, ptr %1, align 4
ret i32 %38
}
declare i32 @puts(ptr noundef) #1
declare i32 @writeWorkspace(...) #1
declare i32 @prj_get_numpackages(...) #1
declare i32 @prj_select_package(i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @prj_get_pkgname(...) #1
declare i64 @prj_is_lang(ptr noundef) #1
declare i32 @codelite_cpp(...) #1
declare ptr @prj_get_language(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3ozdpeet.c'
source_filename = "/tmp/tmp3ozdpeet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deal(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i8, align 1
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%20 = load ptr, ptr %15, align 8
%21 = load i32, ptr %13, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
store i8 %24, ptr %19, align 1
%25 = load i32, ptr %13, align 4
%26 = icmp slt i32 %25, 4
br i1 %26, label %27, label %108
27: ; preds = %8
%28 = load i32, ptr %13, align 4
%29 = srem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %69
31: ; preds = %27
%32 = load i32, ptr %11, align 4
store i32 %32, ptr %18, align 4
%33 = load i8, ptr %19, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 65
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 11
%39 = icmp slt i32 %38, 22
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %42
41: ; preds = %36
store i32 1, ptr %17, align 4
br label %42
42: ; preds = %41, %40
br label %46
43: ; preds = %31
%44 = load i8, ptr %19, align 1
%45 = call i32 @resolveValue(i8 noundef signext %44)
store i32 %45, ptr %17, align 4
br label %46
46: ; preds = %43, %42
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %17, align 4
%49 = add nsw i32 %47, %48
%50 = icmp sgt i32 %49, 21
br i1 %50, label %51, label %57
51: ; preds = %46
%52 = load i32, ptr %11, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
store i32 0, ptr %18, align 4
%55 = load i32, ptr %17, align 4
%56 = sub nsw i32 %55, 10
store i32 %56, ptr %17, align 4
br label %57
57: ; preds = %54, %51, %46
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %17, align 4
%60 = add nsw i32 %58, %59
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %18, align 4
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1
%66 = load i32, ptr %14, align 4
%67 = load ptr, ptr %15, align 8
%68 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %65, i32 noundef %66, ptr noundef %67, ptr noundef %68)
br label %107
69: ; preds = %27
%70 = load i32, ptr %12, align 4
store i32 %70, ptr %18, align 4
%71 = load i8, ptr %19, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 65
br i1 %73, label %74, label %81
74: ; preds = %69
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 11
%77 = icmp slt i32 %76, 22
br i1 %77, label %78, label %79
78: ; preds = %74
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %80
79: ; preds = %74
store i32 1, ptr %17, align 4
br label %80
80: ; preds = %79, %78
br label %84
81: ; preds = %69
%82 = load i8, ptr %19, align 1
%83 = call i32 @resolveValue(i8 noundef signext %82)
store i32 %83, ptr %17, align 4
br label %84
84: ; preds = %81, %80
%85 = load i32, ptr %10, align 4
%86 = load i32, ptr %17, align 4
%87 = add nsw i32 %85, %86
%88 = icmp sgt i32 %87, 21
br i1 %88, label %89, label %95
89: ; preds = %84
%90 = load i32, ptr %12, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %89
store i32 0, ptr %18, align 4
%93 = load i32, ptr %17, align 4
%94 = sub nsw i32 %93, 10
store i32 %94, ptr %17, align 4
br label %95
95: ; preds = %92, %89, %84
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %10, align 4
%98 = load i32, ptr %17, align 4
%99 = add nsw i32 %97, %98
%100 = load i32, ptr %11, align 4
%101 = load i32, ptr %18, align 4
%102 = load i32, ptr %13, align 4
%103 = add nsw i32 %102, 1
%104 = load i32, ptr %14, align 4
%105 = load ptr, ptr %15, align 8
%106 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %96, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %103, i32 noundef %104, ptr noundef %105, ptr noundef %106)
br label %107
107: ; preds = %95, %57
br label %234
108: ; preds = %8
%109 = load i8, ptr %19, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %125
112: ; preds = %108
%113 = load ptr, ptr %16, align 8
%114 = load i32, ptr %113, align 4
%115 = icmp ne i32 %114, 0
br i1 %115, label %121, label %116
116: ; preds = %112
%117 = load i32, ptr %9, align 4
%118 = load i32, ptr %10, align 4
%119 = call i64 @playerWins(i32 noundef %117, i32 noundef %118)
%120 = icmp ne i64 %119, 0
br label %121
121: ; preds = %116, %112
%122 = phi i1 [ true, %112 ], [ %120, %116 ]
%123 = zext i1 %122 to i32
%124 = load ptr, ptr %16, align 8
store i32 %123, ptr %124, align 4
br label %233
125: ; preds = %108
%126 = load i32, ptr %14, align 4
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %183
128: ; preds = %125
%129 = load i32, ptr %10, align 4
%130 = icmp sgt i32 %129, 16
br i1 %130, label %131, label %144
131: ; preds = %128
%132 = load ptr, ptr %16, align 8
%133 = load i32, ptr %132, align 4
%134 = icmp ne i32 %133, 0
br i1 %134, label %140, label %135
135: ; preds = %131
%136 = load i32, ptr %9, align 4
%137 = load i32, ptr %10, align 4
%138 = call i64 @playerWins(i32 noundef %136, i32 noundef %137)
%139 = icmp ne i64 %138, 0
br label %140
140: ; preds = %135, %131
%141 = phi i1 [ true, %131 ], [ %139, %135 ]
%142 = zext i1 %141 to i32
%143 = load ptr, ptr %16, align 8
store i32 %142, ptr %143, align 4
br label %182
144: ; preds = %128
%145 = load i32, ptr %12, align 4
store i32 %145, ptr %18, align 4
%146 = load i8, ptr %19, align 1
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 65
br i1 %148, label %149, label %156
149: ; preds = %144
%150 = load i32, ptr %10, align 4
%151 = add nsw i32 %150, 11
%152 = icmp slt i32 %151, 22
br i1 %152, label %153, label %154
153: ; preds = %149
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %155
154: ; preds = %149
store i32 1, ptr %17, align 4
br label %155
155: ; preds = %154, %153
br label %159
156: ; preds = %144
%157 = load i8, ptr %19, align 1
%158 = call i32 @resolveValue(i8 noundef signext %157)
store i32 %158, ptr %17, align 4
br label %159
159: ; preds = %156, %155
%160 = load i32, ptr %10, align 4
%161 = load i32, ptr %17, align 4
%162 = add nsw i32 %160, %161
%163 = icmp sgt i32 %162, 21
br i1 %163, label %164, label %170
164: ; preds = %159
%165 = load i32, ptr %12, align 4
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %164
store i32 0, ptr %18, align 4
%168 = load i32, ptr %17, align 4
%169 = sub nsw i32 %168, 10
store i32 %169, ptr %17, align 4
br label %170
170: ; preds = %167, %164, %159
%171 = load i32, ptr %9, align 4
%172 = load i32, ptr %10, align 4
%173 = load i32, ptr %17, align 4
%174 = add nsw i32 %172, %173
%175 = load i32, ptr %11, align 4
%176 = load i32, ptr %18, align 4
%177 = load i32, ptr %13, align 4
%178 = add nsw i32 %177, 1
%179 = load i32, ptr %14, align 4
%180 = load ptr, ptr %15, align 8
%181 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %171, i32 noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %178, i32 noundef %179, ptr noundef %180, ptr noundef %181)
br label %182
182: ; preds = %170, %140
br label %232
183: ; preds = %125
%184 = load i32, ptr %9, align 4
%185 = icmp sle i32 %184, 21
br i1 %185, label %186, label %231
186: ; preds = %183
%187 = load i32, ptr %11, align 4
store i32 %187, ptr %18, align 4
%188 = load i32, ptr %9, align 4
%189 = load i32, ptr %10, align 4
%190 = load i32, ptr %11, align 4
%191 = load i32, ptr %12, align 4
%192 = load i32, ptr %13, align 4
%193 = load ptr, ptr %15, align 8
%194 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef 1, ptr noundef %193, ptr noundef %194)
%195 = load i8, ptr %19, align 1
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 65
br i1 %197, label %198, label %205
198: ; preds = %186
%199 = load i32, ptr %9, align 4
%200 = add nsw i32 %199, 11
%201 = icmp slt i32 %200, 22
br i1 %201, label %202, label %203
202: ; preds = %198
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %204
203: ; preds = %198
store i32 1, ptr %17, align 4
br label %204
204: ; preds = %203, %202
br label %208
205: ; preds = %186
%206 = load i8, ptr %19, align 1
%207 = call i32 @resolveValue(i8 noundef signext %206)
store i32 %207, ptr %17, align 4
br label %208
208: ; preds = %205, %204
%209 = load i32, ptr %9, align 4
%210 = load i32, ptr %17, align 4
%211 = add nsw i32 %209, %210
%212 = icmp sgt i32 %211, 21
br i1 %212, label %213, label %219
213: ; preds = %208
%214 = load i32, ptr %11, align 4
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %213
store i32 0, ptr %18, align 4
%217 = load i32, ptr %17, align 4
%218 = sub nsw i32 %217, 10
store i32 %218, ptr %17, align 4
br label %219
219: ; preds = %216, %213, %208
%220 = load i32, ptr %9, align 4
%221 = load i32, ptr %17, align 4
%222 = add nsw i32 %220, %221
%223 = load i32, ptr %10, align 4
%224 = load i32, ptr %18, align 4
%225 = load i32, ptr %12, align 4
%226 = load i32, ptr %13, align 4
%227 = add nsw i32 %226, 1
%228 = load i32, ptr %14, align 4
%229 = load ptr, ptr %15, align 8
%230 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %227, i32 noundef %228, ptr noundef %229, ptr noundef %230)
br label %231
231: ; preds = %219, %183
br label %232
232: ; preds = %231, %182
br label %233
233: ; preds = %232, %121
br label %234
234: ; preds = %233, %107
ret void
}
declare i32 @resolveValue(i8 noundef signext) #1
declare i64 @playerWins(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/tmp3ozdpeet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @deal(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i8, align 1
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%20 = load ptr, ptr %15, align 8
%21 = load i32, ptr %13, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
store i8 %24, ptr %19, align 1
%25 = load i32, ptr %13, align 4
%26 = icmp slt i32 %25, 4
br i1 %26, label %27, label %108
27: ; preds = %8
%28 = load i32, ptr %13, align 4
%29 = srem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %69
31: ; preds = %27
%32 = load i32, ptr %11, align 4
store i32 %32, ptr %18, align 4
%33 = load i8, ptr %19, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 65
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 11
%39 = icmp slt i32 %38, 22
br i1 %39, label %40, label %41
40: ; preds = %36
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %42
41: ; preds = %36
store i32 1, ptr %17, align 4
br label %42
42: ; preds = %41, %40
br label %46
43: ; preds = %31
%44 = load i8, ptr %19, align 1
%45 = call i32 @resolveValue(i8 noundef signext %44)
store i32 %45, ptr %17, align 4
br label %46
46: ; preds = %43, %42
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %17, align 4
%49 = add nsw i32 %47, %48
%50 = icmp sgt i32 %49, 21
br i1 %50, label %51, label %57
51: ; preds = %46
%52 = load i32, ptr %11, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
store i32 0, ptr %18, align 4
%55 = load i32, ptr %17, align 4
%56 = sub nsw i32 %55, 10
store i32 %56, ptr %17, align 4
br label %57
57: ; preds = %54, %51, %46
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %17, align 4
%60 = add nsw i32 %58, %59
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %18, align 4
%63 = load i32, ptr %12, align 4
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1
%66 = load i32, ptr %14, align 4
%67 = load ptr, ptr %15, align 8
%68 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %65, i32 noundef %66, ptr noundef %67, ptr noundef %68)
br label %107
69: ; preds = %27
%70 = load i32, ptr %12, align 4
store i32 %70, ptr %18, align 4
%71 = load i8, ptr %19, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 65
br i1 %73, label %74, label %81
74: ; preds = %69
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 11
%77 = icmp slt i32 %76, 22
br i1 %77, label %78, label %79
78: ; preds = %74
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %80
79: ; preds = %74
store i32 1, ptr %17, align 4
br label %80
80: ; preds = %79, %78
br label %84
81: ; preds = %69
%82 = load i8, ptr %19, align 1
%83 = call i32 @resolveValue(i8 noundef signext %82)
store i32 %83, ptr %17, align 4
br label %84
84: ; preds = %81, %80
%85 = load i32, ptr %10, align 4
%86 = load i32, ptr %17, align 4
%87 = add nsw i32 %85, %86
%88 = icmp sgt i32 %87, 21
br i1 %88, label %89, label %95
89: ; preds = %84
%90 = load i32, ptr %12, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %89
store i32 0, ptr %18, align 4
%93 = load i32, ptr %17, align 4
%94 = sub nsw i32 %93, 10
store i32 %94, ptr %17, align 4
br label %95
95: ; preds = %92, %89, %84
%96 = load i32, ptr %9, align 4
%97 = load i32, ptr %10, align 4
%98 = load i32, ptr %17, align 4
%99 = add nsw i32 %97, %98
%100 = load i32, ptr %11, align 4
%101 = load i32, ptr %18, align 4
%102 = load i32, ptr %13, align 4
%103 = add nsw i32 %102, 1
%104 = load i32, ptr %14, align 4
%105 = load ptr, ptr %15, align 8
%106 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %96, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %103, i32 noundef %104, ptr noundef %105, ptr noundef %106)
br label %107
107: ; preds = %95, %57
br label %234
108: ; preds = %8
%109 = load i8, ptr %19, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %125
112: ; preds = %108
%113 = load ptr, ptr %16, align 8
%114 = load i32, ptr %113, align 4
%115 = icmp ne i32 %114, 0
br i1 %115, label %121, label %116
116: ; preds = %112
%117 = load i32, ptr %9, align 4
%118 = load i32, ptr %10, align 4
%119 = call i64 @playerWins(i32 noundef %117, i32 noundef %118)
%120 = icmp ne i64 %119, 0
br label %121
121: ; preds = %116, %112
%122 = phi i1 [ true, %112 ], [ %120, %116 ]
%123 = zext i1 %122 to i32
%124 = load ptr, ptr %16, align 8
store i32 %123, ptr %124, align 4
br label %233
125: ; preds = %108
%126 = load i32, ptr %14, align 4
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %183
128: ; preds = %125
%129 = load i32, ptr %10, align 4
%130 = icmp sgt i32 %129, 16
br i1 %130, label %131, label %144
131: ; preds = %128
%132 = load ptr, ptr %16, align 8
%133 = load i32, ptr %132, align 4
%134 = icmp ne i32 %133, 0
br i1 %134, label %140, label %135
135: ; preds = %131
%136 = load i32, ptr %9, align 4
%137 = load i32, ptr %10, align 4
%138 = call i64 @playerWins(i32 noundef %136, i32 noundef %137)
%139 = icmp ne i64 %138, 0
br label %140
140: ; preds = %135, %131
%141 = phi i1 [ true, %131 ], [ %139, %135 ]
%142 = zext i1 %141 to i32
%143 = load ptr, ptr %16, align 8
store i32 %142, ptr %143, align 4
br label %182
144: ; preds = %128
%145 = load i32, ptr %12, align 4
store i32 %145, ptr %18, align 4
%146 = load i8, ptr %19, align 1
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 65
br i1 %148, label %149, label %156
149: ; preds = %144
%150 = load i32, ptr %10, align 4
%151 = add nsw i32 %150, 11
%152 = icmp slt i32 %151, 22
br i1 %152, label %153, label %154
153: ; preds = %149
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %155
154: ; preds = %149
store i32 1, ptr %17, align 4
br label %155
155: ; preds = %154, %153
br label %159
156: ; preds = %144
%157 = load i8, ptr %19, align 1
%158 = call i32 @resolveValue(i8 noundef signext %157)
store i32 %158, ptr %17, align 4
br label %159
159: ; preds = %156, %155
%160 = load i32, ptr %10, align 4
%161 = load i32, ptr %17, align 4
%162 = add nsw i32 %160, %161
%163 = icmp sgt i32 %162, 21
br i1 %163, label %164, label %170
164: ; preds = %159
%165 = load i32, ptr %12, align 4
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %164
store i32 0, ptr %18, align 4
%168 = load i32, ptr %17, align 4
%169 = sub nsw i32 %168, 10
store i32 %169, ptr %17, align 4
br label %170
170: ; preds = %167, %164, %159
%171 = load i32, ptr %9, align 4
%172 = load i32, ptr %10, align 4
%173 = load i32, ptr %17, align 4
%174 = add nsw i32 %172, %173
%175 = load i32, ptr %11, align 4
%176 = load i32, ptr %18, align 4
%177 = load i32, ptr %13, align 4
%178 = add nsw i32 %177, 1
%179 = load i32, ptr %14, align 4
%180 = load ptr, ptr %15, align 8
%181 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %171, i32 noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %178, i32 noundef %179, ptr noundef %180, ptr noundef %181)
br label %182
182: ; preds = %170, %140
br label %232
183: ; preds = %125
%184 = load i32, ptr %9, align 4
%185 = icmp sle i32 %184, 21
br i1 %185, label %186, label %231
186: ; preds = %183
%187 = load i32, ptr %11, align 4
store i32 %187, ptr %18, align 4
%188 = load i32, ptr %9, align 4
%189 = load i32, ptr %10, align 4
%190 = load i32, ptr %11, align 4
%191 = load i32, ptr %12, align 4
%192 = load i32, ptr %13, align 4
%193 = load ptr, ptr %15, align 8
%194 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef 1, ptr noundef %193, ptr noundef %194)
%195 = load i8, ptr %19, align 1
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 65
br i1 %197, label %198, label %205
198: ; preds = %186
%199 = load i32, ptr %9, align 4
%200 = add nsw i32 %199, 11
%201 = icmp slt i32 %200, 22
br i1 %201, label %202, label %203
202: ; preds = %198
store i32 1, ptr %18, align 4
store i32 11, ptr %17, align 4
br label %204
203: ; preds = %198
store i32 1, ptr %17, align 4
br label %204
204: ; preds = %203, %202
br label %208
205: ; preds = %186
%206 = load i8, ptr %19, align 1
%207 = call i32 @resolveValue(i8 noundef signext %206)
store i32 %207, ptr %17, align 4
br label %208
208: ; preds = %205, %204
%209 = load i32, ptr %9, align 4
%210 = load i32, ptr %17, align 4
%211 = add nsw i32 %209, %210
%212 = icmp sgt i32 %211, 21
br i1 %212, label %213, label %219
213: ; preds = %208
%214 = load i32, ptr %11, align 4
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %213
store i32 0, ptr %18, align 4
%217 = load i32, ptr %17, align 4
%218 = sub nsw i32 %217, 10
store i32 %218, ptr %17, align 4
br label %219
219: ; preds = %216, %213, %208
%220 = load i32, ptr %9, align 4
%221 = load i32, ptr %17, align 4
%222 = add nsw i32 %220, %221
%223 = load i32, ptr %10, align 4
%224 = load i32, ptr %18, align 4
%225 = load i32, ptr %12, align 4
%226 = load i32, ptr %13, align 4
%227 = add nsw i32 %226, 1
%228 = load i32, ptr %14, align 4
%229 = load ptr, ptr %15, align 8
%230 = load ptr, ptr %16, align 8
call void @deal(i32 noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %227, i32 noundef %228, ptr noundef %229, ptr noundef %230)
br label %231
231: ; preds = %219, %183
br label %232
232: ; preds = %231, %182
br label %233
233: ; preds = %232, %121
br label %234
234: ; preds = %233, %107
ret void
}
declare i32 @resolveValue(i8 noundef signext) #1
declare i64 @playerWins(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/tmpxd7t0khr.c'
source_filename = "/tmp/tmpxd7t0khr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"Usage: fabler <prefix>/<len> <healthcheck_cmd> [<healtcheck_args>...]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @err(i32 noundef 10, ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = load ptr, ptr %5, align 8
%12 = call i32 @run_loop(ptr noundef %11)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @run_loop(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/tmpxd7t0khr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"Usage: fabler <prefix>/<len> <healthcheck_cmd> [<healtcheck_args>...]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @err(i32 noundef 10, ptr noundef @.str)
br label %10
10: ; preds = %8, %2
%11 = load ptr, ptr %5, align 8
%12 = call i32 @run_loop(ptr noundef %11)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @run_loop(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/tmpjejx52w1.c'
source_filename = "/tmp/tmpjejx52w1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [74 x i8] c"Offset Hex Value Ascii value\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"0x%08lx \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HexDump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = ptrtoint ptr %10 to i64
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = add nsw i64 %11, %13
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = srem i32 %16, 16
store i32 %17, ptr %8, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %81, %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 16
%23 = load ptr, ptr %6, align 8
%24 = icmp ule ptr %22, %23
br i1 %24, label %25, label %85
25: ; preds = %20
%26 = load ptr, ptr %5, align 8
%27 = load ptr, ptr %3, align 8
%28 = ptrtoint ptr %26 to i64
%29 = ptrtoint ptr %27 to i64
%30 = sub i64 %28, %29
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %30)
store i32 0, ptr %7, align 4
br label %32
32: ; preds = %43, %25
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %33, 16
br i1 %34, label %35, label %46
35: ; preds = %32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %41)
br label %43
43: ; preds = %35
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
br label %32, !llvm.loop !6
46: ; preds = %32
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %7, align 4
br label %48
48: ; preds = %78, %46
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %49, 16
br i1 %50, label %51, label %81
51: ; preds = %48
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp sge i32 %57, 32
br i1 %58, label %59, label %75
59: ; preds = %51
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %7, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp sle i32 %65, 125
br i1 %66, label %67, label %75
67: ; preds = %59
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %7, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73)
br label %77
75: ; preds = %59, %51
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %77
77: ; preds = %75, %67
br label %78
78: ; preds = %77
%79 = load i32, ptr %7, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %7, align 4
br label %48, !llvm.loop !8
81: ; preds = %48
%82 = load ptr, ptr %5, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 16
store ptr %83, ptr %5, align 8
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %20, !llvm.loop !9
85: ; preds = %20
%86 = load i32, ptr %8, align 4
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %170
88: ; preds = %85
%89 = load ptr, ptr %5, align 8
%90 = load ptr, ptr %3, align 8
%91 = ptrtoint ptr %89 to i64
%92 = ptrtoint ptr %90 to i64
%93 = sub i64 %91, %92
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %93)
store i32 0, ptr %7, align 4
br label %95
95: ; preds = %107, %88
%96 = load i32, ptr %7, align 4
%97 = load i32, ptr %8, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %110
99: ; preds = %95
%100 = load ptr, ptr %5, align 8
%101 = load i32, ptr %7, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %105)
br label %107
107: ; preds = %99
%108 = load i32, ptr %7, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %7, align 4
br label %95, !llvm.loop !10
110: ; preds = %95
store i32 0, ptr %7, align 4
br label %111
111: ; preds = %118, %110
%112 = load i32, ptr %7, align 4
%113 = load i32, ptr %8, align 4
%114 = sub nsw i32 16, %113
%115 = icmp slt i32 %112, %114
br i1 %115, label %116, label %121
116: ; preds = %111
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %118
118: ; preds = %116
%119 = load i32, ptr %7, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %7, align 4
br label %111, !llvm.loop !11
121: ; preds = %111
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %7, align 4
br label %123
123: ; preds = %154, %121
%124 = load i32, ptr %7, align 4
%125 = load i32, ptr %8, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %157
127: ; preds = %123
%128 = load ptr, ptr %5, align 8
%129 = load i32, ptr %7, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp sge i32 %133, 32
br i1 %134, label %135, label %151
135: ; preds = %127
%136 = load ptr, ptr %5, align 8
%137 = load i32, ptr %7, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp sle i32 %141, 125
br i1 %142, label %143, label %151
143: ; preds = %135
%144 = load ptr, ptr %5, align 8
%145 = load i32, ptr %7, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, ptr %144, i64 %146
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %149)
br label %153
151: ; preds = %135, %127
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %153
153: ; preds = %151, %143
br label %154
154: ; preds = %153
%155 = load i32, ptr %7, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %7, align 4
br label %123, !llvm.loop !12
157: ; preds = %123
store i32 0, ptr %7, align 4
br label %158
158: ; preds = %165, %157
%159 = load i32, ptr %7, align 4
%160 = load i32, ptr %8, align 4
%161 = sub nsw i32 16, %160
%162 = icmp slt i32 %159, %161
br i1 %162, label %163, label %168
163: ; preds = %158
%164 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %165
165: ; preds = %163
%166 = load i32, ptr %7, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %7, align 4
br label %158, !llvm.loop !13
168: ; preds = %158
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %170
170: ; preds = %168, %85
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!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/tmpjejx52w1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [74 x i8] c"Offset Hex Value Ascii value\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"0x%08lx \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%02x \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HexDump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = ptrtoint ptr %10 to i64
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = add nsw i64 %11, %13
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %6, align 8
%16 = load i32, ptr %4, align 4
%17 = srem i32 %16, 16
store i32 %17, ptr %8, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 16
%22 = load ptr, ptr %6, align 8
%23 = icmp ule ptr %21, %22
br i1 %23, label %.lr.ph5, label %90
.lr.ph5: ; preds = %2
br label %24
24: ; preds = %.lr.ph5, %82
%25 = load ptr, ptr %5, align 8
%26 = load ptr, ptr %3, align 8
%27 = ptrtoint ptr %25 to i64
%28 = ptrtoint ptr %26 to i64
%29 = sub i64 %27, %28
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %29)
store i32 0, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %31, 16
br i1 %32, label %.lr.ph, label %46
.lr.ph: ; preds = %24
br label %33
33: ; preds = %.lr.ph, %41
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %7, 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 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39)
br label %41
41: ; preds = %33
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = icmp slt i32 %44, 16
br i1 %45, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %46
46: ; preds = %._crit_edge, %24
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp slt i32 %48, 16
br i1 %49, label %.lr.ph2, label %82
.lr.ph2: ; preds = %46
br label %50
50: ; preds = %.lr.ph2, %77
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp sge i32 %56, 32
br i1 %57, label %58, label %74
58: ; preds = %50
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sle i32 %64, 125
br i1 %65, label %66, label %74
66: ; preds = %58
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %72)
br label %76
74: ; preds = %58, %50
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %76
76: ; preds = %74, %66
br label %77
77: ; preds = %76
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %7, align 4
%80 = load i32, ptr %7, align 4
%81 = icmp slt i32 %80, 16
br i1 %81, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %82
82: ; preds = %._crit_edge3, %46
%83 = load ptr, ptr %5, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 16
store ptr %84, ptr %5, align 8
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 16
%88 = load ptr, ptr %6, align 8
%89 = icmp ule ptr %87, %88
br i1 %89, label %24, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %82
br label %90
90: ; preds = %._crit_edge6, %2
%91 = load i32, ptr %8, align 4
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %185
93: ; preds = %90
%94 = load ptr, ptr %5, align 8
%95 = load ptr, ptr %3, align 8
%96 = ptrtoint ptr %94 to i64
%97 = ptrtoint ptr %95 to i64
%98 = sub i64 %96, %97
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %98)
store i32 0, ptr %7, align 4
%100 = load i32, ptr %7, align 4
%101 = load i32, ptr %8, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %.lr.ph8, label %117
.lr.ph8: ; preds = %93
br label %103
103: ; preds = %.lr.ph8, %111
%104 = load ptr, ptr %5, align 8
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %109)
br label %111
111: ; preds = %103
%112 = load i32, ptr %7, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %7, align 4
%114 = load i32, ptr %7, align 4
%115 = load i32, ptr %8, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %103, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %111
br label %117
117: ; preds = %._crit_edge9, %93
store i32 0, ptr %7, align 4
%118 = load i32, ptr %7, align 4
%119 = load i32, ptr %8, align 4
%120 = sub nsw i32 16, %119
%121 = icmp slt i32 %118, %120
br i1 %121, label %.lr.ph11, label %131
.lr.ph11: ; preds = %117
br label %122
122: ; preds = %.lr.ph11, %124
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %124
124: ; preds = %122
%125 = load i32, ptr %7, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %7, align 4
%127 = load i32, ptr %7, align 4
%128 = load i32, ptr %8, align 4
%129 = sub nsw i32 16, %128
%130 = icmp slt i32 %127, %129
br i1 %130, label %122, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %124
br label %131
131: ; preds = %._crit_edge12, %117
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %7, align 4
%133 = load i32, ptr %7, align 4
%134 = load i32, ptr %8, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %.lr.ph14, label %169
.lr.ph14: ; preds = %131
br label %136
136: ; preds = %.lr.ph14, %163
%137 = load ptr, ptr %5, align 8
%138 = load i32, ptr %7, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, ptr %137, i64 %139
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = icmp sge i32 %142, 32
br i1 %143, label %144, label %160
144: ; preds = %136
%145 = load ptr, ptr %5, align 8
%146 = load i32, ptr %7, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i8, ptr %145, i64 %147
%149 = load i8, ptr %148, align 1
%150 = sext i8 %149 to i32
%151 = icmp sle i32 %150, 125
br i1 %151, label %152, label %160
152: ; preds = %144
%153 = load ptr, ptr %5, align 8
%154 = load i32, ptr %7, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i8, ptr %153, i64 %155
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %158)
br label %162
160: ; preds = %144, %136
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %162
162: ; preds = %160, %152
br label %163
163: ; preds = %162
%164 = load i32, ptr %7, align 4
%165 = add nsw i32 %164, 1
store i32 %165, ptr %7, align 4
%166 = load i32, ptr %7, align 4
%167 = load i32, ptr %8, align 4
%168 = icmp slt i32 %166, %167
br i1 %168, label %136, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %163
br label %169
169: ; preds = %._crit_edge15, %131
store i32 0, ptr %7, align 4
%170 = load i32, ptr %7, align 4
%171 = load i32, ptr %8, align 4
%172 = sub nsw i32 16, %171
%173 = icmp slt i32 %170, %172
br i1 %173, label %.lr.ph17, label %183
.lr.ph17: ; preds = %169
br label %174
174: ; preds = %.lr.ph17, %176
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %176
176: ; preds = %174
%177 = load i32, ptr %7, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %7, align 4
%179 = load i32, ptr %7, align 4
%180 = load i32, ptr %8, align 4
%181 = sub nsw i32 16, %180
%182 = icmp slt i32 %179, %181
br i1 %182, label %174, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %176
br label %183
183: ; preds = %._crit_edge18, %169
%184 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %185
185: ; preds = %183, %90
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpevbambk_.c'
source_filename = "/tmp/tmpevbambk_.c"
target datalayout = "e-m:e-p270: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/tmpevbambk_.c"
target datalayout = "e-m:e-p270: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/tmpf9j3gtnp.c'
source_filename = "/tmp/tmpf9j3gtnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @wordCounter(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %10, align 4
br label %11
11: ; preds = %26, %3
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %29
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str)
%22 = icmp ne i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %26
26: ; preds = %23, %15
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
br label %11, !llvm.loop !6
29: ; preds = %11
br label %30
30: ; preds = %51, %29
%31 = load i32, ptr %10, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sle i32 %34, %35
br label %37
37: ; preds = %33, %30
%38 = phi i1 [ false, %30 ], [ %36, %33 ]
br i1 %38, label %39, label %54
39: ; preds = %37
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %40, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = call i64 @strcmp(ptr noundef %44, ptr noundef @.str)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %39
%48 = load i32, ptr %9, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %9, align 4
br label %51
50: ; preds = %39
store i32 0, ptr %10, align 4
br label %51
51: ; preds = %50, %47
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
br label %30, !llvm.loop !8
54: ; preds = %37
%55 = load i32, ptr %9, align 4
ret i32 %55
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9j3gtnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @wordCounter(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = 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
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 1, ptr %10, align 4
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %25
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str)
%21 = icmp ne i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %14
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
br label %25
25: ; preds = %22, %14
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %3
br label %32
32: ; preds = %53, %31
%33 = load i32, ptr %10, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp sle i32 %36, %37
br label %39
39: ; preds = %35, %32
%40 = phi i1 [ false, %32 ], [ %38, %35 ]
br i1 %40, label %41, label %56
41: ; preds = %39
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call i64 @strcmp(ptr noundef %46, ptr noundef @.str)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %41
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
br label %53
52: ; preds = %41
store i32 0, ptr %10, align 4
br label %53
53: ; preds = %52, %49
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
br label %32, !llvm.loop !8
56: ; preds = %39
%57 = load i32, ptr %9, align 4
ret i32 %57
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5vt4nb9x.c'
source_filename = "/tmp/tmp5vt4nb9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IniMon_lc898122() #0 {
%1 = call i32 @RegWriteA_lc898122(i32 noundef 48, i32 noundef 0)
%2 = call i32 @RegWriteA_lc898122(i32 noundef 624, i32 noundef 92)
%3 = call i32 @RegWriteA_lc898122(i32 noundef 625, i32 noundef 93)
%4 = call i32 @RegWriteA_lc898122(i32 noundef 626, i32 noundef 0)
%5 = call i32 @RegWriteA_lc898122(i32 noundef 627, i32 noundef 0)
%6 = call i32 @RegWriteA_lc898122(i32 noundef 448, i32 noundef 0)
%7 = call i32 @RegWriteA_lc898122(i32 noundef 449, i32 noundef 0)
%8 = call i32 @RegWriteA_lc898122(i32 noundef 450, i32 noundef 0)
%9 = call i32 @RegWriteA_lc898122(i32 noundef 451, i32 noundef 0)
%10 = call i32 @RegWriteA_lc898122(i32 noundef 453, i32 noundef 4)
%11 = call i32 @RegWriteA_lc898122(i32 noundef 452, i32 noundef 64)
%12 = call i32 @RegWriteA_lc898122(i32 noundef 455, i32 noundef 4)
%13 = call i32 @RegWriteA_lc898122(i32 noundef 454, i32 noundef 192)
%14 = call i32 @RegWriteA_lc898122(i32 noundef 457, i32 noundef 0)
%15 = call i32 @RegWriteA_lc898122(i32 noundef 456, i32 noundef 0)
%16 = call i32 @RegWriteA_lc898122(i32 noundef 459, i32 noundef 0)
%17 = call i32 @RegWriteA_lc898122(i32 noundef 458, i32 noundef 0)
%18 = call i32 @RegWriteA_lc898122(i32 noundef 48, i32 noundef 128)
ret void
}
declare i32 @RegWriteA_lc898122(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/tmp5vt4nb9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IniMon_lc898122() #0 {
%1 = call i32 @RegWriteA_lc898122(i32 noundef 48, i32 noundef 0)
%2 = call i32 @RegWriteA_lc898122(i32 noundef 624, i32 noundef 92)
%3 = call i32 @RegWriteA_lc898122(i32 noundef 625, i32 noundef 93)
%4 = call i32 @RegWriteA_lc898122(i32 noundef 626, i32 noundef 0)
%5 = call i32 @RegWriteA_lc898122(i32 noundef 627, i32 noundef 0)
%6 = call i32 @RegWriteA_lc898122(i32 noundef 448, i32 noundef 0)
%7 = call i32 @RegWriteA_lc898122(i32 noundef 449, i32 noundef 0)
%8 = call i32 @RegWriteA_lc898122(i32 noundef 450, i32 noundef 0)
%9 = call i32 @RegWriteA_lc898122(i32 noundef 451, i32 noundef 0)
%10 = call i32 @RegWriteA_lc898122(i32 noundef 453, i32 noundef 4)
%11 = call i32 @RegWriteA_lc898122(i32 noundef 452, i32 noundef 64)
%12 = call i32 @RegWriteA_lc898122(i32 noundef 455, i32 noundef 4)
%13 = call i32 @RegWriteA_lc898122(i32 noundef 454, i32 noundef 192)
%14 = call i32 @RegWriteA_lc898122(i32 noundef 457, i32 noundef 0)
%15 = call i32 @RegWriteA_lc898122(i32 noundef 456, i32 noundef 0)
%16 = call i32 @RegWriteA_lc898122(i32 noundef 459, i32 noundef 0)
%17 = call i32 @RegWriteA_lc898122(i32 noundef 458, i32 noundef 0)
%18 = call i32 @RegWriteA_lc898122(i32 noundef 48, i32 noundef 128)
ret void
}
declare i32 @RegWriteA_lc898122(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/tmp9fk4m5e3.c'
source_filename = "/tmp/tmp9fk4m5e3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_prime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11, %1
store i32 0, ptr %2, align 4
br label %32
15: ; preds = %11
store i32 2, ptr %4, align 4
br label %16
16: ; preds = %28, %15
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %3, align 4
%19 = sdiv i32 %18, 2
%20 = icmp sle i32 %17, %19
br i1 %20, label %21, label %31
21: ; preds = %16
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = srem i32 %22, %23
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %21
store i32 0, ptr %2, align 4
br label %32
27: ; preds = %21
br label %28
28: ; preds = %27
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %16, !llvm.loop !6
31: ; preds = %16
store i32 1, ptr %2, align 4
br label %32
32: ; preds = %31, %26, %14
%33 = load i32, ptr %2, align 4
ret i32 %33
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9fk4m5e3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_prime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11, %1
store i32 0, ptr %2, align 4
br label %35
15: ; preds = %11
store i32 2, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 2
%19 = icmp sle i32 %16, %18
br i1 %19, label %.lr.ph, label %34
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %27
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = srem i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
store i32 0, ptr %2, align 4
br label %35
26: ; preds = %20
br label %27
27: ; preds = %26
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %3, align 4
%32 = sdiv i32 %31, 2
%33 = icmp sle i32 %30, %32
br i1 %33, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %15
store i32 1, ptr %2, align 4
br label %35
35: ; preds = %34, %25, %14
%36 = load i32, ptr %2, align 4
ret i32 %36
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq17sqbfu.c'
source_filename = "/tmp/tmpq17sqbfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%02lx:%02lx:%02lx:%02lx:%02lx:%02lx\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @time(i32 noundef 0)
%9 = call i32 (...) @getpid()
%10 = or i32 %8, %9
%11 = call i32 @srand(i32 noundef %10)
%12 = call i32 (...) @rand()
%13 = and i32 %12, 65279
%14 = or i32 %13, 512
%15 = sext i32 %14 to i64
store i64 %15, ptr %7, align 8
%16 = call i32 (...) @rand()
%17 = sext i32 %16 to i64
store i64 %17, ptr %6, align 8
%18 = load i64, ptr %7, align 8
%19 = lshr i64 %18, 8
%20 = load i64, ptr %7, align 8
%21 = and i64 %20, 255
%22 = load i64, ptr %6, align 8
%23 = lshr i64 %22, 24
%24 = load i64, ptr %6, align 8
%25 = lshr i64 %24, 16
%26 = and i64 %25, 255
%27 = load i64, ptr %6, align 8
%28 = lshr i64 %27, 8
%29 = and i64 %28, 255
%30 = load i64, ptr %6, align 8
%31 = and i64 %30, 255
%32 = call i32 @printf(ptr noundef @.str, i64 noundef %19, i64 noundef %21, i64 noundef %23, i64 noundef %26, i64 noundef %29, i64 noundef %31)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq17sqbfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%02lx:%02lx:%02lx:%02lx:%02lx:%02lx\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @time(i32 noundef 0)
%9 = call i32 (...) @getpid()
%10 = or i32 %8, %9
%11 = call i32 @srand(i32 noundef %10)
%12 = call i32 (...) @rand()
%13 = and i32 %12, 65279
%14 = or i32 %13, 512
%15 = sext i32 %14 to i64
store i64 %15, ptr %7, align 8
%16 = call i32 (...) @rand()
%17 = sext i32 %16 to i64
store i64 %17, ptr %6, align 8
%18 = load i64, ptr %7, align 8
%19 = lshr i64 %18, 8
%20 = load i64, ptr %7, align 8
%21 = and i64 %20, 255
%22 = load i64, ptr %6, align 8
%23 = lshr i64 %22, 24
%24 = load i64, ptr %6, align 8
%25 = lshr i64 %24, 16
%26 = and i64 %25, 255
%27 = load i64, ptr %6, align 8
%28 = lshr i64 %27, 8
%29 = and i64 %28, 255
%30 = load i64, ptr %6, align 8
%31 = and i64 %30, 255
%32 = call i32 @printf(ptr noundef @.str, i64 noundef %19, i64 noundef %21, i64 noundef %23, i64 noundef %26, i64 noundef %29, i64 noundef %31)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2qekq9to.c'
source_filename = "/tmp/tmp2qekq9to.c"
target datalayout = "e-m:e-p270: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/tmp2qekq9to.c"
target datalayout = "e-m:e-p270: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/tmpssjzz_8u.c'
source_filename = "/tmp/tmpssjzz_8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0x\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %30
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %14
14: ; preds = %18, %12
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %6, align 8
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%29 = load i32, ptr %7, align 4
store i32 %29, ptr %3, align 4
br label %30
30: ; preds = %27, %11
%31 = load i32, ptr %3, align 4
ret i32 %31
}
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/tmpssjzz_8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0x\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %32
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %29
.lr.ph: ; preds = %12
br label %17
17: ; preds = %.lr.ph, %17
%18 = load ptr, ptr %6, align 8
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %29
29: ; preds = %._crit_edge, %12
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %3, align 4
br label %32
32: ; preds = %29, %11
%33 = load i32, ptr %3, align 4
ret i32 %33
}
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/tmp5qgvf77o.c'
source_filename = "/tmp/tmp5qgvf77o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_count() #0 {
ret i64 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5qgvf77o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func_count() #0 {
ret i64 1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpphs708cy.c'
source_filename = "/tmp/tmpphs708cy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @expr_struct_access(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call ptr (...) @expr_generic()
ret ptr %5
}
declare ptr @expr_generic(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpphs708cy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @expr_struct_access(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = call ptr (...) @expr_generic()
ret ptr %5
}
declare ptr @expr_generic(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplrjjrpnr.c'
source_filename = "/tmp/tmplrjjrpnr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @skip_seperator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %38
7: ; preds = %1
br label %8
8: ; preds = %33, %7
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %30
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 32
br i1 %17, label %28, label %18
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 9
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 10
br label %28
28: ; preds = %23, %18, %13
%29 = phi i1 [ true, %18 ], [ true, %13 ], [ %27, %23 ]
br label %30
30: ; preds = %28, %8
%31 = phi i1 [ false, %8 ], [ %29, %28 ]
br i1 %31, label %32, label %36
32: ; preds = %30
br label %33
33: ; preds = %32
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %3, align 8
br label %8, !llvm.loop !6
36: ; preds = %30
%37 = load ptr, ptr %3, align 8
store ptr %37, ptr %2, align 8
br label %38
38: ; preds = %36, %6
%39 = load ptr, ptr %2, align 8
ret ptr %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplrjjrpnr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @skip_seperator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store ptr null, ptr %2, align 8
br label %38
7: ; preds = %1
br label %8
8: ; preds = %33, %7
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %30
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 32
br i1 %17, label %28, label %18
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 9
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 10
br label %28
28: ; preds = %23, %18, %13
%29 = phi i1 [ true, %18 ], [ true, %13 ], [ %27, %23 ]
br label %30
30: ; preds = %28, %8
%31 = phi i1 [ false, %8 ], [ %29, %28 ]
br i1 %31, label %32, label %36
32: ; preds = %30
br label %33
33: ; preds = %32
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %3, align 8
br label %8, !llvm.loop !6
36: ; preds = %30
%37 = load ptr, ptr %3, align 8
store ptr %37, ptr %2, align 8
br label %38
38: ; preds = %36, %6
%39 = load ptr, ptr %2, align 8
ret ptr %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxflsjyyv.c'
source_filename = "/tmp/tmpxflsjyyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mandelbrot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
store i32 %7, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %19, %2
%9 = load i32, ptr %5, align 4
%10 = call double @cabs(i32 noundef %9)
%11 = fcmp olt double %10, 2.000000e+00
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %5, align 4
br label %8, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
ret i32 %26
}
declare double @cabs(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/tmpxflsjyyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mandelbrot(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
store i32 %7, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %19, %2
%9 = load i32, ptr %5, align 4
%10 = call double @cabs(i32 noundef %9)
%11 = fcmp olt double %10, 2.000000e+00
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
br i1 %18, label %19, label %25
19: ; preds = %17
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %5, align 4
br label %8, !llvm.loop !6
25: ; preds = %17
%26 = load i32, ptr %6, align 4
ret i32 %26
}
declare double @cabs(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/tmphf4vhv4u.c'
source_filename = "/tmp/tmphf4vhv4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @P_eval(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%24 = load ptr, ptr %11, align 8
store ptr %24, ptr %14, align 8
%25 = load ptr, ptr %14, align 8
%26 = load i32, ptr %12, align 4
%27 = mul nsw i32 2, %26
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, ptr %25, i64 %28
store ptr %29, ptr %13, align 8
%30 = load ptr, ptr %13, align 8
%31 = load i32, ptr %12, align 4
%32 = mul nsw i32 2, %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %30, i64 %33
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = load i32, ptr %12, align 4
%37 = mul nsw i32 2, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %35, i64 %38
store ptr %39, ptr %16, align 8
%40 = load ptr, ptr %16, align 8
%41 = load i32, ptr %12, align 4
%42 = mul nsw i32 2, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %40, i64 %43
store ptr %44, ptr %17, align 8
%45 = load ptr, ptr %17, align 8
%46 = load i32, ptr %12, align 4
%47 = mul nsw i32 2, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %45, i64 %48
store ptr %49, ptr %18, align 8
%50 = load ptr, ptr %18, align 8
%51 = load i32, ptr %12, align 4
%52 = mul nsw i32 2, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %50, i64 %53
store ptr %54, ptr %19, align 8
%55 = load i32, ptr %12, align 4
%56 = mul nsw i32 2, %55
store i32 %56, ptr %22, align 4
%57 = load i32, ptr %22, align 4
%58 = load ptr, ptr %19, align 8
%59 = call i32 @EvalPts(i32 noundef %57, ptr noundef %58)
store i32 0, ptr %20, align 4
br label %60
60: ; preds = %69, %6
%61 = load i32, ptr %20, align 4
%62 = load i32, ptr %22, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %72
64: ; preds = %60
%65 = load ptr, ptr %14, align 8
%66 = load i32, ptr %20, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
store double 0.000000e+00, ptr %68, align 8
br label %69
69: ; preds = %64
%70 = load i32, ptr %20, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %20, align 4
br label %60, !llvm.loop !6
72: ; preds = %60
%73 = load i32, ptr %7, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %102
75: ; preds = %72
store i32 0, ptr %20, align 4
br label %76
76: ; preds = %98, %75
%77 = load i32, ptr %20, align 4
%78 = load i32, ptr %22, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %101
80: ; preds = %76
%81 = load ptr, ptr %13, align 8
%82 = load i32, ptr %20, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %81, i64 %83
store double 0x3FE6A09E667F3BC8, ptr %84, align 8
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds double, ptr %85, i64 0
%87 = load double, ptr %86, align 8
%88 = load ptr, ptr %13, align 8
%89 = load i32, ptr %20, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
%93 = fmul double %87, %92
%94 = load ptr, ptr %10, align 8
%95 = load i32, ptr %20, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
store double %93, ptr %97, align 8
br label %98
98: ; preds = %80
%99 = load i32, ptr %20, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %20, align 4
br label %76, !llvm.loop !8
101: ; preds = %76
br label %131
102: ; preds = %72
%103 = load i32, ptr %7, align 4
%104 = load ptr, ptr %9, align 8
%105 = load i32, ptr %22, align 4
%106 = load ptr, ptr %13, align 8
%107 = call i32 @Pmm_L2(i32 noundef %103, ptr noundef %104, i32 noundef %105, ptr noundef %106)
%108 = load ptr, ptr %8, align 8
%109 = getelementptr inbounds double, ptr %108, i64 0
%110 = load double, ptr %109, align 8
store double %110, ptr %23, align 8
store i32 0, ptr %20, align 4
br label %111
111: ; preds = %127, %102
%112 = load i32, ptr %20, align 4
%113 = load i32, ptr %22, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %115, label %130
115: ; preds = %111
%116 = load double, ptr %23, align 8
%117 = load ptr, ptr %13, align 8
%118 = load i32, ptr %20, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %117, i64 %119
%121 = load double, ptr %120, align 8
%122 = fmul double %116, %121
%123 = load ptr, ptr %10, align 8
%124 = load i32, ptr %20, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %123, i64 %125
store double %122, ptr %126, align 8
br label %127
127: ; preds = %115
%128 = load i32, ptr %20, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %20, align 4
br label %111, !llvm.loop !9
130: ; preds = %111
br label %131
131: ; preds = %130, %101
store i32 0, ptr %20, align 4
br label %132
132: ; preds = %209, %131
%133 = load i32, ptr %20, align 4
%134 = load i32, ptr %12, align 4
%135 = load i32, ptr %7, align 4
%136 = sub nsw i32 %134, %135
%137 = sub nsw i32 %136, 1
%138 = icmp slt i32 %133, %137
br i1 %138, label %139, label %212
139: ; preds = %132
%140 = load i32, ptr %7, align 4
%141 = load i32, ptr %7, align 4
%142 = load i32, ptr %20, align 4
%143 = add nsw i32 %141, %142
%144 = call i32 @L2_cn(i32 noundef %140, i32 noundef %143)
%145 = load ptr, ptr %14, align 8
%146 = load ptr, ptr %15, align 8
%147 = load i32, ptr %22, align 4
%148 = call i32 @vec_mul(i32 noundef %144, ptr noundef %145, ptr noundef %146, i32 noundef %147)
%149 = load ptr, ptr %13, align 8
%150 = load ptr, ptr %19, align 8
%151 = load ptr, ptr %16, align 8
%152 = load i32, ptr %22, align 4
%153 = call i32 @vec_pt_mul(ptr noundef %149, ptr noundef %150, ptr noundef %151, i32 noundef %152)
%154 = load i32, ptr %7, align 4
%155 = load i32, ptr %7, align 4
%156 = load i32, ptr %20, align 4
%157 = add nsw i32 %155, %156
%158 = call i32 @L2_an(i32 noundef %154, i32 noundef %157)
%159 = load ptr, ptr %16, align 8
%160 = load ptr, ptr %17, align 8
%161 = load i32, ptr %22, align 4
%162 = call i32 @vec_mul(i32 noundef %158, ptr noundef %159, ptr noundef %160, i32 noundef %161)
%163 = load ptr, ptr %17, align 8
%164 = load ptr, ptr %15, align 8
%165 = load ptr, ptr %18, align 8
%166 = load i32, ptr %22, align 4
%167 = call i32 @vec_add(ptr noundef %163, ptr noundef %164, ptr noundef %165, i32 noundef %166)
%168 = load ptr, ptr %8, align 8
%169 = load i32, ptr %20, align 4
%170 = add nsw i32 %169, 1
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, ptr %168, i64 %171
%173 = load double, ptr %172, align 8
store double %173, ptr %23, align 8
store i32 0, ptr %21, align 4
br label %174
174: ; preds = %191, %139
%175 = load i32, ptr %21, align 4
%176 = load i32, ptr %22, align 4
%177 = icmp slt i32 %175, %176
br i1 %177, label %178, label %194
178: ; preds = %174
%179 = load double, ptr %23, align 8
%180 = load ptr, ptr %18, align 8
%181 = load i32, ptr %21, align 4
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, ptr %180, i64 %182
%184 = load double, ptr %183, align 8
%185 = load ptr, ptr %10, align 8
%186 = load i32, ptr %21, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, ptr %185, i64 %187
%189 = load double, ptr %188, align 8
%190 = call double @llvm.fmuladd.f64(double %179, double %184, double %189)
store double %190, ptr %188, align 8
br label %191
191: ; preds = %178
%192 = load i32, ptr %21, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %21, align 4
br label %174, !llvm.loop !10
194: ; preds = %174
%195 = load ptr, ptr %14, align 8
%196 = load ptr, ptr %13, align 8
%197 = load i32, ptr %22, align 4
%198 = sext i32 %197 to i64
%199 = mul i64 8, %198
%200 = trunc i64 %199 to i32
%201 = call i32 @memcpy(ptr noundef %195, ptr noundef %196, i32 noundef %200)
%202 = load ptr, ptr %13, align 8
%203 = load ptr, ptr %18, align 8
%204 = load i32, ptr %22, align 4
%205 = sext i32 %204 to i64
%206 = mul i64 8, %205
%207 = trunc i64 %206 to i32
%208 = call i32 @memcpy(ptr noundef %202, ptr noundef %203, i32 noundef %207)
br label %209
209: ; preds = %194
%210 = load i32, ptr %20, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %20, align 4
br label %132, !llvm.loop !11
212: ; preds = %132
ret void
}
declare i32 @EvalPts(i32 noundef, ptr noundef) #1
declare i32 @Pmm_L2(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @vec_mul(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @L2_cn(i32 noundef, i32 noundef) #1
declare i32 @vec_pt_mul(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @L2_an(i32 noundef, i32 noundef) #1
declare i32 @vec_add(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphf4vhv4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @P_eval(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%24 = load ptr, ptr %11, align 8
store ptr %24, ptr %14, align 8
%25 = load ptr, ptr %14, align 8
%26 = load i32, ptr %12, align 4
%27 = mul nsw i32 2, %26
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, ptr %25, i64 %28
store ptr %29, ptr %13, align 8
%30 = load ptr, ptr %13, align 8
%31 = load i32, ptr %12, align 4
%32 = mul nsw i32 2, %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, ptr %30, i64 %33
store ptr %34, ptr %15, align 8
%35 = load ptr, ptr %15, align 8
%36 = load i32, ptr %12, align 4
%37 = mul nsw i32 2, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %35, i64 %38
store ptr %39, ptr %16, align 8
%40 = load ptr, ptr %16, align 8
%41 = load i32, ptr %12, align 4
%42 = mul nsw i32 2, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %40, i64 %43
store ptr %44, ptr %17, align 8
%45 = load ptr, ptr %17, align 8
%46 = load i32, ptr %12, align 4
%47 = mul nsw i32 2, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %45, i64 %48
store ptr %49, ptr %18, align 8
%50 = load ptr, ptr %18, align 8
%51 = load i32, ptr %12, align 4
%52 = mul nsw i32 2, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %50, i64 %53
store ptr %54, ptr %19, align 8
%55 = load i32, ptr %12, align 4
%56 = mul nsw i32 2, %55
store i32 %56, ptr %22, align 4
%57 = load i32, ptr %22, align 4
%58 = load ptr, ptr %19, align 8
%59 = call i32 @EvalPts(i32 noundef %57, ptr noundef %58)
store i32 0, ptr %20, align 4
%60 = load i32, ptr %20, align 4
%61 = load i32, ptr %22, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph, label %74
.lr.ph: ; preds = %6
br label %63
63: ; preds = %.lr.ph, %68
%64 = load ptr, ptr %14, align 8
%65 = load i32, ptr %20, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double 0.000000e+00, ptr %67, align 8
br label %68
68: ; preds = %63
%69 = load i32, ptr %20, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %20, align 4
%71 = load i32, ptr %20, align 4
%72 = load i32, ptr %22, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %63, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %74
74: ; preds = %._crit_edge, %6
%75 = load i32, ptr %7, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %106
77: ; preds = %74
store i32 0, ptr %20, align 4
%78 = load i32, ptr %20, align 4
%79 = load i32, ptr %22, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %.lr.ph5, label %105
.lr.ph5: ; preds = %77
br label %81
81: ; preds = %.lr.ph5, %99
%82 = load ptr, ptr %13, align 8
%83 = load i32, ptr %20, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, ptr %82, i64 %84
store double 0x3FE6A09E667F3BC8, ptr %85, align 8
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds double, ptr %86, i64 0
%88 = load double, ptr %87, align 8
%89 = load ptr, ptr %13, align 8
%90 = load i32, ptr %20, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, ptr %89, i64 %91
%93 = load double, ptr %92, align 8
%94 = fmul double %88, %93
%95 = load ptr, ptr %10, align 8
%96 = load i32, ptr %20, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %95, i64 %97
store double %94, ptr %98, align 8
br label %99
99: ; preds = %81
%100 = load i32, ptr %20, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %20, align 4
%102 = load i32, ptr %20, align 4
%103 = load i32, ptr %22, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %81, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %99
br label %105
105: ; preds = %._crit_edge6, %77
br label %137
106: ; preds = %74
%107 = load i32, ptr %7, align 4
%108 = load ptr, ptr %9, align 8
%109 = load i32, ptr %22, align 4
%110 = load ptr, ptr %13, align 8
%111 = call i32 @Pmm_L2(i32 noundef %107, ptr noundef %108, i32 noundef %109, ptr noundef %110)
%112 = load ptr, ptr %8, align 8
%113 = getelementptr inbounds double, ptr %112, i64 0
%114 = load double, ptr %113, align 8
store double %114, ptr %23, align 8
store i32 0, ptr %20, align 4
%115 = load i32, ptr %20, align 4
%116 = load i32, ptr %22, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %.lr.ph2, label %136
.lr.ph2: ; preds = %106
br label %118
118: ; preds = %.lr.ph2, %130
%119 = load double, ptr %23, align 8
%120 = load ptr, ptr %13, align 8
%121 = load i32, ptr %20, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, ptr %120, i64 %122
%124 = load double, ptr %123, align 8
%125 = fmul double %119, %124
%126 = load ptr, ptr %10, align 8
%127 = load i32, ptr %20, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, ptr %126, i64 %128
store double %125, ptr %129, align 8
br label %130
130: ; preds = %118
%131 = load i32, ptr %20, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %20, align 4
%133 = load i32, ptr %20, align 4
%134 = load i32, ptr %22, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %118, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %130
br label %136
136: ; preds = %._crit_edge3, %106
br label %137
137: ; preds = %136, %105
store i32 0, ptr %20, align 4
%138 = load i32, ptr %20, align 4
%139 = load i32, ptr %12, align 4
%140 = load i32, ptr %7, align 4
%141 = sub nsw i32 %139, %140
%142 = sub nsw i32 %141, 1
%143 = icmp slt i32 %138, %142
br i1 %143, label %.lr.ph11, label %225
.lr.ph11: ; preds = %137
br label %144
144: ; preds = %.lr.ph11, %216
%145 = load i32, ptr %7, align 4
%146 = load i32, ptr %7, align 4
%147 = load i32, ptr %20, align 4
%148 = add nsw i32 %146, %147
%149 = call i32 @L2_cn(i32 noundef %145, i32 noundef %148)
%150 = load ptr, ptr %14, align 8
%151 = load ptr, ptr %15, align 8
%152 = load i32, ptr %22, align 4
%153 = call i32 @vec_mul(i32 noundef %149, ptr noundef %150, ptr noundef %151, i32 noundef %152)
%154 = load ptr, ptr %13, align 8
%155 = load ptr, ptr %19, align 8
%156 = load ptr, ptr %16, align 8
%157 = load i32, ptr %22, align 4
%158 = call i32 @vec_pt_mul(ptr noundef %154, ptr noundef %155, ptr noundef %156, i32 noundef %157)
%159 = load i32, ptr %7, align 4
%160 = load i32, ptr %7, align 4
%161 = load i32, ptr %20, align 4
%162 = add nsw i32 %160, %161
%163 = call i32 @L2_an(i32 noundef %159, i32 noundef %162)
%164 = load ptr, ptr %16, align 8
%165 = load ptr, ptr %17, align 8
%166 = load i32, ptr %22, align 4
%167 = call i32 @vec_mul(i32 noundef %163, ptr noundef %164, ptr noundef %165, i32 noundef %166)
%168 = load ptr, ptr %17, align 8
%169 = load ptr, ptr %15, align 8
%170 = load ptr, ptr %18, align 8
%171 = load i32, ptr %22, align 4
%172 = call i32 @vec_add(ptr noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171)
%173 = load ptr, ptr %8, align 8
%174 = load i32, ptr %20, align 4
%175 = add nsw i32 %174, 1
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, ptr %173, i64 %176
%178 = load double, ptr %177, align 8
store double %178, ptr %23, align 8
store i32 0, ptr %21, align 4
%179 = load i32, ptr %21, align 4
%180 = load i32, ptr %22, align 4
%181 = icmp slt i32 %179, %180
br i1 %181, label %.lr.ph8, label %201
.lr.ph8: ; preds = %144
br label %182
182: ; preds = %.lr.ph8, %195
%183 = load double, ptr %23, align 8
%184 = load ptr, ptr %18, align 8
%185 = load i32, ptr %21, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %184, i64 %186
%188 = load double, ptr %187, align 8
%189 = load ptr, ptr %10, align 8
%190 = load i32, ptr %21, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds double, ptr %189, i64 %191
%193 = load double, ptr %192, align 8
%194 = call double @llvm.fmuladd.f64(double %183, double %188, double %193)
store double %194, ptr %192, align 8
br label %195
195: ; preds = %182
%196 = load i32, ptr %21, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %21, align 4
%198 = load i32, ptr %21, align 4
%199 = load i32, ptr %22, align 4
%200 = icmp slt i32 %198, %199
br i1 %200, label %182, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %195
br label %201
201: ; preds = %._crit_edge9, %144
%202 = load ptr, ptr %14, align 8
%203 = load ptr, ptr %13, align 8
%204 = load i32, ptr %22, align 4
%205 = sext i32 %204 to i64
%206 = mul i64 8, %205
%207 = trunc i64 %206 to i32
%208 = call i32 @memcpy(ptr noundef %202, ptr noundef %203, i32 noundef %207)
%209 = load ptr, ptr %13, align 8
%210 = load ptr, ptr %18, align 8
%211 = load i32, ptr %22, align 4
%212 = sext i32 %211 to i64
%213 = mul i64 8, %212
%214 = trunc i64 %213 to i32
%215 = call i32 @memcpy(ptr noundef %209, ptr noundef %210, i32 noundef %214)
br label %216
216: ; preds = %201
%217 = load i32, ptr %20, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %20, align 4
%219 = load i32, ptr %20, align 4
%220 = load i32, ptr %12, align 4
%221 = load i32, ptr %7, align 4
%222 = sub nsw i32 %220, %221
%223 = sub nsw i32 %222, 1
%224 = icmp slt i32 %219, %223
br i1 %224, label %144, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %216
br label %225
225: ; preds = %._crit_edge12, %137
ret void
}
declare i32 @EvalPts(i32 noundef, ptr noundef) #1
declare i32 @Pmm_L2(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @vec_mul(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @L2_cn(i32 noundef, i32 noundef) #1
declare i32 @vec_pt_mul(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @L2_an(i32 noundef, i32 noundef) #1
declare i32 @vec_add(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpvsp1nt3q.c'
source_filename = "/tmp/tmpvsp1nt3q.c"
target datalayout = "e-m:e-p270: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/tmpvsp1nt3q.c"
target datalayout = "e-m:e-p270: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/tmp8ts1ci9n.c'
source_filename = "/tmp/tmp8ts1ci9n.c"
target datalayout = "e-m:e-p270: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/tmp8ts1ci9n.c"
target datalayout = "e-m:e-p270: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/tmp4b76togs.c'
source_filename = "/tmp/tmp4b76togs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%[^\0A]s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [160 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %31, %0
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %34
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
switch i32 %17, label %30 [
i32 97, label %18
i32 100, label %18
i32 103, label %18
i32 106, label %18
i32 109, label %18
i32 112, label %18
i32 116, label %18
i32 119, label %18
i32 32, label %18
i32 98, label %21
i32 101, label %21
i32 104, label %21
i32 107, label %21
i32 110, label %21
i32 113, label %21
i32 117, label %21
i32 120, label %21
i32 99, label %24
i32 102, label %24
i32 105, label %24
i32 108, label %24
i32 111, label %24
i32 114, label %24
i32 118, label %24
i32 121, label %24
i32 115, label %27
i32 122, label %27
]
18: ; preds = %12, %12, %12, %12, %12, %12, %12, %12, %12
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
br label %30
21: ; preds = %12, %12, %12, %12, %12, %12, %12, %12
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 2
store i32 %23, ptr %4, align 4
br label %30
24: ; preds = %12, %12, %12, %12, %12, %12, %12, %12
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 3
store i32 %26, ptr %4, align 4
br label %30
27: ; preds = %12, %12
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 4
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %12, %27, %24, %21, %18
br label %31
31: ; preds = %30
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
br label %7, !llvm.loop !6
34: ; preds = %7
%35 = load i32, ptr %4, align 4
%36 = call i32 @printf(ptr noundef @.str.1, i32 noundef %35)
%37 = load i32, ptr %1, align 4
ret i32 %37
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4b76togs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%[^\0A]s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [160 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %30
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [160 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
switch i32 %16, label %29 [
i32 97, label %17
i32 100, label %17
i32 103, label %17
i32 106, label %17
i32 109, label %17
i32 112, label %17
i32 116, label %17
i32 119, label %17
i32 32, label %17
i32 98, label %20
i32 101, label %20
i32 104, label %20
i32 107, label %20
i32 110, label %20
i32 113, label %20
i32 117, label %20
i32 120, label %20
i32 99, label %23
i32 102, label %23
i32 105, label %23
i32 108, label %23
i32 111, label %23
i32 114, label %23
i32 118, label %23
i32 121, label %23
i32 115, label %26
i32 122, label %26
]
17: ; preds = %11, %11, %11, %11, %11, %11, %11, %11, %11
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %29
20: ; preds = %11, %11, %11, %11, %11, %11, %11, %11
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 2
store i32 %22, ptr %4, align 4
br label %29
23: ; preds = %11, %11, %11, %11, %11, %11, %11, %11
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 3
store i32 %25, ptr %4, align 4
br label %29
26: ; preds = %11, %11
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %26, %23, %20, %17, %11
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = call i32 @strlen(ptr noundef %8)
%35 = icmp slt i32 %33, %34
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %0
%37 = load i32, ptr %4, align 4
%38 = call i32 @printf(ptr noundef @.str.1, i32 noundef %37)
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprlj0y6w_.c'
source_filename = "/tmp/tmprlj0y6w_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sin\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"/* This file was generated by libavcodec/costablegen */\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"#include \22libavcodec/fft.h\22\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%s(%i) = {\0A \00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"SINTABLE\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"COSTABLE\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c" %.18e,\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"\0A \00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c" %.18e\0A};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br label %22
22: ; preds = %15, %2
%23 = phi i1 [ false, %2 ], [ %21, %15 ]
%24 = zext i1 %23 to i32
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
%27 = zext i1 %26 to i64
%28 = select i1 %26, ptr @sin, ptr @cos
store ptr %28, ptr %9, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 4, ptr %6, align 4
br label %31
31: ; preds = %113, %22
%32 = load i32, ptr %6, align 4
%33 = icmp sle i32 %32, 16
br i1 %33, label %34, label %116
34: ; preds = %31
%35 = load i32, ptr %6, align 4
%36 = shl i32 1, %35
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %10, align 4
%38 = sitofp i32 %37 to double
%39 = fdiv double 0x401921FB54442D18, %38
store double %39, ptr %11, align 8
%40 = load i32, ptr %8, align 4
%41 = icmp ne i32 %40, 0
%42 = zext i1 %41 to i64
%43 = select i1 %41, ptr @.str.4, ptr @.str.5
%44 = load i32, ptr %10, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %43, i32 noundef %44)
store i32 0, ptr %7, align 4
br label %46
46: ; preds = %92, %34
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %10, align 4
%49 = sdiv i32 %48, 2
%50 = sub nsw i32 %49, 1
%51 = icmp slt i32 %47, %50
br i1 %51, label %52, label %95
52: ; preds = %46
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %10, align 4
%55 = sdiv i32 %54, 4
%56 = icmp sgt i32 %53, %55
br i1 %56, label %57, label %62
57: ; preds = %52
%58 = load i32, ptr %10, align 4
%59 = sdiv i32 %58, 2
%60 = load i32, ptr %7, align 4
%61 = sub nsw i32 %59, %60
br label %64
62: ; preds = %52
%63 = load i32, ptr %7, align 4
br label %64
64: ; preds = %62, %57
%65 = phi i32 [ %61, %57 ], [ %63, %62 ]
store i32 %65, ptr %12, align 4
%66 = load i32, ptr %8, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %78
68: ; preds = %64
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %10, align 4
%71 = sdiv i32 %70, 4
%72 = icmp sge i32 %69, %71
br i1 %72, label %73, label %78
73: ; preds = %68
%74 = load i32, ptr %10, align 4
%75 = sdiv i32 %74, 4
%76 = load i32, ptr %7, align 4
%77 = sub nsw i32 %75, %76
store i32 %77, ptr %12, align 4
br label %78
78: ; preds = %73, %68, %64
%79 = load ptr, ptr %9, align 8
%80 = load i32, ptr %12, align 4
%81 = sitofp i32 %80 to double
%82 = load double, ptr %11, align 8
%83 = fmul double %81, %82
%84 = call double %79(double noundef %83)
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %84)
%86 = load i32, ptr %7, align 4
%87 = and i32 %86, 3
%88 = icmp eq i32 %87, 3
br i1 %88, label %89, label %91
89: ; preds = %78
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %91
91: ; preds = %89, %78
br label %92
92: ; preds = %91
%93 = load i32, ptr %7, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %7, align 4
br label %46, !llvm.loop !6
95: ; preds = %46
%96 = load ptr, ptr %9, align 8
%97 = load i32, ptr %8, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %107
99: ; preds = %95
%100 = load i32, ptr %10, align 4
%101 = sdiv i32 %100, 4
%102 = sub nsw i32 %101, 1
%103 = sub nsw i32 0, %102
%104 = sitofp i32 %103 to double
%105 = load double, ptr %11, align 8
%106 = fmul double %104, %105
br label %109
107: ; preds = %95
%108 = load double, ptr %11, align 8
br label %109
109: ; preds = %107, %99
%110 = phi double [ %106, %99 ], [ %108, %107 ]
%111 = call double %96(double noundef %110)
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %111)
br label %113
113: ; preds = %109
%114 = load i32, ptr %6, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %6, align 4
br label %31, !llvm.loop !8
116: ; preds = %31
ret i32 0
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprlj0y6w_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sin\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"/* This file was generated by libavcodec/costablegen */\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"#include \22libavcodec/fft.h\22\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%s(%i) = {\0A \00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"SINTABLE\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"COSTABLE\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c" %.18e,\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"\0A \00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c" %.18e\0A};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br label %22
22: ; preds = %15, %2
%23 = phi i1 [ false, %2 ], [ %21, %15 ]
%24 = zext i1 %23 to i32
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp ne i32 %25, 0
%27 = zext i1 %26 to i64
%28 = select i1 %26, ptr @sin, ptr @cos
store ptr %28, ptr %9, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 4, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp sle i32 %31, 16
br i1 %32, label %.lr.ph2, label %121
.lr.ph2: ; preds = %22
br label %33
33: ; preds = %.lr.ph2, %116
%34 = load i32, ptr %6, align 4
%35 = shl i32 1, %34
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %10, align 4
%37 = sitofp i32 %36 to double
%38 = fdiv double 0x401921FB54442D18, %37
store double %38, ptr %11, align 8
%39 = load i32, ptr %8, align 4
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, ptr @.str.4, ptr @.str.5
%43 = load i32, ptr %10, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %42, i32 noundef %43)
store i32 0, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %10, align 4
%47 = sdiv i32 %46, 2
%48 = sub nsw i32 %47, 1
%49 = icmp slt i32 %45, %48
br i1 %49, label %.lr.ph, label %98
.lr.ph: ; preds = %33
br label %50
50: ; preds = %.lr.ph, %90
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %10, align 4
%53 = sdiv i32 %52, 4
%54 = icmp sgt i32 %51, %53
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = load i32, ptr %10, align 4
%57 = sdiv i32 %56, 2
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %57, %58
br label %62
60: ; preds = %50
%61 = load i32, ptr %7, align 4
br label %62
62: ; preds = %60, %55
%63 = phi i32 [ %59, %55 ], [ %61, %60 ]
store i32 %63, ptr %12, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %76
66: ; preds = %62
%67 = load i32, ptr %7, align 4
%68 = load i32, ptr %10, align 4
%69 = sdiv i32 %68, 4
%70 = icmp sge i32 %67, %69
br i1 %70, label %71, label %76
71: ; preds = %66
%72 = load i32, ptr %10, align 4
%73 = sdiv i32 %72, 4
%74 = load i32, ptr %7, align 4
%75 = sub nsw i32 %73, %74
store i32 %75, ptr %12, align 4
br label %76
76: ; preds = %71, %66, %62
%77 = load ptr, ptr %9, align 8
%78 = load i32, ptr %12, align 4
%79 = sitofp i32 %78 to double
%80 = load double, ptr %11, align 8
%81 = fmul double %79, %80
%82 = call double %77(double noundef %81)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %82)
%84 = load i32, ptr %7, align 4
%85 = and i32 %84, 3
%86 = icmp eq i32 %85, 3
br i1 %86, label %87, label %89
87: ; preds = %76
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %89
89: ; preds = %87, %76
br label %90
90: ; preds = %89
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %7, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %10, align 4
%95 = sdiv i32 %94, 2
%96 = sub nsw i32 %95, 1
%97 = icmp slt i32 %93, %96
br i1 %97, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %90
br label %98
98: ; preds = %._crit_edge, %33
%99 = load ptr, ptr %9, align 8
%100 = load i32, ptr %8, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %110
102: ; preds = %98
%103 = load i32, ptr %10, align 4
%104 = sdiv i32 %103, 4
%105 = sub nsw i32 %104, 1
%106 = sub nsw i32 0, %105
%107 = sitofp i32 %106 to double
%108 = load double, ptr %11, align 8
%109 = fmul double %107, %108
br label %112
110: ; preds = %98
%111 = load double, ptr %11, align 8
br label %112
112: ; preds = %110, %102
%113 = phi double [ %109, %102 ], [ %111, %110 ]
%114 = call double %99(double noundef %113)
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %114)
br label %116
116: ; preds = %112
%117 = load i32, ptr %6, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %6, align 4
%119 = load i32, ptr %6, align 4
%120 = icmp sle i32 %119, 16
br i1 %120, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %116
br label %121
121: ; preds = %._crit_edge3, %22
ret i32 0
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxreprw98.c'
source_filename = "/tmp/tmpxreprw98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remainder(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fdiv double %7, %8
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = call double @llvm.trunc.f64(double %10)
store double %11, ptr %6, align 8
%12 = load double, ptr %6, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = call double @llvm.fabs.f64(double %14)
%16 = fcmp oge double %15, 5.000000e-01
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load double, ptr %6, align 8
%19 = fadd double %18, 1.000000e+00
store double %19, ptr %6, align 8
br label %20
20: ; preds = %17, %2
%21 = load double, ptr %3, align 8
%22 = load double, ptr %6, align 8
%23 = load double, ptr %4, align 8
%24 = fneg double %22
%25 = call double @llvm.fmuladd.f64(double %24, double %23, double %21)
ret double %25
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.trunc.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxreprw98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @remainder(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fdiv double %7, %8
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = call double @llvm.trunc.f64(double %10)
store double %11, ptr %6, align 8
%12 = load double, ptr %6, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = call double @llvm.fabs.f64(double %14)
%16 = fcmp oge double %15, 5.000000e-01
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load double, ptr %6, align 8
%19 = fadd double %18, 1.000000e+00
store double %19, ptr %6, align 8
br label %20
20: ; preds = %17, %2
%21 = load double, ptr %3, align 8
%22 = load double, ptr %6, align 8
%23 = load double, ptr %4, align 8
%24 = fneg double %22
%25 = call double @llvm.fmuladd.f64(double %24, double %23, double %21)
ret double %25
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.trunc.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp768yje2a.c'
source_filename = "/tmp/tmp768yje2a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INP.TXT\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%hd\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"OUT.TXT\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca [10000 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 10000, i1 false)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %3)
store i16 0, ptr %4, align 2
br label %10
10: ; preds = %31, %0
%11 = load i16, ptr %4, align 2
%12 = sext i16 %11 to i32
%13 = load i16, ptr %3, align 2
%14 = sext i16 %13 to i32
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %34
16: ; preds = %10
%17 = load ptr, ptr %2, align 8
%18 = call i32 @fscanf(ptr noundef %17, ptr noundef @.str.2, ptr noundef %5)
%19 = load i16, ptr %5, align 2
%20 = sext i16 %19 to i32
%21 = load i16, ptr %3, align 2
%22 = sext i16 %21 to i32
%23 = icmp sle i32 %20, %22
br i1 %23, label %24, label %30
24: ; preds = %16
%25 = load i16, ptr %5, align 2
%26 = sext i16 %25 to i32
%27 = sub nsw i32 %26, 1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 %28
store i8 1, ptr %29, align 1
br label %30
30: ; preds = %24, %16
br label %31
31: ; preds = %30
%32 = load i16, ptr %4, align 2
%33 = add i16 %32, 1
store i16 %33, ptr %4, align 2
br label %10, !llvm.loop !6
34: ; preds = %10
%35 = load ptr, ptr %2, align 8
%36 = call i32 @fclose(ptr noundef %35)
store i16 1, ptr %5, align 2
store i16 0, ptr %4, align 2
br label %37
37: ; preds = %51, %34
%38 = load i16, ptr %4, align 2
%39 = sext i16 %38 to i32
%40 = load i16, ptr %3, align 2
%41 = sext i16 %40 to i32
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %54
43: ; preds = %37
%44 = load i16, ptr %4, align 2
%45 = sext i16 %44 to i64
%46 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = icmp ne i8 %47, 0
br i1 %48, label %50, label %49
49: ; preds = %43
store i16 0, ptr %5, align 2
br label %54
50: ; preds = %43
br label %51
51: ; preds = %50
%52 = load i16, ptr %4, align 2
%53 = add i16 %52, 1
store i16 %53, ptr %4, align 2
br label %37, !llvm.loop !8
54: ; preds = %49, %37
%55 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %55, ptr %2, align 8
%56 = load i16, ptr %5, align 2
%57 = sext i16 %56 to i32
%58 = icmp ne i32 %57, 0
%59 = zext i1 %58 to i64
%60 = select i1 %58, ptr @.str.5, ptr @.str.6
%61 = load ptr, ptr %2, align 8
%62 = call i32 @fputs(ptr noundef %60, ptr noundef %61)
%63 = load ptr, ptr %2, align 8
%64 = call i32 @fclose(ptr noundef %63)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp768yje2a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INP.TXT\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%hd\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"OUT.TXT\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca [10000 x i8], align 16
store i32 0, ptr %1, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 10000, i1 false)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @fscanf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %3)
store i16 0, ptr %4, align 2
%10 = load i16, ptr %4, align 2
%11 = sext i16 %10 to i32
%12 = load i16, ptr %3, align 2
%13 = sext i16 %12 to i32
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph, label %38
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %30
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fscanf(ptr noundef %16, ptr noundef @.str.2, ptr noundef %5)
%18 = load i16, ptr %5, align 2
%19 = sext i16 %18 to i32
%20 = load i16, ptr %3, align 2
%21 = sext i16 %20 to i32
%22 = icmp sle i32 %19, %21
br i1 %22, label %23, label %29
23: ; preds = %15
%24 = load i16, ptr %5, align 2
%25 = sext i16 %24 to i32
%26 = sub nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 %27
store i8 1, ptr %28, align 1
br label %29
29: ; preds = %23, %15
br label %30
30: ; preds = %29
%31 = load i16, ptr %4, align 2
%32 = add i16 %31, 1
store i16 %32, ptr %4, align 2
%33 = load i16, ptr %4, align 2
%34 = sext i16 %33 to i32
%35 = load i16, ptr %3, align 2
%36 = sext i16 %35 to i32
%37 = icmp slt i32 %34, %36
br i1 %37, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %38
38: ; preds = %._crit_edge, %0
%39 = load ptr, ptr %2, align 8
%40 = call i32 @fclose(ptr noundef %39)
store i16 1, ptr %5, align 2
store i16 0, ptr %4, align 2
%41 = load i16, ptr %4, align 2
%42 = sext i16 %41 to i32
%43 = load i16, ptr %3, align 2
%44 = sext i16 %43 to i32
%45 = icmp slt i32 %42, %44
br i1 %45, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %38
br label %46
46: ; preds = %.lr.ph2, %54
%47 = load i16, ptr %4, align 2
%48 = sext i16 %47 to i64
%49 = getelementptr inbounds [10000 x i8], ptr %6, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = icmp ne i8 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %46
store i16 0, ptr %5, align 2
br label %62
53: ; preds = %46
br label %54
54: ; preds = %53
%55 = load i16, ptr %4, align 2
%56 = add i16 %55, 1
store i16 %56, ptr %4, align 2
%57 = load i16, ptr %4, align 2
%58 = sext i16 %57 to i32
%59 = load i16, ptr %3, align 2
%60 = sext i16 %59 to i32
%61 = icmp slt i32 %58, %60
br i1 %61, label %46, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %54
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %38
br label %62
62: ; preds = %.loopexit, %52
%63 = call ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
store ptr %63, ptr %2, align 8
%64 = load i16, ptr %5, align 2
%65 = sext i16 %64 to i32
%66 = icmp ne i32 %65, 0
%67 = zext i1 %66 to i64
%68 = select i1 %66, ptr @.str.5, ptr @.str.6
%69 = load ptr, ptr %2, align 8
%70 = call i32 @fputs(ptr noundef %68, ptr noundef %69)
%71 = load ptr, ptr %2, align 8
%72 = call i32 @fclose(ptr noundef %71)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpoowtaavv.c'
source_filename = "/tmp/tmpoowtaavv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Usage: %s trusted_image monitored_image\0A\00", align 1
@.str.1 = private unnamed_addr constant [81 x i8] c"==================Get Process Offset from the Trusted OS=======================\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Unable to open dump file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
br label %36
14: ; preds = %2
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.2)
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %29, label %24
24: ; preds = %16
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %37
29: ; preds = %16
%30 = load ptr, ptr %6, align 8
%31 = call i32 @get_win_offsets(ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @print_next_win_process(ptr noundef %32)
%34 = load ptr, ptr %6, align 8
%35 = call i32 @fclose(ptr noundef %34)
br label %36
36: ; preds = %29, %9
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %36, %24
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @get_win_offsets(ptr noundef) #1
declare i32 @print_next_win_process(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoowtaavv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Usage: %s trusted_image monitored_image\0A\00", align 1
@.str.1 = private unnamed_addr constant [81 x i8] c"==================Get Process Offset from the Trusted OS=======================\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Unable to open dump file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
br label %36
14: ; preds = %2
br label %15
15: ; preds = %14
br label %16
16: ; preds = %15
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.2)
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %29, label %24
24: ; preds = %16
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %37
29: ; preds = %16
%30 = load ptr, ptr %6, align 8
%31 = call i32 @get_win_offsets(ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @print_next_win_process(ptr noundef %32)
%34 = load ptr, ptr %6, align 8
%35 = call i32 @fclose(ptr noundef %34)
br label %36
36: ; preds = %29, %9
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %36, %24
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @get_win_offsets(ptr noundef) #1
declare i32 @print_next_win_process(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz5k9rool.c'
source_filename = "/tmp/tmpz5k9rool.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @popcount(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = and i64 %4, -6148914691236517206
%6 = lshr i64 %5, 1
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = sub i64 %8, %6
%10 = trunc i64 %9 to i32
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = and i64 %12, 3689348814741910323
%14 = load i32, ptr %2, align 4
%15 = ashr i32 %14, 2
%16 = sext i32 %15 to i64
%17 = and i64 %16, 3689348814741910323
%18 = add nsw i64 %13, %17
%19 = trunc i64 %18 to i32
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = ashr i32 %21, 4
%23 = add nsw i32 %20, %22
%24 = sext i32 %23 to i64
%25 = and i64 %24, 1085102592571150095
%26 = trunc i64 %25 to i32
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %2, align 4
%28 = sext i32 %27 to i64
%29 = mul nsw i64 %28, 72340172838076673
%30 = ashr i64 %29, 56
%31 = trunc i64 %30 to i8
ret i8 %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz5k9rool.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @popcount(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sext i32 %3 to i64
%5 = and i64 %4, -6148914691236517206
%6 = lshr i64 %5, 1
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = sub i64 %8, %6
%10 = trunc i64 %9 to i32
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = and i64 %12, 3689348814741910323
%14 = load i32, ptr %2, align 4
%15 = ashr i32 %14, 2
%16 = sext i32 %15 to i64
%17 = and i64 %16, 3689348814741910323
%18 = add nsw i64 %13, %17
%19 = trunc i64 %18 to i32
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = ashr i32 %21, 4
%23 = add nsw i32 %20, %22
%24 = sext i32 %23 to i64
%25 = and i64 %24, 1085102592571150095
%26 = trunc i64 %25 to i32
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %2, align 4
%28 = sext i32 %27 to i64
%29 = mul nsw i64 %28, 72340172838076673
%30 = ashr i64 %29, 56
%31 = trunc i64 %30 to i8
ret i8 %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo9b3_l6e.c'
source_filename = "/tmp/tmpo9b3_l6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"echec de socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"echec de setsockopt(SO_REUSEADDR)\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"echec de bind\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"echec de listen\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [30 x i8] c"Serveur actif sur le port %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cree_socket_ecoute(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr @PF_INET, align 4
%7 = load i32, ptr @SOCK_STREAM, align 4
%8 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @fatal_error(ptr noundef @.str)
br label %13
13: ; preds = %11, %1
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr @SOL_SOCKET, align 4
%16 = load i32, ptr @SO_REUSEADDR, align 4
%17 = call i32 @setsockopt(i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %5, i32 noundef 4)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @fatal_error(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %13
%22 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @htons(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @INADDR_ANY, align 4
%29 = call i32 @htonl(i32 noundef %28)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i32 0, i32 0
store i32 %29, ptr %31, align 4
%32 = load i32, ptr %3, align 4
%33 = call i32 @bind(i32 noundef %32, ptr noundef %4, i32 noundef 12)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %21
%36 = call i32 @fatal_error(ptr noundef @.str.2)
br label %37
37: ; preds = %35, %21
%38 = load i32, ptr %3, align 4
%39 = call i32 @listen(i32 noundef %38, i32 noundef 15)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @fatal_error(ptr noundef @.str.3)
br label %43
43: ; preds = %41, %37
%44 = load i32, ptr @stderr, align 4
%45 = load i32, ptr %2, align 4
%46 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str.4, i32 noundef %45)
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal_error(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo9b3_l6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"echec de socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"echec de setsockopt(SO_REUSEADDR)\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"echec de bind\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"echec de listen\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [30 x i8] c"Serveur actif sur le port %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cree_socket_ecoute(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr @PF_INET, align 4
%7 = load i32, ptr @SOCK_STREAM, align 4
%8 = call i32 @socket(i32 noundef %6, i32 noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @fatal_error(ptr noundef @.str)
br label %13
13: ; preds = %11, %1
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr @SOL_SOCKET, align 4
%16 = load i32, ptr @SO_REUSEADDR, align 4
%17 = call i32 @setsockopt(i32 noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %5, i32 noundef 4)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 @fatal_error(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %13
%22 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%23 = load i32, ptr @AF_INET, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 2
store i32 %23, ptr %24, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @htons(i32 noundef %25)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 1
store i32 %26, ptr %27, align 4
%28 = load i32, ptr @INADDR_ANY, align 4
%29 = call i32 @htonl(i32 noundef %28)
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i32 0, i32 0
store i32 %29, ptr %31, align 4
%32 = load i32, ptr %3, align 4
%33 = call i32 @bind(i32 noundef %32, ptr noundef %4, i32 noundef 12)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %37
35: ; preds = %21
%36 = call i32 @fatal_error(ptr noundef @.str.2)
br label %37
37: ; preds = %35, %21
%38 = load i32, ptr %3, align 4
%39 = call i32 @listen(i32 noundef %38, i32 noundef 15)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 @fatal_error(ptr noundef @.str.3)
br label %43
43: ; preds = %41, %37
%44 = load i32, ptr @stderr, align 4
%45 = load i32, ptr %2, align 4
%46 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str.4, i32 noundef %45)
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal_error(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplz40spuy.c'
source_filename = "/tmp/tmplz40spuy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [18 x i8] c"just another test\00", align 16
@.str = private unnamed_addr constant [18 x i8] c"char %d\0A char %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [18 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.str, i64 18, i1 false)
%5 = getelementptr inbounds [18 x i8], ptr %2, i64 1
%6 = getelementptr inbounds [18 x i8], ptr %5, i64 0, i64 0
%7 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%8 = ptrtoint ptr %6 to i64
%9 = ptrtoint ptr %7 to i64
%10 = sub i64 %8, %9
%11 = trunc i64 %10 to i32
store i32 %11, ptr %3, align 4
%12 = getelementptr inbounds [18 x i8], ptr %2, i64 1
%13 = getelementptr inbounds [18 x i8], ptr %12, i64 0, i64 0
%14 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %19, i32 noundef %20)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, 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/tmplz40spuy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.str = private unnamed_addr constant [18 x i8] c"just another test\00", align 16
@.str = private unnamed_addr constant [18 x i8] c"char %d\0A char %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [18 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.str, i64 18, i1 false)
%5 = getelementptr inbounds [18 x i8], ptr %2, i64 1
%6 = getelementptr inbounds [18 x i8], ptr %5, i64 0, i64 0
%7 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%8 = ptrtoint ptr %6 to i64
%9 = ptrtoint ptr %7 to i64
%10 = sub i64 %8, %9
%11 = trunc i64 %10 to i32
store i32 %11, ptr %3, align 4
%12 = getelementptr inbounds [18 x i8], ptr %2, i64 1
%13 = getelementptr inbounds [18 x i8], ptr %12, i64 0, i64 0
%14 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = call i32 @printf(ptr noundef @.str, i32 noundef %19, i32 noundef %20)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, 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/tmptxe70hw8.c'
source_filename = "/tmp/tmptxe70hw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array_different_types() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 2
store ptr %4, ptr %2, align 8
%5 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 5
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp ult ptr %11, %12
%14 = zext i1 %13 to i32
%15 = call i32 @clang_analyzer_eval(i32 noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %3, align 8
%18 = icmp ule ptr %16, %17
%19 = zext i1 %18 to i32
%20 = call i32 @clang_analyzer_eval(i32 noundef %19)
ret void
}
declare i32 @clang_analyzer_eval(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/tmptxe70hw8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array_different_types() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 2
store ptr %4, ptr %2, align 8
%5 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 5
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp ult ptr %11, %12
%14 = zext i1 %13 to i32
%15 = call i32 @clang_analyzer_eval(i32 noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %3, align 8
%18 = icmp ule ptr %16, %17
%19 = zext i1 %18 to i32
%20 = call i32 @clang_analyzer_eval(i32 noundef %19)
ret void
}
declare i32 @clang_analyzer_eval(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/tmpejpk06kc.c'
source_filename = "/tmp/tmpejpk06kc.c"
target datalayout = "e-m:e-p270: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/tmpejpk06kc.c"
target datalayout = "e-m:e-p270: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/tmptlys47l7.c'
source_filename = "/tmp/tmptlys47l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@LOG_CRIT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"Could not open a unix domain socket\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [50 x i8] c"Could not connect to requested unix domain socket\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"Could not send credentials across unix domain socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handleNewConnection(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca %struct.sockaddr_un, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i8 100, ptr %8, align 1
%12 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 8)
%13 = load i32, ptr @AF_UNIX, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %11, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load i32, ptr @LOG_CRIT, align 4
%19 = call i32 @syslog(i32 noundef %18, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %47
20: ; preds = %3
%21 = load i32, ptr @AF_UNIX, align 4
%22 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @strncpy(i32 noundef %24, ptr noundef %25, i32 noundef %27)
store i32 8, ptr %10, align 4
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = call i64 @connect(i32 noundef %29, ptr noundef %9, i32 noundef %30)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %20
%34 = load i32, ptr @LOG_WARNING, align 4
%35 = call i32 @syslog(i32 noundef %34, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %47
36: ; preds = %20
%37 = load i32, ptr %11, align 4
%38 = call i64 @send(i32 noundef %37, ptr noundef %8, i32 noundef 1, i32 noundef 0)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @LOG_ERR, align 4
%42 = call i32 @syslog(i32 noundef %41, ptr noundef @.str.2)
store i32 -1, ptr %4, align 4
br label %47
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = load ptr, ptr %7, align 8
%46 = call i32 @FD_SET(i32 noundef %44, ptr noundef %45)
store i32 0, ptr %4, align 4
br label %47
47: ; preds = %43, %40, %33, %17
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @FD_SET(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/tmptlys47l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_un = type { i32, i32 }
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@LOG_CRIT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"Could not open a unix domain socket\00", align 1
@LOG_WARNING = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [50 x i8] c"Could not connect to requested unix domain socket\00", align 1
@LOG_ERR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [53 x i8] c"Could not send credentials across unix domain socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handleNewConnection(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca %struct.sockaddr_un, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i8 100, ptr %8, align 1
%12 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 8)
%13 = load i32, ptr @AF_UNIX, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = call i32 @socket(i32 noundef %13, i32 noundef %14, i32 noundef 0)
store i32 %15, ptr %11, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load i32, ptr @LOG_CRIT, align 4
%19 = call i32 @syslog(i32 noundef %18, ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %47
20: ; preds = %3
%21 = load i32, ptr @AF_UNIX, align 4
%22 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds %struct.sockaddr_un, ptr %9, i32 0, i32 0
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = call i32 @strncpy(i32 noundef %24, ptr noundef %25, i32 noundef %27)
store i32 8, ptr %10, align 4
%29 = load i32, ptr %11, align 4
%30 = load i32, ptr %10, align 4
%31 = call i64 @connect(i32 noundef %29, ptr noundef %9, i32 noundef %30)
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %20
%34 = load i32, ptr @LOG_WARNING, align 4
%35 = call i32 @syslog(i32 noundef %34, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %47
36: ; preds = %20
%37 = load i32, ptr %11, align 4
%38 = call i64 @send(i32 noundef %37, ptr noundef %8, i32 noundef 1, i32 noundef 0)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @LOG_ERR, align 4
%42 = call i32 @syslog(i32 noundef %41, ptr noundef @.str.2)
store i32 -1, ptr %4, align 4
br label %47
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = load ptr, ptr %7, align 8
%46 = call i32 @FD_SET(i32 noundef %44, ptr noundef %45)
store i32 0, ptr %4, align 4
br label %47
47: ; preds = %43, %40, %33, %17
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @FD_SET(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/tmp07629_vc.c'
source_filename = "/tmp/tmp07629_vc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s:Hello World\0A\00", align 1
@.str.1 = private unnamed_addr constant [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OrangeTide/build/refs/heads/master/example/g/g1.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g1() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp07629_vc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s:Hello World\0A\00", align 1
@.str.1 = private unnamed_addr constant [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OrangeTide/build/refs/heads/master/example/g/g1.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g1() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgz27hubx.c'
source_filename = "/tmp/tmpgz27hubx.c"
target datalayout = "e-m:e-p270: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/tmpgz27hubx.c"
target datalayout = "e-m:e-p270: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/tmp14h2k7aq.c'
source_filename = "/tmp/tmp14h2k7aq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ComparatorIntUnregister(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
%7 = shl i32 1, %6
%8 = xor i32 %7, -1
%9 = sext i32 %8 to i64
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, %9
store volatile i64 %14, ptr %12, align 8
%15 = load i64, ptr %4, align 8
%16 = add i64 41, %15
%17 = trunc i64 %16 to i32
%18 = call i32 @IntDisable(i32 noundef %17)
%19 = load i64, ptr %4, align 8
%20 = add i64 41, %19
%21 = trunc i64 %20 to i32
%22 = call i32 @IntUnregister(i32 noundef %21)
ret void
}
declare i32 @IntDisable(i32 noundef) #1
declare i32 @IntUnregister(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/tmp14h2k7aq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ComparatorIntUnregister(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
%7 = shl i32 1, %6
%8 = xor i32 %7, -1
%9 = sext i32 %8 to i64
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 8
%12 = inttoptr i64 %11 to ptr
%13 = load volatile i64, ptr %12, align 8
%14 = and i64 %13, %9
store volatile i64 %14, ptr %12, align 8
%15 = load i64, ptr %4, align 8
%16 = add i64 41, %15
%17 = trunc i64 %16 to i32
%18 = call i32 @IntDisable(i32 noundef %17)
%19 = load i64, ptr %4, align 8
%20 = add i64 41, %19
%21 = trunc i64 %20 to i32
%22 = call i32 @IntUnregister(i32 noundef %21)
ret void
}
declare i32 @IntDisable(i32 noundef) #1
declare i32 @IntUnregister(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/tmpaey6gkyb.c'
source_filename = "/tmp/tmpaey6gkyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_cliprect(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @japi_cliprect(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @japi_cliprect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaey6gkyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_cliprect(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @japi_cliprect(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @japi_cliprect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplggu8pzf.c'
source_filename = "/tmp/tmplggu8pzf.c"
target datalayout = "e-m:e-p270: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/tmplggu8pzf.c"
target datalayout = "e-m:e-p270: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/tmpnydnedad.c'
source_filename = "/tmp/tmpnydnedad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @truncate_newline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp ugt i64 %6, 0
br i1 %7, label %8, label %21
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = sub i64 %10, 1
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 10
br i1 %15, label %16, label %21
16: ; preds = %8
%17 = load ptr, ptr %2, align 8
%18 = load i64, ptr %3, align 8
%19 = sub i64 %18, 1
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 0, ptr %20, align 1
br label %21
21: ; preds = %16, %8, %1
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnydnedad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @truncate_newline(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = icmp ugt i64 %6, 0
br i1 %7, label %8, label %21
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = sub i64 %10, 1
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 10
br i1 %15, label %16, label %21
16: ; preds = %8
%17 = load ptr, ptr %2, align 8
%18 = load i64, ptr %3, align 8
%19 = sub i64 %18, 1
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 0, ptr %20, align 1
br label %21
21: ; preds = %16, %8, %1
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9vmc4zua.c'
source_filename = "/tmp/tmp9vmc4zua.c"
target datalayout = "e-m:e-p270: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/tmp9vmc4zua.c"
target datalayout = "e-m:e-p270: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/tmpwjmwqsn6.c'
source_filename = "/tmp/tmpwjmwqsn6.c"
target datalayout = "e-m:e-p270: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/tmpwjmwqsn6.c"
target datalayout = "e-m:e-p270: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/tmpah13d1ev.c'
source_filename = "/tmp/tmpah13d1ev.c"
target datalayout = "e-m:e-p270: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/tmpah13d1ev.c"
target datalayout = "e-m:e-p270: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/tmpeqlvbsga.c'
source_filename = "/tmp/tmpeqlvbsga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
br label %12
12: ; preds = %24, %3
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load ptr, ptr %8, align 8
%18 = load i64, ptr %9, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %7, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
store i8 %20, ptr %23, align 1
br label %24
24: ; preds = %16
%25 = load i64, ptr %9, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %9, align 8
br label %12, !llvm.loop !6
27: ; preds = %12
%28 = load ptr, ptr %4, align 8
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeqlvbsga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i64 0, ptr %9, align 8
%12 = load i64, ptr %9, align 8
%13 = load i64, ptr %6, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %23
%16 = load ptr, ptr %8, align 8
%17 = load i64, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %7, align 8
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
store i8 %19, ptr %22, align 1
br label %23
23: ; preds = %15
%24 = load i64, ptr %9, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %9, align 8
%27 = load i64, ptr %6, align 8
%28 = icmp ult i64 %26, %27
br i1 %28, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbpc5t205.c'
source_filename = "/tmp/tmpbpc5t205.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sleep100ms() #0 {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
%3 = call i32 @poll(i32 noundef 0, i32 noundef 0, i32 noundef 100)
ret void
}
declare i32 @poll(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbpc5t205.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sleep100ms() #0 {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
%3 = call i32 @poll(i32 noundef 0, i32 noundef 0, i32 noundef 100)
ret void
}
declare i32 @poll(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3t_li1vy.c'
source_filename = "/tmp/tmp3t_li1vy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgiURLAddInt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [21 x i8], align 16
store i32 %0, ptr %2, align 4
%4 = getelementptr inbounds [21 x i8], ptr %3, i64 0, i64 0
%5 = load i32, ptr %2, align 4
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %5)
%7 = getelementptr inbounds [21 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @cgiURLAdd(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @cgiURLAdd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3t_li1vy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgiURLAddInt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [21 x i8], align 16
store i32 %0, ptr %2, align 4
%4 = getelementptr inbounds [21 x i8], ptr %3, i64 0, i64 0
%5 = load i32, ptr %2, align 4
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, i32 noundef %5)
%7 = getelementptr inbounds [21 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @cgiURLAdd(ptr noundef %7)
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @cgiURLAdd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcv9q_s1r.c'
source_filename = "/tmp/tmpcv9q_s1r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_BLOCK = 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/tmpcv9q_s1r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_BLOCK = 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/tmp_uwbwb99.c'
source_filename = "/tmp/tmp_uwbwb99.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getmin(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %6, %7
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = call i32 @getmax(i32 noundef %9, i32 noundef %10)
%12 = sdiv i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
ret i32 %13
}
declare i32 @getmax(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_uwbwb99.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getmin(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = mul nsw i32 %6, %7
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = call i32 @getmax(i32 noundef %9, i32 noundef %10)
%12 = sdiv i32 %8, %11
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
ret i32 %13
}
declare i32 @getmax(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/tmpi3edxpcl.c'
source_filename = "/tmp/tmpi3edxpcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %31
11: ; preds = %3
br label %12
12: ; preds = %23, %11
%13 = load i64, ptr %6, align 8
%14 = add i64 %13, -1
store i64 %14, ptr %6, align 8
%15 = icmp ugt i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %16, %12
%22 = phi i1 [ false, %12 ], [ %20, %16 ]
br i1 %22, label %23, label %29
23: ; preds = %21
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
%26 = load i8, ptr %24, align 1
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %4, align 8
store i8 %26, ptr %27, align 1
br label %12, !llvm.loop !6
29: ; preds = %21
%30 = load ptr, ptr %4, align 8
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %29, %3
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %7, align 8
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
ret i64 %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpi3edxpcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %31
11: ; preds = %3
br label %12
12: ; preds = %23, %11
%13 = load i64, ptr %6, align 8
%14 = add i64 %13, -1
store i64 %14, ptr %6, align 8
%15 = icmp ugt i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br label %21
21: ; preds = %16, %12
%22 = phi i1 [ false, %12 ], [ %20, %16 ]
br i1 %22, label %23, label %29
23: ; preds = %21
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
%26 = load i8, ptr %24, align 1
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %4, align 8
store i8 %26, ptr %27, align 1
br label %12, !llvm.loop !6
29: ; preds = %21
%30 = load ptr, ptr %4, align 8
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %29, %3
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %7, align 8
%34 = ptrtoint ptr %32 to i64
%35 = ptrtoint ptr %33 to i64
%36 = sub i64 %34, %35
ret i64 %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpf_a93v5q.c'
source_filename = "/tmp/tmpf_a93v5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"To: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Email: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Reply-To: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Subject: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"From: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @email_sendmail_string(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [65536 x i8], align 16
%14 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = getelementptr inbounds [65536 x i8], ptr %13, i64 0, i64 0
store ptr %15, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %31
19: ; preds = %6
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load ptr, ptr %14, align 8
%26 = load ptr, ptr %8, align 8
%27 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str, ptr noundef %26)
%28 = load ptr, ptr %14, align 8
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store ptr %30, ptr %14, align 8
br label %31
31: ; preds = %24, %19, %6
%32 = load ptr, ptr %7, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %46
34: ; preds = %31
%35 = load ptr, ptr %7, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %34
%40 = load ptr, ptr %14, align 8
%41 = load ptr, ptr %7, align 8
%42 = call i32 @sprintf(ptr noundef %40, ptr noundef @.str.1, ptr noundef %41)
%43 = load ptr, ptr %14, align 8
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds i8, ptr %43, i64 %44
store ptr %45, ptr %14, align 8
br label %46
46: ; preds = %39, %34, %31
%47 = load ptr, ptr %11, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load ptr, ptr %11, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load ptr, ptr %14, align 8
%56 = load ptr, ptr %11, align 8
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.2, ptr noundef %56)
%58 = load ptr, ptr %14, align 8
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i8, ptr %58, i64 %59
store ptr %60, ptr %14, align 8
br label %61
61: ; preds = %54, %49, %46
%62 = load ptr, ptr %9, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %76
64: ; preds = %61
%65 = load ptr, ptr %9, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %64
%70 = load ptr, ptr %14, align 8
%71 = load ptr, ptr %9, align 8
%72 = call i32 @sprintf(ptr noundef %70, ptr noundef @.str.3, ptr noundef %71)
%73 = load ptr, ptr %14, align 8
%74 = sext i32 %72 to i64
%75 = getelementptr inbounds i8, ptr %73, i64 %74
store ptr %75, ptr %14, align 8
br label %76
76: ; preds = %69, %64, %61
%77 = load ptr, ptr %12, align 8
%78 = icmp ne ptr %77, null
br i1 %78, label %79, label %91
79: ; preds = %76
%80 = load ptr, ptr %12, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %91
84: ; preds = %79
%85 = load ptr, ptr %14, align 8
%86 = load ptr, ptr %12, align 8
%87 = call i32 @sprintf(ptr noundef %85, ptr noundef @.str.4, ptr noundef %86)
%88 = load ptr, ptr %14, align 8
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %88, i64 %89
store ptr %90, ptr %14, align 8
br label %91
91: ; preds = %84, %79, %76
%92 = load ptr, ptr %10, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %106
94: ; preds = %91
%95 = load ptr, ptr %10, align 8
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %106
99: ; preds = %94
%100 = load ptr, ptr %14, align 8
%101 = load ptr, ptr %10, align 8
%102 = call i32 @sprintf(ptr noundef %100, ptr noundef @.str.5, ptr noundef %101)
%103 = load ptr, ptr %14, align 8
%104 = sext i32 %102 to i64
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store ptr %105, ptr %14, align 8
br label %106
106: ; preds = %99, %94, %91
%107 = getelementptr inbounds [65536 x i8], ptr %13, i64 0, i64 0
%108 = call ptr @strdup(ptr noundef %107)
ret ptr %108
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_a93v5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"To: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Email: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Reply-To: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Subject: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"From: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @email_sendmail_string(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca [65536 x i8], align 16
%14 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%15 = getelementptr inbounds [65536 x i8], ptr %13, i64 0, i64 0
store ptr %15, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %31
19: ; preds = %6
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load ptr, ptr %14, align 8
%26 = load ptr, ptr %8, align 8
%27 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str, ptr noundef %26)
%28 = load ptr, ptr %14, align 8
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store ptr %30, ptr %14, align 8
br label %31
31: ; preds = %24, %19, %6
%32 = load ptr, ptr %7, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %46
34: ; preds = %31
%35 = load ptr, ptr %7, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %34
%40 = load ptr, ptr %14, align 8
%41 = load ptr, ptr %7, align 8
%42 = call i32 @sprintf(ptr noundef %40, ptr noundef @.str.1, ptr noundef %41)
%43 = load ptr, ptr %14, align 8
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds i8, ptr %43, i64 %44
store ptr %45, ptr %14, align 8
br label %46
46: ; preds = %39, %34, %31
%47 = load ptr, ptr %11, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load ptr, ptr %11, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = load ptr, ptr %14, align 8
%56 = load ptr, ptr %11, align 8
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.2, ptr noundef %56)
%58 = load ptr, ptr %14, align 8
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i8, ptr %58, i64 %59
store ptr %60, ptr %14, align 8
br label %61
61: ; preds = %54, %49, %46
%62 = load ptr, ptr %9, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %64, label %76
64: ; preds = %61
%65 = load ptr, ptr %9, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %64
%70 = load ptr, ptr %14, align 8
%71 = load ptr, ptr %9, align 8
%72 = call i32 @sprintf(ptr noundef %70, ptr noundef @.str.3, ptr noundef %71)
%73 = load ptr, ptr %14, align 8
%74 = sext i32 %72 to i64
%75 = getelementptr inbounds i8, ptr %73, i64 %74
store ptr %75, ptr %14, align 8
br label %76
76: ; preds = %69, %64, %61
%77 = load ptr, ptr %12, align 8
%78 = icmp ne ptr %77, null
br i1 %78, label %79, label %91
79: ; preds = %76
%80 = load ptr, ptr %12, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %91
84: ; preds = %79
%85 = load ptr, ptr %14, align 8
%86 = load ptr, ptr %12, align 8
%87 = call i32 @sprintf(ptr noundef %85, ptr noundef @.str.4, ptr noundef %86)
%88 = load ptr, ptr %14, align 8
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %88, i64 %89
store ptr %90, ptr %14, align 8
br label %91
91: ; preds = %84, %79, %76
%92 = load ptr, ptr %10, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %106
94: ; preds = %91
%95 = load ptr, ptr %10, align 8
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %106
99: ; preds = %94
%100 = load ptr, ptr %14, align 8
%101 = load ptr, ptr %10, align 8
%102 = call i32 @sprintf(ptr noundef %100, ptr noundef @.str.5, ptr noundef %101)
%103 = load ptr, ptr %14, align 8
%104 = sext i32 %102 to i64
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store ptr %105, ptr %14, align 8
br label %106
106: ; preds = %99, %94, %91
%107 = getelementptr inbounds [65536 x i8], ptr %13, i64 0, i64 0
%108 = call ptr @strdup(ptr noundef %107)
ret ptr %108
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmk82y2ef.c'
source_filename = "/tmp/tmpmk82y2ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"fwrite failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fwrite_or_die(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fwrite(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %4
ret void
}
declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, 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/tmpmk82y2ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"fwrite failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fwrite_or_die(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load ptr, ptr %8, align 8
%13 = call i64 @fwrite(ptr noundef %9, i64 noundef %10, i64 noundef %11, ptr noundef %12)
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %4
ret void
}
declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, 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/tmpht_2kqsi.c'
source_filename = "/tmp/tmpht_2kqsi.c"
target datalayout = "e-m:e-p270: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/tmpht_2kqsi.c"
target datalayout = "e-m:e-p270: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/tmp24f0d0is.c'
source_filename = "/tmp/tmp24f0d0is.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @updateMotor(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load i32, ptr %10, align 4
%12 = mul nsw i32 1, %11
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 6
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 3
%17 = call i32 @dot(ptr noundef %14, ptr noundef %16)
%18 = mul nsw i32 -1, %17
%19 = add nsw i32 %12, %18
%20 = add nsw i32 %19, 2500
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
store i32 %20, ptr %22, align 4
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 1
%25 = load i32, ptr %24, align 4
%26 = mul nsw i32 1, %25
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 6
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 3
%31 = call i32 @dot(ptr noundef %28, ptr noundef %30)
%32 = mul nsw i32 1, %31
%33 = add nsw i32 %26, %32
%34 = add nsw i32 %33, 2500
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 2
store i32 %34, ptr %36, align 4
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 0
%39 = load i32, ptr %38, align 4
%40 = mul nsw i32 1, %39
%41 = load ptr, ptr %6, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 6
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 0
%45 = call i32 @dot(ptr noundef %42, ptr noundef %44)
%46 = mul nsw i32 1, %45
%47 = add nsw i32 %40, %46
%48 = add nsw i32 %47, 2500
%49 = load ptr, ptr %8, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 1
store i32 %48, ptr %50, align 4
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 0
%53 = load i32, ptr %52, align 4
%54 = mul nsw i32 1, %53
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 6
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i32, ptr %57, i64 0
%59 = call i32 @dot(ptr noundef %56, ptr noundef %58)
%60 = mul nsw i32 1, %59
%61 = add nsw i32 %54, %60
%62 = add nsw i32 %61, 2500
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 3
store i32 %62, ptr %64, align 4
ret void
}
declare i32 @dot(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/tmp24f0d0is.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @updateMotor(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load i32, ptr %10, align 4
%12 = mul nsw i32 1, %11
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 6
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 3
%17 = call i32 @dot(ptr noundef %14, ptr noundef %16)
%18 = mul nsw i32 -1, %17
%19 = add nsw i32 %12, %18
%20 = add nsw i32 %19, 2500
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
store i32 %20, ptr %22, align 4
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 1
%25 = load i32, ptr %24, align 4
%26 = mul nsw i32 1, %25
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds i32, ptr %27, i64 6
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 3
%31 = call i32 @dot(ptr noundef %28, ptr noundef %30)
%32 = mul nsw i32 1, %31
%33 = add nsw i32 %26, %32
%34 = add nsw i32 %33, 2500
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i32, ptr %35, i64 2
store i32 %34, ptr %36, align 4
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 0
%39 = load i32, ptr %38, align 4
%40 = mul nsw i32 1, %39
%41 = load ptr, ptr %6, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 6
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i32, ptr %43, i64 0
%45 = call i32 @dot(ptr noundef %42, ptr noundef %44)
%46 = mul nsw i32 1, %45
%47 = add nsw i32 %40, %46
%48 = add nsw i32 %47, 2500
%49 = load ptr, ptr %8, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 1
store i32 %48, ptr %50, align 4
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 0
%53 = load i32, ptr %52, align 4
%54 = mul nsw i32 1, %53
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 6
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds i32, ptr %57, i64 0
%59 = call i32 @dot(ptr noundef %56, ptr noundef %58)
%60 = mul nsw i32 1, %59
%61 = add nsw i32 %54, %60
%62 = add nsw i32 %61, 2500
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 3
store i32 %62, ptr %64, align 4
ret void
}
declare i32 @dot(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/tmpzry2ecka.c'
source_filename = "/tmp/tmpzry2ecka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makesalt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load i32, ptr @O_RDONLY, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %20, %1
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 32
br i1 %10, label %11, label %23
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = call i32 @read(i32 noundef %12, ptr noundef %5, i32 noundef 1)
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %5, align 1
%19 = call i32 @to64(ptr noundef %17, i8 noundef zeroext %18, i32 noundef 1)
br label %20
20: ; preds = %11
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = load i32, ptr %4, align 4
%25 = call i32 @close(i32 noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 32
store i8 0, ptr %27, align 1
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @to64(ptr noundef, i8 noundef zeroext, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzry2ecka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/urandom\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @makesalt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%6 = load i32, ptr @O_RDONLY, align 4
%7 = call i32 @open(ptr noundef @.str, i32 noundef %6)
store i32 %7, ptr %4, align 4
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 32
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %19
%11 = load i32, ptr %4, align 4
%12 = call i32 @read(i32 noundef %11, ptr noundef %5, i32 noundef 1)
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %5, align 1
%18 = call i32 @to64(ptr noundef %16, i8 noundef zeroext %17, i32 noundef 1)
br label %19
19: ; preds = %10
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 32
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %1
%25 = load i32, ptr %4, align 4
%26 = call i32 @close(i32 noundef %25)
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 32
store i8 0, ptr %28, align 1
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @to64(ptr noundef, i8 noundef zeroext, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp54xthgkd.c'
source_filename = "/tmp/tmp54xthgkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitar_fprintf() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = load ptr, ptr %1, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @fprintf(ptr noundef %4, ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp54xthgkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitar_fprintf() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = load ptr, ptr %1, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @fprintf(ptr noundef %4, ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7ct464wh.c'
source_filename = "/tmp/tmp7ct464wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"ns_port = %04x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @htons(i32 noundef 3000)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @htons(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ct464wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"ns_port = %04x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @htons(i32 noundef 3000)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @htons(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0laoe6wn.c'
source_filename = "/tmp/tmp0laoe6wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1..45\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"re\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"r+e\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"we\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"w+e\00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"ae\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"a+e\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"re+\00", align 1
@.str.15 = private unnamed_addr constant [4 x i8] c"we+\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"ae+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.2)
%8 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.3)
%9 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.4)
%10 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.5)
%11 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.6)
%12 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.7)
%13 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.8)
%14 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.9)
%15 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.10)
%16 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.11)
%17 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.12)
%18 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.13)
%19 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.14)
%20 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.15)
%21 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.16)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @runtest(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/tmp0laoe6wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1..45\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"re\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"r+e\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"we\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"w+e\00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"ae\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"a+e\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"re+\00", align 1
@.str.15 = private unnamed_addr constant [4 x i8] c"we+\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"ae+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.2)
%8 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.3)
%9 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.4)
%10 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.5)
%11 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.6)
%12 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.7)
%13 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.8)
%14 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.9)
%15 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.10)
%16 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.11)
%17 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.12)
%18 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.13)
%19 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.14)
%20 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.15)
%21 = call i32 @runtest(ptr noundef @.str.1, ptr noundef @.str.16)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @runtest(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/tmp4t1cxjlp.c'
source_filename = "/tmp/tmp4t1cxjlp.c"
target datalayout = "e-m:e-p270: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/tmp4t1cxjlp.c"
target datalayout = "e-m:e-p270: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/tmpziarjdi4.c'
source_filename = "/tmp/tmpziarjdi4.c"
target datalayout = "e-m:e-p270: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.is_syslinux_mbr.mbr_syslinux_0x0 = private unnamed_addr constant <{ [424 x i8], [16 x i8] }> <{ [424 x i8] c"3\C0\FA\8E\D8\8E\D0\BC\00|\89\E6\06W\8E\C0\FB\FC\BF\00\06\B9\00\01\F3\A5\EA\1F\06\00\00RR\B4A\BB\AAU1\C90\F6\F9\CD\13r\13\81\FBU\AAu\0D\D1\E9s\09f\C7\06\8D\06\B4B\EB\15Z\B4\08\CD\13\83\E1?Q\0F\B6\C6@\F7\E1RPf1\C0f\99\E8f\00\E85\01Missing operating system.\0D\0Af`f1\D2\BB\00|fRfP\06Sj\01j\10\89\E6f\F76\F4{\C0\E4\06\88\E1\88\C5\92\F66\F8{\88\C6\08\E1A\B8\01\02\8A\16\FA{\CD\13\8Dd\10fa\C3\E8\C4\FF\BE\BE}\BF\BE\07\B9 \00\F3\A5\C3f`\89\E5\BB\BE\07\B9\04\001\C0SQ\F6\07\80t\03@\89\DE\83\C3\10\E2\F3Ht[y9Y[\8AG\04<\0Ft\06$\7F<\05u\22f\8BG\08f\8BV\14f\01\D0f!\D2u\03f\89\C2\E8\AC\FFr\03\E8\B6\FFf\8BF\1C\E8\A0\FF\83\C3\10\E2\CCfa\C3\E8v\00Multiple active partitions.\0D\0Af\8BD\08f\03F\1Cf\89D\08\E80\FFr'f\81>\00|XFSBu\09f\83\C0\04\E8\1C\FFr\13\81>\FE}U\AA\0F\85\F2\FE\BC\FA{Z_\07\FA\FF\E4\E8\1E\00Operating system load error.\0D\0A^\AC\B4\0E\8A>b\04\B3\07\CD\10<\0Au\F1\CD\18\F4\EB\FD", [16 x i8] zeroinitializer }>, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_syslinux_mbr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [440 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.is_syslinux_mbr.mbr_syslinux_0x0, i64 440, i1 false)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds [440 x i8], ptr %3, i64 0, i64 0
%6 = call i64 @contains_data(ptr noundef %4, i32 noundef 0, ptr noundef %5, i32 noundef 440)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @is_br(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br label %12
12: ; preds = %8, %1
%13 = phi i1 [ false, %1 ], [ %11, %8 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
; 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 i64 @contains_data(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @is_br(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpziarjdi4.c"
target datalayout = "e-m:e-p270: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.is_syslinux_mbr.mbr_syslinux_0x0 = private unnamed_addr constant <{ [424 x i8], [16 x i8] }> <{ [424 x i8] c"3\C0\FA\8E\D8\8E\D0\BC\00|\89\E6\06W\8E\C0\FB\FC\BF\00\06\B9\00\01\F3\A5\EA\1F\06\00\00RR\B4A\BB\AAU1\C90\F6\F9\CD\13r\13\81\FBU\AAu\0D\D1\E9s\09f\C7\06\8D\06\B4B\EB\15Z\B4\08\CD\13\83\E1?Q\0F\B6\C6@\F7\E1RPf1\C0f\99\E8f\00\E85\01Missing operating system.\0D\0Af`f1\D2\BB\00|fRfP\06Sj\01j\10\89\E6f\F76\F4{\C0\E4\06\88\E1\88\C5\92\F66\F8{\88\C6\08\E1A\B8\01\02\8A\16\FA{\CD\13\8Dd\10fa\C3\E8\C4\FF\BE\BE}\BF\BE\07\B9 \00\F3\A5\C3f`\89\E5\BB\BE\07\B9\04\001\C0SQ\F6\07\80t\03@\89\DE\83\C3\10\E2\F3Ht[y9Y[\8AG\04<\0Ft\06$\7F<\05u\22f\8BG\08f\8BV\14f\01\D0f!\D2u\03f\89\C2\E8\AC\FFr\03\E8\B6\FFf\8BF\1C\E8\A0\FF\83\C3\10\E2\CCfa\C3\E8v\00Multiple active partitions.\0D\0Af\8BD\08f\03F\1Cf\89D\08\E80\FFr'f\81>\00|XFSBu\09f\83\C0\04\E8\1C\FFr\13\81>\FE}U\AA\0F\85\F2\FE\BC\FA{Z_\07\FA\FF\E4\E8\1E\00Operating system load error.\0D\0A^\AC\B4\0E\8A>b\04\B3\07\CD\10<\0Au\F1\CD\18\F4\EB\FD", [16 x i8] zeroinitializer }>, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_syslinux_mbr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [440 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.is_syslinux_mbr.mbr_syslinux_0x0, i64 440, i1 false)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds [440 x i8], ptr %3, i64 0, i64 0
%6 = call i64 @contains_data(ptr noundef %4, i32 noundef 0, ptr noundef %5, i32 noundef 440)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @is_br(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br label %12
12: ; preds = %8, %1
%13 = phi i1 [ false, %1 ], [ %11, %8 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
; 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 i64 @contains_data(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @is_br(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc69nrw7u.c'
source_filename = "/tmp/tmpc69nrw7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @input(ptr noundef @.str)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @fget_double(i32 noundef %3)
%5 = icmp eq i32 %4, 1
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %1, align 4
%9 = call i32 @fget_double(i32 noundef %8)
%10 = icmp eq i32 %9, 2
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load i32, ptr %1, align 4
%14 = call i32 @fget_double(i32 noundef %13)
%15 = icmp eq i32 %14, 3
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load i32, ptr %1, align 4
%19 = call i32 @fget_double(i32 noundef %18)
%20 = icmp eq i32 %19, 4
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load i32, ptr %1, align 4
%24 = call i32 @fget_double(i32 noundef %23)
%25 = icmp eq i32 %24, 5
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 noundef %26)
%28 = load i32, ptr %1, align 4
%29 = call i32 @fget_double(i32 noundef %28)
%30 = icmp eq i32 %29, 6
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
%33 = load i32, ptr %1, align 4
%34 = call i32 @fget_double(i32 noundef %33)
%35 = icmp eq i32 %34, 7
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 noundef %36)
%38 = load i32, ptr %1, align 4
%39 = call i32 @fget_double(i32 noundef %38)
%40 = icmp eq i32 %39, 8
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 noundef %41)
%43 = load i32, ptr %1, align 4
%44 = call i32 @fget_double(i32 noundef %43)
%45 = icmp eq i32 %44, 9
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = load i32, ptr %1, align 4
%49 = call i32 @fget_double(i32 noundef %48)
%50 = icmp eq i32 %49, 10
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 noundef %51)
%53 = call i32 @report(i32 noundef 1)
ret void
}
declare i32 @input(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @fget_double(i32 noundef) #1
declare i32 @report(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/tmpc69nrw7u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @input(ptr noundef @.str)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @fget_double(i32 noundef %3)
%5 = icmp eq i32 %4, 1
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load i32, ptr %1, align 4
%9 = call i32 @fget_double(i32 noundef %8)
%10 = icmp eq i32 %9, 2
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load i32, ptr %1, align 4
%14 = call i32 @fget_double(i32 noundef %13)
%15 = icmp eq i32 %14, 3
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load i32, ptr %1, align 4
%19 = call i32 @fget_double(i32 noundef %18)
%20 = icmp eq i32 %19, 4
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 noundef %21)
%23 = load i32, ptr %1, align 4
%24 = call i32 @fget_double(i32 noundef %23)
%25 = icmp eq i32 %24, 5
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 noundef %26)
%28 = load i32, ptr %1, align 4
%29 = call i32 @fget_double(i32 noundef %28)
%30 = icmp eq i32 %29, 6
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
%33 = load i32, ptr %1, align 4
%34 = call i32 @fget_double(i32 noundef %33)
%35 = icmp eq i32 %34, 7
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 noundef %36)
%38 = load i32, ptr %1, align 4
%39 = call i32 @fget_double(i32 noundef %38)
%40 = icmp eq i32 %39, 8
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 noundef %41)
%43 = load i32, ptr %1, align 4
%44 = call i32 @fget_double(i32 noundef %43)
%45 = icmp eq i32 %44, 9
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
%48 = load i32, ptr %1, align 4
%49 = call i32 @fget_double(i32 noundef %48)
%50 = icmp eq i32 %49, 10
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 noundef %51)
%53 = call i32 @report(i32 noundef 1)
ret void
}
declare i32 @input(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @fget_double(i32 noundef) #1
declare i32 @report(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/tmpzwaoi30o.c'
source_filename = "/tmp/tmpzwaoi30o.c"
target datalayout = "e-m:e-p270: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/tmpzwaoi30o.c"
target datalayout = "e-m:e-p270: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/tmp74q248ky.c'
source_filename = "/tmp/tmp74q248ky.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Unrecoverable error in %s(%d): %s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [132 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/iagox86/nbtool/refs/heads/master/crypto.c\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Out of memory.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ntlm_create_hash(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @unicode_alloc(ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 121, ptr noundef @.str.2)
%14 = call i32 (...) @abort() #3
unreachable
15: ; preds = %2
%16 = call i32 @MD4_Init(ptr noundef %6)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = mul nsw i32 %19, 2
%21 = call i32 @MD4_Update(ptr noundef %6, ptr noundef %17, i32 noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = call i32 @MD4_Final(ptr noundef %22, ptr noundef %6)
ret void
}
declare ptr @unicode_alloc(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @MD4_Init(ptr noundef) #1
declare i32 @MD4_Update(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @MD4_Final(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74q248ky.c"
target datalayout = "e-m:e-p270: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 [36 x i8] c"Unrecoverable error in %s(%d): %s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [132 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/iagox86/nbtool/refs/heads/master/crypto.c\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Out of memory.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ntlm_create_hash(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @unicode_alloc(ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 121, ptr noundef @.str.2)
%14 = call i32 (...) @abort() #3
unreachable
15: ; preds = %2
%16 = call i32 @MD4_Init(ptr noundef %6)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = mul nsw i32 %19, 2
%21 = call i32 @MD4_Update(ptr noundef %6, ptr noundef %17, i32 noundef %20)
%22 = load ptr, ptr %4, align 8
%23 = call i32 @MD4_Final(ptr noundef %22, ptr noundef %6)
ret void
}
declare ptr @unicode_alloc(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @MD4_Init(ptr noundef) #1
declare i32 @MD4_Update(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @MD4_Final(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw5prbav1.c'
source_filename = "/tmp/tmpw5prbav1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%2X:%2X:%2X:%2X:%2X:%2X\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"Put the MAC in proper format XX:XX:XX:XX:XX:XX.\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Target MAC\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c":%2X\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mac_import(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [6 x i8], align 1
%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 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 1
%11 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 2
%12 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 3
%13 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 4
%14 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 5
%15 = call i32 @sscanf(ptr noundef %8, ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = icmp ne i32 %15, 6
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %38
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %31, %19
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 6
br i1 %23, label %24, label %34
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %29)
br label %31
31: ; preds = %24
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %21, !llvm.loop !6
34: ; preds = %21
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%36 = load ptr, ptr %5, align 8
%37 = call i32 @memcpy(ptr noundef %36, ptr noundef %6, i32 noundef 6)
store i32 0, ptr %3, align 4
br label %38
38: ; preds = %34, %17
%39 = load i32, ptr %3, align 4
ret i32 %39
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw5prbav1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"%2X:%2X:%2X:%2X:%2X:%2X\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"Put the MAC in proper format XX:XX:XX:XX:XX:XX.\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Target MAC\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c":%2X\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mac_import(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [6 x i8], align 1
%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 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 1
%11 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 2
%12 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 3
%13 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 4
%14 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 5
%15 = call i32 @sscanf(ptr noundef %8, ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = icmp ne i32 %15, 6
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %39
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 6
br i1 %22, label %.lr.ph, label %35
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %30
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = zext i8 %27 to i32
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
br label %30
30: ; preds = %23
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %33, 6
br i1 %34, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %19
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%37 = load ptr, ptr %5, align 8
%38 = call i32 @memcpy(ptr noundef %37, ptr noundef %6, i32 noundef 6)
store i32 0, ptr %3, align 4
br label %39
39: ; preds = %35, %17
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb4mglh9i.c'
source_filename = "/tmp/tmpb4mglh9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@crypt_old.rkey = internal global [16 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @crypt_old(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2 x i64], align 16
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [4 x i64], align 16
%11 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
store i64 2654435769, ptr %8, align 8
store i64 64, ptr %9, align 8
%12 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 3
store i64 0, ptr %12, align 8
%13 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 2
store i64 0, ptr %13, align 16
%14 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 1
store i64 0, ptr %14, align 8
%15 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
store i64 0, ptr %15, align 16
%16 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
store i64 0, ptr %16, align 8
%17 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
store i64 0, ptr %17, align 16
store i8 0, ptr %11, align 1
br label %18
18: ; preds = %26, %2
%19 = load i8, ptr %11, align 1
%20 = zext i8 %19 to i32
%21 = icmp slt i32 %20, 16
br i1 %21, label %22, label %29
22: ; preds = %18
%23 = load i8, ptr %11, align 1
%24 = zext i8 %23 to i64
%25 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %24
store i8 0, ptr %25, align 1
br label %26
26: ; preds = %22
%27 = load i8, ptr %11, align 1
%28 = add i8 %27, 1
store i8 %28, ptr %11, align 1
br label %18, !llvm.loop !6
29: ; preds = %18
%30 = load ptr, ptr %5, align 8
%31 = load i8, ptr %30, align 1
store i8 %31, ptr @crypt_old.rkey, align 16
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
store i8 %34, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 1), align 1
store i8 0, ptr %11, align 1
br label %35
35: ; preds = %60, %29
%36 = load i8, ptr %11, align 1
%37 = zext i8 %36 to i32
%38 = icmp slt i32 %37, 15
br i1 %38, label %39, label %47
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %11, align 1
%42 = zext i8 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br label %47
47: ; preds = %39, %35
%48 = phi i1 [ false, %35 ], [ %46, %39 ]
br i1 %48, label %49, label %63
49: ; preds = %47
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %11, align 1
%52 = zext i8 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = load i8, ptr %11, align 1
%56 = zext i8 %55 to i32
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %58
store i8 %54, ptr %59, align 1
br label %60
60: ; preds = %49
%61 = load i8, ptr %11, align 1
%62 = add i8 %61, 1
store i8 %62, ptr %11, align 1
br label %35, !llvm.loop !8
63: ; preds = %47
%64 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
%65 = call i32 @memcpy(ptr noundef %64, ptr noundef @crypt_old.rkey, i32 noundef 32)
store i8 0, ptr %11, align 1
br label %66
66: ; preds = %79, %63
%67 = load i8, ptr %11, align 1
%68 = zext i8 %67 to i32
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %82
70: ; preds = %66
%71 = load i8, ptr %11, align 1
%72 = zext i8 %71 to i64
%73 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 %72
%74 = load i64, ptr %73, align 8
%75 = call i64 @ntohl(i64 noundef %74)
%76 = load i8, ptr %11, align 1
%77 = zext i8 %76 to i64
%78 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 %77
store i64 %75, ptr %78, align 8
br label %79
79: ; preds = %70
%80 = load i8, ptr %11, align 1
%81 = add i8 %80, 1
store i8 %81, ptr %11, align 1
br label %66, !llvm.loop !9
82: ; preds = %66
br label %83
83: ; preds = %87, %82
%84 = load i64, ptr %9, align 8
%85 = add i64 %84, -1
store i64 %85, ptr %9, align 8
%86 = icmp ugt i64 %84, 0
br i1 %86, label %87, label %133
87: ; preds = %83
%88 = load i64, ptr %8, align 8
%89 = load i64, ptr %7, align 8
%90 = add i64 %89, %88
store i64 %90, ptr %7, align 8
%91 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%92 = load i64, ptr %91, align 8
%93 = shl i64 %92, 4
%94 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
%95 = load i64, ptr %94, align 16
%96 = add i64 %93, %95
%97 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%98 = load i64, ptr %97, align 8
%99 = load i64, ptr %7, align 8
%100 = add i64 %98, %99
%101 = xor i64 %96, %100
%102 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%103 = load i64, ptr %102, align 8
%104 = lshr i64 %103, 5
%105 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 1
%106 = load i64, ptr %105, align 8
%107 = add i64 %104, %106
%108 = xor i64 %101, %107
%109 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%110 = load i64, ptr %109, align 16
%111 = add i64 %110, %108
store i64 %111, ptr %109, align 16
%112 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%113 = load i64, ptr %112, align 16
%114 = shl i64 %113, 4
%115 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 2
%116 = load i64, ptr %115, align 16
%117 = add i64 %114, %116
%118 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%119 = load i64, ptr %118, align 16
%120 = load i64, ptr %7, align 8
%121 = add i64 %119, %120
%122 = xor i64 %117, %121
%123 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%124 = load i64, ptr %123, align 16
%125 = lshr i64 %124, 5
%126 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 3
%127 = load i64, ptr %126, align 8
%128 = add i64 %125, %127
%129 = xor i64 %122, %128
%130 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%131 = load i64, ptr %130, align 8
%132 = add i64 %131, %129
store i64 %132, ptr %130, align 8
br label %83, !llvm.loop !10
133: ; preds = %83
%134 = load ptr, ptr %5, align 8
%135 = load i8, ptr %134, align 1
store i8 %135, ptr @crypt_old.rkey, align 16
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds i8, ptr %136, i64 1
%138 = load i8, ptr %137, align 1
store i8 %138, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 1), align 1
store i8 2, ptr %11, align 1
br label %139
139: ; preds = %244, %133
%140 = load i8, ptr %11, align 1
%141 = zext i8 %140 to i32
%142 = icmp slt i32 %141, 13
br i1 %142, label %143, label %247
143: ; preds = %139
%144 = load i8, ptr %11, align 1
%145 = zext i8 %144 to i32
%146 = icmp eq i32 %145, 8
br i1 %146, label %147, label %154
147: ; preds = %143
%148 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%149 = load i64, ptr %148, align 8
%150 = lshr i64 %149, 28
%151 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%152 = load i64, ptr %151, align 16
%153 = or i64 %152, %150
store i64 %153, ptr %151, align 16
br label %154
154: ; preds = %147, %143
%155 = load i8, ptr %11, align 1
%156 = zext i8 %155 to i32
%157 = sub nsw i32 %156, 2
%158 = sdiv i32 %157, 6
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 %159
%161 = load i64, ptr %160, align 8
%162 = and i64 %161, 63
%163 = trunc i64 %162 to i8
%164 = load i8, ptr %11, align 1
%165 = zext i8 %164 to i64
%166 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %165
store i8 %163, ptr %166, align 1
%167 = load i8, ptr %11, align 1
%168 = zext i8 %167 to i32
%169 = sub nsw i32 %168, 2
%170 = sdiv i32 %169, 6
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 %171
%173 = load i64, ptr %172, align 8
%174 = lshr i64 %173, 6
store i64 %174, ptr %172, align 8
%175 = load i8, ptr %11, align 1
%176 = zext i8 %175 to i64
%177 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %176
%178 = load i8, ptr %177, align 1
%179 = sext i8 %178 to i32
%180 = icmp sge i32 %179, 0
br i1 %180, label %181, label %196
181: ; preds = %154
%182 = load i8, ptr %11, align 1
%183 = zext i8 %182 to i64
%184 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %183
%185 = load i8, ptr %184, align 1
%186 = sext i8 %185 to i32
%187 = icmp slt i32 %186, 12
br i1 %187, label %188, label %196
188: ; preds = %181
%189 = load i8, ptr %11, align 1
%190 = zext i8 %189 to i64
%191 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %190
%192 = load i8, ptr %191, align 1
%193 = sext i8 %192 to i32
%194 = add nsw i32 %193, 46
%195 = trunc i32 %194 to i8
store i8 %195, ptr %191, align 1
br label %243
196: ; preds = %181, %154
%197 = load i8, ptr %11, align 1
%198 = zext i8 %197 to i64
%199 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %198
%200 = load i8, ptr %199, align 1
%201 = sext i8 %200 to i32
%202 = icmp sgt i32 %201, 11
br i1 %202, label %203, label %218
203: ; preds = %196
%204 = load i8, ptr %11, align 1
%205 = zext i8 %204 to i64
%206 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %205
%207 = load i8, ptr %206, align 1
%208 = sext i8 %207 to i32
%209 = icmp slt i32 %208, 38
br i1 %209, label %210, label %218
210: ; preds = %203
%211 = load i8, ptr %11, align 1
%212 = zext i8 %211 to i64
%213 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %212
%214 = load i8, ptr %213, align 1
%215 = sext i8 %214 to i32
%216 = add nsw i32 %215, 53
%217 = trunc i32 %216 to i8
store i8 %217, ptr %213, align 1
br label %242
218: ; preds = %203, %196
%219 = load i8, ptr %11, align 1
%220 = zext i8 %219 to i64
%221 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %220
%222 = load i8, ptr %221, align 1
%223 = sext i8 %222 to i32
%224 = icmp sgt i32 %223, 37
br i1 %224, label %225, label %240
225: ; preds = %218
%226 = load i8, ptr %11, align 1
%227 = zext i8 %226 to i64
%228 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %227
%229 = load i8, ptr %228, align 1
%230 = sext i8 %229 to i32
%231 = icmp slt i32 %230, 64
br i1 %231, label %232, label %240
232: ; preds = %225
%233 = load i8, ptr %11, align 1
%234 = zext i8 %233 to i64
%235 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %234
%236 = load i8, ptr %235, align 1
%237 = sext i8 %236 to i32
%238 = add nsw i32 %237, 59
%239 = trunc i32 %238 to i8
store i8 %239, ptr %235, align 1
br label %241
240: ; preds = %225, %218
store ptr null, ptr %3, align 8
br label %248
241: ; preds = %232
br label %242
242: ; preds = %241, %210
br label %243
243: ; preds = %242, %188
br label %244
244: ; preds = %243
%245 = load i8, ptr %11, align 1
%246 = add i8 %245, 1
store i8 %246, ptr %11, align 1
br label %139, !llvm.loop !11
247: ; preds = %139
store i8 0, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 13), align 1
store ptr @crypt_old.rkey, ptr %3, align 8
br label %248
248: ; preds = %247, %240
%249 = load ptr, ptr %3, align 8
ret ptr %249
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @ntohl(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4mglh9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@crypt_old.rkey = internal global [16 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @crypt_old(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [2 x i64], align 16
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca [4 x i64], align 16
%11 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
store i64 2654435769, ptr %8, align 8
store i64 64, ptr %9, align 8
%12 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 3
store i64 0, ptr %12, align 8
%13 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 2
store i64 0, ptr %13, align 16
%14 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 1
store i64 0, ptr %14, align 8
%15 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
store i64 0, ptr %15, align 16
%16 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
store i64 0, ptr %16, align 8
%17 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
store i64 0, ptr %17, align 16
store i8 0, ptr %11, align 1
%18 = load i8, ptr %11, align 1
%19 = zext i8 %18 to i32
%20 = icmp slt i32 %19, 16
br i1 %20, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %25
%22 = load i8, ptr %11, align 1
%23 = zext i8 %22 to i64
%24 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %23
store i8 0, ptr %24, align 1
br label %25
25: ; preds = %21
%26 = load i8, ptr %11, align 1
%27 = add i8 %26, 1
store i8 %27, ptr %11, align 1
%28 = load i8, ptr %11, align 1
%29 = zext i8 %28 to i32
%30 = icmp slt i32 %29, 16
br i1 %30, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %2
%32 = load ptr, ptr %5, align 8
%33 = load i8, ptr %32, align 1
store i8 %33, ptr @crypt_old.rkey, align 16
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = load i8, ptr %35, align 1
store i8 %36, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 1), align 1
store i8 0, ptr %11, align 1
br label %37
37: ; preds = %62, %31
%38 = load i8, ptr %11, align 1
%39 = zext i8 %38 to i32
%40 = icmp slt i32 %39, 15
br i1 %40, label %41, label %49
41: ; preds = %37
%42 = load ptr, ptr %4, align 8
%43 = load i8, ptr %11, align 1
%44 = zext i8 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %47, 0
br label %49
49: ; preds = %41, %37
%50 = phi i1 [ false, %37 ], [ %48, %41 ]
br i1 %50, label %51, label %65
51: ; preds = %49
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %11, align 1
%54 = zext i8 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load i8, ptr %11, align 1
%58 = zext i8 %57 to i32
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %60
store i8 %56, ptr %61, align 1
br label %62
62: ; preds = %51
%63 = load i8, ptr %11, align 1
%64 = add i8 %63, 1
store i8 %64, ptr %11, align 1
br label %37, !llvm.loop !8
65: ; preds = %49
%66 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
%67 = call i32 @memcpy(ptr noundef %66, ptr noundef @crypt_old.rkey, i32 noundef 32)
store i8 0, ptr %11, align 1
%68 = load i8, ptr %11, align 1
%69 = zext i8 %68 to i32
%70 = icmp slt i32 %69, 4
br i1 %70, label %.lr.ph2, label %86
.lr.ph2: ; preds = %65
br label %71
71: ; preds = %.lr.ph2, %80
%72 = load i8, ptr %11, align 1
%73 = zext i8 %72 to i64
%74 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 %73
%75 = load i64, ptr %74, align 8
%76 = call i64 @ntohl(i64 noundef %75)
%77 = load i8, ptr %11, align 1
%78 = zext i8 %77 to i64
%79 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 %78
store i64 %76, ptr %79, align 8
br label %80
80: ; preds = %71
%81 = load i8, ptr %11, align 1
%82 = add i8 %81, 1
store i8 %82, ptr %11, align 1
%83 = load i8, ptr %11, align 1
%84 = zext i8 %83 to i32
%85 = icmp slt i32 %84, 4
br i1 %85, label %71, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %80
br label %86
86: ; preds = %._crit_edge3, %65
%87 = load i64, ptr %9, align 8
%88 = add i64 %87, -1
store i64 %88, ptr %9, align 8
%89 = icmp ugt i64 %87, 0
br i1 %89, label %.lr.ph5, label %139
.lr.ph5: ; preds = %86
br label %90
90: ; preds = %.lr.ph5, %90
%91 = load i64, ptr %8, align 8
%92 = load i64, ptr %7, align 8
%93 = add i64 %92, %91
store i64 %93, ptr %7, align 8
%94 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%95 = load i64, ptr %94, align 8
%96 = shl i64 %95, 4
%97 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 0
%98 = load i64, ptr %97, align 16
%99 = add i64 %96, %98
%100 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%101 = load i64, ptr %100, align 8
%102 = load i64, ptr %7, align 8
%103 = add i64 %101, %102
%104 = xor i64 %99, %103
%105 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%106 = load i64, ptr %105, align 8
%107 = lshr i64 %106, 5
%108 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 1
%109 = load i64, ptr %108, align 8
%110 = add i64 %107, %109
%111 = xor i64 %104, %110
%112 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%113 = load i64, ptr %112, align 16
%114 = add i64 %113, %111
store i64 %114, ptr %112, align 16
%115 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%116 = load i64, ptr %115, align 16
%117 = shl i64 %116, 4
%118 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 2
%119 = load i64, ptr %118, align 16
%120 = add i64 %117, %119
%121 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%122 = load i64, ptr %121, align 16
%123 = load i64, ptr %7, align 8
%124 = add i64 %122, %123
%125 = xor i64 %120, %124
%126 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%127 = load i64, ptr %126, align 16
%128 = lshr i64 %127, 5
%129 = getelementptr inbounds [4 x i64], ptr %10, i64 0, i64 3
%130 = load i64, ptr %129, align 8
%131 = add i64 %128, %130
%132 = xor i64 %125, %131
%133 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%134 = load i64, ptr %133, align 8
%135 = add i64 %134, %132
store i64 %135, ptr %133, align 8
%136 = load i64, ptr %9, align 8
%137 = add i64 %136, -1
store i64 %137, ptr %9, align 8
%138 = icmp ugt i64 %136, 0
br i1 %138, label %90, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %90
br label %139
139: ; preds = %._crit_edge6, %86
%140 = load ptr, ptr %5, align 8
%141 = load i8, ptr %140, align 1
store i8 %141, ptr @crypt_old.rkey, align 16
%142 = load ptr, ptr %5, align 8
%143 = getelementptr inbounds i8, ptr %142, i64 1
%144 = load i8, ptr %143, align 1
store i8 %144, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 1), align 1
store i8 2, ptr %11, align 1
%145 = load i8, ptr %11, align 1
%146 = zext i8 %145 to i32
%147 = icmp slt i32 %146, 13
br i1 %147, label %.lr.ph8, label %255
.lr.ph8: ; preds = %139
br label %148
148: ; preds = %.lr.ph8, %249
%149 = load i8, ptr %11, align 1
%150 = zext i8 %149 to i32
%151 = icmp eq i32 %150, 8
br i1 %151, label %152, label %159
152: ; preds = %148
%153 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
%154 = load i64, ptr %153, align 8
%155 = lshr i64 %154, 28
%156 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
%157 = load i64, ptr %156, align 16
%158 = or i64 %157, %155
store i64 %158, ptr %156, align 16
br label %159
159: ; preds = %152, %148
%160 = load i8, ptr %11, align 1
%161 = zext i8 %160 to i32
%162 = sub nsw i32 %161, 2
%163 = sdiv i32 %162, 6
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 %164
%166 = load i64, ptr %165, align 8
%167 = and i64 %166, 63
%168 = trunc i64 %167 to i8
%169 = load i8, ptr %11, align 1
%170 = zext i8 %169 to i64
%171 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %170
store i8 %168, ptr %171, align 1
%172 = load i8, ptr %11, align 1
%173 = zext i8 %172 to i32
%174 = sub nsw i32 %173, 2
%175 = sdiv i32 %174, 6
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 %176
%178 = load i64, ptr %177, align 8
%179 = lshr i64 %178, 6
store i64 %179, ptr %177, align 8
%180 = load i8, ptr %11, align 1
%181 = zext i8 %180 to i64
%182 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %181
%183 = load i8, ptr %182, align 1
%184 = sext i8 %183 to i32
%185 = icmp sge i32 %184, 0
br i1 %185, label %186, label %201
186: ; preds = %159
%187 = load i8, ptr %11, align 1
%188 = zext i8 %187 to i64
%189 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %188
%190 = load i8, ptr %189, align 1
%191 = sext i8 %190 to i32
%192 = icmp slt i32 %191, 12
br i1 %192, label %193, label %201
193: ; preds = %186
%194 = load i8, ptr %11, align 1
%195 = zext i8 %194 to i64
%196 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %195
%197 = load i8, ptr %196, align 1
%198 = sext i8 %197 to i32
%199 = add nsw i32 %198, 46
%200 = trunc i32 %199 to i8
store i8 %200, ptr %196, align 1
br label %248
201: ; preds = %186, %159
%202 = load i8, ptr %11, align 1
%203 = zext i8 %202 to i64
%204 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %203
%205 = load i8, ptr %204, align 1
%206 = sext i8 %205 to i32
%207 = icmp sgt i32 %206, 11
br i1 %207, label %208, label %223
208: ; preds = %201
%209 = load i8, ptr %11, align 1
%210 = zext i8 %209 to i64
%211 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %210
%212 = load i8, ptr %211, align 1
%213 = sext i8 %212 to i32
%214 = icmp slt i32 %213, 38
br i1 %214, label %215, label %223
215: ; preds = %208
%216 = load i8, ptr %11, align 1
%217 = zext i8 %216 to i64
%218 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %217
%219 = load i8, ptr %218, align 1
%220 = sext i8 %219 to i32
%221 = add nsw i32 %220, 53
%222 = trunc i32 %221 to i8
store i8 %222, ptr %218, align 1
br label %247
223: ; preds = %208, %201
%224 = load i8, ptr %11, align 1
%225 = zext i8 %224 to i64
%226 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %225
%227 = load i8, ptr %226, align 1
%228 = sext i8 %227 to i32
%229 = icmp sgt i32 %228, 37
br i1 %229, label %230, label %245
230: ; preds = %223
%231 = load i8, ptr %11, align 1
%232 = zext i8 %231 to i64
%233 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %232
%234 = load i8, ptr %233, align 1
%235 = sext i8 %234 to i32
%236 = icmp slt i32 %235, 64
br i1 %236, label %237, label %245
237: ; preds = %230
%238 = load i8, ptr %11, align 1
%239 = zext i8 %238 to i64
%240 = getelementptr inbounds [16 x i8], ptr @crypt_old.rkey, i64 0, i64 %239
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = add nsw i32 %242, 59
%244 = trunc i32 %243 to i8
store i8 %244, ptr %240, align 1
br label %246
245: ; preds = %230, %223
store ptr null, ptr %3, align 8
br label %256
246: ; preds = %237
br label %247
247: ; preds = %246, %215
br label %248
248: ; preds = %247, %193
br label %249
249: ; preds = %248
%250 = load i8, ptr %11, align 1
%251 = add i8 %250, 1
store i8 %251, ptr %11, align 1
%252 = load i8, ptr %11, align 1
%253 = zext i8 %252 to i32
%254 = icmp slt i32 %253, 13
br i1 %254, label %148, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %249
br label %255
255: ; preds = %._crit_edge9, %139
store i8 0, ptr getelementptr inbounds ([16 x i8], ptr @crypt_old.rkey, i64 0, i64 13), align 1
store ptr @crypt_old.rkey, ptr %3, align 8
br label %256
256: ; preds = %255, %245
%257 = load ptr, ptr %3, align 8
ret ptr %257
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @ntohl(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpyq27rhvr.c'
source_filename = "/tmp/tmpyq27rhvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [500 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %8
8: ; preds = %17, %0
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [500 x i32], ptr %6, i64 0, i64 %14
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = getelementptr inbounds [500 x i32], ptr %6, i64 0, i64 0
%22 = load i32, ptr %2, align 4
%23 = call i32 @minmax(ptr noundef %21, i32 noundef %22, ptr noundef %4, ptr noundef %5)
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %24, %25
%27 = call i32 @printf(ptr noundef @.str.1, i32 noundef %26)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @minmax(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyq27rhvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [500 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %16
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [500 x i32], ptr %6, i64 0, i64 %13
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %0
%23 = getelementptr inbounds [500 x i32], ptr %6, i64 0, i64 0
%24 = load i32, ptr %2, align 4
%25 = call i32 @minmax(ptr noundef %23, i32 noundef %24, ptr noundef %4, ptr noundef %5)
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %26, %27
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @minmax(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1c0p2hi8.c'
source_filename = "/tmp/tmp1c0p2hi8.c"
target datalayout = "e-m:e-p270: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/tmp1c0p2hi8.c"
target datalayout = "e-m:e-p270: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/tmptmo992oy.c'
source_filename = "/tmp/tmptmo992oy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" [2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_rep2() #0 {
%1 = call i32 @emit_string(ptr noundef @.str)
ret void
}
declare i32 @emit_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptmo992oy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" [2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_rep2() #0 {
%1 = call i32 @emit_string(ptr noundef @.str)
ret void
}
declare i32 @emit_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.