llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpsewjh2aa.c'
source_filename = "/tmp/tmpsewjh2aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Knapsack 01 Algorithm\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Enter number of objects\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Enter %d profit-weight pairs\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Enter weight of bag \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i32], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%11 = load i32, ptr %4, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
store i32 1, ptr %6, align 4
br label %13
13: ; preds = %25, %0
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %28
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %19
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %22
%24 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %20, ptr noundef %23)
br label %25
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %13, !llvm.loop !6
28: ; preds = %13
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%30 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %5)
%31 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 0
%32 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %5, align 4
%35 = call i32 @knapsack(ptr noundef %31, ptr noundef %32, i32 noundef %33, i32 noundef %34)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @knapsack(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsewjh2aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Knapsack 01 Algorithm\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Enter number of objects\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Enter %d profit-weight pairs\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"Enter weight of bag \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i32], align 16
%3 = alloca [100 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%11 = load i32, ptr %4, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
store i32 1, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %24
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %18
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %21
%23 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %19, ptr noundef %22)
br label %24
24: ; preds = %16
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sle i32 %27, %28
br i1 %29, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%32 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %5)
%33 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 0
%34 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @knapsack(ptr noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %36)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @knapsack(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptefntadi.c'
source_filename = "/tmp/tmptefntadi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"\0AGerando os vetores, %d loop Selection...\0A\00", align 1
@.str.1 = private unnamed_addr constant [68 x i8] c"\0AVetor aleatorio: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c"Vetor crescente: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c"Vetor decrescente: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i64 @malloc(i32 noundef 400000)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 400000)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = call i64 @malloc(i32 noundef 400000)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %46, %0
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %15, 10
br i1 %16, label %17, label %49
17: ; preds = %14
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
%20 = sitofp i32 %19 to float
%21 = call i32 (ptr, float, ...) @printf(ptr noundef @.str, float noundef %20)
%22 = load ptr, ptr %2, align 8
%23 = call i32 @gera(ptr noundef %22, i32 noundef 100000)
%24 = load ptr, ptr %3, align 8
%25 = call i32 @gera_vetor_crescente(ptr noundef %24, i32 noundef 100000)
%26 = load ptr, ptr %4, align 8
%27 = call i32 @gera_vetor_decrescente(ptr noundef %26, i32 noundef 100000)
%28 = load ptr, ptr %2, align 8
%29 = call i32 @selection(ptr noundef %28, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%30 = load float, ptr %5, align 4
%31 = load float, ptr %6, align 4
%32 = fpext float %31 to double
%33 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.1, float noundef %30, double noundef %32)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%34 = load ptr, ptr %3, align 8
%35 = call i32 @selection(ptr noundef %34, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%36 = load float, ptr %5, align 4
%37 = load float, ptr %6, align 4
%38 = fpext float %37 to double
%39 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.2, float noundef %36, double noundef %38)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%40 = load ptr, ptr %4, align 8
%41 = call i32 @selection(ptr noundef %40, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%42 = load float, ptr %5, align 4
%43 = load float, ptr %6, align 4
%44 = fpext float %43 to double
%45 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.3, float noundef %42, double noundef %44)
br label %46
46: ; preds = %17
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
br label %14, !llvm.loop !6
49: ; preds = %14
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef, ...) #1
declare i32 @gera(ptr noundef, i32 noundef) #1
declare i32 @gera_vetor_crescente(ptr noundef, i32 noundef) #1
declare i32 @gera_vetor_decrescente(ptr noundef, i32 noundef) #1
declare i32 @selection(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptefntadi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"\0AGerando os vetores, %d loop Selection...\0A\00", align 1
@.str.1 = private unnamed_addr constant [68 x i8] c"\0AVetor aleatorio: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c"Vetor crescente: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
@.str.3 = private unnamed_addr constant [69 x i8] c"Vetor decrescente: Contador comparacao %.f Contador atribuicao %.f \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i64 @malloc(i32 noundef 400000)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
%10 = call i64 @malloc(i32 noundef 400000)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %3, align 8
%12 = call i64 @malloc(i32 noundef 400000)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 10
br i1 %15, label %.lr.ph, label %50
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %45
%17 = load i32, ptr %7, align 4
%18 = add nsw i32 %17, 1
%19 = sitofp i32 %18 to float
%20 = call i32 (ptr, float, ...) @printf(ptr noundef @.str, float noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call i32 @gera(ptr noundef %21, i32 noundef 100000)
%23 = load ptr, ptr %3, align 8
%24 = call i32 @gera_vetor_crescente(ptr noundef %23, i32 noundef 100000)
%25 = load ptr, ptr %4, align 8
%26 = call i32 @gera_vetor_decrescente(ptr noundef %25, i32 noundef 100000)
%27 = load ptr, ptr %2, align 8
%28 = call i32 @selection(ptr noundef %27, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%29 = load float, ptr %5, align 4
%30 = load float, ptr %6, align 4
%31 = fpext float %30 to double
%32 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.1, float noundef %29, double noundef %31)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%33 = load ptr, ptr %3, align 8
%34 = call i32 @selection(ptr noundef %33, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%35 = load float, ptr %5, align 4
%36 = load float, ptr %6, align 4
%37 = fpext float %36 to double
%38 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.2, float noundef %35, double noundef %37)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%39 = load ptr, ptr %4, align 8
%40 = call i32 @selection(ptr noundef %39, i32 noundef 100000, ptr noundef %5, ptr noundef %6)
%41 = load float, ptr %5, align 4
%42 = load float, ptr %6, align 4
%43 = fpext float %42 to double
%44 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.3, float noundef %41, double noundef %43)
br label %45
45: ; preds = %16
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp slt i32 %48, 10
br i1 %49, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef, ...) #1
declare i32 @gera(ptr noundef, i32 noundef) #1
declare i32 @gera_vetor_crescente(ptr noundef, i32 noundef) #1
declare i32 @gera_vetor_decrescente(ptr noundef, i32 noundef) #1
declare i32 @selection(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8hsupa0i.c'
source_filename = "/tmp/tmp8hsupa0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Usage: eichorncad [-h] [--help]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = load i32, ptr @EXIT_FAILURE, align 4
%3 = call i32 @exit(i32 noundef %2) #3
unreachable
}
declare i32 @printf(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/tmp8hsupa0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Usage: eichorncad [-h] [--help]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = load i32, ptr @EXIT_FAILURE, align 4
%3 = call i32 @exit(i32 noundef %2) #3
unreachable
}
declare i32 @printf(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/tmp6byord74.c'
source_filename = "/tmp/tmp6byord74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inEx(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @getFileSizeEx(ptr noundef %11)
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %12, %13
%15 = load ptr, ptr %9, align 8
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %9, align 8
%17 = load i32, ptr %16, align 4
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %4
store ptr null, ptr %5, align 8
br label %30
20: ; preds = %4
%21 = load i32, ptr %8, align 4
%22 = call ptr @malloc(i32 noundef %21)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = load ptr, ptr %10, align 8
%27 = call i32 @inEx2(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef 0)
%28 = load ptr, ptr %9, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %10, align 8
store ptr %29, ptr %5, align 8
br label %30
30: ; preds = %20, %19
%31 = load ptr, ptr %5, align 8
ret ptr %31
}
declare i32 @getFileSizeEx(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @inEx2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6byord74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inEx(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @getFileSizeEx(ptr noundef %11)
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %12, %13
%15 = load ptr, ptr %9, align 8
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %9, align 8
%17 = load i32, ptr %16, align 4
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %4
store ptr null, ptr %5, align 8
br label %30
20: ; preds = %4
%21 = load i32, ptr %8, align 4
%22 = call ptr @malloc(i32 noundef %21)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = load ptr, ptr %10, align 8
%27 = call i32 @inEx2(ptr noundef %23, i32 noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef 0)
%28 = load ptr, ptr %9, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %10, align 8
store ptr %29, ptr %5, align 8
br label %30
30: ; preds = %20, %19
%31 = load ptr, ptr %5, align 8
ret ptr %31
}
declare i32 @getFileSizeEx(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @inEx2(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjlldajpx.c'
source_filename = "/tmp/tmpjlldajpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ECFP_LP(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %2, align 4
store float 0x3FF6E3CCC0000000, ptr %3, align 4
%5 = load float, ptr %2, align 4
%6 = load float, ptr %3, align 4
%7 = call double @pow(float noundef %5, float noundef %6)
%8 = fmul double 1.001300e+02, %7
%9 = fptrunc double %8 to float
store float %9, ptr %4, align 4
%10 = load float, ptr %4, align 4
ret float %10
}
declare double @pow(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjlldajpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ECFP_LP(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %2, align 4
store float 0x3FF6E3CCC0000000, ptr %3, align 4
%5 = load float, ptr %2, align 4
%6 = load float, ptr %3, align 4
%7 = call double @pow(float noundef %5, float noundef %6)
%8 = fmul double 1.001300e+02, %7
%9 = fptrunc double %8 to float
store float %9, ptr %4, align 4
%10 = load float, ptr %4, align 4
ret float %10
}
declare double @pow(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjmlimzwh.c'
source_filename = "/tmp/tmpjmlimzwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @topdomain(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %7, i64 %10
store ptr %11, ptr %4, align 8
br label %12
12: ; preds = %30, %1
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = icmp uge ptr %13, %14
br i1 %15, label %16, label %33
16: ; preds = %12
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 46
br i1 %20, label %21, label %29
21: ; preds = %16
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = icmp eq i32 %23, 2
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %2, align 8
br label %35
27: ; preds = %21
%28 = load ptr, ptr %4, align 8
store ptr %28, ptr %5, align 8
br label %29
29: ; preds = %27, %16
br label %30
30: ; preds = %29
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %4, align 8
br label %12, !llvm.loop !6
33: ; preds = %12
%34 = load ptr, ptr %5, align 8
store ptr %34, ptr %2, align 8
br label %35
35: ; preds = %33, %25
%36 = load ptr, ptr %2, align 8
ret ptr %36
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjmlimzwh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @topdomain(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %7, i64 %10
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %3, align 8
%14 = icmp uge ptr %12, %13
br i1 %14, label %.lr.ph, label %35
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %29
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 46
br i1 %19, label %20, label %28
20: ; preds = %15
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = icmp eq i32 %22, 2
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = load ptr, ptr %4, align 8
store ptr %25, ptr %2, align 8
br label %37
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
store ptr %27, ptr %5, align 8
br label %28
28: ; preds = %26, %15
br label %29
29: ; preds = %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 -1
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %3, align 8
%34 = icmp uge ptr %32, %33
br i1 %34, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %1
%36 = load ptr, ptr %5, align 8
store ptr %36, ptr %2, align 8
br label %37
37: ; preds = %35, %24
%38 = load ptr, ptr %2, align 8
ret ptr %38
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp60qecap0.c'
source_filename = "/tmp/tmp60qecap0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncat(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 i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %38, %3
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %16, %11
%25 = phi i1 [ false, %11 ], [ %23, %16 ]
br i1 %25, label %26, label %41
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %7, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = add i64 %33, %35
%37 = getelementptr inbounds i8, ptr %32, i64 %36
store i8 %31, ptr %37, align 1
br label %38
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
br label %11, !llvm.loop !6
41: ; preds = %24
%42 = load ptr, ptr %4, align 8
%43 = load i64, ptr %7, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = add i64 %43, %45
%47 = getelementptr inbounds i8, ptr %42, i64 %46
store i8 0, ptr %47, align 1
%48 = load ptr, ptr %4, align 8
ret ptr %48
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp60qecap0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncat(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 i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %38, %3
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = load i64, ptr %6, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %16, %11
%25 = phi i1 [ false, %11 ], [ %23, %16 ]
br i1 %25, label %26, label %41
26: ; preds = %24
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %7, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = add i64 %33, %35
%37 = getelementptr inbounds i8, ptr %32, i64 %36
store i8 %31, ptr %37, align 1
br label %38
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
br label %11, !llvm.loop !6
41: ; preds = %24
%42 = load ptr, ptr %4, align 8
%43 = load i64, ptr %7, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = add i64 %43, %45
%47 = getelementptr inbounds i8, ptr %42, i64 %46
store i8 0, ptr %47, align 1
%48 = load ptr, ptr %4, align 8
ret ptr %48
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp073xn1sq.c'
source_filename = "/tmp/tmp073xn1sq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_get_panel_at(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
br label %10
10: ; preds = %30, %4
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %7, align 4
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %31
14: ; preds = %10
%15 = load ptr, ptr %6, 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 = load i32, ptr %8, align 4
%21 = load i32, ptr %9, align 4
%22 = call i64 @matrix_panel_contains(ptr noundef %19, i32 noundef %20, i32 noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %14
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
store ptr %29, ptr %5, align 8
br label %32
30: ; preds = %14
br label %10, !llvm.loop !6
31: ; preds = %10
store ptr null, ptr %5, align 8
br label %32
32: ; preds = %31, %24
%33 = load ptr, ptr %5, align 8
ret ptr %33
}
declare i64 @matrix_panel_contains(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp073xn1sq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @matrix_get_panel_at(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %7, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %7, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %4
br label %17
13: ; preds = %17
%14 = load i32, ptr %7, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %7, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %._crit_edge, !llvm.loop !6
17: ; preds = %.lr.ph, %13
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %9, align 4
%25 = call i64 @matrix_panel_contains(ptr noundef %22, i32 noundef %23, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %13
27: ; preds = %17
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
store ptr %32, ptr %5, align 8
br label %34
._crit_edge: ; preds = %13
br label %33
33: ; preds = %._crit_edge, %4
store ptr null, ptr %5, align 8
br label %34
34: ; preds = %33, %27
%35 = load ptr, ptr %5, align 8
ret ptr %35
}
declare i64 @matrix_panel_contains(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpiw8c7zgl.c'
source_filename = "/tmp/tmpiw8c7zgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lib\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Gjms10592817877212_br_find_lib_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @Gjms10592817877212_br_find_prefix(ptr noundef null)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %16
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %22
15: ; preds = %9
store ptr null, ptr %2, align 8
br label %22
16: ; preds = %1
%17 = load ptr, ptr %4, align 8
%18 = call ptr @Gjms10592817877212_br_build_path(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %2, align 8
br label %22
22: ; preds = %16, %15, %12
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @Gjms10592817877212_br_find_prefix(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @Gjms10592817877212_br_build_path(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiw8c7zgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lib\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Gjms10592817877212_br_find_lib_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @Gjms10592817877212_br_find_prefix(ptr noundef null)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %16
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %22
15: ; preds = %9
store ptr null, ptr %2, align 8
br label %22
16: ; preds = %1
%17 = load ptr, ptr %4, align 8
%18 = call ptr @Gjms10592817877212_br_build_path(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %2, align 8
br label %22
22: ; preds = %16, %15, %12
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @Gjms10592817877212_br_find_prefix(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @Gjms10592817877212_br_build_path(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpodspu77k.c'
source_filename = "/tmp/tmpodspu77k.c"
target datalayout = "e-m:e-p270: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.spi_ioc_transfer = type { i64, i32, i32, i64, i64, i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SPI_read(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.spi_ioc_transfer, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @SPI_getBitsPerWord(i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32, ptr %8, align 4
store i32 %16, ptr %4, align 4
br label %56
17: ; preds = %3
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = sitofp i32 %20 to float
%22 = fpext float %21 to double
%23 = fdiv double %22, 8.000000e+00
%24 = fadd double %23, 5.000000e-01
%25 = fptosi double %24 to i32
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %17
store i32 0, ptr %4, align 4
br label %56
29: ; preds = %17
%30 = load i32, ptr %9, align 4
%31 = icmp sgt i32 %30, 4096
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 4096, ptr %9, align 4
br label %33
33: ; preds = %32, %29
%34 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 48)
%35 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 6
store i64 0, ptr %35, align 8
%36 = load ptr, ptr %6, align 8
%37 = ptrtoint ptr %36 to i64
%38 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 0
store i64 %37, ptr %38, align 8
%39 = load i32, ptr %9, align 4
%40 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 1
store i32 %39, ptr %40, align 8
%41 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 5
store i64 0, ptr %41, align 8
%42 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 4
store i64 0, ptr %42, align 8
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 2
store i32 %43, ptr %44, align 4
%45 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 3
store i64 0, ptr %45, align 8
%46 = load i32, ptr %5, align 4
%47 = call i32 @SPI_IOC_MESSAGE(i32 noundef 1)
%48 = call i64 @ioctl(i32 noundef %46, i32 noundef %47, ptr noundef %10)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %33
store i32 -1, ptr %4, align 4
br label %56
51: ; preds = %33
%52 = load i32, ptr %9, align 4
%53 = shl i32 %52, 3
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %53, %54
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %51, %50, %28, %15
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare i32 @SPI_getBitsPerWord(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @SPI_IOC_MESSAGE(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/tmpodspu77k.c"
target datalayout = "e-m:e-p270: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.spi_ioc_transfer = type { i64, i32, i32, i64, i64, i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SPI_read(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.spi_ioc_transfer, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @SPI_getBitsPerWord(i32 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32, ptr %8, align 4
store i32 %16, ptr %4, align 4
br label %56
17: ; preds = %3
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = sitofp i32 %20 to float
%22 = fpext float %21 to double
%23 = fdiv double %22, 8.000000e+00
%24 = fadd double %23, 5.000000e-01
%25 = fptosi double %24 to i32
store i32 %25, ptr %9, align 4
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %17
store i32 0, ptr %4, align 4
br label %56
29: ; preds = %17
%30 = load i32, ptr %9, align 4
%31 = icmp sgt i32 %30, 4096
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 4096, ptr %9, align 4
br label %33
33: ; preds = %32, %29
%34 = call i32 @memset(ptr noundef %10, i32 noundef 0, i32 noundef 48)
%35 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 6
store i64 0, ptr %35, align 8
%36 = load ptr, ptr %6, align 8
%37 = ptrtoint ptr %36 to i64
%38 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 0
store i64 %37, ptr %38, align 8
%39 = load i32, ptr %9, align 4
%40 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 1
store i32 %39, ptr %40, align 8
%41 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 5
store i64 0, ptr %41, align 8
%42 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 4
store i64 0, ptr %42, align 8
%43 = load i32, ptr %8, align 4
%44 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 2
store i32 %43, ptr %44, align 4
%45 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %10, i32 0, i32 3
store i64 0, ptr %45, align 8
%46 = load i32, ptr %5, align 4
%47 = call i32 @SPI_IOC_MESSAGE(i32 noundef 1)
%48 = call i64 @ioctl(i32 noundef %46, i32 noundef %47, ptr noundef %10)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %33
store i32 -1, ptr %4, align 4
br label %56
51: ; preds = %33
%52 = load i32, ptr %9, align 4
%53 = shl i32 %52, 3
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %53, %54
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %51, %50, %28, %15
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare i32 @SPI_getBitsPerWord(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @SPI_IOC_MESSAGE(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/tmpgt42pr_3.c'
source_filename = "/tmp/tmpgt42pr_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WSQ_EndSubgraph() #0 {
%1 = call i32 (...) @Scheme_EndSubgraph()
ret void
}
declare i32 @Scheme_EndSubgraph(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgt42pr_3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @WSQ_EndSubgraph() #0 {
%1 = call i32 (...) @Scheme_EndSubgraph()
ret void
}
declare i32 @Scheme_EndSubgraph(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp672s046j.c'
source_filename = "/tmp/tmp672s046j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Vuvedi chislo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Cifri v chisloto: \0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"0: %d \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"1: %d \0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"2: %d \0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"3: %d \0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"4: %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"5: %d \0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"6: %d \0A\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"7: %d \0A\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"8: %d \0A\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"9: %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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %16
16: ; preds = %81, %0
%17 = load i32, ptr %2, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %84
19: ; preds = %16
%20 = load i32, ptr %2, align 4
%21 = srem i32 %20, 10
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %27
27: ; preds = %24, %19
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %27
%34 = load i32, ptr %3, align 4
%35 = icmp eq i32 %34, 2
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %36, %33
%40 = load i32, ptr %3, align 4
%41 = icmp eq i32 %40, 3
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %45
45: ; preds = %42, %39
%46 = load i32, ptr %3, align 4
%47 = icmp eq i32 %46, 4
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %8, align 4
br label %51
51: ; preds = %48, %45
%52 = load i32, ptr %3, align 4
%53 = icmp eq i32 %52, 5
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
br label %57
57: ; preds = %54, %51
%58 = load i32, ptr %3, align 4
%59 = icmp eq i32 %58, 6
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
br label %63
63: ; preds = %60, %57
%64 = load i32, ptr %3, align 4
%65 = icmp eq i32 %64, 7
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load i32, ptr %11, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %11, align 4
br label %69
69: ; preds = %66, %63
%70 = load i32, ptr %3, align 4
%71 = icmp eq i32 %70, 8
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %12, align 4
br label %75
75: ; preds = %72, %69
%76 = load i32, ptr %3, align 4
%77 = icmp eq i32 %76, 9
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %13, align 4
br label %81
81: ; preds = %78, %75
%82 = load i32, ptr %2, align 4
%83 = sdiv i32 %82, 10
store i32 %83, ptr %2, align 4
br label %16, !llvm.loop !6
84: ; preds = %16
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%86 = load i32, ptr %4, align 4
%87 = icmp sgt i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %84
%89 = load i32, ptr %4, align 4
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %89)
br label %91
91: ; preds = %88, %84
%92 = load i32, ptr %5, align 4
%93 = icmp sgt i32 %92, 0
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = load i32, ptr %5, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %95)
br label %97
97: ; preds = %94, %91
%98 = load i32, ptr %6, align 4
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = load i32, ptr %6, align 4
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %101)
br label %103
103: ; preds = %100, %97
%104 = load i32, ptr %7, align 4
%105 = icmp sgt i32 %104, 0
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load i32, ptr %7, align 4
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %107)
br label %109
109: ; preds = %106, %103
%110 = load i32, ptr %8, align 4
%111 = icmp sgt i32 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load i32, ptr %8, align 4
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %113)
br label %115
115: ; preds = %112, %109
%116 = load i32, ptr %9, align 4
%117 = icmp sgt i32 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load i32, ptr %9, align 4
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %119)
br label %121
121: ; preds = %118, %115
%122 = load i32, ptr %10, align 4
%123 = icmp sgt i32 %122, 0
br i1 %123, label %124, label %127
124: ; preds = %121
%125 = load i32, ptr %10, align 4
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %125)
br label %127
127: ; preds = %124, %121
%128 = load i32, ptr %11, align 4
%129 = icmp sgt i32 %128, 0
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = load i32, ptr %11, align 4
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %131)
br label %133
133: ; preds = %130, %127
%134 = load i32, ptr %12, align 4
%135 = icmp sgt i32 %134, 0
br i1 %135, label %136, label %139
136: ; preds = %133
%137 = load i32, ptr %12, align 4
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %137)
br label %139
139: ; preds = %136, %133
%140 = load i32, ptr %13, align 4
%141 = icmp sgt i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %139
%143 = load i32, ptr %13, align 4
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %143)
br label %145
145: ; preds = %142, %139
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp672s046j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Vuvedi chislo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Cifri v chisloto: \0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"0: %d \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"1: %d \0A\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"2: %d \0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"3: %d \0A\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"4: %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"5: %d \0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"6: %d \0A\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"7: %d \0A\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"8: %d \0A\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"9: %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 i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = load i32, ptr %2, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %.lr.ph, label %85
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %80
%19 = load i32, ptr %2, align 4
%20 = srem i32 %19, 10
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %26
26: ; preds = %23, %18
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %32
32: ; preds = %29, %26
%33 = load i32, ptr %3, align 4
%34 = icmp eq i32 %33, 2
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
br label %38
38: ; preds = %35, %32
%39 = load i32, ptr %3, align 4
%40 = icmp eq i32 %39, 3
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %44
44: ; preds = %41, %38
%45 = load i32, ptr %3, align 4
%46 = icmp eq i32 %45, 4
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
br label %50
50: ; preds = %47, %44
%51 = load i32, ptr %3, align 4
%52 = icmp eq i32 %51, 5
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %53, %50
%57 = load i32, ptr %3, align 4
%58 = icmp eq i32 %57, 6
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, ptr %10, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %10, align 4
br label %62
62: ; preds = %59, %56
%63 = load i32, ptr %3, align 4
%64 = icmp eq i32 %63, 7
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, ptr %11, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %11, align 4
br label %68
68: ; preds = %65, %62
%69 = load i32, ptr %3, align 4
%70 = icmp eq i32 %69, 8
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load i32, ptr %12, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %12, align 4
br label %74
74: ; preds = %71, %68
%75 = load i32, ptr %3, align 4
%76 = icmp eq i32 %75, 9
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %13, align 4
br label %80
80: ; preds = %77, %74
%81 = load i32, ptr %2, align 4
%82 = sdiv i32 %81, 10
store i32 %82, ptr %2, align 4
%83 = load i32, ptr %2, align 4
%84 = icmp sgt i32 %83, 0
br i1 %84, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %85
85: ; preds = %._crit_edge, %0
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%87 = load i32, ptr %4, align 4
%88 = icmp sgt i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %85
%90 = load i32, ptr %4, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %90)
br label %92
92: ; preds = %89, %85
%93 = load i32, ptr %5, align 4
%94 = icmp sgt i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load i32, ptr %5, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %96)
br label %98
98: ; preds = %95, %92
%99 = load i32, ptr %6, align 4
%100 = icmp sgt i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load i32, ptr %6, align 4
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %102)
br label %104
104: ; preds = %101, %98
%105 = load i32, ptr %7, align 4
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %104
%108 = load i32, ptr %7, align 4
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %108)
br label %110
110: ; preds = %107, %104
%111 = load i32, ptr %8, align 4
%112 = icmp sgt i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load i32, ptr %8, align 4
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %114)
br label %116
116: ; preds = %113, %110
%117 = load i32, ptr %9, align 4
%118 = icmp sgt i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %116
%120 = load i32, ptr %9, align 4
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %120)
br label %122
122: ; preds = %119, %116
%123 = load i32, ptr %10, align 4
%124 = icmp sgt i32 %123, 0
br i1 %124, label %125, label %128
125: ; preds = %122
%126 = load i32, ptr %10, align 4
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %126)
br label %128
128: ; preds = %125, %122
%129 = load i32, ptr %11, align 4
%130 = icmp sgt i32 %129, 0
br i1 %130, label %131, label %134
131: ; preds = %128
%132 = load i32, ptr %11, align 4
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %132)
br label %134
134: ; preds = %131, %128
%135 = load i32, ptr %12, align 4
%136 = icmp sgt i32 %135, 0
br i1 %136, label %137, label %140
137: ; preds = %134
%138 = load i32, ptr %12, align 4
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %138)
br label %140
140: ; preds = %137, %134
%141 = load i32, ptr %13, align 4
%142 = icmp sgt i32 %141, 0
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = load i32, ptr %13, align 4
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %144)
br label %146
146: ; preds = %143, %140
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0r05f7ww.c'
source_filename = "/tmp/tmp0r05f7ww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bin2hex.table = internal global [16 x i8] c"0123456789ABCDEF", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bin2hex(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %4
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %20, label %19
19: ; preds = %16, %13, %4
store i32 -1, ptr %5, align 4
br label %63
20: ; preds = %16
%21 = load i64, ptr %7, align 8
%22 = shl i64 %21, 1
%23 = add i64 %22, 1
%24 = load i64, ptr %9, align 8
%25 = icmp ugt i64 %23, %24
br i1 %25, label %32, label %26
26: ; preds = %20
%27 = load i64, ptr %7, align 8
%28 = shl i64 %27, 1
%29 = add i64 %28, 1
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %26, %20
store i32 -1, ptr %5, align 4
br label %63
33: ; preds = %26
%34 = load ptr, ptr %6, align 8
store ptr %34, ptr %10, align 8
br label %35
35: ; preds = %57, %33
%36 = load ptr, ptr %10, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = ashr i32 %38, 4
%40 = and i32 %39, 15
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [16 x i8], ptr @bin2hex.table, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load ptr, ptr %8, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %8, align 8
store i8 %43, ptr %44, align 1
%46 = load ptr, ptr %10, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = and i32 %48, 15
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [16 x i8], ptr @bin2hex.table, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %8, align 8
store i8 %52, ptr %53, align 1
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %10, align 8
br label %57
57: ; preds = %35
%58 = load i64, ptr %7, align 8
%59 = add i64 %58, -1
store i64 %59, ptr %7, align 8
%60 = icmp ne i64 %59, 0
br i1 %60, label %35, label %61, !llvm.loop !6
61: ; preds = %57
%62 = load ptr, ptr %8, align 8
store i8 0, ptr %62, align 1
store i32 0, ptr %5, align 4
br label %63
63: ; preds = %61, %32, %19
%64 = load i32, ptr %5, align 4
ret i32 %64
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0r05f7ww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bin2hex.table = internal global [16 x i8] c"0123456789ABCDEF", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bin2hex(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %4
%14 = load i64, ptr %7, align 8
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %20, label %19
19: ; preds = %16, %13, %4
store i32 -1, ptr %5, align 4
br label %63
20: ; preds = %16
%21 = load i64, ptr %7, align 8
%22 = shl i64 %21, 1
%23 = add i64 %22, 1
%24 = load i64, ptr %9, align 8
%25 = icmp ugt i64 %23, %24
br i1 %25, label %32, label %26
26: ; preds = %20
%27 = load i64, ptr %7, align 8
%28 = shl i64 %27, 1
%29 = add i64 %28, 1
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %26, %20
store i32 -1, ptr %5, align 4
br label %63
33: ; preds = %26
%34 = load ptr, ptr %6, align 8
store ptr %34, ptr %10, align 8
br label %35
35: ; preds = %57, %33
%36 = load ptr, ptr %10, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = ashr i32 %38, 4
%40 = and i32 %39, 15
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [16 x i8], ptr @bin2hex.table, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load ptr, ptr %8, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %8, align 8
store i8 %43, ptr %44, align 1
%46 = load ptr, ptr %10, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = and i32 %48, 15
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [16 x i8], ptr @bin2hex.table, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %8, align 8
store i8 %52, ptr %53, align 1
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %10, align 8
br label %57
57: ; preds = %35
%58 = load i64, ptr %7, align 8
%59 = add i64 %58, -1
store i64 %59, ptr %7, align 8
%60 = icmp ne i64 %59, 0
br i1 %60, label %35, label %61, !llvm.loop !6
61: ; preds = %57
%62 = load ptr, ptr %8, align 8
store i8 0, ptr %62, align 1
store i32 0, ptr %5, align 4
br label %63
63: ; preds = %61, %32, %19
%64 = load i32, ptr %5, align 4
ret i32 %64
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpwbdtwv7l.c'
source_filename = "/tmp/tmpwbdtwv7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test7(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @test2(i32 noundef 2)
%4 = add nsw i32 2, %3
%5 = call i32 @test2(i32 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %7
%10 = phi i32 [ %5, %7 ], [ 2, %8 ]
ret i32 %10
}
declare i32 @test2(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/tmpwbdtwv7l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test7(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @test2(i32 noundef 2)
%4 = add nsw i32 2, %3
%5 = call i32 @test2(i32 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %7
%10 = phi i32 [ %5, %7 ], [ 2, %8 ]
ret i32 %10
}
declare i32 @test2(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/tmp3oeb0d8m.c'
source_filename = "/tmp/tmp3oeb0d8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rnd_uniform_d() #0 {
%1 = call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load double, ptr @RAND_MAX, align 8
%4 = fdiv double %2, %3
ret double %4
}
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3oeb0d8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rnd_uniform_d() #0 {
%1 = call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load double, ptr @RAND_MAX, align 8
%4 = fdiv double %2, %3
ret double %4
}
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg07ti841.c'
source_filename = "/tmp/tmpg07ti841.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %6, align 4
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %7, align 4
br label %13
13: ; preds = %42, %3
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %45
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp slt i32 %22, %27
br i1 %28, label %29, label %41
29: ; preds = %17
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = call i32 @swap(ptr noundef %33, ptr noundef %37)
%39 = load i32, ptr %9, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %9, align 4
br label %41
41: ; preds = %29, %17
br label %42
42: ; preds = %41
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %13, !llvm.loop !6
45: ; preds = %13
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = call i32 @swap(ptr noundef %49, ptr noundef %53)
%55 = load i32, ptr %9, align 4
ret i32 %55
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg07ti841.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @partition(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %6, align 4
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %9, align 4
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %47
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %41
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp slt i32 %21, %26
br i1 %27, label %28, label %40
28: ; preds = %16
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = call i32 @swap(ptr noundef %32, ptr noundef %36)
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
br label %40
40: ; preds = %28, %16
br label %41
41: ; preds = %40
%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 = load i32, ptr %6, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %3
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %9, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = call i32 @swap(ptr noundef %51, ptr noundef %55)
%57 = load i32, ptr %9, align 4
ret i32 %57
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn6cy634f.c'
source_filename = "/tmp/tmpn6cy634f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = 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/tmpn6cy634f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = 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/tmp88z3_wkl.c'
source_filename = "/tmp/tmp88z3_wkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_stdin() #0 {
%1 = load ptr, ptr @stdout, align 8
ret ptr %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp88z3_wkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_stdin() #0 {
%1 = load ptr, ptr @stdout, align 8
ret ptr %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw716kprp.c'
source_filename = "/tmp/tmpw716kprp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_open(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_GETFD, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, ptr noundef %5)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %19
13: ; preds = %1
%14 = load i32, ptr @errno, align 4
%15 = load i32, ptr @EBADF, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13, %1
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw716kprp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_open(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @atoi(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr @F_GETFD, align 4
%10 = call i32 @fcntl(i32 noundef %8, i32 noundef %9, ptr noundef %5)
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %19
13: ; preds = %1
%14 = load i32, ptr @errno, align 4
%15 = load i32, ptr @EBADF, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %13, %1
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare i32 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxkif0_ot.c'
source_filename = "/tmp/tmpxkif0_ot.c"
target datalayout = "e-m:e-p270: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/tmpxkif0_ot.c"
target datalayout = "e-m:e-p270: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/tmpz3xs0u4u.c'
source_filename = "/tmp/tmpz3xs0u4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %11, %1
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = call signext i8 @toupper(i8 noundef signext %7)
%9 = load ptr, ptr %3, align 8
store i8 %8, ptr %9, align 1
%10 = icmp ne i8 %8, 0
br i1 %10, label %11, label %14
11: ; preds = %5
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %3, align 8
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = load ptr, ptr %2, align 8
ret ptr %15
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3xs0u4u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @upstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = call signext i8 @toupper(i8 noundef signext %6)
%8 = load ptr, ptr %3, align 8
store i8 %7, ptr %8, align 1
%9 = icmp ne i8 %7, 0
br i1 %9, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = call signext i8 @toupper(i8 noundef signext %14)
%16 = load ptr, ptr %3, align 8
store i8 %15, ptr %16, align 1
%17 = icmp ne i8 %15, 0
br i1 %17, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %18
18: ; preds = %._crit_edge, %1
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbz_v0svx.c'
source_filename = "/tmp/tmpbz_v0svx.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"Usage: ./test m1 m2\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 ne i32 %6, 3
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
%11 = call i32 @exit(i32 noundef -1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = call ptr @multiply(ptr noundef %15, ptr noundef %18)
%20 = call i32 @printf(ptr noundef @.str.1, ptr noundef %19)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @multiply(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/tmpbz_v0svx.c"
target datalayout = "e-m:e-p270: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 [21 x i8] c"Usage: ./test m1 m2\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 ne i32 %6, 3
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
%11 = call i32 @exit(i32 noundef -1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = call ptr @multiply(ptr noundef %15, ptr noundef %18)
%20 = call i32 @printf(ptr noundef @.str.1, ptr noundef %19)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @multiply(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/tmprvjq89b8.c'
source_filename = "/tmp/tmprvjq89b8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = 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/tmprvjq89b8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = 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/tmpsxbisoca.c'
source_filename = "/tmp/tmpsxbisoca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Lazy_glStartInstrumentsSGIX() #0 {
%1 = call i64 (...) @GLeeInit()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @pglStartInstrumentsSGIX()
br label %5
5: ; preds = %3, %0
ret void
}
declare i64 @GLeeInit(...) #1
declare i32 @pglStartInstrumentsSGIX(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsxbisoca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Lazy_glStartInstrumentsSGIX() #0 {
%1 = call i64 (...) @GLeeInit()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @pglStartInstrumentsSGIX()
br label %5
5: ; preds = %3, %0
ret void
}
declare i64 @GLeeInit(...) #1
declare i32 @pglStartInstrumentsSGIX(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq0ce8c9d.c'
source_filename = "/tmp/tmpq0ce8c9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_el(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @add_el_full(ptr noundef %5, i32 noundef %6, i32 noundef -1, i32 noundef -1)
ret i32 %7
}
declare i32 @add_el_full(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/tmpq0ce8c9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_el(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @add_el_full(ptr noundef %5, i32 noundef %6, i32 noundef -1, i32 noundef -1)
ret i32 %7
}
declare i32 @add_el_full(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/tmp9gm2gu76.c'
source_filename = "/tmp/tmp9gm2gu76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"/* auto-generated array - do not modify */\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"#include \22actionlist.h\22\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"#include \22control.h\22\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"struct action_struct action_table[]={\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c" {\22%s\22,%s_action},\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"};\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"\0Aint action_count=%d;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i32 noundef 100)
store ptr %4, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = call i32 @puts(ptr noundef @.str.2)
%8 = call i32 @puts(ptr noundef @.str.3)
br label %9
9: ; preds = %14, %0
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @feof(i32 noundef %10)
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
br i1 %13, label %14, label %22
14: ; preds = %9
%15 = load ptr, ptr %2, align 8
%16 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %17, ptr noundef %18)
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = call i32 @puts(ptr noundef @.str.6)
%24 = load i32, ptr %3, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %24)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @feof(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9gm2gu76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"/* auto-generated array - do not modify */\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"#include \22actionlist.h\22\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"#include \22control.h\22\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"struct action_struct action_table[]={\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c" {\22%s\22,%s_action},\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"};\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"\0Aint action_count=%d;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call ptr @malloc(i32 noundef 100)
store ptr %4, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = call i32 @puts(ptr noundef @.str.2)
%8 = call i32 @puts(ptr noundef @.str.3)
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @feof(i32 noundef %9)
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %13
%14 = load ptr, ptr %2, align 8
%15 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = load ptr, ptr %2, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %16, ptr noundef %17)
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr @stdin, align 4
%22 = call i32 @feof(i32 noundef %21)
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %25
25: ; preds = %._crit_edge, %0
%26 = call i32 @puts(ptr noundef @.str.6)
%27 = load i32, ptr %3, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %27)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @feof(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk7e9w3dh.c'
source_filename = "/tmp/tmpk7e9w3dh.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"plgndr(): bad argument\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @plgndr(i32 noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %3
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load double, ptr %7, align 8
%23 = call double @llvm.fabs.f64(double %22)
%24 = fcmp ogt double %23, 1.000000e+00
br i1 %24, label %25, label %29
25: ; preds = %21, %17, %3
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str)
%28 = call i32 @exit(i32 noundef 1) #5
unreachable
29: ; preds = %21
store double 1.000000e+00, ptr %10, align 8
%30 = load i32, ptr %6, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %56
32: ; preds = %29
%33 = load double, ptr %7, align 8
%34 = fsub double 1.000000e+00, %33
%35 = load double, ptr %7, align 8
%36 = fadd double 1.000000e+00, %35
%37 = fmul double %34, %36
%38 = call double @sqrt(double noundef %37) #6
store double %38, ptr %12, align 8
store double 1.000000e+00, ptr %8, align 8
store i32 1, ptr %13, align 4
br label %39
39: ; preds = %52, %32
%40 = load i32, ptr %13, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp sle i32 %40, %41
br i1 %42, label %43, label %55
43: ; preds = %39
%44 = load double, ptr %8, align 8
%45 = fneg double %44
%46 = load double, ptr %12, align 8
%47 = fmul double %45, %46
%48 = load double, ptr %10, align 8
%49 = fmul double %48, %47
store double %49, ptr %10, align 8
%50 = load double, ptr %8, align 8
%51 = fadd double %50, 2.000000e+00
store double %51, ptr %8, align 8
br label %52
52: ; preds = %43
%53 = load i32, ptr %13, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %13, align 4
br label %39, !llvm.loop !6
55: ; preds = %39
br label %56
56: ; preds = %55, %29
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %6, align 4
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = load double, ptr %10, align 8
store double %61, ptr %4, align 8
br label %113
62: ; preds = %56
%63 = load double, ptr %7, align 8
%64 = load i32, ptr %6, align 4
%65 = mul nsw i32 2, %64
%66 = add nsw i32 %65, 1
%67 = sitofp i32 %66 to double
%68 = fmul double %63, %67
%69 = load double, ptr %10, align 8
%70 = fmul double %68, %69
store double %70, ptr %11, align 8
%71 = load i32, ptr %5, align 4
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
%74 = icmp eq i32 %71, %73
br i1 %74, label %75, label %77
75: ; preds = %62
%76 = load double, ptr %11, align 8
store double %76, ptr %4, align 8
br label %113
77: ; preds = %62
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 2
store i32 %79, ptr %14, align 4
br label %80
80: ; preds = %108, %77
%81 = load i32, ptr %14, align 4
%82 = load i32, ptr %5, align 4
%83 = icmp sle i32 %81, %82
br i1 %83, label %84, label %111
84: ; preds = %80
%85 = load double, ptr %7, align 8
%86 = load i32, ptr %14, align 4
%87 = mul nsw i32 2, %86
%88 = sub nsw i32 %87, 1
%89 = sitofp i32 %88 to double
%90 = fmul double %85, %89
%91 = load double, ptr %11, align 8
%92 = load i32, ptr %14, align 4
%93 = load i32, ptr %6, align 4
%94 = add nsw i32 %92, %93
%95 = sub nsw i32 %94, 1
%96 = sitofp i32 %95 to double
%97 = load double, ptr %10, align 8
%98 = fmul double %96, %97
%99 = fneg double %98
%100 = call double @llvm.fmuladd.f64(double %90, double %91, double %99)
%101 = load i32, ptr %14, align 4
%102 = load i32, ptr %6, align 4
%103 = sub nsw i32 %101, %102
%104 = sitofp i32 %103 to double
%105 = fdiv double %100, %104
store double %105, ptr %9, align 8
%106 = load double, ptr %11, align 8
store double %106, ptr %10, align 8
%107 = load double, ptr %9, align 8
store double %107, ptr %11, align 8
br label %108
108: ; preds = %84
%109 = load i32, ptr %14, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %14, align 4
br label %80, !llvm.loop !8
111: ; preds = %80
%112 = load double, ptr %9, align 8
store double %112, ptr %4, align 8
br label %113
113: ; preds = %111, %75, %60
%114 = load double, ptr %4, align 8
ret double %114
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
; Function Attrs: nounwind
declare double @sqrt(double noundef) #4
; 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) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn }
attributes #6 = { 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk7e9w3dh.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"plgndr(): bad argument\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @plgndr(i32 noundef %0, i32 noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %3
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load double, ptr %7, align 8
%23 = call double @llvm.fabs.f64(double %22)
%24 = fcmp ogt double %23, 1.000000e+00
br i1 %24, label %25, label %29
25: ; preds = %21, %17, %3
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str)
%28 = call i32 @exit(i32 noundef 1) #5
unreachable
29: ; preds = %21
store double 1.000000e+00, ptr %10, align 8
%30 = load i32, ptr %6, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %58
32: ; preds = %29
%33 = load double, ptr %7, align 8
%34 = fsub double 1.000000e+00, %33
%35 = load double, ptr %7, align 8
%36 = fadd double 1.000000e+00, %35
%37 = fmul double %34, %36
%38 = call double @sqrt(double noundef %37) #6
store double %38, ptr %12, align 8
store double 1.000000e+00, ptr %8, align 8
store i32 1, ptr %13, align 4
%39 = load i32, ptr %13, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %.lr.ph, label %57
.lr.ph: ; preds = %32
br label %42
42: ; preds = %.lr.ph, %51
%43 = load double, ptr %8, align 8
%44 = fneg double %43
%45 = load double, ptr %12, align 8
%46 = fmul double %44, %45
%47 = load double, ptr %10, align 8
%48 = fmul double %47, %46
store double %48, ptr %10, align 8
%49 = load double, ptr %8, align 8
%50 = fadd double %49, 2.000000e+00
store double %50, ptr %8, align 8
br label %51
51: ; preds = %42
%52 = load i32, ptr %13, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %13, align 4
%54 = load i32, ptr %13, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp sle i32 %54, %55
br i1 %56, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %57
57: ; preds = %._crit_edge, %32
br label %58
58: ; preds = %57, %29
%59 = load i32, ptr %5, align 4
%60 = load i32, ptr %6, align 4
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load double, ptr %10, align 8
store double %63, ptr %4, align 8
br label %117
64: ; preds = %58
%65 = load double, ptr %7, align 8
%66 = load i32, ptr %6, align 4
%67 = mul nsw i32 2, %66
%68 = add nsw i32 %67, 1
%69 = sitofp i32 %68 to double
%70 = fmul double %65, %69
%71 = load double, ptr %10, align 8
%72 = fmul double %70, %71
store double %72, ptr %11, align 8
%73 = load i32, ptr %5, align 4
%74 = load i32, ptr %6, align 4
%75 = add nsw i32 %74, 1
%76 = icmp eq i32 %73, %75
br i1 %76, label %77, label %79
77: ; preds = %64
%78 = load double, ptr %11, align 8
store double %78, ptr %4, align 8
br label %117
79: ; preds = %64
%80 = load i32, ptr %6, align 4
%81 = add nsw i32 %80, 2
store i32 %81, ptr %14, align 4
%82 = load i32, ptr %14, align 4
%83 = load i32, ptr %5, align 4
%84 = icmp sle i32 %82, %83
br i1 %84, label %.lr.ph2, label %115
.lr.ph2: ; preds = %79
br label %85
85: ; preds = %.lr.ph2, %109
%86 = load double, ptr %7, align 8
%87 = load i32, ptr %14, align 4
%88 = mul nsw i32 2, %87
%89 = sub nsw i32 %88, 1
%90 = sitofp i32 %89 to double
%91 = fmul double %86, %90
%92 = load double, ptr %11, align 8
%93 = load i32, ptr %14, align 4
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %93, %94
%96 = sub nsw i32 %95, 1
%97 = sitofp i32 %96 to double
%98 = load double, ptr %10, align 8
%99 = fmul double %97, %98
%100 = fneg double %99
%101 = call double @llvm.fmuladd.f64(double %91, double %92, double %100)
%102 = load i32, ptr %14, align 4
%103 = load i32, ptr %6, align 4
%104 = sub nsw i32 %102, %103
%105 = sitofp i32 %104 to double
%106 = fdiv double %101, %105
store double %106, ptr %9, align 8
%107 = load double, ptr %11, align 8
store double %107, ptr %10, align 8
%108 = load double, ptr %9, align 8
store double %108, ptr %11, align 8
br label %109
109: ; preds = %85
%110 = load i32, ptr %14, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %14, align 4
%112 = load i32, ptr %14, align 4
%113 = load i32, ptr %5, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %85, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %109
br label %115
115: ; preds = %._crit_edge3, %79
%116 = load double, ptr %9, align 8
store double %116, ptr %4, align 8
br label %117
117: ; preds = %115, %77, %62
%118 = load double, ptr %4, align 8
ret double %118
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
; Function Attrs: nounwind
declare double @sqrt(double noundef) #4
; 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) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn }
attributes #6 = { 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}
|
; ModuleID = '/tmp/tmpf4dw4oxu.c'
source_filename = "/tmp/tmpf4dw4oxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pretp0(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %49, %2
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %52
15: ; preds = %11
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %16, %17
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %15
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23)
%25 = load i32, ptr %7, align 4
%26 = sub nsw i32 %25, 1
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %26)
br label %28
28: ; preds = %21, %15
store i32 0, ptr %6, align 4
br label %29
29: ; preds = %38, %28
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %41
33: ; preds = %29
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %34, %35
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %36)
br label %38
38: ; preds = %33
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
br label %29, !llvm.loop !6
41: ; preds = %29
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = load i32, ptr %3, align 4
%44 = load i32, ptr %5, align 4
%45 = sub nsw i32 %43, %44
%46 = sub nsw i32 %45, 1
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, %46
store i32 %48, ptr %7, align 4
br label %49
49: ; preds = %41
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %11, !llvm.loop !8
52: ; preds = %11
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf4dw4oxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pretp0(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph2, label %56
.lr.ph2: ; preds = %2
br label %14
14: ; preds = %.lr.ph2, %50
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 %15, %16
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %14
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %24, 1
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %20, %14
store i32 0, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %42
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %36
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %32, %33
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %34)
br label %36
36: ; preds = %31
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %27
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%44 = load i32, ptr %3, align 4
%45 = load i32, ptr %5, align 4
%46 = sub nsw i32 %44, %45
%47 = sub nsw i32 %46, 1
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %42
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp1cnbb4om.c'
source_filename = "/tmp/tmp1cnbb4om.c"
target datalayout = "e-m:e-p270: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/tmp1cnbb4om.c"
target datalayout = "e-m:e-p270: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/tmpa6sedfmx.c'
source_filename = "/tmp/tmpa6sedfmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [155 x i8] c"select uniProt.taxon.binomial from image,specimen,uniProt.taxon where image.id = %d and image.specimen = specimen.id and specimen.taxon = uniProt.taxon.id\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @visiGeneOrganism(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [256 x i8], align 16
%6 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @sqlSafef(ptr noundef %7, i32 noundef 256, ptr noundef @.str, i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%12 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @sqlQuickQuery(ptr noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef 256)
%14 = call ptr @cloneOrNull(i32 noundef %13)
ret ptr %14
}
declare i32 @sqlSafef(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @cloneOrNull(i32 noundef) #1
declare i32 @sqlQuickQuery(ptr noundef, 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/tmpa6sedfmx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [155 x i8] c"select uniProt.taxon.binomial from image,specimen,uniProt.taxon where image.id = %d and image.specimen = specimen.id and specimen.taxon = uniProt.taxon.id\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @visiGeneOrganism(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [256 x i8], align 16
%6 = alloca [256 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @sqlSafef(ptr noundef %7, i32 noundef 256, ptr noundef @.str, i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
%12 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @sqlQuickQuery(ptr noundef %10, ptr noundef %11, ptr noundef %12, i32 noundef 256)
%14 = call ptr @cloneOrNull(i32 noundef %13)
ret ptr %14
}
declare i32 @sqlSafef(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @cloneOrNull(i32 noundef) #1
declare i32 @sqlQuickQuery(ptr noundef, 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/tmpcd6pbevf.c'
source_filename = "/tmp/tmpcd6pbevf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@buildtime.buf = internal global [12 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [15 x i8] c"%02d:%02d:%02d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildtime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = sdiv i64 %7, 1000
%9 = trunc i64 %8 to i32
store i32 %9, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i8 0, ptr @buildtime.buf, align 1
%10 = load i32, ptr %3, align 4
%11 = sdiv i32 %10, 3600
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 3600
%14 = sdiv i32 %13, 60
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %15, 60
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @sprintf(ptr noundef @buildtime.buf, ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %19)
ret ptr @buildtime.buf
}
declare i32 @sprintf(ptr noundef, 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/tmpcd6pbevf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@buildtime.buf = internal global [12 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [15 x i8] c"%02d:%02d:%02d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildtime(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = sdiv i64 %7, 1000
%9 = trunc i64 %8 to i32
store i32 %9, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i8 0, ptr @buildtime.buf, align 1
%10 = load i32, ptr %3, align 4
%11 = sdiv i32 %10, 3600
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 3600
%14 = sdiv i32 %13, 60
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %15, 60
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @sprintf(ptr noundef @buildtime.buf, ptr noundef @.str, i32 noundef %17, i32 noundef %18, i32 noundef %19)
ret ptr @buildtime.buf
}
declare i32 @sprintf(ptr noundef, 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/tmp3w7vgozl.c'
source_filename = "/tmp/tmp3w7vgozl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\0AFalha ao manipular mutex.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errMutex(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @err_template(i32 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @err_template(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/tmp3w7vgozl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\0AFalha ao manipular mutex.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errMutex(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @err_template(i32 noundef %3, ptr noundef @.str)
ret void
}
declare i32 @err_template(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/tmp7_tpx5h2.c'
source_filename = "/tmp/tmp7_tpx5h2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @serial_clear(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [10 x i8], align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_SETFL, align 4
%6 = load i32, ptr @O_NONBLOCK, align 4
%7 = call i32 @fcntl(i32 noundef %4, i32 noundef %5, i32 noundef %6)
br label %8
8: ; preds = %13, %1
%9 = load i32, ptr %2, align 4
%10 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @read(i32 noundef %9, ptr noundef %10, i32 noundef 10)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %8
br label %8, !llvm.loop !6
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr @F_SETFL, align 4
%17 = call i32 @fcntl(i32 noundef %15, i32 noundef %16, i32 noundef 0)
ret void
}
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7_tpx5h2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @serial_clear(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [10 x i8], align 1
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @F_SETFL, align 4
%6 = load i32, ptr @O_NONBLOCK, align 4
%7 = call i32 @fcntl(i32 noundef %4, i32 noundef %5, i32 noundef %6)
br label %8
8: ; preds = %8, %1
%9 = load i32, ptr %2, align 4
%10 = getelementptr inbounds [10 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @read(i32 noundef %9, ptr noundef %10, i32 noundef 10)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %8, label %13, !llvm.loop !6
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr @F_SETFL, align 4
%16 = call i32 @fcntl(i32 noundef %14, i32 noundef %15, i32 noundef 0)
ret void
}
declare i32 @fcntl(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp357_sagp.c'
source_filename = "/tmp/tmp357_sagp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"msgd-test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #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/tmp357_sagp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"msgd-test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #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/tmpvk7i_xtq.c'
source_filename = "/tmp/tmpvk7i_xtq.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"[u] %s,%u\0A\00", align 1
@.str.1 = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/TA1DB/librtlsdr/refs/heads/master/src/rtlsdr_rpc.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rtlsdr_rpc_read_eeprom(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 736)
ret i32 -1
}
declare i32 @fprintf(i32 noundef, 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/tmpvk7i_xtq.c"
target datalayout = "e-m:e-p270: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 [11 x i8] c"[u] %s,%u\0A\00", align 1
@.str.1 = private unnamed_addr constant [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/TA1DB/librtlsdr/refs/heads/master/src/rtlsdr_rpc.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rtlsdr_rpc_read_eeprom(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 736)
ret i32 -1
}
declare i32 @fprintf(i32 noundef, 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/tmpaw_d624m.c'
source_filename = "/tmp/tmpaw_d624m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @threaded_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [50 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %15, %1
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 50
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %11
%13 = load ptr, ptr %2, align 8
%14 = call i32 @pthread_create(ptr noundef %12, ptr noundef null, ptr noundef %13, ptr noundef null)
br label %15
15: ; preds = %9
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
store i32 0, ptr %5, align 4
br label %19
19: ; preds = %28, %18
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %20, 50
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @pthread_join(i32 noundef %26, ptr noundef null)
br label %28
28: ; preds = %22
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %19, !llvm.loop !8
31: ; preds = %19
ret i32 0
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @pthread_join(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaw_d624m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @threaded_test(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [50 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 50
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %14
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %10
%12 = load ptr, ptr %2, align 8
%13 = call i32 @pthread_create(ptr noundef %11, ptr noundef null, ptr noundef %12, ptr noundef null)
br label %14
14: ; preds = %8
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 50
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %1
store i32 0, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %20, 50
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %19
br label %22
22: ; preds = %.lr.ph2, %28
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 @pthread_join(i32 noundef %26, ptr noundef null)
br label %28
28: ; preds = %22
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 50
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %19
ret i32 0
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @pthread_join(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpokrya583.c'
source_filename = "/tmp/tmpokrya583.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sewer1.lvl\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"sewer2.lvl\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"sewer3.lvl\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"sewer4.lvl\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"sewer5.lvl\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"sewer6.lvl\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"sewer7.lvl\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"cave1.lvl\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"cave2.lvl\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"cave3.lvl\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"cave4.lvl\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c"cave5.lvl\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"cave6.lvl\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"cave7.lvl\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"hell1.lvl\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"hell2.lvl\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"hell3.lvl\00", align 1
@.str.17 = private unnamed_addr constant [10 x i8] c"hell4.lvl\00", align 1
@.str.18 = private unnamed_addr constant [10 x i8] c"hell5.lvl\00", align 1
@.str.19 = private unnamed_addr constant [10 x i8] c"hell6.lvl\00", align 1
@.str.20 = private unnamed_addr constant [10 x i8] c"hell7.lvl\00", align 1
@.str.21 = private unnamed_addr constant [11 x i8] c"egypt1.lvl\00", align 1
@.str.22 = private unnamed_addr constant [11 x i8] c"egypt2.lvl\00", align 1
@.str.23 = private unnamed_addr constant [11 x i8] c"egypt3.lvl\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"egypt4.lvl\00", align 1
@.str.25 = private unnamed_addr constant [11 x i8] c"egypt5.lvl\00", align 1
@.str.26 = private unnamed_addr constant [11 x i8] c"egypt6.lvl\00", align 1
@.str.27 = private unnamed_addr constant [11 x i8] c"egypt7.lvl\00", align 1
@.str.28 = private unnamed_addr constant [12 x i8] c"church1.lvl\00", align 1
@.str.29 = private unnamed_addr constant [12 x i8] c"church2.lvl\00", align 1
@.str.30 = private unnamed_addr constant [12 x i8] c"church3.lvl\00", align 1
@.str.31 = private unnamed_addr constant [12 x i8] c"church4.lvl\00", align 1
@.str.32 = private unnamed_addr constant [12 x i8] c"church5.lvl\00", align 1
@.str.33 = private unnamed_addr constant [12 x i8] c"church6.lvl\00", align 1
@.str.34 = private unnamed_addr constant [11 x i8] c"sewer8.lvl\00", align 1
@.str.35 = private unnamed_addr constant [10 x i8] c"cave8.lvl\00", align 1
@.str.36 = private unnamed_addr constant [11 x i8] c"egypt8.lvl\00", align 1
@.str.37 = private unnamed_addr constant [10 x i8] c"death.lvl\00", align 1
@.str.38 = private unnamed_addr constant [11 x i8] c"death2.lvl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loadstorylevel(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @loadlevel(ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @loadlevel(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %7
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 3
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @loadlevel(ptr noundef @.str.2)
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 4
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @loadlevel(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 5
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @loadlevel(ptr noundef @.str.4)
br label %27
27: ; preds = %25, %22
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %28, 6
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @loadlevel(ptr noundef @.str.5)
br label %32
32: ; preds = %30, %27
%33 = load i32, ptr %2, align 4
%34 = icmp eq i32 %33, 7
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @loadlevel(ptr noundef @.str.6)
br label %37
37: ; preds = %35, %32
%38 = load i32, ptr %2, align 4
%39 = icmp eq i32 %38, 8
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @loadlevel(ptr noundef @.str.7)
br label %42
42: ; preds = %40, %37
%43 = load i32, ptr %2, align 4
%44 = icmp eq i32 %43, 9
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @loadlevel(ptr noundef @.str.8)
br label %47
47: ; preds = %45, %42
%48 = load i32, ptr %2, align 4
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @loadlevel(ptr noundef @.str.9)
br label %52
52: ; preds = %50, %47
%53 = load i32, ptr %2, align 4
%54 = icmp eq i32 %53, 11
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @loadlevel(ptr noundef @.str.10)
br label %57
57: ; preds = %55, %52
%58 = load i32, ptr %2, align 4
%59 = icmp eq i32 %58, 12
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @loadlevel(ptr noundef @.str.11)
br label %62
62: ; preds = %60, %57
%63 = load i32, ptr %2, align 4
%64 = icmp eq i32 %63, 13
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @loadlevel(ptr noundef @.str.12)
br label %67
67: ; preds = %65, %62
%68 = load i32, ptr %2, align 4
%69 = icmp eq i32 %68, 14
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 @loadlevel(ptr noundef @.str.13)
br label %72
72: ; preds = %70, %67
%73 = load i32, ptr %2, align 4
%74 = icmp eq i32 %73, 15
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @loadlevel(ptr noundef @.str.14)
br label %77
77: ; preds = %75, %72
%78 = load i32, ptr %2, align 4
%79 = icmp eq i32 %78, 16
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @loadlevel(ptr noundef @.str.15)
br label %82
82: ; preds = %80, %77
%83 = load i32, ptr %2, align 4
%84 = icmp eq i32 %83, 17
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 @loadlevel(ptr noundef @.str.16)
br label %87
87: ; preds = %85, %82
%88 = load i32, ptr %2, align 4
%89 = icmp eq i32 %88, 18
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 @loadlevel(ptr noundef @.str.17)
br label %92
92: ; preds = %90, %87
%93 = load i32, ptr %2, align 4
%94 = icmp eq i32 %93, 19
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 @loadlevel(ptr noundef @.str.18)
br label %97
97: ; preds = %95, %92
%98 = load i32, ptr %2, align 4
%99 = icmp eq i32 %98, 20
br i1 %99, label %100, label %102
100: ; preds = %97
%101 = call i32 @loadlevel(ptr noundef @.str.19)
br label %102
102: ; preds = %100, %97
%103 = load i32, ptr %2, align 4
%104 = icmp eq i32 %103, 21
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = call i32 @loadlevel(ptr noundef @.str.20)
br label %107
107: ; preds = %105, %102
%108 = load i32, ptr %2, align 4
%109 = icmp eq i32 %108, 22
br i1 %109, label %110, label %112
110: ; preds = %107
%111 = call i32 @loadlevel(ptr noundef @.str.21)
br label %112
112: ; preds = %110, %107
%113 = load i32, ptr %2, align 4
%114 = icmp eq i32 %113, 23
br i1 %114, label %115, label %117
115: ; preds = %112
%116 = call i32 @loadlevel(ptr noundef @.str.22)
br label %117
117: ; preds = %115, %112
%118 = load i32, ptr %2, align 4
%119 = icmp eq i32 %118, 24
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 @loadlevel(ptr noundef @.str.23)
br label %122
122: ; preds = %120, %117
%123 = load i32, ptr %2, align 4
%124 = icmp eq i32 %123, 25
br i1 %124, label %125, label %127
125: ; preds = %122
%126 = call i32 @loadlevel(ptr noundef @.str.24)
br label %127
127: ; preds = %125, %122
%128 = load i32, ptr %2, align 4
%129 = icmp eq i32 %128, 26
br i1 %129, label %130, label %132
130: ; preds = %127
%131 = call i32 @loadlevel(ptr noundef @.str.25)
br label %132
132: ; preds = %130, %127
%133 = load i32, ptr %2, align 4
%134 = icmp eq i32 %133, 27
br i1 %134, label %135, label %137
135: ; preds = %132
%136 = call i32 @loadlevel(ptr noundef @.str.26)
br label %137
137: ; preds = %135, %132
%138 = load i32, ptr %2, align 4
%139 = icmp eq i32 %138, 28
br i1 %139, label %140, label %142
140: ; preds = %137
%141 = call i32 @loadlevel(ptr noundef @.str.27)
br label %142
142: ; preds = %140, %137
%143 = load i32, ptr %2, align 4
%144 = icmp eq i32 %143, 29
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 @loadlevel(ptr noundef @.str.28)
br label %147
147: ; preds = %145, %142
%148 = load i32, ptr %2, align 4
%149 = icmp eq i32 %148, 30
br i1 %149, label %150, label %152
150: ; preds = %147
%151 = call i32 @loadlevel(ptr noundef @.str.29)
br label %152
152: ; preds = %150, %147
%153 = load i32, ptr %2, align 4
%154 = icmp eq i32 %153, 31
br i1 %154, label %155, label %157
155: ; preds = %152
%156 = call i32 @loadlevel(ptr noundef @.str.30)
br label %157
157: ; preds = %155, %152
%158 = load i32, ptr %2, align 4
%159 = icmp eq i32 %158, 32
br i1 %159, label %160, label %162
160: ; preds = %157
%161 = call i32 @loadlevel(ptr noundef @.str.31)
br label %162
162: ; preds = %160, %157
%163 = load i32, ptr %2, align 4
%164 = icmp eq i32 %163, 33
br i1 %164, label %165, label %167
165: ; preds = %162
%166 = call i32 @loadlevel(ptr noundef @.str.32)
br label %167
167: ; preds = %165, %162
%168 = load i32, ptr %2, align 4
%169 = icmp eq i32 %168, 34
br i1 %169, label %170, label %172
170: ; preds = %167
%171 = call i32 @loadlevel(ptr noundef @.str.33)
br label %172
172: ; preds = %170, %167
%173 = load i32, ptr %2, align 4
%174 = icmp eq i32 %173, 64
br i1 %174, label %175, label %177
175: ; preds = %172
%176 = call i32 @loadlevel(ptr noundef @.str.34)
br label %177
177: ; preds = %175, %172
%178 = load i32, ptr %2, align 4
%179 = icmp eq i32 %178, 65
br i1 %179, label %180, label %182
180: ; preds = %177
%181 = call i32 @loadlevel(ptr noundef @.str.35)
br label %182
182: ; preds = %180, %177
%183 = load i32, ptr %2, align 4
%184 = icmp eq i32 %183, 66
br i1 %184, label %185, label %187
185: ; preds = %182
%186 = call i32 @loadlevel(ptr noundef @.str.36)
br label %187
187: ; preds = %185, %182
%188 = load i32, ptr %2, align 4
%189 = icmp eq i32 %188, 67
br i1 %189, label %190, label %192
190: ; preds = %187
%191 = call i32 @loadlevel(ptr noundef @.str.37)
br label %192
192: ; preds = %190, %187
%193 = load i32, ptr %2, align 4
%194 = icmp eq i32 %193, 68
br i1 %194, label %195, label %197
195: ; preds = %192
%196 = call i32 @loadlevel(ptr noundef @.str.38)
br label %197
197: ; preds = %195, %192
ret void
}
declare i32 @loadlevel(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpokrya583.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sewer1.lvl\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"sewer2.lvl\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"sewer3.lvl\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"sewer4.lvl\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"sewer5.lvl\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"sewer6.lvl\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"sewer7.lvl\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"cave1.lvl\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"cave2.lvl\00", align 1
@.str.9 = private unnamed_addr constant [10 x i8] c"cave3.lvl\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"cave4.lvl\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c"cave5.lvl\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c"cave6.lvl\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"cave7.lvl\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"hell1.lvl\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"hell2.lvl\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"hell3.lvl\00", align 1
@.str.17 = private unnamed_addr constant [10 x i8] c"hell4.lvl\00", align 1
@.str.18 = private unnamed_addr constant [10 x i8] c"hell5.lvl\00", align 1
@.str.19 = private unnamed_addr constant [10 x i8] c"hell6.lvl\00", align 1
@.str.20 = private unnamed_addr constant [10 x i8] c"hell7.lvl\00", align 1
@.str.21 = private unnamed_addr constant [11 x i8] c"egypt1.lvl\00", align 1
@.str.22 = private unnamed_addr constant [11 x i8] c"egypt2.lvl\00", align 1
@.str.23 = private unnamed_addr constant [11 x i8] c"egypt3.lvl\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"egypt4.lvl\00", align 1
@.str.25 = private unnamed_addr constant [11 x i8] c"egypt5.lvl\00", align 1
@.str.26 = private unnamed_addr constant [11 x i8] c"egypt6.lvl\00", align 1
@.str.27 = private unnamed_addr constant [11 x i8] c"egypt7.lvl\00", align 1
@.str.28 = private unnamed_addr constant [12 x i8] c"church1.lvl\00", align 1
@.str.29 = private unnamed_addr constant [12 x i8] c"church2.lvl\00", align 1
@.str.30 = private unnamed_addr constant [12 x i8] c"church3.lvl\00", align 1
@.str.31 = private unnamed_addr constant [12 x i8] c"church4.lvl\00", align 1
@.str.32 = private unnamed_addr constant [12 x i8] c"church5.lvl\00", align 1
@.str.33 = private unnamed_addr constant [12 x i8] c"church6.lvl\00", align 1
@.str.34 = private unnamed_addr constant [11 x i8] c"sewer8.lvl\00", align 1
@.str.35 = private unnamed_addr constant [10 x i8] c"cave8.lvl\00", align 1
@.str.36 = private unnamed_addr constant [11 x i8] c"egypt8.lvl\00", align 1
@.str.37 = private unnamed_addr constant [10 x i8] c"death.lvl\00", align 1
@.str.38 = private unnamed_addr constant [11 x i8] c"death2.lvl\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @loadstorylevel(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @loadlevel(ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @loadlevel(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %7
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 3
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @loadlevel(ptr noundef @.str.2)
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 4
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @loadlevel(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %17
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 5
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @loadlevel(ptr noundef @.str.4)
br label %27
27: ; preds = %25, %22
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %28, 6
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @loadlevel(ptr noundef @.str.5)
br label %32
32: ; preds = %30, %27
%33 = load i32, ptr %2, align 4
%34 = icmp eq i32 %33, 7
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @loadlevel(ptr noundef @.str.6)
br label %37
37: ; preds = %35, %32
%38 = load i32, ptr %2, align 4
%39 = icmp eq i32 %38, 8
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @loadlevel(ptr noundef @.str.7)
br label %42
42: ; preds = %40, %37
%43 = load i32, ptr %2, align 4
%44 = icmp eq i32 %43, 9
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @loadlevel(ptr noundef @.str.8)
br label %47
47: ; preds = %45, %42
%48 = load i32, ptr %2, align 4
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @loadlevel(ptr noundef @.str.9)
br label %52
52: ; preds = %50, %47
%53 = load i32, ptr %2, align 4
%54 = icmp eq i32 %53, 11
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @loadlevel(ptr noundef @.str.10)
br label %57
57: ; preds = %55, %52
%58 = load i32, ptr %2, align 4
%59 = icmp eq i32 %58, 12
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @loadlevel(ptr noundef @.str.11)
br label %62
62: ; preds = %60, %57
%63 = load i32, ptr %2, align 4
%64 = icmp eq i32 %63, 13
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @loadlevel(ptr noundef @.str.12)
br label %67
67: ; preds = %65, %62
%68 = load i32, ptr %2, align 4
%69 = icmp eq i32 %68, 14
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 @loadlevel(ptr noundef @.str.13)
br label %72
72: ; preds = %70, %67
%73 = load i32, ptr %2, align 4
%74 = icmp eq i32 %73, 15
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @loadlevel(ptr noundef @.str.14)
br label %77
77: ; preds = %75, %72
%78 = load i32, ptr %2, align 4
%79 = icmp eq i32 %78, 16
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @loadlevel(ptr noundef @.str.15)
br label %82
82: ; preds = %80, %77
%83 = load i32, ptr %2, align 4
%84 = icmp eq i32 %83, 17
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 @loadlevel(ptr noundef @.str.16)
br label %87
87: ; preds = %85, %82
%88 = load i32, ptr %2, align 4
%89 = icmp eq i32 %88, 18
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 @loadlevel(ptr noundef @.str.17)
br label %92
92: ; preds = %90, %87
%93 = load i32, ptr %2, align 4
%94 = icmp eq i32 %93, 19
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 @loadlevel(ptr noundef @.str.18)
br label %97
97: ; preds = %95, %92
%98 = load i32, ptr %2, align 4
%99 = icmp eq i32 %98, 20
br i1 %99, label %100, label %102
100: ; preds = %97
%101 = call i32 @loadlevel(ptr noundef @.str.19)
br label %102
102: ; preds = %100, %97
%103 = load i32, ptr %2, align 4
%104 = icmp eq i32 %103, 21
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = call i32 @loadlevel(ptr noundef @.str.20)
br label %107
107: ; preds = %105, %102
%108 = load i32, ptr %2, align 4
%109 = icmp eq i32 %108, 22
br i1 %109, label %110, label %112
110: ; preds = %107
%111 = call i32 @loadlevel(ptr noundef @.str.21)
br label %112
112: ; preds = %110, %107
%113 = load i32, ptr %2, align 4
%114 = icmp eq i32 %113, 23
br i1 %114, label %115, label %117
115: ; preds = %112
%116 = call i32 @loadlevel(ptr noundef @.str.22)
br label %117
117: ; preds = %115, %112
%118 = load i32, ptr %2, align 4
%119 = icmp eq i32 %118, 24
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 @loadlevel(ptr noundef @.str.23)
br label %122
122: ; preds = %120, %117
%123 = load i32, ptr %2, align 4
%124 = icmp eq i32 %123, 25
br i1 %124, label %125, label %127
125: ; preds = %122
%126 = call i32 @loadlevel(ptr noundef @.str.24)
br label %127
127: ; preds = %125, %122
%128 = load i32, ptr %2, align 4
%129 = icmp eq i32 %128, 26
br i1 %129, label %130, label %132
130: ; preds = %127
%131 = call i32 @loadlevel(ptr noundef @.str.25)
br label %132
132: ; preds = %130, %127
%133 = load i32, ptr %2, align 4
%134 = icmp eq i32 %133, 27
br i1 %134, label %135, label %137
135: ; preds = %132
%136 = call i32 @loadlevel(ptr noundef @.str.26)
br label %137
137: ; preds = %135, %132
%138 = load i32, ptr %2, align 4
%139 = icmp eq i32 %138, 28
br i1 %139, label %140, label %142
140: ; preds = %137
%141 = call i32 @loadlevel(ptr noundef @.str.27)
br label %142
142: ; preds = %140, %137
%143 = load i32, ptr %2, align 4
%144 = icmp eq i32 %143, 29
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 @loadlevel(ptr noundef @.str.28)
br label %147
147: ; preds = %145, %142
%148 = load i32, ptr %2, align 4
%149 = icmp eq i32 %148, 30
br i1 %149, label %150, label %152
150: ; preds = %147
%151 = call i32 @loadlevel(ptr noundef @.str.29)
br label %152
152: ; preds = %150, %147
%153 = load i32, ptr %2, align 4
%154 = icmp eq i32 %153, 31
br i1 %154, label %155, label %157
155: ; preds = %152
%156 = call i32 @loadlevel(ptr noundef @.str.30)
br label %157
157: ; preds = %155, %152
%158 = load i32, ptr %2, align 4
%159 = icmp eq i32 %158, 32
br i1 %159, label %160, label %162
160: ; preds = %157
%161 = call i32 @loadlevel(ptr noundef @.str.31)
br label %162
162: ; preds = %160, %157
%163 = load i32, ptr %2, align 4
%164 = icmp eq i32 %163, 33
br i1 %164, label %165, label %167
165: ; preds = %162
%166 = call i32 @loadlevel(ptr noundef @.str.32)
br label %167
167: ; preds = %165, %162
%168 = load i32, ptr %2, align 4
%169 = icmp eq i32 %168, 34
br i1 %169, label %170, label %172
170: ; preds = %167
%171 = call i32 @loadlevel(ptr noundef @.str.33)
br label %172
172: ; preds = %170, %167
%173 = load i32, ptr %2, align 4
%174 = icmp eq i32 %173, 64
br i1 %174, label %175, label %177
175: ; preds = %172
%176 = call i32 @loadlevel(ptr noundef @.str.34)
br label %177
177: ; preds = %175, %172
%178 = load i32, ptr %2, align 4
%179 = icmp eq i32 %178, 65
br i1 %179, label %180, label %182
180: ; preds = %177
%181 = call i32 @loadlevel(ptr noundef @.str.35)
br label %182
182: ; preds = %180, %177
%183 = load i32, ptr %2, align 4
%184 = icmp eq i32 %183, 66
br i1 %184, label %185, label %187
185: ; preds = %182
%186 = call i32 @loadlevel(ptr noundef @.str.36)
br label %187
187: ; preds = %185, %182
%188 = load i32, ptr %2, align 4
%189 = icmp eq i32 %188, 67
br i1 %189, label %190, label %192
190: ; preds = %187
%191 = call i32 @loadlevel(ptr noundef @.str.37)
br label %192
192: ; preds = %190, %187
%193 = load i32, ptr %2, align 4
%194 = icmp eq i32 %193, 68
br i1 %194, label %195, label %197
195: ; preds = %192
%196 = call i32 @loadlevel(ptr noundef @.str.38)
br label %197
197: ; preds = %195, %192
ret void
}
declare i32 @loadlevel(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_nrj1cli.c'
source_filename = "/tmp/tmp_nrj1cli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawgrid() #0 {
%1 = alloca float, align 4
%2 = alloca i32, align 4
%3 = call i32 @color(i32 noundef 2)
%4 = call i32 @rect(double noundef 1.000000e-01, double noundef 4.000000e-01, double noundef 9.000000e-01, double noundef 6.000000e-01)
store float 0x3FC99999A0000000, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %19, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load float, ptr %1, align 4
%10 = fpext float %9 to double
%11 = call i32 @move2(double noundef %10, double noundef 4.000000e-01)
%12 = load float, ptr %1, align 4
%13 = fpext float %12 to double
%14 = call i32 @draw2(double noundef %13, double noundef 6.000000e-01)
%15 = load float, ptr %1, align 4
%16 = fpext float %15 to double
%17 = fadd double %16, 1.000000e-01
%18 = fptrunc double %17 to float
store float %18, ptr %1, align 4
br label %19
19: ; preds = %8
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
br label %5, !llvm.loop !6
22: ; preds = %5
%23 = call i32 @move2(double noundef 1.000000e-01, double noundef 5.000000e-01)
%24 = call i32 @draw2(double noundef 9.000000e-01, double noundef 5.000000e-01)
%25 = call i32 @color(i32 noundef 3)
ret void
}
declare i32 @color(i32 noundef) #1
declare i32 @rect(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @move2(double noundef, double noundef) #1
declare i32 @draw2(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_nrj1cli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drawgrid() #0 {
%1 = alloca float, align 4
%2 = alloca i32, align 4
%3 = call i32 @color(i32 noundef 2)
%4 = call i32 @rect(double noundef 1.000000e-01, double noundef 4.000000e-01, double noundef 9.000000e-01, double noundef 6.000000e-01)
store float 0x3FC99999A0000000, ptr %1, align 4
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 8
br i1 %6, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %18
%8 = load float, ptr %1, align 4
%9 = fpext float %8 to double
%10 = call i32 @move2(double noundef %9, double noundef 4.000000e-01)
%11 = load float, ptr %1, align 4
%12 = fpext float %11 to double
%13 = call i32 @draw2(double noundef %12, double noundef 6.000000e-01)
%14 = load float, ptr %1, align 4
%15 = fpext float %14 to double
%16 = fadd double %15, 1.000000e-01
%17 = fptrunc double %16 to float
store float %17, ptr %1, align 4
br label %18
18: ; preds = %7
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %21, 8
br i1 %22, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %0
%24 = call i32 @move2(double noundef 1.000000e-01, double noundef 5.000000e-01)
%25 = call i32 @draw2(double noundef 9.000000e-01, double noundef 5.000000e-01)
%26 = call i32 @color(i32 noundef 3)
ret void
}
declare i32 @color(i32 noundef) #1
declare i32 @rect(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @move2(double noundef, double noundef) #1
declare i32 @draw2(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpks9e650l.c'
source_filename = "/tmp/tmpks9e650l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"-rec\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"-play\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"-stereo\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"-mono\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"-rate\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [37 x i8] c"playwav: -rate requires a parameter\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"/data/out.wav\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"/data/rec.wav\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c".mp3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 1, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 44100, ptr %9, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i32 1
store ptr %14, ptr %5, align 8
br label %15
15: ; preds = %75, %2
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %80
18: ; preds = %15
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %18
store i32 0, ptr %7, align 4
br label %75
25: ; preds = %18
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 0
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcmp(ptr noundef %28, ptr noundef @.str.1)
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %25
store i32 1, ptr %7, align 4
br label %74
32: ; preds = %25
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 0
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strcmp(ptr noundef %35, ptr noundef @.str.2)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %32
store i32 2, ptr %8, align 4
br label %73
39: ; preds = %32
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 0
%42 = load ptr, ptr %41, align 8
%43 = call i32 @strcmp(ptr noundef %42, ptr noundef @.str.3)
%44 = icmp ne i32 %43, 0
br i1 %44, label %46, label %45
45: ; preds = %39
store i32 1, ptr %8, align 4
br label %72
46: ; preds = %39
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 0
%49 = load ptr, ptr %48, align 8
%50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.4)
%51 = icmp ne i32 %50, 0
br i1 %51, label %67, label %52
52: ; preds = %46
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %4, align 4
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds ptr, ptr %55, i32 1
store ptr %56, ptr %5, align 8
%57 = load i32, ptr %4, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %52
%60 = load i32, ptr @stderr, align 4
%61 = call i32 @fprintf(i32 noundef %60, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %111
62: ; preds = %52
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds ptr, ptr %63, i64 0
%65 = load ptr, ptr %64, align 8
%66 = call i32 @atoi(ptr noundef %65)
store i32 %66, ptr %9, align 4
br label %71
67: ; preds = %46
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 0
%70 = load ptr, ptr %69, align 8
store ptr %70, ptr %6, align 8
br label %71
71: ; preds = %67, %62
br label %72
72: ; preds = %71, %45
br label %73
73: ; preds = %72, %38
br label %74
74: ; preds = %73, %31
br label %75
75: ; preds = %74, %24
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %4, align 4
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i32 1
store ptr %79, ptr %5, align 8
br label %15, !llvm.loop !6
80: ; preds = %15
%81 = load ptr, ptr %6, align 8
%82 = icmp eq ptr %81, null
br i1 %82, label %83, label %88
83: ; preds = %80
%84 = load i32, ptr %7, align 4
%85 = icmp ne i32 %84, 0
%86 = zext i1 %85 to i64
%87 = select i1 %85, ptr @.str.6, ptr @.str.7
store ptr %87, ptr %6, align 8
br label %88
88: ; preds = %83, %80
%89 = load i32, ptr %7, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %106
91: ; preds = %88
%92 = load ptr, ptr %6, align 8
%93 = call ptr @strrchr(ptr noundef %92, i8 noundef signext 46)
store ptr %93, ptr %10, align 8
%94 = load ptr, ptr %10, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %96, label %103
96: ; preds = %91
%97 = load ptr, ptr %10, align 8
%98 = call i32 @strcmp(ptr noundef %97, ptr noundef @.str.8)
%99 = icmp ne i32 %98, 0
br i1 %99, label %103, label %100
100: ; preds = %96
%101 = load ptr, ptr %6, align 8
%102 = call i32 @mp3_play(ptr noundef %101)
store i32 %102, ptr %3, align 4
br label %111
103: ; preds = %96, %91
%104 = load ptr, ptr %6, align 8
%105 = call i32 @wav_play(ptr noundef %104)
store i32 %105, ptr %3, align 4
br label %111
106: ; preds = %88
%107 = load ptr, ptr %6, align 8
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %9, align 4
%110 = call i32 @wav_rec(ptr noundef %107, i32 noundef %108, i32 noundef %109)
store i32 %110, ptr %3, align 4
br label %111
111: ; preds = %106, %103, %100, %59
%112 = load i32, ptr %3, align 4
ret i32 %112
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @mp3_play(ptr noundef) #1
declare i32 @wav_play(ptr noundef) #1
declare i32 @wav_rec(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpks9e650l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"-rec\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"-play\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"-stereo\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"-mono\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"-rate\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [37 x i8] c"playwav: -rate requires a parameter\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"/data/out.wav\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"/data/rec.wav\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c".mp3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 1, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 44100, ptr %9, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i32 1
store ptr %14, ptr %5, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %.lr.ph, label %81
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %74
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str)
%22 = icmp ne i32 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %17
store i32 0, ptr %7, align 4
br label %74
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 @strcmp(ptr noundef %27, ptr noundef @.str.1)
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %24
store i32 1, ptr %7, align 4
br label %73
31: ; preds = %24
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 0
%34 = load ptr, ptr %33, align 8
%35 = call i32 @strcmp(ptr noundef %34, ptr noundef @.str.2)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %31
store i32 2, ptr %8, align 4
br label %72
38: ; preds = %31
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 0
%41 = load ptr, ptr %40, align 8
%42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str.3)
%43 = icmp ne i32 %42, 0
br i1 %43, label %45, label %44
44: ; preds = %38
store i32 1, ptr %8, align 4
br label %71
45: ; preds = %38
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 0
%48 = load ptr, ptr %47, align 8
%49 = call i32 @strcmp(ptr noundef %48, ptr noundef @.str.4)
%50 = icmp ne i32 %49, 0
br i1 %50, label %66, label %51
51: ; preds = %45
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %4, align 4
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i32 1
store ptr %55, ptr %5, align 8
%56 = load i32, ptr %4, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = load i32, ptr @stderr, align 4
%60 = call i32 @fprintf(i32 noundef %59, ptr noundef @.str.5)
store i32 -1, ptr %3, align 4
br label %112
61: ; preds = %51
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 0
%64 = load ptr, ptr %63, align 8
%65 = call i32 @atoi(ptr noundef %64)
store i32 %65, ptr %9, align 4
br label %70
66: ; preds = %45
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 0
%69 = load ptr, ptr %68, align 8
store ptr %69, ptr %6, align 8
br label %70
70: ; preds = %66, %61
br label %71
71: ; preds = %70, %44
br label %72
72: ; preds = %71, %37
br label %73
73: ; preds = %72, %30
br label %74
74: ; preds = %73, %23
%75 = load i32, ptr %4, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %4, align 4
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds ptr, ptr %77, i32 1
store ptr %78, ptr %5, align 8
%79 = load i32, ptr %4, align 4
%80 = icmp sgt i32 %79, 0
br i1 %80, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %81
81: ; preds = %._crit_edge, %2
%82 = load ptr, ptr %6, align 8
%83 = icmp eq ptr %82, null
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = load i32, ptr %7, align 4
%86 = icmp ne i32 %85, 0
%87 = zext i1 %86 to i64
%88 = select i1 %86, ptr @.str.6, ptr @.str.7
store ptr %88, ptr %6, align 8
br label %89
89: ; preds = %84, %81
%90 = load i32, ptr %7, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %107
92: ; preds = %89
%93 = load ptr, ptr %6, align 8
%94 = call ptr @strrchr(ptr noundef %93, i8 noundef signext 46)
store ptr %94, ptr %10, align 8
%95 = load ptr, ptr %10, align 8
%96 = icmp ne ptr %95, null
br i1 %96, label %97, label %104
97: ; preds = %92
%98 = load ptr, ptr %10, align 8
%99 = call i32 @strcmp(ptr noundef %98, ptr noundef @.str.8)
%100 = icmp ne i32 %99, 0
br i1 %100, label %104, label %101
101: ; preds = %97
%102 = load ptr, ptr %6, align 8
%103 = call i32 @mp3_play(ptr noundef %102)
store i32 %103, ptr %3, align 4
br label %112
104: ; preds = %97, %92
%105 = load ptr, ptr %6, align 8
%106 = call i32 @wav_play(ptr noundef %105)
store i32 %106, ptr %3, align 4
br label %112
107: ; preds = %89
%108 = load ptr, ptr %6, align 8
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr %9, align 4
%111 = call i32 @wav_rec(ptr noundef %108, i32 noundef %109, i32 noundef %110)
store i32 %111, ptr %3, align 4
br label %112
112: ; preds = %107, %104, %101, %58
%113 = load i32, ptr %3, align 4
ret i32 %113
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @mp3_play(ptr noundef) #1
declare i32 @wav_play(ptr noundef) #1
declare i32 @wav_rec(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpd210laic.c'
source_filename = "/tmp/tmpd210laic.c"
target datalayout = "e-m:e-p270: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/tmpd210laic.c"
target datalayout = "e-m:e-p270: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/tmpltf5j9mu.c'
source_filename = "/tmp/tmpltf5j9mu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pr(i32 noundef %0, float noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @__print_int(i32 noundef %5)
%7 = load float, ptr %4, align 4
%8 = call i32 @__print_float(float noundef %7)
ret void
}
declare i32 @__print_int(i32 noundef) #1
declare i32 @__print_float(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpltf5j9mu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pr(i32 noundef %0, float noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca float, align 4
store i32 %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @__print_int(i32 noundef %5)
%7 = load float, ptr %4, align 4
%8 = call i32 @__print_float(float noundef %7)
ret void
}
declare i32 @__print_int(i32 noundef) #1
declare i32 @__print_float(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw1qb_xhn.c'
source_filename = "/tmp/tmpw1qb_xhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Error: Origin file %s can't be opened\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Error: Destination file %s can't be opened\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"%s -> %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x ptr], align 16
%8 = alloca %struct.stat, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15)
br label %57
17: ; preds = %2
%18 = load ptr, ptr %3, align 8
%19 = call i32 @stat(ptr noundef %18, ptr noundef %8)
%20 = load ptr, ptr %4, 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 eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %17
%25 = load ptr, ptr %4, align 8
%26 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %25)
br label %57
27: ; preds = %17
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %28, ptr noundef %29)
br label %31
31: ; preds = %47, %27
%32 = load ptr, ptr %5, align 8
%33 = call i32 @feof(ptr noundef %32)
%34 = icmp ne i32 %33, 0
%35 = xor i1 %34, true
br i1 %35, label %36, label %48
36: ; preds = %31
%37 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = call i32 @fread(ptr noundef %37, i32 noundef 1, i32 noundef 8192, ptr noundef %38)
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %36
%43 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 0
%44 = load i32, ptr %9, align 4
%45 = load ptr, ptr %6, align 8
%46 = call i32 @fwrite(ptr noundef %43, i32 noundef 1, i32 noundef %44, ptr noundef %45)
br label %47
47: ; preds = %42, %36
br label %31, !llvm.loop !6
48: ; preds = %31
%49 = load ptr, ptr %5, align 8
%50 = call i32 @fclose(ptr noundef %49)
%51 = load ptr, ptr %6, align 8
%52 = call i32 @fclose(ptr noundef %51)
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%55 = load i32, ptr %54, align 4
%56 = call i32 @chmod(ptr noundef %53, i32 noundef %55)
br label %57
57: ; preds = %48, %24, %14
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @chmod(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/tmpw1qb_xhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"Error: Origin file %s can't be opened\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Error: Destination file %s can't be opened\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"%s -> %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @copy_file(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x ptr], align 16
%8 = alloca %struct.stat, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15)
br label %60
17: ; preds = %2
%18 = load ptr, ptr %3, align 8
%19 = call i32 @stat(ptr noundef %18, ptr noundef %8)
%20 = load ptr, ptr %4, 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 eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %17
%25 = load ptr, ptr %4, align 8
%26 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %25)
br label %60
27: ; preds = %17
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %28, ptr noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = call i32 @feof(ptr noundef %31)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %.lr.ph, label %51
.lr.ph: ; preds = %27
br label %35
35: ; preds = %.lr.ph, %46
%36 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 0
%37 = load ptr, ptr %5, align 8
%38 = call i32 @fread(ptr noundef %36, i32 noundef 1, i32 noundef 8192, ptr noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %35
%42 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 0
%43 = load i32, ptr %9, align 4
%44 = load ptr, ptr %6, align 8
%45 = call i32 @fwrite(ptr noundef %42, i32 noundef 1, i32 noundef %43, ptr noundef %44)
br label %46
46: ; preds = %41, %35
%47 = load ptr, ptr %5, align 8
%48 = call i32 @feof(ptr noundef %47)
%49 = icmp ne i32 %48, 0
%50 = xor i1 %49, true
br i1 %50, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %51
51: ; preds = %._crit_edge, %27
%52 = load ptr, ptr %5, align 8
%53 = call i32 @fclose(ptr noundef %52)
%54 = load ptr, ptr %6, align 8
%55 = call i32 @fclose(ptr noundef %54)
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%58 = load i32, ptr %57, align 4
%59 = call i32 @chmod(ptr noundef %56, i32 noundef %58)
br label %60
60: ; preds = %51, %24, %14
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @chmod(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/tmp8zdstg5_.c'
source_filename = "/tmp/tmp8zdstg5_.c"
target datalayout = "e-m:e-p270: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.file_magic_12_1_7 = type { i16, i16, i8, i8, i8, i8, i32, i32, [3 x i32], [48 x i8] }
%struct.file_header_12_1_7 = type { i64, i64, i32, i32, i32, [3 x i32], [3 x i32], i32, i32, i32, i8, i8, i8, [65 x i8], [65 x i8], [65 x i8], [65 x i8] }
%struct.file_activity_12_1_7 = type { i32, i32, i32, i32, i32, i32, [3 x i32] }
%struct.record_header_12_1_7 = type { i64, i64, i32, i8, i8, i8, i8 }
%struct.stats_pcsw_ukwn = type { i64 }
%struct.stats_unknown = type { i64, i64 }
%struct.stats_cpu_12_1_7 = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@__const.main.f_magic = private unnamed_addr constant %struct.file_magic_12_1_7 { i16 -10858, i16 8565, i8 12, i8 1, i8 7, i8 0, i32 0, i32 0, [3 x i32] [i32 1, i32 1, i32 12], [48 x i8] zeroinitializer }, align 4
@__const.main.f_header = private unnamed_addr constant %struct.file_header_12_1_7 { i64 1568533161, i64 100, i32 3, i32 3, i32 2019, [3 x i32] [i32 0, i32 0, i32 9], [3 x i32] [i32 2, i32 0, i32 1], i32 0, i32 0, i32 0, i8 15, i8 9, i8 8, [65 x i8] c"Linux\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"localhost.localdomain\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"5.0.16-100.fc28.x86_64\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"x86_64\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" }, align 8
@__const.main.f_activity_a_unknown = private unnamed_addr constant %struct.file_activity_12_1_7 { i32 255, i32 138, i32 2, i32 1, i32 1, i32 0, [3 x i32] [i32 1, i32 1, i32 0] }, align 4
@__const.main.r_header_1 = private unnamed_addr constant %struct.record_header_12_1_7 { i64 15000, i64 1568540000, i32 0, i8 1, i8 11, i8 5, i8 58 }, align 8
@__const.main.r_header_2 = private unnamed_addr constant %struct.record_header_12_1_7 { i64 15200, i64 1568540200, i32 0, i8 1, i8 11, i8 6, i8 1 }, align 8
@__const.main.s_pcsw_1 = private unnamed_addr constant %struct.stats_pcsw_ukwn { i64 543 }, align 8
@__const.main.s_pcsw_2 = private unnamed_addr constant %struct.stats_pcsw_ukwn { i64 643 }, align 8
@__const.main.s_ukwn_0_1 = private unnamed_addr constant %struct.stats_unknown { i64 123456789, i64 12345 }, align 8
@__const.main.s_ukwn_1_1 = private unnamed_addr constant %struct.stats_unknown { i64 987654321, i64 54321 }, align 8
@__const.main.s_ukwn_0_2 = private unnamed_addr constant %struct.stats_unknown { i64 234567891, i64 23456 }, align 8
@__const.main.s_ukwn_1_2 = private unnamed_addr constant %struct.stats_unknown { i64 198765432, i64 65432 }, align 8
@.str = private unnamed_addr constant [10 x i8] c"data-ukwn\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"write file magic\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"write file header\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"write file activity A_CPU\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"write file activity A_PCSW\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"write file activity A_UNKNOWN\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"write STAT #1 record\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"write nr_cpu #1\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"write CPU stats 0_1\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"write CPU stats 1_1\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"write CPU stats 2_1\00", align 1
@.str.12 = private unnamed_addr constant [19 x i8] c"write PCSW stats 1\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"write nr_ukwn #1\00", align 1
@.str.14 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 0_1\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 1_1\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"write STAT #2 record\00", align 1
@.str.17 = private unnamed_addr constant [16 x i8] c"write nr_cpu #2\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"write CPU stats 0_2\00", align 1
@.str.19 = private unnamed_addr constant [20 x i8] c"write CPU stats 1_2\00", align 1
@.str.20 = private unnamed_addr constant [20 x i8] c"write CPU stats 2_2\00", align 1
@.str.21 = private unnamed_addr constant [19 x i8] c"write PCSW stats 2\00", align 1
@.str.22 = private unnamed_addr constant [17 x i8] c"write nr_ukwn #2\00", align 1
@.str.23 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 0_2\00", align 1
@.str.24 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 1_2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.file_magic_12_1_7, align 4
%3 = alloca %struct.file_header_12_1_7, align 8
%4 = alloca %struct.file_activity_12_1_7, align 4
%5 = alloca %struct.file_activity_12_1_7, align 4
%6 = alloca %struct.file_activity_12_1_7, align 4
%7 = alloca %struct.record_header_12_1_7, align 8
%8 = alloca %struct.record_header_12_1_7, align 8
%9 = alloca %struct.stats_cpu_12_1_7, align 8
%10 = alloca %struct.stats_cpu_12_1_7, align 8
%11 = alloca %struct.stats_cpu_12_1_7, align 8
%12 = alloca %struct.stats_cpu_12_1_7, align 8
%13 = alloca %struct.stats_cpu_12_1_7, align 8
%14 = alloca %struct.stats_cpu_12_1_7, align 8
%15 = alloca %struct.stats_pcsw_ukwn, align 8
%16 = alloca %struct.stats_pcsw_ukwn, align 8
%17 = alloca %struct.stats_unknown, align 8
%18 = alloca %struct.stats_unknown, align 8
%19 = alloca %struct.stats_unknown, align 8
%20 = alloca %struct.stats_unknown, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.f_magic, i64 76, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @__const.main.f_header, i64 328, i1 false)
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 36, i1 false)
%25 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 0
store i32 1, ptr %25, align 4
%26 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 1
store i32 139, ptr %26, align 4
%27 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 2
store i32 3, ptr %27, align 4
%28 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 3
store i32 1, ptr %28, align 4
%29 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 4
store i32 1, ptr %29, align 4
%30 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 6
%31 = getelementptr inbounds [3 x i32], ptr %30, i32 0, i32 0
store i32 10, ptr %31, align 4
call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 36, i1 false)
%32 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 0
store i32 2, ptr %32, align 4
%33 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 1
store i32 255, ptr %33, align 4
%34 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 2
store i32 1, ptr %34, align 4
%35 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 3
store i32 1, ptr %35, align 4
%36 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 6
%37 = getelementptr inbounds [3 x i32], ptr %36, i32 0, i32 1
store i32 1, ptr %37, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.f_activity_a_unknown, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @__const.main.r_header_1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const.main.r_header_2, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
%38 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %9, i32 0, i32 0
store i64 1000, ptr %38, align 8
%39 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %9, i32 0, i32 2
store i64 500, ptr %39, align 8
call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 80, i1 false)
%40 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %10, i32 0, i32 0
store i64 1000, ptr %40, align 8
call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 80, i1 false)
%41 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %11, i32 0, i32 2
store i64 500, ptr %41, align 8
call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
%42 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 0
store i64 1100, ptr %42, align 8
%43 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 2
store i64 500, ptr %43, align 8
%44 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 3
store i64 100, ptr %44, align 8
call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 80, i1 false)
%45 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %13, i32 0, i32 0
store i64 1100, ptr %45, align 8
call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
%46 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %14, i32 0, i32 2
store i64 500, ptr %46, align 8
%47 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %14, i32 0, i32 3
store i64 100, ptr %47, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @__const.main.s_pcsw_1, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @__const.main.s_pcsw_2, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @__const.main.s_ukwn_0_1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 @__const.main.s_ukwn_1_1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @__const.main.s_ukwn_0_2, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 @__const.main.s_ukwn_1_2, i64 16, i1 false)
%48 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
%49 = call i32 @strcpy(ptr noundef %48, ptr noundef @.str)
%50 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
%51 = load i32, ptr @O_CREAT, align 4
%52 = load i32, ptr @O_WRONLY, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @S_IRUSR, align 4
%55 = load i32, ptr @S_IWUSR, align 4
%56 = or i32 %54, %55
%57 = load i32, ptr @S_IRGRP, align 4
%58 = or i32 %56, %57
%59 = load i32, ptr @S_IROTH, align 4
%60 = or i32 %58, %59
%61 = call i32 @open(ptr noundef %50, i32 noundef %53, i32 noundef %60)
store i32 %61, ptr %21, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %0
%64 = call i32 @perror(ptr noundef @.str.1)
%65 = call i32 @exit(i32 noundef 1) #5
unreachable
66: ; preds = %0
%67 = getelementptr inbounds %struct.file_magic_12_1_7, ptr %2, i32 0, i32 6
store i32 328, ptr %67, align 4
%68 = load i32, ptr %21, align 4
%69 = call i64 (i32, ...) @write(i32 noundef %68, ptr noundef %2, i64 noundef 76)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = call i32 @perror(ptr noundef @.str.2)
%73 = call i32 @exit(i32 noundef 1) #5
unreachable
74: ; preds = %66
%75 = getelementptr inbounds %struct.file_header_12_1_7, ptr %3, i32 0, i32 7
store i32 36, ptr %75, align 4
%76 = getelementptr inbounds %struct.file_header_12_1_7, ptr %3, i32 0, i32 8
store i32 24, ptr %76, align 8
%77 = load i32, ptr %21, align 4
%78 = call i64 (i32, ...) @write(i32 noundef %77, ptr noundef %3, i64 noundef 328)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = call i32 @perror(ptr noundef @.str.3)
%82 = call i32 @exit(i32 noundef 1) #5
unreachable
83: ; preds = %74
%84 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 5
store i32 80, ptr %84, align 4
%85 = load i32, ptr %21, align 4
%86 = call i64 (i32, ...) @write(i32 noundef %85, ptr noundef %4, i64 noundef 36)
%87 = icmp slt i64 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %83
%89 = call i32 @perror(ptr noundef @.str.4)
%90 = call i32 @exit(i32 noundef 1) #5
unreachable
91: ; preds = %83
%92 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 5
store i32 8, ptr %92, align 4
%93 = load i32, ptr %21, align 4
%94 = call i64 (i32, ...) @write(i32 noundef %93, ptr noundef %5, i64 noundef 36)
%95 = icmp slt i64 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %91
%97 = call i32 @perror(ptr noundef @.str.5)
%98 = call i32 @exit(i32 noundef 1) #5
unreachable
99: ; preds = %91
%100 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %6, i32 0, i32 5
store i32 16, ptr %100, align 4
%101 = load i32, ptr %21, align 4
%102 = call i64 (i32, ...) @write(i32 noundef %101, ptr noundef %6, i64 noundef 36)
%103 = icmp slt i64 %102, 0
br i1 %103, label %104, label %107
104: ; preds = %99
%105 = call i32 @perror(ptr noundef @.str.6)
%106 = call i32 @exit(i32 noundef 1) #5
unreachable
107: ; preds = %99
%108 = load i32, ptr %21, align 4
%109 = call i64 (i32, ...) @write(i32 noundef %108, ptr noundef %7, i64 noundef 24)
%110 = icmp slt i64 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %107
%112 = call i32 @perror(ptr noundef @.str.7)
%113 = call i32 @exit(i32 noundef 1) #5
unreachable
114: ; preds = %107
store i32 3, ptr %22, align 4
%115 = load i32, ptr %21, align 4
%116 = call i64 (i32, ...) @write(i32 noundef %115, ptr noundef %22, i64 noundef 4)
%117 = icmp slt i64 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %114
%119 = call i32 @perror(ptr noundef @.str.8)
%120 = call i32 @exit(i32 noundef 1) #5
unreachable
121: ; preds = %114
%122 = load i32, ptr %21, align 4
%123 = call i64 (i32, ...) @write(i32 noundef %122, ptr noundef %9, i64 noundef 80)
%124 = icmp slt i64 %123, 0
br i1 %124, label %125, label %128
125: ; preds = %121
%126 = call i32 @perror(ptr noundef @.str.9)
%127 = call i32 @exit(i32 noundef 1) #5
unreachable
128: ; preds = %121
%129 = load i32, ptr %21, align 4
%130 = call i64 (i32, ...) @write(i32 noundef %129, ptr noundef %10, i64 noundef 80)
%131 = icmp slt i64 %130, 0
br i1 %131, label %132, label %135
132: ; preds = %128
%133 = call i32 @perror(ptr noundef @.str.10)
%134 = call i32 @exit(i32 noundef 1) #5
unreachable
135: ; preds = %128
%136 = load i32, ptr %21, align 4
%137 = call i64 (i32, ...) @write(i32 noundef %136, ptr noundef %11, i64 noundef 80)
%138 = icmp slt i64 %137, 0
br i1 %138, label %139, label %142
139: ; preds = %135
%140 = call i32 @perror(ptr noundef @.str.11)
%141 = call i32 @exit(i32 noundef 1) #5
unreachable
142: ; preds = %135
%143 = load i32, ptr %21, align 4
%144 = call i64 (i32, ...) @write(i32 noundef %143, ptr noundef %15, i64 noundef 8)
%145 = icmp slt i64 %144, 0
br i1 %145, label %146, label %149
146: ; preds = %142
%147 = call i32 @perror(ptr noundef @.str.12)
%148 = call i32 @exit(i32 noundef 1) #5
unreachable
149: ; preds = %142
store i32 2, ptr %23, align 4
%150 = load i32, ptr %21, align 4
%151 = call i64 (i32, ...) @write(i32 noundef %150, ptr noundef %23, i64 noundef 4)
%152 = icmp slt i64 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %149
%154 = call i32 @perror(ptr noundef @.str.13)
%155 = call i32 @exit(i32 noundef 1) #5
unreachable
156: ; preds = %149
%157 = load i32, ptr %21, align 4
%158 = call i64 (i32, ...) @write(i32 noundef %157, ptr noundef %17, i64 noundef 16)
%159 = icmp slt i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %156
%161 = call i32 @perror(ptr noundef @.str.14)
%162 = call i32 @exit(i32 noundef 1) #5
unreachable
163: ; preds = %156
%164 = load i32, ptr %21, align 4
%165 = call i64 (i32, ...) @write(i32 noundef %164, ptr noundef %18, i64 noundef 16)
%166 = icmp slt i64 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %163
%168 = call i32 @perror(ptr noundef @.str.15)
%169 = call i32 @exit(i32 noundef 1) #5
unreachable
170: ; preds = %163
%171 = load i32, ptr %21, align 4
%172 = call i64 (i32, ...) @write(i32 noundef %171, ptr noundef %8, i64 noundef 24)
%173 = icmp slt i64 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %170
%175 = call i32 @perror(ptr noundef @.str.16)
%176 = call i32 @exit(i32 noundef 1) #5
unreachable
177: ; preds = %170
store i32 3, ptr %22, align 4
%178 = load i32, ptr %21, align 4
%179 = call i64 (i32, ...) @write(i32 noundef %178, ptr noundef %22, i64 noundef 4)
%180 = icmp slt i64 %179, 0
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = call i32 @perror(ptr noundef @.str.17)
%183 = call i32 @exit(i32 noundef 1) #5
unreachable
184: ; preds = %177
%185 = load i32, ptr %21, align 4
%186 = call i64 (i32, ...) @write(i32 noundef %185, ptr noundef %12, i64 noundef 80)
%187 = icmp slt i64 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %184
%189 = call i32 @perror(ptr noundef @.str.18)
%190 = call i32 @exit(i32 noundef 1) #5
unreachable
191: ; preds = %184
%192 = load i32, ptr %21, align 4
%193 = call i64 (i32, ...) @write(i32 noundef %192, ptr noundef %13, i64 noundef 80)
%194 = icmp slt i64 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %191
%196 = call i32 @perror(ptr noundef @.str.19)
%197 = call i32 @exit(i32 noundef 1) #5
unreachable
198: ; preds = %191
%199 = load i32, ptr %21, align 4
%200 = call i64 (i32, ...) @write(i32 noundef %199, ptr noundef %14, i64 noundef 80)
%201 = icmp slt i64 %200, 0
br i1 %201, label %202, label %205
202: ; preds = %198
%203 = call i32 @perror(ptr noundef @.str.20)
%204 = call i32 @exit(i32 noundef 1) #5
unreachable
205: ; preds = %198
%206 = load i32, ptr %21, align 4
%207 = call i64 (i32, ...) @write(i32 noundef %206, ptr noundef %16, i64 noundef 8)
%208 = icmp slt i64 %207, 0
br i1 %208, label %209, label %212
209: ; preds = %205
%210 = call i32 @perror(ptr noundef @.str.21)
%211 = call i32 @exit(i32 noundef 1) #5
unreachable
212: ; preds = %205
store i32 2, ptr %23, align 4
%213 = load i32, ptr %21, align 4
%214 = call i64 (i32, ...) @write(i32 noundef %213, ptr noundef %23, i64 noundef 4)
%215 = icmp slt i64 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %212
%217 = call i32 @perror(ptr noundef @.str.22)
%218 = call i32 @exit(i32 noundef 1) #5
unreachable
219: ; preds = %212
%220 = load i32, ptr %21, align 4
%221 = call i64 (i32, ...) @write(i32 noundef %220, ptr noundef %19, i64 noundef 16)
%222 = icmp slt i64 %221, 0
br i1 %222, label %223, label %226
223: ; preds = %219
%224 = call i32 @perror(ptr noundef @.str.23)
%225 = call i32 @exit(i32 noundef 1) #5
unreachable
226: ; preds = %219
%227 = load i32, ptr %21, align 4
%228 = call i64 (i32, ...) @write(i32 noundef %227, ptr noundef %20, i64 noundef 16)
%229 = icmp slt i64 %228, 0
br i1 %229, label %230, label %233
230: ; preds = %226
%231 = call i32 @perror(ptr noundef @.str.24)
%232 = call i32 @exit(i32 noundef 1) #5
unreachable
233: ; preds = %226
%234 = load i32, ptr %21, align 4
%235 = call i32 @close(i32 noundef %234)
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
; 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 @strcpy(ptr noundef, ptr noundef) #3
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #3
declare i32 @perror(ptr noundef) #3
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #4
declare i64 @write(i32 noundef, ...) #3
declare i32 @close(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8zdstg5_.c"
target datalayout = "e-m:e-p270: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.file_magic_12_1_7 = type { i16, i16, i8, i8, i8, i8, i32, i32, [3 x i32], [48 x i8] }
%struct.file_header_12_1_7 = type { i64, i64, i32, i32, i32, [3 x i32], [3 x i32], i32, i32, i32, i8, i8, i8, [65 x i8], [65 x i8], [65 x i8], [65 x i8] }
%struct.file_activity_12_1_7 = type { i32, i32, i32, i32, i32, i32, [3 x i32] }
%struct.record_header_12_1_7 = type { i64, i64, i32, i8, i8, i8, i8 }
%struct.stats_pcsw_ukwn = type { i64 }
%struct.stats_unknown = type { i64, i64 }
%struct.stats_cpu_12_1_7 = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
@__const.main.f_magic = private unnamed_addr constant %struct.file_magic_12_1_7 { i16 -10858, i16 8565, i8 12, i8 1, i8 7, i8 0, i32 0, i32 0, [3 x i32] [i32 1, i32 1, i32 12], [48 x i8] zeroinitializer }, align 4
@__const.main.f_header = private unnamed_addr constant %struct.file_header_12_1_7 { i64 1568533161, i64 100, i32 3, i32 3, i32 2019, [3 x i32] [i32 0, i32 0, i32 9], [3 x i32] [i32 2, i32 0, i32 1], i32 0, i32 0, i32 0, i8 15, i8 9, i8 8, [65 x i8] c"Linux\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"localhost.localdomain\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"5.0.16-100.fc28.x86_64\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [65 x i8] c"x86_64\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" }, align 8
@__const.main.f_activity_a_unknown = private unnamed_addr constant %struct.file_activity_12_1_7 { i32 255, i32 138, i32 2, i32 1, i32 1, i32 0, [3 x i32] [i32 1, i32 1, i32 0] }, align 4
@__const.main.r_header_1 = private unnamed_addr constant %struct.record_header_12_1_7 { i64 15000, i64 1568540000, i32 0, i8 1, i8 11, i8 5, i8 58 }, align 8
@__const.main.r_header_2 = private unnamed_addr constant %struct.record_header_12_1_7 { i64 15200, i64 1568540200, i32 0, i8 1, i8 11, i8 6, i8 1 }, align 8
@__const.main.s_pcsw_1 = private unnamed_addr constant %struct.stats_pcsw_ukwn { i64 543 }, align 8
@__const.main.s_pcsw_2 = private unnamed_addr constant %struct.stats_pcsw_ukwn { i64 643 }, align 8
@__const.main.s_ukwn_0_1 = private unnamed_addr constant %struct.stats_unknown { i64 123456789, i64 12345 }, align 8
@__const.main.s_ukwn_1_1 = private unnamed_addr constant %struct.stats_unknown { i64 987654321, i64 54321 }, align 8
@__const.main.s_ukwn_0_2 = private unnamed_addr constant %struct.stats_unknown { i64 234567891, i64 23456 }, align 8
@__const.main.s_ukwn_1_2 = private unnamed_addr constant %struct.stats_unknown { i64 198765432, i64 65432 }, align 8
@.str = private unnamed_addr constant [10 x i8] c"data-ukwn\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IRGRP = dso_local global i32 0, align 4
@S_IROTH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"write file magic\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"write file header\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"write file activity A_CPU\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"write file activity A_PCSW\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"write file activity A_UNKNOWN\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"write STAT #1 record\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"write nr_cpu #1\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"write CPU stats 0_1\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"write CPU stats 1_1\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"write CPU stats 2_1\00", align 1
@.str.12 = private unnamed_addr constant [19 x i8] c"write PCSW stats 1\00", align 1
@.str.13 = private unnamed_addr constant [17 x i8] c"write nr_ukwn #1\00", align 1
@.str.14 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 0_1\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 1_1\00", align 1
@.str.16 = private unnamed_addr constant [21 x i8] c"write STAT #2 record\00", align 1
@.str.17 = private unnamed_addr constant [16 x i8] c"write nr_cpu #2\00", align 1
@.str.18 = private unnamed_addr constant [20 x i8] c"write CPU stats 0_2\00", align 1
@.str.19 = private unnamed_addr constant [20 x i8] c"write CPU stats 1_2\00", align 1
@.str.20 = private unnamed_addr constant [20 x i8] c"write CPU stats 2_2\00", align 1
@.str.21 = private unnamed_addr constant [19 x i8] c"write PCSW stats 2\00", align 1
@.str.22 = private unnamed_addr constant [17 x i8] c"write nr_ukwn #2\00", align 1
@.str.23 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 0_2\00", align 1
@.str.24 = private unnamed_addr constant [24 x i8] c"write UNKNOWN stats 1_2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.file_magic_12_1_7, align 4
%3 = alloca %struct.file_header_12_1_7, align 8
%4 = alloca %struct.file_activity_12_1_7, align 4
%5 = alloca %struct.file_activity_12_1_7, align 4
%6 = alloca %struct.file_activity_12_1_7, align 4
%7 = alloca %struct.record_header_12_1_7, align 8
%8 = alloca %struct.record_header_12_1_7, align 8
%9 = alloca %struct.stats_cpu_12_1_7, align 8
%10 = alloca %struct.stats_cpu_12_1_7, align 8
%11 = alloca %struct.stats_cpu_12_1_7, align 8
%12 = alloca %struct.stats_cpu_12_1_7, align 8
%13 = alloca %struct.stats_cpu_12_1_7, align 8
%14 = alloca %struct.stats_cpu_12_1_7, align 8
%15 = alloca %struct.stats_pcsw_ukwn, align 8
%16 = alloca %struct.stats_pcsw_ukwn, align 8
%17 = alloca %struct.stats_unknown, align 8
%18 = alloca %struct.stats_unknown, align 8
%19 = alloca %struct.stats_unknown, align 8
%20 = alloca %struct.stats_unknown, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.f_magic, i64 76, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @__const.main.f_header, i64 328, i1 false)
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 36, i1 false)
%25 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 0
store i32 1, ptr %25, align 4
%26 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 1
store i32 139, ptr %26, align 4
%27 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 2
store i32 3, ptr %27, align 4
%28 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 3
store i32 1, ptr %28, align 4
%29 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 4
store i32 1, ptr %29, align 4
%30 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 6
%31 = getelementptr inbounds [3 x i32], ptr %30, i32 0, i32 0
store i32 10, ptr %31, align 4
call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 36, i1 false)
%32 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 0
store i32 2, ptr %32, align 4
%33 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 1
store i32 255, ptr %33, align 4
%34 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 2
store i32 1, ptr %34, align 4
%35 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 3
store i32 1, ptr %35, align 4
%36 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 6
%37 = getelementptr inbounds [3 x i32], ptr %36, i32 0, i32 1
store i32 1, ptr %37, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.f_activity_a_unknown, i64 36, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @__const.main.r_header_1, i64 24, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const.main.r_header_2, i64 24, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
%38 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %9, i32 0, i32 0
store i64 1000, ptr %38, align 8
%39 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %9, i32 0, i32 2
store i64 500, ptr %39, align 8
call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 80, i1 false)
%40 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %10, i32 0, i32 0
store i64 1000, ptr %40, align 8
call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 80, i1 false)
%41 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %11, i32 0, i32 2
store i64 500, ptr %41, align 8
call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
%42 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 0
store i64 1100, ptr %42, align 8
%43 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 2
store i64 500, ptr %43, align 8
%44 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %12, i32 0, i32 3
store i64 100, ptr %44, align 8
call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 80, i1 false)
%45 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %13, i32 0, i32 0
store i64 1100, ptr %45, align 8
call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
%46 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %14, i32 0, i32 2
store i64 500, ptr %46, align 8
%47 = getelementptr inbounds %struct.stats_cpu_12_1_7, ptr %14, i32 0, i32 3
store i64 100, ptr %47, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @__const.main.s_pcsw_1, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @__const.main.s_pcsw_2, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @__const.main.s_ukwn_0_1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 @__const.main.s_ukwn_1_1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @__const.main.s_ukwn_0_2, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 @__const.main.s_ukwn_1_2, i64 16, i1 false)
%48 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
%49 = call i32 @strcpy(ptr noundef %48, ptr noundef @.str)
%50 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
%51 = load i32, ptr @O_CREAT, align 4
%52 = load i32, ptr @O_WRONLY, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @S_IRUSR, align 4
%55 = load i32, ptr @S_IWUSR, align 4
%56 = or i32 %54, %55
%57 = load i32, ptr @S_IRGRP, align 4
%58 = or i32 %56, %57
%59 = load i32, ptr @S_IROTH, align 4
%60 = or i32 %58, %59
%61 = call i32 @open(ptr noundef %50, i32 noundef %53, i32 noundef %60)
store i32 %61, ptr %21, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %0
%64 = call i32 @perror(ptr noundef @.str.1)
%65 = call i32 @exit(i32 noundef 1) #5
unreachable
66: ; preds = %0
%67 = getelementptr inbounds %struct.file_magic_12_1_7, ptr %2, i32 0, i32 6
store i32 328, ptr %67, align 4
%68 = load i32, ptr %21, align 4
%69 = call i64 (i32, ...) @write(i32 noundef %68, ptr noundef %2, i64 noundef 76)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = call i32 @perror(ptr noundef @.str.2)
%73 = call i32 @exit(i32 noundef 1) #5
unreachable
74: ; preds = %66
%75 = getelementptr inbounds %struct.file_header_12_1_7, ptr %3, i32 0, i32 7
store i32 36, ptr %75, align 4
%76 = getelementptr inbounds %struct.file_header_12_1_7, ptr %3, i32 0, i32 8
store i32 24, ptr %76, align 8
%77 = load i32, ptr %21, align 4
%78 = call i64 (i32, ...) @write(i32 noundef %77, ptr noundef %3, i64 noundef 328)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = call i32 @perror(ptr noundef @.str.3)
%82 = call i32 @exit(i32 noundef 1) #5
unreachable
83: ; preds = %74
%84 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %4, i32 0, i32 5
store i32 80, ptr %84, align 4
%85 = load i32, ptr %21, align 4
%86 = call i64 (i32, ...) @write(i32 noundef %85, ptr noundef %4, i64 noundef 36)
%87 = icmp slt i64 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %83
%89 = call i32 @perror(ptr noundef @.str.4)
%90 = call i32 @exit(i32 noundef 1) #5
unreachable
91: ; preds = %83
%92 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %5, i32 0, i32 5
store i32 8, ptr %92, align 4
%93 = load i32, ptr %21, align 4
%94 = call i64 (i32, ...) @write(i32 noundef %93, ptr noundef %5, i64 noundef 36)
%95 = icmp slt i64 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %91
%97 = call i32 @perror(ptr noundef @.str.5)
%98 = call i32 @exit(i32 noundef 1) #5
unreachable
99: ; preds = %91
%100 = getelementptr inbounds %struct.file_activity_12_1_7, ptr %6, i32 0, i32 5
store i32 16, ptr %100, align 4
%101 = load i32, ptr %21, align 4
%102 = call i64 (i32, ...) @write(i32 noundef %101, ptr noundef %6, i64 noundef 36)
%103 = icmp slt i64 %102, 0
br i1 %103, label %104, label %107
104: ; preds = %99
%105 = call i32 @perror(ptr noundef @.str.6)
%106 = call i32 @exit(i32 noundef 1) #5
unreachable
107: ; preds = %99
%108 = load i32, ptr %21, align 4
%109 = call i64 (i32, ...) @write(i32 noundef %108, ptr noundef %7, i64 noundef 24)
%110 = icmp slt i64 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %107
%112 = call i32 @perror(ptr noundef @.str.7)
%113 = call i32 @exit(i32 noundef 1) #5
unreachable
114: ; preds = %107
store i32 3, ptr %22, align 4
%115 = load i32, ptr %21, align 4
%116 = call i64 (i32, ...) @write(i32 noundef %115, ptr noundef %22, i64 noundef 4)
%117 = icmp slt i64 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %114
%119 = call i32 @perror(ptr noundef @.str.8)
%120 = call i32 @exit(i32 noundef 1) #5
unreachable
121: ; preds = %114
%122 = load i32, ptr %21, align 4
%123 = call i64 (i32, ...) @write(i32 noundef %122, ptr noundef %9, i64 noundef 80)
%124 = icmp slt i64 %123, 0
br i1 %124, label %125, label %128
125: ; preds = %121
%126 = call i32 @perror(ptr noundef @.str.9)
%127 = call i32 @exit(i32 noundef 1) #5
unreachable
128: ; preds = %121
%129 = load i32, ptr %21, align 4
%130 = call i64 (i32, ...) @write(i32 noundef %129, ptr noundef %10, i64 noundef 80)
%131 = icmp slt i64 %130, 0
br i1 %131, label %132, label %135
132: ; preds = %128
%133 = call i32 @perror(ptr noundef @.str.10)
%134 = call i32 @exit(i32 noundef 1) #5
unreachable
135: ; preds = %128
%136 = load i32, ptr %21, align 4
%137 = call i64 (i32, ...) @write(i32 noundef %136, ptr noundef %11, i64 noundef 80)
%138 = icmp slt i64 %137, 0
br i1 %138, label %139, label %142
139: ; preds = %135
%140 = call i32 @perror(ptr noundef @.str.11)
%141 = call i32 @exit(i32 noundef 1) #5
unreachable
142: ; preds = %135
%143 = load i32, ptr %21, align 4
%144 = call i64 (i32, ...) @write(i32 noundef %143, ptr noundef %15, i64 noundef 8)
%145 = icmp slt i64 %144, 0
br i1 %145, label %146, label %149
146: ; preds = %142
%147 = call i32 @perror(ptr noundef @.str.12)
%148 = call i32 @exit(i32 noundef 1) #5
unreachable
149: ; preds = %142
store i32 2, ptr %23, align 4
%150 = load i32, ptr %21, align 4
%151 = call i64 (i32, ...) @write(i32 noundef %150, ptr noundef %23, i64 noundef 4)
%152 = icmp slt i64 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %149
%154 = call i32 @perror(ptr noundef @.str.13)
%155 = call i32 @exit(i32 noundef 1) #5
unreachable
156: ; preds = %149
%157 = load i32, ptr %21, align 4
%158 = call i64 (i32, ...) @write(i32 noundef %157, ptr noundef %17, i64 noundef 16)
%159 = icmp slt i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %156
%161 = call i32 @perror(ptr noundef @.str.14)
%162 = call i32 @exit(i32 noundef 1) #5
unreachable
163: ; preds = %156
%164 = load i32, ptr %21, align 4
%165 = call i64 (i32, ...) @write(i32 noundef %164, ptr noundef %18, i64 noundef 16)
%166 = icmp slt i64 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %163
%168 = call i32 @perror(ptr noundef @.str.15)
%169 = call i32 @exit(i32 noundef 1) #5
unreachable
170: ; preds = %163
%171 = load i32, ptr %21, align 4
%172 = call i64 (i32, ...) @write(i32 noundef %171, ptr noundef %8, i64 noundef 24)
%173 = icmp slt i64 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %170
%175 = call i32 @perror(ptr noundef @.str.16)
%176 = call i32 @exit(i32 noundef 1) #5
unreachable
177: ; preds = %170
store i32 3, ptr %22, align 4
%178 = load i32, ptr %21, align 4
%179 = call i64 (i32, ...) @write(i32 noundef %178, ptr noundef %22, i64 noundef 4)
%180 = icmp slt i64 %179, 0
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = call i32 @perror(ptr noundef @.str.17)
%183 = call i32 @exit(i32 noundef 1) #5
unreachable
184: ; preds = %177
%185 = load i32, ptr %21, align 4
%186 = call i64 (i32, ...) @write(i32 noundef %185, ptr noundef %12, i64 noundef 80)
%187 = icmp slt i64 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %184
%189 = call i32 @perror(ptr noundef @.str.18)
%190 = call i32 @exit(i32 noundef 1) #5
unreachable
191: ; preds = %184
%192 = load i32, ptr %21, align 4
%193 = call i64 (i32, ...) @write(i32 noundef %192, ptr noundef %13, i64 noundef 80)
%194 = icmp slt i64 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %191
%196 = call i32 @perror(ptr noundef @.str.19)
%197 = call i32 @exit(i32 noundef 1) #5
unreachable
198: ; preds = %191
%199 = load i32, ptr %21, align 4
%200 = call i64 (i32, ...) @write(i32 noundef %199, ptr noundef %14, i64 noundef 80)
%201 = icmp slt i64 %200, 0
br i1 %201, label %202, label %205
202: ; preds = %198
%203 = call i32 @perror(ptr noundef @.str.20)
%204 = call i32 @exit(i32 noundef 1) #5
unreachable
205: ; preds = %198
%206 = load i32, ptr %21, align 4
%207 = call i64 (i32, ...) @write(i32 noundef %206, ptr noundef %16, i64 noundef 8)
%208 = icmp slt i64 %207, 0
br i1 %208, label %209, label %212
209: ; preds = %205
%210 = call i32 @perror(ptr noundef @.str.21)
%211 = call i32 @exit(i32 noundef 1) #5
unreachable
212: ; preds = %205
store i32 2, ptr %23, align 4
%213 = load i32, ptr %21, align 4
%214 = call i64 (i32, ...) @write(i32 noundef %213, ptr noundef %23, i64 noundef 4)
%215 = icmp slt i64 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %212
%217 = call i32 @perror(ptr noundef @.str.22)
%218 = call i32 @exit(i32 noundef 1) #5
unreachable
219: ; preds = %212
%220 = load i32, ptr %21, align 4
%221 = call i64 (i32, ...) @write(i32 noundef %220, ptr noundef %19, i64 noundef 16)
%222 = icmp slt i64 %221, 0
br i1 %222, label %223, label %226
223: ; preds = %219
%224 = call i32 @perror(ptr noundef @.str.23)
%225 = call i32 @exit(i32 noundef 1) #5
unreachable
226: ; preds = %219
%227 = load i32, ptr %21, align 4
%228 = call i64 (i32, ...) @write(i32 noundef %227, ptr noundef %20, i64 noundef 16)
%229 = icmp slt i64 %228, 0
br i1 %229, label %230, label %233
230: ; preds = %226
%231 = call i32 @perror(ptr noundef @.str.24)
%232 = call i32 @exit(i32 noundef 1) #5
unreachable
233: ; preds = %226
%234 = load i32, ptr %21, align 4
%235 = call i32 @close(i32 noundef %234)
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
; 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 @strcpy(ptr noundef, ptr noundef) #3
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #3
declare i32 @perror(ptr noundef) #3
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #4
declare i64 @write(i32 noundef, ...) #3
declare i32 @close(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1h6bd_ul.c'
source_filename = "/tmp/tmp1h6bd_ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%lu.%lu%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @asn32_to_long(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i64 0, ptr %2, align 8
br label %27
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @sscanf(ptr noundef %11, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %10
store i64 0, ptr %2, align 8
br label %27
15: ; preds = %10
%16 = load i64, ptr %4, align 8
%17 = icmp ugt i64 %16, 65535
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i64, ptr %5, align 8
%20 = icmp ugt i64 %19, 65535
br i1 %20, label %21, label %22
21: ; preds = %18, %15
store i64 0, ptr %2, align 8
br label %27
22: ; preds = %18
%23 = load i64, ptr %4, align 8
%24 = shl i64 %23, 16
%25 = load i64, ptr %5, align 8
%26 = add i64 %24, %25
store i64 %26, ptr %2, align 8
br label %27
27: ; preds = %22, %21, %14, %9
%28 = load i64, ptr %2, align 8
ret i64 %28
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1h6bd_ul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%lu.%lu%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @asn32_to_long(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i64 0, ptr %2, align 8
br label %27
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @sscanf(ptr noundef %11, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %10
store i64 0, ptr %2, align 8
br label %27
15: ; preds = %10
%16 = load i64, ptr %4, align 8
%17 = icmp ugt i64 %16, 65535
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i64, ptr %5, align 8
%20 = icmp ugt i64 %19, 65535
br i1 %20, label %21, label %22
21: ; preds = %18, %15
store i64 0, ptr %2, align 8
br label %27
22: ; preds = %18
%23 = load i64, ptr %4, align 8
%24 = shl i64 %23, 16
%25 = load i64, ptr %5, align 8
%26 = add i64 %24, %25
store i64 %26, ptr %2, align 8
br label %27
27: ; preds = %22, %21, %14, %9
%28 = load i64, ptr %2, align 8
ret i64 %28
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmwvjzuii.c'
source_filename = "/tmp/tmpmwvjzuii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse(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
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %4, align 4
br label %9
9: ; preds = %33, %1
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %38
13: ; preds = %9
%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 %17, align 1
store i8 %18, ptr %5, align 1
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
%28 = load i8, ptr %5, align 1
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 %28, ptr %32, align 1
br label %33
33: ; preds = %13
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %4, align 4
br label %9, !llvm.loop !6
38: ; preds = %9
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwvjzuii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse(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
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %40
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %32
%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 %16, align 1
store i8 %17, ptr %5, align 1
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
%27 = load i8, ptr %5, align 1
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
store i8 %27, ptr %31, align 1
br label %32
32: ; preds = %12
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %40
40: ; preds = %._crit_edge, %1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprzchnkmv.c'
source_filename = "/tmp/tmprzchnkmv.c"
target datalayout = "e-m:e-p270: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/tmprzchnkmv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_2qga53c.c'
source_filename = "/tmp/tmp_2qga53c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_2qga53c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3wrhdzgv.c'
source_filename = "/tmp/tmp3wrhdzgv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getheight() #0 {
%1 = call i64 (...) @GetHeight57()
ret i64 %1
}
declare i64 @GetHeight57(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wrhdzgv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getheight() #0 {
%1 = call i64 (...) @GetHeight57()
ret i64 %1
}
declare i64 @GetHeight57(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6f9718ua.c'
source_filename = "/tmp/tmp6f9718ua.c"
target datalayout = "e-m:e-p270: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/tmp6f9718ua.c"
target datalayout = "e-m:e-p270: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/tmp8z7eqjox.c'
source_filename = "/tmp/tmp8z7eqjox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"kore_buf_appendv(): vsnprintf error\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"kore_buf_appendv(): error or truncation\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @kore_buf_appendv(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
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load i32, ptr @BUFSIZ, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %9, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %10, align 8
%15 = trunc i64 %12 to i32
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @vsnprintf(ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 @fatal(ptr noundef @.str)
br label %23
23: ; preds = %21, %3
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = icmp uge i64 %25, %12
br i1 %26, label %27, label %36
27: ; preds = %23
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = call i32 @vasprintf(ptr noundef %8, ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 @fatal(ptr noundef @.str.1)
br label %35
35: ; preds = %33, %27
br label %37
36: ; preds = %23
store ptr %14, ptr %8, align 8
br label %37
37: ; preds = %36, %35
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %7, align 4
%41 = call i32 @kore_buf_append(ptr noundef %38, ptr noundef %39, i32 noundef %40)
%42 = load ptr, ptr %8, align 8
%43 = icmp ne ptr %42, %14
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = load ptr, ptr %8, align 8
%46 = call i32 @free(ptr noundef %45)
br label %47
47: ; preds = %44, %37
%48 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %48)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @vsnprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @fatal(ptr noundef) #2
declare i32 @vasprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @kore_buf_append(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8z7eqjox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"kore_buf_appendv(): vsnprintf error\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"kore_buf_appendv(): error or truncation\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @kore_buf_appendv(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
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%11 = load i32, ptr @BUFSIZ, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %9, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %10, align 8
%15 = trunc i64 %12 to i32
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @vsnprintf(ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17)
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 @fatal(ptr noundef @.str)
br label %23
23: ; preds = %21, %3
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = icmp uge i64 %25, %12
br i1 %26, label %27, label %36
27: ; preds = %23
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = call i32 @vasprintf(ptr noundef %8, ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 @fatal(ptr noundef @.str.1)
br label %35
35: ; preds = %33, %27
br label %37
36: ; preds = %23
store ptr %14, ptr %8, align 8
br label %37
37: ; preds = %36, %35
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %8, align 8
%40 = load i32, ptr %7, align 4
%41 = call i32 @kore_buf_append(ptr noundef %38, ptr noundef %39, i32 noundef %40)
%42 = load ptr, ptr %8, align 8
%43 = icmp ne ptr %42, %14
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = load ptr, ptr %8, align 8
%46 = call i32 @free(ptr noundef %45)
br label %47
47: ; preds = %44, %37
%48 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %48)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @vsnprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @fatal(ptr noundef) #2
declare i32 @vasprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @kore_buf_append(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpemtx7ucu.c'
source_filename = "/tmp/tmpemtx7ucu.c"
target datalayout = "e-m:e-p270: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/tmpemtx7ucu.c"
target datalayout = "e-m:e-p270: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/tmpzqiowhfm.c'
source_filename = "/tmp/tmpzqiowhfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzqiowhfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbmm14ypa.c'
source_filename = "/tmp/tmpbmm14ypa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"RNAsubopt\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RNAsubopt_cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @RNAsubopt_cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @RNAsubopt_cmdline_parser_dump(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbmm14ypa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"RNAsubopt\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @RNAsubopt_cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @RNAsubopt_cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @RNAsubopt_cmdline_parser_dump(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps460bdnh.c'
source_filename = "/tmp/tmps460bdnh.c"
target datalayout = "e-m:e-p270: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/tmps460bdnh.c"
target datalayout = "e-m:e-p270: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/tmp4j_r9ucv.c'
source_filename = "/tmp/tmp4j_r9ucv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Numero\09\09Quadrato\09Cubo\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%d\09\09%d\09\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 1, i32 noundef 1, i32 noundef 1)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2, i32 noundef 4, i32 noundef 8)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 3, i32 noundef 9, i32 noundef 27)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 4, i32 noundef 16, i32 noundef 64)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 5, i32 noundef 25, i32 noundef 125)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 6, i32 noundef 36, i32 noundef 216)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 7, i32 noundef 49, i32 noundef 343)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 8, i32 noundef 64, i32 noundef 512)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 9, i32 noundef 81, i32 noundef 729)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 10, i32 noundef 100, i32 noundef 1000)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4j_r9ucv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Numero\09\09Quadrato\09Cubo\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%d\09\09%d\09\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 1, i32 noundef 1, i32 noundef 1)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2, i32 noundef 4, i32 noundef 8)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 3, i32 noundef 9, i32 noundef 27)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 4, i32 noundef 16, i32 noundef 64)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 5, i32 noundef 25, i32 noundef 125)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 6, i32 noundef 36, i32 noundef 216)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 7, i32 noundef 49, i32 noundef 343)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 8, i32 noundef 64, i32 noundef 512)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 9, i32 noundef 81, i32 noundef 729)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 10, i32 noundef 100, i32 noundef 1000)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpotdldwfi.c'
source_filename = "/tmp/tmpotdldwfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorMsg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpotdldwfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorMsg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0r1r8m3q.c'
source_filename = "/tmp/tmp0r1r8m3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prussdrv_exec_code_at(i32 noundef %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
%11 = load i32, ptr %6, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %4
store i32 2, ptr %10, align 4
br label %20
14: ; preds = %4
%15 = load i32, ptr %6, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 3, ptr %10, align 4
br label %19
18: ; preds = %14
store i32 -1, ptr %5, align 4
br label %30
19: ; preds = %17
br label %20
20: ; preds = %19, %13
%21 = load i32, ptr %6, align 4
%22 = call i32 @prussdrv_pru_disable(i32 noundef %21)
%23 = load i32, ptr %10, align 4
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = call i32 @prussdrv_pru_write_memory(i32 noundef %23, i32 noundef 0, ptr noundef %24, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i64, ptr %9, align 8
%29 = call i32 @prussdrv_pru_enable_at(i32 noundef %27, i64 noundef %28)
store i32 0, ptr %5, align 4
br label %30
30: ; preds = %20, %18
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @prussdrv_pru_disable(i32 noundef) #1
declare i32 @prussdrv_pru_write_memory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @prussdrv_pru_enable_at(i32 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/tmp0r1r8m3q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @prussdrv_exec_code_at(i32 noundef %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
%11 = load i32, ptr %6, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %4
store i32 2, ptr %10, align 4
br label %20
14: ; preds = %4
%15 = load i32, ptr %6, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %14
store i32 3, ptr %10, align 4
br label %19
18: ; preds = %14
store i32 -1, ptr %5, align 4
br label %30
19: ; preds = %17
br label %20
20: ; preds = %19, %13
%21 = load i32, ptr %6, align 4
%22 = call i32 @prussdrv_pru_disable(i32 noundef %21)
%23 = load i32, ptr %10, align 4
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = call i32 @prussdrv_pru_write_memory(i32 noundef %23, i32 noundef 0, ptr noundef %24, i32 noundef %25)
%27 = load i32, ptr %6, align 4
%28 = load i64, ptr %9, align 8
%29 = call i32 @prussdrv_pru_enable_at(i32 noundef %27, i64 noundef %28)
store i32 0, ptr %5, align 4
br label %30
30: ; preds = %20, %18
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @prussdrv_pru_disable(i32 noundef) #1
declare i32 @prussdrv_pru_write_memory(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @prussdrv_pru_enable_at(i32 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/tmp27z49qa9.c'
source_filename = "/tmp/tmp27z49qa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [104 x i8] c"bin2s - convert binary files to assembly language\0Atypical usage: bin2s foo.bin bar.bin baz.bin > foo.s\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"bin2s: could not open \00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [40 x i8] c"bin2s: warning: skipping empty file %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [94 x i8] c"/* Generated by BIN2S - please don't edit directly */\0A\09.section .rodata\0A\09.balign %d\0A\09.global \00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"_size\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"_size: .int %lu\0A\09.global \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c":\0A\09.byte \00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%3u\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"\0A\09.byte \00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"\0A\0A\09.global \00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"_end\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"_end:\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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %10, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str, i32 noundef %18)
store i32 1, ptr %3, align 4
br label %206
20: ; preds = %2
store i32 1, ptr %9, align 4
br label %21
21: ; preds = %202, %20
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %205
25: ; preds = %21
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %35, label %64
35: ; preds = %25
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
switch i32 %43, label %63 [
i32 97, label %44
]
44: ; preds = %35
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr %9, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %56
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %49, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = call i32 @strtoul(ptr noundef %54, i32 noundef 0, i32 noundef 0)
br label %57
56: ; preds = %44
br label %57
57: ; preds = %56, %48
%58 = phi i32 [ %55, %48 ], [ 0, %56 ]
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 4, ptr %10, align 4
br label %62
62: ; preds = %61, %57
br label %63
63: ; preds = %35, %62
br label %202
64: ; preds = %25
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = call ptr @fopen(ptr noundef %69, ptr noundef @.str.1)
store ptr %70, ptr %6, align 8
%71 = load ptr, ptr %6, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %82, label %73
73: ; preds = %64
%74 = load i32, ptr @stderr, align 4
%75 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %74)
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %9, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = call i32 @perror(ptr noundef %80)
store i32 1, ptr %3, align 4
br label %206
82: ; preds = %64
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr @SEEK_END, align 4
%85 = call i32 @fseek(ptr noundef %83, i32 noundef 0, i32 noundef %84)
%86 = load ptr, ptr %6, align 8
%87 = call i64 @ftell(ptr noundef %86)
store i64 %87, ptr %7, align 8
%88 = load ptr, ptr %6, align 8
%89 = call i32 @rewind(ptr noundef %88)
%90 = load i64, ptr %7, align 8
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %102
92: ; preds = %82
%93 = load ptr, ptr %6, align 8
%94 = call i32 @fclose(ptr noundef %93)
%95 = load i32, ptr @stderr, align 4
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds ptr, ptr %96, i64 %98
%100 = load ptr, ptr %99, align 8
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %95, ptr noundef @.str.3, ptr noundef %100)
br label %202
102: ; preds = %82
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %9, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds ptr, ptr %103, i64 %105
%107 = load ptr, ptr %106, align 8
store ptr %107, ptr %11, align 8
store ptr null, ptr %13, align 8
br label %108
108: ; preds = %122, %102
%109 = load ptr, ptr %11, align 8
%110 = load i8, ptr %109, align 1
store i8 %110, ptr %12, align 1
%111 = icmp ne i8 %110, 0
br i1 %111, label %112, label %125
112: ; preds = %108
%113 = load i8, ptr %12, align 1
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 92
br i1 %115, label %120, label %116
116: ; preds = %112
%117 = load i8, ptr %12, align 1
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 47
br i1 %119, label %120, label %122
120: ; preds = %116, %112
%121 = load ptr, ptr %11, align 8
store ptr %121, ptr %13, align 8
br label %122
122: ; preds = %120, %116
%123 = load ptr, ptr %11, align 8
%124 = getelementptr inbounds i8, ptr %123, i32 1
store ptr %124, ptr %11, align 8
br label %108, !llvm.loop !6
125: ; preds = %108
%126 = load ptr, ptr %13, align 8
%127 = icmp ne ptr null, %126
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load ptr, ptr %13, align 8
%130 = getelementptr inbounds i8, ptr %129, i32 1
store ptr %130, ptr %13, align 8
br label %137
131: ; preds = %125
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %9, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds ptr, ptr %132, i64 %134
%136 = load ptr, ptr %135, align 8
store ptr %136, ptr %13, align 8
br label %137
137: ; preds = %131, %128
%138 = load i32, ptr @stdout, align 4
%139 = load i32, ptr %10, align 4
%140 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %138, ptr noundef @.str.4, i32 noundef %139)
%141 = load i32, ptr @stdout, align 4
%142 = load ptr, ptr %13, align 8
%143 = call i32 @strnident(i32 noundef %141, ptr noundef %142)
%144 = load i32, ptr @stdout, align 4
%145 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %144)
%146 = load i32, ptr @stdout, align 4
%147 = load ptr, ptr %13, align 8
%148 = call i32 @strnident(i32 noundef %146, ptr noundef %147)
%149 = load i64, ptr %7, align 8
%150 = trunc i64 %149 to i32
%151 = call i32 @printf(ptr noundef @.str.6, i32 noundef %150)
%152 = load i32, ptr @stdout, align 4
%153 = load ptr, ptr %13, align 8
%154 = call i32 @strnident(i32 noundef %152, ptr noundef %153)
%155 = load i32, ptr @stdout, align 4
%156 = call i32 @fputs(ptr noundef @.str.7, i32 noundef %155)
%157 = load i32, ptr @stdout, align 4
%158 = load ptr, ptr %13, align 8
%159 = call i32 @strnident(i32 noundef %157, ptr noundef %158)
%160 = load i32, ptr @stdout, align 4
%161 = call i32 @fputs(ptr noundef @.str.8, i32 noundef %160)
store i32 0, ptr %8, align 4
br label %162
162: ; preds = %186, %137
%163 = load i64, ptr %7, align 8
%164 = icmp ugt i64 %163, 0
br i1 %164, label %165, label %187
165: ; preds = %162
%166 = load ptr, ptr %6, align 8
%167 = call zeroext i8 @fgetc(ptr noundef %166)
store i8 %167, ptr %14, align 1
%168 = load i8, ptr %14, align 1
%169 = zext i8 %168 to i32
%170 = call i32 @printf(ptr noundef @.str.9, i32 noundef %169)
%171 = load i64, ptr %7, align 8
%172 = add i64 %171, -1
store i64 %172, ptr %7, align 8
%173 = load i64, ptr %7, align 8
%174 = icmp ne i64 %173, 0
br i1 %174, label %175, label %186
175: ; preds = %165
%176 = load i32, ptr %8, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %8, align 4
%178 = icmp sge i32 %177, 16
br i1 %178, label %179, label %182
179: ; preds = %175
store i32 0, ptr %8, align 4
%180 = load i32, ptr @stdout, align 4
%181 = call i32 @fputs(ptr noundef @.str.10, i32 noundef %180)
br label %185
182: ; preds = %175
%183 = load i32, ptr @stdout, align 4
%184 = call i32 @fputc(i8 noundef signext 44, i32 noundef %183)
br label %185
185: ; preds = %182, %179
br label %186
186: ; preds = %185, %165
br label %162, !llvm.loop !8
187: ; preds = %162
%188 = load i32, ptr @stdout, align 4
%189 = call i32 @fputs(ptr noundef @.str.11, i32 noundef %188)
%190 = load i32, ptr @stdout, align 4
%191 = load ptr, ptr %13, align 8
%192 = call i32 @strnident(i32 noundef %190, ptr noundef %191)
%193 = load i32, ptr @stdout, align 4
%194 = call i32 @fputs(ptr noundef @.str.12, i32 noundef %193)
%195 = load i32, ptr @stdout, align 4
%196 = load ptr, ptr %13, align 8
%197 = call i32 @strnident(i32 noundef %195, ptr noundef %196)
%198 = load i32, ptr @stdout, align 4
%199 = call i32 @fputs(ptr noundef @.str.13, i32 noundef %198)
%200 = load ptr, ptr %6, align 8
%201 = call i32 @fclose(ptr noundef %200)
br label %202
202: ; preds = %187, %92, %63
%203 = load i32, ptr %9, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %9, align 4
br label %21, !llvm.loop !9
205: ; preds = %21
store i32 0, ptr %3, align 4
br label %206
206: ; preds = %205, %73, %17
%207 = load i32, ptr %3, align 4
ret i32 %207
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strnident(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp27z49qa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [104 x i8] c"bin2s - convert binary files to assembly language\0Atypical usage: bin2s foo.bin bar.bin baz.bin > foo.s\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"bin2s: could not open \00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [40 x i8] c"bin2s: warning: skipping empty file %s\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [94 x i8] c"/* Generated by BIN2S - please don't edit directly */\0A\09.section .rodata\0A\09.balign %d\0A\09.global \00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"_size\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"_size: .int %lu\0A\09.global \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c":\0A\09.byte \00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%3u\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"\0A\09.byte \00", align 1
@.str.11 = private unnamed_addr constant [12 x i8] c"\0A\0A\09.global \00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"_end\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"_end:\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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i8, align 1
%13 = alloca ptr, align 8
%14 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 4, ptr %10, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str, i32 noundef %18)
store i32 1, ptr %3, align 4
br label %211
20: ; preds = %2
store i32 1, ptr %9, align 4
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph5, label %210
.lr.ph5: ; preds = %20
br label %24
24: ; preds = %.lr.ph5, %204
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %9, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 45
br i1 %33, label %34, label %63
34: ; preds = %24
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
switch i32 %42, label %62 [
i32 97, label %43
]
43: ; preds = %34
%44 = load i32, ptr %4, align 4
%45 = load i32, ptr %9, align 4
%46 = icmp sgt i32 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %48, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = call i32 @strtoul(ptr noundef %53, i32 noundef 0, i32 noundef 0)
br label %56
55: ; preds = %43
br label %56
56: ; preds = %55, %47
%57 = phi i32 [ %54, %47 ], [ 0, %55 ]
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 4, ptr %10, align 4
br label %61
61: ; preds = %60, %56
br label %62
62: ; preds = %61, %34
br label %204
63: ; preds = %24
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds ptr, ptr %64, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = call ptr @fopen(ptr noundef %68, ptr noundef @.str.1)
store ptr %69, ptr %6, align 8
%70 = load ptr, ptr %6, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %81, label %72
72: ; preds = %63
%73 = load i32, ptr @stderr, align 4
%74 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %73)
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = call i32 @perror(ptr noundef %79)
store i32 1, ptr %3, align 4
br label %211
81: ; preds = %63
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr @SEEK_END, align 4
%84 = call i32 @fseek(ptr noundef %82, i32 noundef 0, i32 noundef %83)
%85 = load ptr, ptr %6, align 8
%86 = call i64 @ftell(ptr noundef %85)
store i64 %86, ptr %7, align 8
%87 = load ptr, ptr %6, align 8
%88 = call i32 @rewind(ptr noundef %87)
%89 = load i64, ptr %7, align 8
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %81
%92 = load ptr, ptr %6, align 8
%93 = call i32 @fclose(ptr noundef %92)
%94 = load i32, ptr @stderr, align 4
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %95, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %94, ptr noundef @.str.3, ptr noundef %99)
br label %204
101: ; preds = %81
%102 = load ptr, ptr %5, align 8
%103 = load i32, ptr %9, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds ptr, ptr %102, i64 %104
%106 = load ptr, ptr %105, align 8
store ptr %106, ptr %11, align 8
store ptr null, ptr %13, align 8
%107 = load ptr, ptr %11, align 8
%108 = load i8, ptr %107, align 1
store i8 %108, ptr %12, align 1
%109 = icmp ne i8 %108, 0
br i1 %109, label %.lr.ph, label %126
.lr.ph: ; preds = %101
br label %110
110: ; preds = %.lr.ph, %120
%111 = load i8, ptr %12, align 1
%112 = sext i8 %111 to i32
%113 = icmp eq i32 %112, 92
br i1 %113, label %118, label %114
114: ; preds = %110
%115 = load i8, ptr %12, align 1
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 47
br i1 %117, label %118, label %120
118: ; preds = %114, %110
%119 = load ptr, ptr %11, align 8
store ptr %119, ptr %13, align 8
br label %120
120: ; preds = %118, %114
%121 = load ptr, ptr %11, align 8
%122 = getelementptr inbounds i8, ptr %121, i32 1
store ptr %122, ptr %11, align 8
%123 = load ptr, ptr %11, align 8
%124 = load i8, ptr %123, align 1
store i8 %124, ptr %12, align 1
%125 = icmp ne i8 %124, 0
br i1 %125, label %110, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %120
br label %126
126: ; preds = %._crit_edge, %101
%127 = load ptr, ptr %13, align 8
%128 = icmp ne ptr null, %127
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load ptr, ptr %13, align 8
%131 = getelementptr inbounds i8, ptr %130, i32 1
store ptr %131, ptr %13, align 8
br label %138
132: ; preds = %126
%133 = load ptr, ptr %5, align 8
%134 = load i32, ptr %9, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds ptr, ptr %133, i64 %135
%137 = load ptr, ptr %136, align 8
store ptr %137, ptr %13, align 8
br label %138
138: ; preds = %132, %129
%139 = load i32, ptr @stdout, align 4
%140 = load i32, ptr %10, align 4
%141 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %139, ptr noundef @.str.4, i32 noundef %140)
%142 = load i32, ptr @stdout, align 4
%143 = load ptr, ptr %13, align 8
%144 = call i32 @strnident(i32 noundef %142, ptr noundef %143)
%145 = load i32, ptr @stdout, align 4
%146 = call i32 @fputs(ptr noundef @.str.5, i32 noundef %145)
%147 = load i32, ptr @stdout, align 4
%148 = load ptr, ptr %13, align 8
%149 = call i32 @strnident(i32 noundef %147, ptr noundef %148)
%150 = load i64, ptr %7, align 8
%151 = trunc i64 %150 to i32
%152 = call i32 @printf(ptr noundef @.str.6, i32 noundef %151)
%153 = load i32, ptr @stdout, align 4
%154 = load ptr, ptr %13, align 8
%155 = call i32 @strnident(i32 noundef %153, ptr noundef %154)
%156 = load i32, ptr @stdout, align 4
%157 = call i32 @fputs(ptr noundef @.str.7, i32 noundef %156)
%158 = load i32, ptr @stdout, align 4
%159 = load ptr, ptr %13, align 8
%160 = call i32 @strnident(i32 noundef %158, ptr noundef %159)
%161 = load i32, ptr @stdout, align 4
%162 = call i32 @fputs(ptr noundef @.str.8, i32 noundef %161)
store i32 0, ptr %8, align 4
%163 = load i64, ptr %7, align 8
%164 = icmp ugt i64 %163, 0
br i1 %164, label %.lr.ph2, label %189
.lr.ph2: ; preds = %138
br label %165
165: ; preds = %.lr.ph2, %186
%166 = load ptr, ptr %6, align 8
%167 = call zeroext i8 @fgetc(ptr noundef %166)
store i8 %167, ptr %14, align 1
%168 = load i8, ptr %14, align 1
%169 = zext i8 %168 to i32
%170 = call i32 @printf(ptr noundef @.str.9, i32 noundef %169)
%171 = load i64, ptr %7, align 8
%172 = add i64 %171, -1
store i64 %172, ptr %7, align 8
%173 = load i64, ptr %7, align 8
%174 = icmp ne i64 %173, 0
br i1 %174, label %175, label %186
175: ; preds = %165
%176 = load i32, ptr %8, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %8, align 4
%178 = icmp sge i32 %177, 16
br i1 %178, label %179, label %182
179: ; preds = %175
store i32 0, ptr %8, align 4
%180 = load i32, ptr @stdout, align 4
%181 = call i32 @fputs(ptr noundef @.str.10, i32 noundef %180)
br label %185
182: ; preds = %175
%183 = load i32, ptr @stdout, align 4
%184 = call i32 @fputc(i8 noundef signext 44, i32 noundef %183)
br label %185
185: ; preds = %182, %179
br label %186
186: ; preds = %185, %165
%187 = load i64, ptr %7, align 8
%188 = icmp ugt i64 %187, 0
br i1 %188, label %165, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %186
br label %189
189: ; preds = %._crit_edge3, %138
%190 = load i32, ptr @stdout, align 4
%191 = call i32 @fputs(ptr noundef @.str.11, i32 noundef %190)
%192 = load i32, ptr @stdout, align 4
%193 = load ptr, ptr %13, align 8
%194 = call i32 @strnident(i32 noundef %192, ptr noundef %193)
%195 = load i32, ptr @stdout, align 4
%196 = call i32 @fputs(ptr noundef @.str.12, i32 noundef %195)
%197 = load i32, ptr @stdout, align 4
%198 = load ptr, ptr %13, align 8
%199 = call i32 @strnident(i32 noundef %197, ptr noundef %198)
%200 = load i32, ptr @stdout, align 4
%201 = call i32 @fputs(ptr noundef @.str.13, i32 noundef %200)
%202 = load ptr, ptr %6, align 8
%203 = call i32 @fclose(ptr noundef %202)
br label %204
204: ; preds = %189, %91, %62
%205 = load i32, ptr %9, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %9, align 4
%207 = load i32, ptr %9, align 4
%208 = load i32, ptr %4, align 4
%209 = icmp slt i32 %207, %208
br i1 %209, label %24, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %204
br label %210
210: ; preds = %._crit_edge6, %20
store i32 0, ptr %3, align 4
br label %211
211: ; preds = %210, %72, %17
%212 = load i32, ptr %3, align 4
ret i32 %212
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @strnident(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp3fmpbt04.c'
source_filename = "/tmp/tmp3fmpbt04.c"
target datalayout = "e-m:e-p270: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/tmp3fmpbt04.c"
target datalayout = "e-m:e-p270: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/tmpn0xcguon.c'
source_filename = "/tmp/tmpn0xcguon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_data(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca [3 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca [5 x i8], align 1
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %22, align 8
br label %27
24: ; preds = %2
%25 = load ptr, ptr %3, align 8
%26 = call i64 @strlen(ptr noundef %25)
br label %27
27: ; preds = %24, %21
%28 = phi i64 [ %23, %21 ], [ %26, %24 ]
store i64 %28, ptr %7, align 8
%29 = load ptr, ptr %3, align 8
%30 = load i64, ptr %7, align 8
%31 = getelementptr i8, ptr %29, i64 %30
store ptr %31, ptr %8, align 8
br label %32
32: ; preds = %159, %27
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %8, align 8
%35 = icmp ult ptr %33, %34
br i1 %35, label %36, label %164
36: ; preds = %32
%37 = load ptr, ptr %5, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
switch i32 %39, label %40 [
i32 92, label %44
]
40: ; preds = %36
%41 = load ptr, ptr %5, align 8
%42 = load i8, ptr %41, align 1
%43 = load ptr, ptr %6, align 8
store i8 %42, ptr %43, align 1
br label %158
44: ; preds = %36
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %5, align 8
%47 = load ptr, ptr %5, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
switch i32 %49, label %151 [
i32 110, label %50
i32 114, label %52
i32 102, label %54
i32 98, label %56
i32 120, label %58
i32 48, label %107
]
50: ; preds = %44
%51 = load ptr, ptr %6, align 8
store i8 10, ptr %51, align 1
br label %157
52: ; preds = %44
%53 = load ptr, ptr %6, align 8
store i8 13, ptr %53, align 1
br label %157
54: ; preds = %44
%55 = load ptr, ptr %6, align 8
store i8 12, ptr %55, align 1
br label %157
56: ; preds = %44
%57 = load ptr, ptr %6, align 8
store i8 8, ptr %57, align 1
br label %157
58: ; preds = %44
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 3
%61 = load ptr, ptr %8, align 8
%62 = icmp ult ptr %60, %61
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds i8, ptr %64, i64 3
br label %68
66: ; preds = %58
%67 = load ptr, ptr %8, align 8
br label %68
68: ; preds = %66, %63
%69 = phi ptr [ %65, %63 ], [ %67, %66 ]
store ptr %69, ptr %10, align 8
%70 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 1
%73 = load ptr, ptr %10, align 8
%74 = load ptr, ptr %5, align 8
%75 = ptrtoint ptr %73 to i64
%76 = ptrtoint ptr %74 to i64
%77 = sub i64 %75, %76
%78 = sub nsw i64 %77, 1
%79 = trunc i64 %78 to i32
%80 = call i32 @memcpy(ptr noundef %70, ptr noundef %72, i32 noundef %79)
%81 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 2
store i8 0, ptr %81, align 1
%82 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
store ptr %82, ptr %11, align 8
%83 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%84 = call i64 @strtoul(ptr noundef %83, ptr noundef %11, i32 noundef 16)
store i64 %84, ptr %12, align 8
%85 = load ptr, ptr %11, align 8
%86 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%87 = icmp eq ptr %85, %86
br i1 %87, label %88, label %94
88: ; preds = %68
%89 = load ptr, ptr %6, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %6, align 8
store i8 92, ptr %89, align 1
%91 = load ptr, ptr %5, align 8
%92 = load i8, ptr %91, align 1
%93 = load ptr, ptr %6, align 8
store i8 %92, ptr %93, align 1
br label %106
94: ; preds = %68
%95 = load ptr, ptr %11, align 8
%96 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%97 = ptrtoint ptr %95 to i64
%98 = ptrtoint ptr %96 to i64
%99 = sub i64 %97, %98
%100 = load ptr, ptr %5, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 %99
store ptr %101, ptr %5, align 8
%102 = load i64, ptr %12, align 8
%103 = and i64 %102, 255
%104 = trunc i64 %103 to i8
%105 = load ptr, ptr %6, align 8
store i8 %104, ptr %105, align 1
br label %106
106: ; preds = %94, %88
br label %157
107: ; preds = %44
%108 = load ptr, ptr %5, align 8
%109 = getelementptr inbounds i8, ptr %108, i64 4
%110 = load ptr, ptr %8, align 8
%111 = icmp ult ptr %109, %110
br i1 %111, label %112, label %115
112: ; preds = %107
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds i8, ptr %113, i64 4
br label %117
115: ; preds = %107
%116 = load ptr, ptr %8, align 8
br label %117
117: ; preds = %115, %112
%118 = phi ptr [ %114, %112 ], [ %116, %115 ]
store ptr %118, ptr %14, align 8
%119 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%120 = load ptr, ptr %5, align 8
%121 = load ptr, ptr %14, align 8
%122 = load ptr, ptr %5, align 8
%123 = ptrtoint ptr %121 to i64
%124 = ptrtoint ptr %122 to i64
%125 = sub i64 %123, %124
%126 = trunc i64 %125 to i32
%127 = call i32 @memcpy(ptr noundef %119, ptr noundef %120, i32 noundef %126)
%128 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 4
store i8 0, ptr %128, align 1
%129 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
store ptr %129, ptr %15, align 8
%130 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%131 = call i64 @strtoul(ptr noundef %130, ptr noundef %15, i32 noundef 8)
store i64 %131, ptr %16, align 8
%132 = load ptr, ptr %15, align 8
%133 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%134 = icmp eq ptr %132, %133
br i1 %134, label %135, label %137
135: ; preds = %117
%136 = load ptr, ptr %6, align 8
store i8 0, ptr %136, align 1
br label %150
137: ; preds = %117
%138 = load ptr, ptr %15, align 8
%139 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%140 = ptrtoint ptr %138 to i64
%141 = ptrtoint ptr %139 to i64
%142 = sub i64 %140, %141
%143 = sub nsw i64 %142, 1
%144 = load ptr, ptr %5, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 %143
store ptr %145, ptr %5, align 8
%146 = load i64, ptr %16, align 8
%147 = and i64 %146, 255
%148 = trunc i64 %147 to i8
%149 = load ptr, ptr %6, align 8
store i8 %148, ptr %149, align 1
br label %150
150: ; preds = %137, %135
br label %157
151: ; preds = %44
%152 = load ptr, ptr %6, align 8
%153 = getelementptr inbounds i8, ptr %152, i32 1
store ptr %153, ptr %6, align 8
store i8 92, ptr %152, align 1
%154 = load ptr, ptr %5, align 8
%155 = load i8, ptr %154, align 1
%156 = load ptr, ptr %6, align 8
store i8 %155, ptr %156, align 1
br label %157
157: ; preds = %151, %150, %106, %56, %54, %52, %50
br label %158
158: ; preds = %157, %40
br label %159
159: ; preds = %158
%160 = load ptr, ptr %5, align 8
%161 = getelementptr inbounds i8, ptr %160, i32 1
store ptr %161, ptr %5, align 8
%162 = load ptr, ptr %6, align 8
%163 = getelementptr inbounds i8, ptr %162, i32 1
store ptr %163, ptr %6, align 8
br label %32, !llvm.loop !6
164: ; preds = %32
%165 = load ptr, ptr %6, align 8
store i8 0, ptr %165, align 1
%166 = load ptr, ptr %4, align 8
%167 = icmp ne ptr %166, null
br i1 %167, label %168, label %175
168: ; preds = %164
%169 = load ptr, ptr %6, align 8
%170 = load ptr, ptr %3, align 8
%171 = ptrtoint ptr %169 to i64
%172 = ptrtoint ptr %170 to i64
%173 = sub i64 %171, %172
%174 = load ptr, ptr %4, align 8
store i64 %173, ptr %174, align 8
br label %175
175: ; preds = %168, %164
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn0xcguon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unescape_data(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca [3 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca [5 x i8], align 1
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%17 = load ptr, ptr %3, align 8
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %4, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %22, align 8
br label %27
24: ; preds = %2
%25 = load ptr, ptr %3, align 8
%26 = call i64 @strlen(ptr noundef %25)
br label %27
27: ; preds = %24, %21
%28 = phi i64 [ %23, %21 ], [ %26, %24 ]
store i64 %28, ptr %7, align 8
%29 = load ptr, ptr %3, align 8
%30 = load i64, ptr %7, align 8
%31 = getelementptr i8, ptr %29, i64 %30
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %5, align 8
%33 = load ptr, ptr %8, align 8
%34 = icmp ult ptr %32, %33
br i1 %34, label %.lr.ph, label %166
.lr.ph: ; preds = %27
br label %35
35: ; preds = %.lr.ph, %158
%36 = load ptr, ptr %5, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
switch i32 %38, label %39 [
i32 92, label %43
]
39: ; preds = %35
%40 = load ptr, ptr %5, align 8
%41 = load i8, ptr %40, align 1
%42 = load ptr, ptr %6, align 8
store i8 %41, ptr %42, align 1
br label %157
43: ; preds = %35
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %5, align 8
%46 = load ptr, ptr %5, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
switch i32 %48, label %150 [
i32 110, label %49
i32 114, label %51
i32 102, label %53
i32 98, label %55
i32 120, label %57
i32 48, label %106
]
49: ; preds = %43
%50 = load ptr, ptr %6, align 8
store i8 10, ptr %50, align 1
br label %156
51: ; preds = %43
%52 = load ptr, ptr %6, align 8
store i8 13, ptr %52, align 1
br label %156
53: ; preds = %43
%54 = load ptr, ptr %6, align 8
store i8 12, ptr %54, align 1
br label %156
55: ; preds = %43
%56 = load ptr, ptr %6, align 8
store i8 8, ptr %56, align 1
br label %156
57: ; preds = %43
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 3
%60 = load ptr, ptr %8, align 8
%61 = icmp ult ptr %59, %60
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 3
br label %67
65: ; preds = %57
%66 = load ptr, ptr %8, align 8
br label %67
67: ; preds = %65, %62
%68 = phi ptr [ %64, %62 ], [ %66, %65 ]
store ptr %68, ptr %10, align 8
%69 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds i8, ptr %70, i64 1
%72 = load ptr, ptr %10, align 8
%73 = load ptr, ptr %5, align 8
%74 = ptrtoint ptr %72 to i64
%75 = ptrtoint ptr %73 to i64
%76 = sub i64 %74, %75
%77 = sub nsw i64 %76, 1
%78 = trunc i64 %77 to i32
%79 = call i32 @memcpy(ptr noundef %69, ptr noundef %71, i32 noundef %78)
%80 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 2
store i8 0, ptr %80, align 1
%81 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
store ptr %81, ptr %11, align 8
%82 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%83 = call i64 @strtoul(ptr noundef %82, ptr noundef %11, i32 noundef 16)
store i64 %83, ptr %12, align 8
%84 = load ptr, ptr %11, align 8
%85 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%86 = icmp eq ptr %84, %85
br i1 %86, label %87, label %93
87: ; preds = %67
%88 = load ptr, ptr %6, align 8
%89 = getelementptr inbounds i8, ptr %88, i32 1
store ptr %89, ptr %6, align 8
store i8 92, ptr %88, align 1
%90 = load ptr, ptr %5, align 8
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %6, align 8
store i8 %91, ptr %92, align 1
br label %105
93: ; preds = %67
%94 = load ptr, ptr %11, align 8
%95 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
%96 = ptrtoint ptr %94 to i64
%97 = ptrtoint ptr %95 to i64
%98 = sub i64 %96, %97
%99 = load ptr, ptr %5, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 %98
store ptr %100, ptr %5, align 8
%101 = load i64, ptr %12, align 8
%102 = and i64 %101, 255
%103 = trunc i64 %102 to i8
%104 = load ptr, ptr %6, align 8
store i8 %103, ptr %104, align 1
br label %105
105: ; preds = %93, %87
br label %156
106: ; preds = %43
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 4
%109 = load ptr, ptr %8, align 8
%110 = icmp ult ptr %108, %109
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = load ptr, ptr %5, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 4
br label %116
114: ; preds = %106
%115 = load ptr, ptr %8, align 8
br label %116
116: ; preds = %114, %111
%117 = phi ptr [ %113, %111 ], [ %115, %114 ]
store ptr %117, ptr %14, align 8
%118 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%119 = load ptr, ptr %5, align 8
%120 = load ptr, ptr %14, align 8
%121 = load ptr, ptr %5, align 8
%122 = ptrtoint ptr %120 to i64
%123 = ptrtoint ptr %121 to i64
%124 = sub i64 %122, %123
%125 = trunc i64 %124 to i32
%126 = call i32 @memcpy(ptr noundef %118, ptr noundef %119, i32 noundef %125)
%127 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 4
store i8 0, ptr %127, align 1
%128 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
store ptr %128, ptr %15, align 8
%129 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%130 = call i64 @strtoul(ptr noundef %129, ptr noundef %15, i32 noundef 8)
store i64 %130, ptr %16, align 8
%131 = load ptr, ptr %15, align 8
%132 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%133 = icmp eq ptr %131, %132
br i1 %133, label %134, label %136
134: ; preds = %116
%135 = load ptr, ptr %6, align 8
store i8 0, ptr %135, align 1
br label %149
136: ; preds = %116
%137 = load ptr, ptr %15, align 8
%138 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
%139 = ptrtoint ptr %137 to i64
%140 = ptrtoint ptr %138 to i64
%141 = sub i64 %139, %140
%142 = sub nsw i64 %141, 1
%143 = load ptr, ptr %5, align 8
%144 = getelementptr inbounds i8, ptr %143, i64 %142
store ptr %144, ptr %5, align 8
%145 = load i64, ptr %16, align 8
%146 = and i64 %145, 255
%147 = trunc i64 %146 to i8
%148 = load ptr, ptr %6, align 8
store i8 %147, ptr %148, align 1
br label %149
149: ; preds = %136, %134
br label %156
150: ; preds = %43
%151 = load ptr, ptr %6, align 8
%152 = getelementptr inbounds i8, ptr %151, i32 1
store ptr %152, ptr %6, align 8
store i8 92, ptr %151, align 1
%153 = load ptr, ptr %5, align 8
%154 = load i8, ptr %153, align 1
%155 = load ptr, ptr %6, align 8
store i8 %154, ptr %155, align 1
br label %156
156: ; preds = %150, %149, %105, %55, %53, %51, %49
br label %157
157: ; preds = %156, %39
br label %158
158: ; preds = %157
%159 = load ptr, ptr %5, align 8
%160 = getelementptr inbounds i8, ptr %159, i32 1
store ptr %160, ptr %5, align 8
%161 = load ptr, ptr %6, align 8
%162 = getelementptr inbounds i8, ptr %161, i32 1
store ptr %162, ptr %6, align 8
%163 = load ptr, ptr %5, align 8
%164 = load ptr, ptr %8, align 8
%165 = icmp ult ptr %163, %164
br i1 %165, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %158
br label %166
166: ; preds = %._crit_edge, %27
%167 = load ptr, ptr %6, align 8
store i8 0, ptr %167, align 1
%168 = load ptr, ptr %4, align 8
%169 = icmp ne ptr %168, null
br i1 %169, label %170, label %177
170: ; preds = %166
%171 = load ptr, ptr %6, align 8
%172 = load ptr, ptr %3, align 8
%173 = ptrtoint ptr %171 to i64
%174 = ptrtoint ptr %172 to i64
%175 = sub i64 %173, %174
%176 = load ptr, ptr %4, align 8
store i64 %175, ptr %176, align 8
br label %177
177: ; preds = %170, %166
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0esrgi6b.c'
source_filename = "/tmp/tmp0esrgi6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PartitionDispositionRipetition(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %9, 4
%11 = call i64 @malloc(i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = call i64 @PartitionDispositionRipetitionR(i32 noundef 0, ptr noundef %13, ptr noundef %14, i64 noundef %15, i64 noundef %16, i32 noundef 0)
store i64 %17, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = load i64, ptr %7, align 8
ret i64 %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @PartitionDispositionRipetitionR(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0esrgi6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PartitionDispositionRipetition(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %9, 4
%11 = call i64 @malloc(i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %5, align 8
%16 = load i64, ptr %6, align 8
%17 = call i64 @PartitionDispositionRipetitionR(i32 noundef 0, ptr noundef %13, ptr noundef %14, i64 noundef %15, i64 noundef %16, i32 noundef 0)
store i64 %17, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = load i64, ptr %7, align 8
ret i64 %20
}
declare i64 @malloc(i64 noundef) #1
declare i64 @PartitionDispositionRipetitionR(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe5xyew48.c'
source_filename = "/tmp/tmpe5xyew48.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"[Error] Failed to open file %s for writing!\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"[Error] Failed to open file %s for appending!\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"[Error] Failed to open file %s for reading!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @check_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %38
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 119
br i1 %16, label %17, label %21
17: ; preds = %11
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %3, align 8
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
br label %36
21: ; preds = %11
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 97
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %3, align 8
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1, ptr noundef %29)
br label %35
31: ; preds = %21
%32 = load i32, ptr @stderr, align 4
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, ptr noundef %33)
br label %35
35: ; preds = %31, %27
br label %36
36: ; preds = %35, %17
%37 = call i32 @exit(i32 noundef 1) #3
unreachable
38: ; preds = %2
%39 = load ptr, ptr %5, align 8
ret ptr %39
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe5xyew48.c"
target datalayout = "e-m:e-p270: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 [45 x i8] c"[Error] Failed to open file %s for writing!\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"[Error] Failed to open file %s for appending!\0A\00", align 1
@.str.2 = private unnamed_addr constant [45 x i8] c"[Error] Failed to open file %s for reading!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @check_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %38
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 119
br i1 %16, label %17, label %21
17: ; preds = %11
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %3, align 8
%20 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %19)
br label %36
21: ; preds = %11
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 97
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %3, align 8
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1, ptr noundef %29)
br label %35
31: ; preds = %21
%32 = load i32, ptr @stderr, align 4
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, ptr noundef %33)
br label %35
35: ; preds = %31, %27
br label %36
36: ; preds = %35, %17
%37 = call i32 @exit(i32 noundef 1) #3
unreachable
38: ; preds = %2
%39 = load ptr, ptr %5, align 8
ret ptr %39
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp84m0h2az.c'
source_filename = "/tmp/tmp84m0h2az.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inet_pton6.xdigits = internal global [17 x i8] c"0123456789abcdef\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inet_pton6(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [16 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 0, i32 noundef 16)
%19 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 16
store ptr %21, ptr %8, align 8
store ptr null, ptr %9, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 58
br i1 %25, label %26, label %34
26: ; preds = %2
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 58
br i1 %31, label %32, label %33
32: ; preds = %26
store i32 0, ptr %3, align 4
br label %198
33: ; preds = %26
br label %34
34: ; preds = %33, %2
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %10, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %36
36: ; preds = %88, %73, %61, %34
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %4, align 8
%39 = load i8, ptr %37, align 1
%40 = sext i8 %39 to i32
%41 = call i32 @tolower(i32 noundef %40) #3
store i32 %41, ptr %11, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %121
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = call ptr @strchr(ptr noundef @inet_pton6.xdigits, i32 noundef %44)
store ptr %45, ptr %14, align 8
%46 = load ptr, ptr %14, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %62
48: ; preds = %43
%49 = load i32, ptr %13, align 4
%50 = shl i32 %49, 4
store i32 %50, ptr %13, align 4
%51 = load ptr, ptr %14, align 8
%52 = ptrtoint ptr %51 to i64
%53 = sub i64 %52, ptrtoint (ptr @inet_pton6.xdigits to i64)
%54 = load i32, ptr %13, align 4
%55 = zext i32 %54 to i64
%56 = or i64 %55, %53
%57 = trunc i64 %56 to i32
store i32 %57, ptr %13, align 4
%58 = load i32, ptr %13, align 4
%59 = icmp ugt i32 %58, 65535
br i1 %59, label %60, label %61
60: ; preds = %48
store i32 0, ptr %3, align 4
br label %198
61: ; preds = %48
store i32 1, ptr %12, align 4
br label %36, !llvm.loop !6
62: ; preds = %43
%63 = load i32, ptr %11, align 4
%64 = icmp eq i32 %63, 58
br i1 %64, label %65, label %104
65: ; preds = %62
%66 = load ptr, ptr %4, align 8
store ptr %66, ptr %10, align 8
%67 = load i32, ptr %12, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %75, label %69
69: ; preds = %65
%70 = load ptr, ptr %9, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %73
72: ; preds = %69
store i32 0, ptr %3, align 4
br label %198
73: ; preds = %69
%74 = load ptr, ptr %7, align 8
store ptr %74, ptr %9, align 8
br label %36, !llvm.loop !6
75: ; preds = %65
%76 = load ptr, ptr %4, align 8
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %75
store i32 0, ptr %3, align 4
br label %198
81: ; preds = %75
br label %82
82: ; preds = %81
%83 = load ptr, ptr %7, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 2
%85 = load ptr, ptr %8, align 8
%86 = icmp ugt ptr %84, %85
br i1 %86, label %87, label %88
87: ; preds = %82
store i32 0, ptr %3, align 4
br label %198
88: ; preds = %82
%89 = load i32, ptr %13, align 4
%90 = lshr i32 %89, 8
%91 = trunc i32 %90 to i8
%92 = zext i8 %91 to i32
%93 = and i32 %92, 255
%94 = trunc i32 %93 to i8
%95 = load ptr, ptr %7, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 1
store ptr %96, ptr %7, align 8
store i8 %94, ptr %95, align 1
%97 = load i32, ptr %13, align 4
%98 = trunc i32 %97 to i8
%99 = zext i8 %98 to i32
%100 = and i32 %99, 255
%101 = trunc i32 %100 to i8
%102 = load ptr, ptr %7, align 8
%103 = getelementptr inbounds i8, ptr %102, i32 1
store ptr %103, ptr %7, align 8
store i8 %101, ptr %102, align 1
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %36, !llvm.loop !6
104: ; preds = %62
%105 = load i32, ptr %11, align 4
%106 = icmp eq i32 %105, 46
br i1 %106, label %107, label %120
107: ; preds = %104
%108 = load ptr, ptr %7, align 8
%109 = getelementptr inbounds i8, ptr %108, i64 4
%110 = load ptr, ptr %8, align 8
%111 = icmp ule ptr %109, %110
br i1 %111, label %112, label %120
112: ; preds = %107
%113 = load ptr, ptr %10, align 8
%114 = load ptr, ptr %7, align 8
%115 = call i64 @inet_pton4(ptr noundef %113, ptr noundef %114)
%116 = icmp sgt i64 %115, 0
br i1 %116, label %117, label %120
117: ; preds = %112
%118 = load ptr, ptr %7, align 8
%119 = getelementptr inbounds i8, ptr %118, i64 4
store ptr %119, ptr %7, align 8
store i32 0, ptr %12, align 4
br label %121
120: ; preds = %112, %107, %104
store i32 0, ptr %3, align 4
br label %198
121: ; preds = %117, %36
%122 = load i32, ptr %12, align 4
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %146
124: ; preds = %121
%125 = load ptr, ptr %7, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 2
%127 = load ptr, ptr %8, align 8
%128 = icmp ugt ptr %126, %127
br i1 %128, label %129, label %130
129: ; preds = %124
store i32 0, ptr %3, align 4
br label %198
130: ; preds = %124
%131 = load i32, ptr %13, align 4
%132 = lshr i32 %131, 8
%133 = trunc i32 %132 to i8
%134 = zext i8 %133 to i32
%135 = and i32 %134, 255
%136 = trunc i32 %135 to i8
%137 = load ptr, ptr %7, align 8
%138 = getelementptr inbounds i8, ptr %137, i32 1
store ptr %138, ptr %7, align 8
store i8 %136, ptr %137, align 1
%139 = load i32, ptr %13, align 4
%140 = trunc i32 %139 to i8
%141 = zext i8 %140 to i32
%142 = and i32 %141, 255
%143 = trunc i32 %142 to i8
%144 = load ptr, ptr %7, align 8
%145 = getelementptr inbounds i8, ptr %144, i32 1
store ptr %145, ptr %7, align 8
store i8 %143, ptr %144, align 1
br label %146
146: ; preds = %130, %121
%147 = load ptr, ptr %9, align 8
%148 = icmp ne ptr %147, null
br i1 %148, label %149, label %189
149: ; preds = %146
%150 = load ptr, ptr %7, align 8
%151 = load ptr, ptr %9, align 8
%152 = ptrtoint ptr %150 to i64
%153 = ptrtoint ptr %151 to i64
%154 = sub i64 %152, %153
%155 = trunc i64 %154 to i32
store i32 %155, ptr %15, align 4
%156 = load ptr, ptr %7, align 8
%157 = load ptr, ptr %8, align 8
%158 = icmp eq ptr %156, %157
br i1 %158, label %159, label %160
159: ; preds = %149
store i32 0, ptr %3, align 4
br label %198
160: ; preds = %149
store i32 1, ptr %16, align 4
br label %161
161: ; preds = %184, %160
%162 = load i32, ptr %16, align 4
%163 = load i32, ptr %15, align 4
%164 = icmp sle i32 %162, %163
br i1 %164, label %165, label %187
165: ; preds = %161
%166 = load ptr, ptr %9, align 8
%167 = load i32, ptr %15, align 4
%168 = load i32, ptr %16, align 4
%169 = sub nsw i32 %167, %168
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds i8, ptr %166, i64 %170
%172 = load i8, ptr %171, align 1
%173 = load ptr, ptr %8, align 8
%174 = load i32, ptr %16, align 4
%175 = sub nsw i32 0, %174
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i8, ptr %173, i64 %176
store i8 %172, ptr %177, align 1
%178 = load ptr, ptr %9, align 8
%179 = load i32, ptr %15, align 4
%180 = load i32, ptr %16, align 4
%181 = sub nsw i32 %179, %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %178, i64 %182
store i8 0, ptr %183, align 1
br label %184
184: ; preds = %165
%185 = load i32, ptr %16, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %16, align 4
br label %161, !llvm.loop !8
187: ; preds = %161
%188 = load ptr, ptr %8, align 8
store ptr %188, ptr %7, align 8
br label %189
189: ; preds = %187, %146
%190 = load ptr, ptr %7, align 8
%191 = load ptr, ptr %8, align 8
%192 = icmp ne ptr %190, %191
br i1 %192, label %193, label %194
193: ; preds = %189
store i32 0, ptr %3, align 4
br label %198
194: ; preds = %189
%195 = load ptr, ptr %5, align 8
%196 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%197 = call i32 @memcpy(ptr noundef %195, ptr noundef %196, i32 noundef 16)
store i32 1, ptr %3, align 4
br label %198
198: ; preds = %194, %193, %159, %129, %120, %87, %80, %72, %60, %32
%199 = load i32, ptr %3, align 4
ret i32 %199
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #2
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare i64 @inet_pton4(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp84m0h2az.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inet_pton6.xdigits = internal global [17 x i8] c"0123456789abcdef\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @inet_pton6(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [16 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%17 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 0, i32 noundef 16)
%19 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 16
store ptr %21, ptr %8, align 8
store ptr null, ptr %9, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 58
br i1 %25, label %26, label %34
26: ; preds = %2
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 58
br i1 %31, label %32, label %33
32: ; preds = %26
store i32 0, ptr %3, align 4
br label %205
33: ; preds = %26
br label %34
34: ; preds = %33, %2
%35 = load ptr, ptr %4, align 8
store ptr %35, ptr %10, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %4, align 8
%38 = load i8, ptr %36, align 1
%39 = sext i8 %38 to i32
%40 = call i32 @tolower(i32 noundef %39) #3
store i32 %40, ptr %11, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %34
br label %42
42: ; preds = %.lr.ph, %.backedge
%43 = load i32, ptr %11, align 4
%44 = call ptr @strchr(ptr noundef @inet_pton6.xdigits, i32 noundef %43)
store ptr %44, ptr %14, align 8
%45 = load ptr, ptr %14, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %67
47: ; preds = %42
%48 = load i32, ptr %13, align 4
%49 = shl i32 %48, 4
store i32 %49, ptr %13, align 4
%50 = load ptr, ptr %14, align 8
%51 = ptrtoint ptr %50 to i64
%52 = sub i64 %51, ptrtoint (ptr @inet_pton6.xdigits to i64)
%53 = load i32, ptr %13, align 4
%54 = zext i32 %53 to i64
%55 = or i64 %54, %52
%56 = trunc i64 %55 to i32
store i32 %56, ptr %13, align 4
%57 = load i32, ptr %13, align 4
%58 = icmp ugt i32 %57, 65535
br i1 %58, label %59, label %60
59: ; preds = %47
store i32 0, ptr %3, align 4
br label %205
60: ; preds = %47
store i32 1, ptr %12, align 4
br label %.backedge
.backedge: ; preds = %60, %78, %93
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %4, align 8
%63 = load i8, ptr %61, align 1
%64 = sext i8 %63 to i32
%65 = call i32 @tolower(i32 noundef %64) #3
store i32 %65, ptr %11, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %42, label %..loopexit_crit_edge, !llvm.loop !6
67: ; preds = %42
%68 = load i32, ptr %11, align 4
%69 = icmp eq i32 %68, 58
br i1 %69, label %70, label %109
70: ; preds = %67
%71 = load ptr, ptr %4, align 8
store ptr %71, ptr %10, align 8
%72 = load i32, ptr %12, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %80, label %74
74: ; preds = %70
%75 = load ptr, ptr %9, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %78
77: ; preds = %74
store i32 0, ptr %3, align 4
br label %205
78: ; preds = %74
%79 = load ptr, ptr %7, align 8
store ptr %79, ptr %9, align 8
br label %.backedge
80: ; preds = %70
%81 = load ptr, ptr %4, align 8
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %80
store i32 0, ptr %3, align 4
br label %205
86: ; preds = %80
br label %87
87: ; preds = %86
%88 = load ptr, ptr %7, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 2
%90 = load ptr, ptr %8, align 8
%91 = icmp ugt ptr %89, %90
br i1 %91, label %92, label %93
92: ; preds = %87
store i32 0, ptr %3, align 4
br label %205
93: ; preds = %87
%94 = load i32, ptr %13, align 4
%95 = lshr i32 %94, 8
%96 = trunc i32 %95 to i8
%97 = zext i8 %96 to i32
%98 = and i32 %97, 255
%99 = trunc i32 %98 to i8
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds i8, ptr %100, i32 1
store ptr %101, ptr %7, align 8
store i8 %99, ptr %100, align 1
%102 = load i32, ptr %13, align 4
%103 = trunc i32 %102 to i8
%104 = zext i8 %103 to i32
%105 = and i32 %104, 255
%106 = trunc i32 %105 to i8
%107 = load ptr, ptr %7, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %7, align 8
store i8 %106, ptr %107, align 1
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %.backedge
109: ; preds = %67
%110 = load i32, ptr %11, align 4
%111 = icmp eq i32 %110, 46
br i1 %111, label %112, label %125
112: ; preds = %109
%113 = load ptr, ptr %7, align 8
%114 = getelementptr inbounds i8, ptr %113, i64 4
%115 = load ptr, ptr %8, align 8
%116 = icmp ule ptr %114, %115
br i1 %116, label %117, label %125
117: ; preds = %112
%118 = load ptr, ptr %10, align 8
%119 = load ptr, ptr %7, align 8
%120 = call i64 @inet_pton4(ptr noundef %118, ptr noundef %119)
%121 = icmp sgt i64 %120, 0
br i1 %121, label %122, label %125
122: ; preds = %117
%123 = load ptr, ptr %7, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 4
store ptr %124, ptr %7, align 8
store i32 0, ptr %12, align 4
br label %126
125: ; preds = %117, %112, %109
store i32 0, ptr %3, align 4
br label %205
..loopexit_crit_edge: ; preds = %.backedge
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %34
br label %126
126: ; preds = %.loopexit, %122
%127 = load i32, ptr %12, align 4
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %151
129: ; preds = %126
%130 = load ptr, ptr %7, align 8
%131 = getelementptr inbounds i8, ptr %130, i64 2
%132 = load ptr, ptr %8, align 8
%133 = icmp ugt ptr %131, %132
br i1 %133, label %134, label %135
134: ; preds = %129
store i32 0, ptr %3, align 4
br label %205
135: ; preds = %129
%136 = load i32, ptr %13, align 4
%137 = lshr i32 %136, 8
%138 = trunc i32 %137 to i8
%139 = zext i8 %138 to i32
%140 = and i32 %139, 255
%141 = trunc i32 %140 to i8
%142 = load ptr, ptr %7, align 8
%143 = getelementptr inbounds i8, ptr %142, i32 1
store ptr %143, ptr %7, align 8
store i8 %141, ptr %142, align 1
%144 = load i32, ptr %13, align 4
%145 = trunc i32 %144 to i8
%146 = zext i8 %145 to i32
%147 = and i32 %146, 255
%148 = trunc i32 %147 to i8
%149 = load ptr, ptr %7, align 8
%150 = getelementptr inbounds i8, ptr %149, i32 1
store ptr %150, ptr %7, align 8
store i8 %148, ptr %149, align 1
br label %151
151: ; preds = %135, %126
%152 = load ptr, ptr %9, align 8
%153 = icmp ne ptr %152, null
br i1 %153, label %154, label %196
154: ; preds = %151
%155 = load ptr, ptr %7, align 8
%156 = load ptr, ptr %9, align 8
%157 = ptrtoint ptr %155 to i64
%158 = ptrtoint ptr %156 to i64
%159 = sub i64 %157, %158
%160 = trunc i64 %159 to i32
store i32 %160, ptr %15, align 4
%161 = load ptr, ptr %7, align 8
%162 = load ptr, ptr %8, align 8
%163 = icmp eq ptr %161, %162
br i1 %163, label %164, label %165
164: ; preds = %154
store i32 0, ptr %3, align 4
br label %205
165: ; preds = %154
store i32 1, ptr %16, align 4
%166 = load i32, ptr %16, align 4
%167 = load i32, ptr %15, align 4
%168 = icmp sle i32 %166, %167
br i1 %168, label %.lr.ph1, label %194
.lr.ph1: ; preds = %165
br label %169
169: ; preds = %.lr.ph1, %188
%170 = load ptr, ptr %9, align 8
%171 = load i32, ptr %15, align 4
%172 = load i32, ptr %16, align 4
%173 = sub nsw i32 %171, %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, ptr %170, i64 %174
%176 = load i8, ptr %175, align 1
%177 = load ptr, ptr %8, align 8
%178 = load i32, ptr %16, align 4
%179 = sub nsw i32 0, %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8, ptr %177, i64 %180
store i8 %176, ptr %181, align 1
%182 = load ptr, ptr %9, align 8
%183 = load i32, ptr %15, align 4
%184 = load i32, ptr %16, align 4
%185 = sub nsw i32 %183, %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i8, ptr %182, i64 %186
store i8 0, ptr %187, align 1
br label %188
188: ; preds = %169
%189 = load i32, ptr %16, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %16, align 4
%191 = load i32, ptr %16, align 4
%192 = load i32, ptr %15, align 4
%193 = icmp sle i32 %191, %192
br i1 %193, label %169, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %188
br label %194
194: ; preds = %._crit_edge, %165
%195 = load ptr, ptr %8, align 8
store ptr %195, ptr %7, align 8
br label %196
196: ; preds = %194, %151
%197 = load ptr, ptr %7, align 8
%198 = load ptr, ptr %8, align 8
%199 = icmp ne ptr %197, %198
br i1 %199, label %200, label %201
200: ; preds = %196
store i32 0, ptr %3, align 4
br label %205
201: ; preds = %196
%202 = load ptr, ptr %5, align 8
%203 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%204 = call i32 @memcpy(ptr noundef %202, ptr noundef %203, i32 noundef 16)
store i32 1, ptr %3, align 4
br label %205
205: ; preds = %201, %200, %164, %134, %125, %92, %85, %77, %59, %32
%206 = load i32, ptr %3, align 4
ret i32 %206
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #2
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare i64 @inet_pton4(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpl7v6v44w.c'
source_filename = "/tmp/tmpl7v6v44w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0AThinking for a number....\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0AThinking completed.\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 @printf(ptr noundef @.str)
%4 = call i32 (...) @numberGenerator()
store i32 %4, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = load i32, ptr %2, align 4
%7 = call i32 @inputTaker(i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @numberGenerator(...) #1
declare i32 @inputTaker(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/tmpl7v6v44w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0AThinking for a number....\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0AThinking completed.\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 @printf(ptr noundef @.str)
%4 = call i32 (...) @numberGenerator()
store i32 %4, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = load i32, ptr %2, align 4
%7 = call i32 @inputTaker(i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @numberGenerator(...) #1
declare i32 @inputTaker(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/tmpzwfcw1zt.c'
source_filename = "/tmp/tmpzwfcw1zt.c"
target datalayout = "e-m:e-p270: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/tmpzwfcw1zt.c"
target datalayout = "e-m:e-p270: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/tmpqs9fy8nv.c'
source_filename = "/tmp/tmpqs9fy8nv.c"
target datalayout = "e-m:e-p270: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/tmpqs9fy8nv.c"
target datalayout = "e-m:e-p270: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/tmpcas9_2ab.c'
source_filename = "/tmp/tmpcas9_2ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @picolCommand9Create(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = call signext i8 @SetHiBitOfLastChar(ptr noundef %16)
store i8 %17, ptr %8, align 1
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %9, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 3
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %10, align 4
store i32 0, ptr %11, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %10, align 4
%29 = call i32 @Os9Create(ptr noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %11)
store i32 %29, ptr %12, align 4
%30 = load ptr, ptr %7, align 8
%31 = load i8, ptr %8, align 1
%32 = call i32 @RestoreLastChar(ptr noundef %30, i8 noundef signext %31)
%33 = load i32, ptr %12, align 4
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %11, align 4
%36 = call i32 @IntOrError(i32 noundef %33, ptr noundef %34, i32 noundef %35)
ret i32 %36
}
declare signext i8 @SetHiBitOfLastChar(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Os9Create(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @RestoreLastChar(ptr noundef, i8 noundef signext) #1
declare i32 @IntOrError(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/tmpcas9_2ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @picolCommand9Create(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = call signext i8 @SetHiBitOfLastChar(ptr noundef %16)
store i8 %17, ptr %8, align 1
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i32 @atoi(ptr noundef %20)
store i32 %21, ptr %9, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 3
%24 = load ptr, ptr %23, align 8
%25 = call i32 @atoi(ptr noundef %24)
store i32 %25, ptr %10, align 4
store i32 0, ptr %11, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %10, align 4
%29 = call i32 @Os9Create(ptr noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %11)
store i32 %29, ptr %12, align 4
%30 = load ptr, ptr %7, align 8
%31 = load i8, ptr %8, align 1
%32 = call i32 @RestoreLastChar(ptr noundef %30, i8 noundef signext %31)
%33 = load i32, ptr %12, align 4
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %11, align 4
%36 = call i32 @IntOrError(i32 noundef %33, ptr noundef %34, i32 noundef %35)
ret i32 %36
}
declare signext i8 @SetHiBitOfLastChar(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Os9Create(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @RestoreLastChar(ptr noundef, i8 noundef signext) #1
declare i32 @IntOrError(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/tmpim7dll2u.c'
source_filename = "/tmp/tmpim7dll2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_byte(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 @fread(ptr noundef %3, i32 noundef 1, i32 noundef 1, ptr noundef %4)
%6 = load i32, ptr %3, align 4
%7 = and i32 %6, 255
ret i32 %7
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpim7dll2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_byte(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 @fread(ptr noundef %3, i32 noundef 1, i32 noundef 1, ptr noundef %4)
%6 = load i32, ptr %3, align 4
%7 = and i32 %6, 255
ret i32 %7
}
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptihe3wrg.c'
source_filename = "/tmp/tmptihe3wrg.c"
target datalayout = "e-m:e-p270: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/tmptihe3wrg.c"
target datalayout = "e-m:e-p270: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/tmpuz6nj_w0.c'
source_filename = "/tmp/tmpuz6nj_w0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fixterm() #0 {
%1 = load i32, ptr @OK, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuz6nj_w0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fixterm() #0 {
%1 = load i32, ptr @OK, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpez1j1tcx.c'
source_filename = "/tmp/tmpez1j1tcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"rhtml\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"<%\0A #comment\0A%>\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"html\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"<%\0A%>\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"ruby\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"#comment\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_rhtml_comment() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_parse2(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 0, ptr noundef @.str.5, ptr noundef @.str.4, ptr noundef @.str.6, i32 noundef 0)
ret void
}
declare i32 @test_parser_verify_parse2(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @test_parser_sourcefile(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/tmpez1j1tcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"rhtml\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"<%\0A #comment\0A%>\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"html\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"<%\0A%>\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"ruby\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"#comment\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_rhtml_comment() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_parse2(i32 noundef %1, ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 0, ptr noundef @.str.5, ptr noundef @.str.4, ptr noundef @.str.6, i32 noundef 0)
ret void
}
declare i32 @test_parser_verify_parse2(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @test_parser_sourcefile(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/tmp8srjw0mx.c'
source_filename = "/tmp/tmp8srjw0mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"We have %d pets in total\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 46, ptr %6, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %7, %8
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %9, %10
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8srjw0mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"We have %d pets in total\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 46, ptr %6, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %7, %8
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %9, %10
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %11, %12
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps3rgay1b.c'
source_filename = "/tmp/tmps3rgay1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hi baby!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @say_hi() #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/tmps3rgay1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hi baby!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @say_hi() #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/tmpa7hn6ya9.c'
source_filename = "/tmp/tmpa7hn6ya9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"freeze %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lib_freeze(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa7hn6ya9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"freeze %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lib_freeze(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbz9zeewx.c'
source_filename = "/tmp/tmpbz9zeewx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"wl -i wlan0 assoclist | wc | awk '{print $1}'\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"wl -i wl0.1 assoclist | wc | awk '{print $1}'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_wifi_connect_count() #0 {
%1 = alloca [512 x i8], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 512)
%9 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %24
12: ; preds = %0
%13 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%14 = load ptr, ptr %2, align 8
%15 = call i32 @fread(ptr noundef %13, i32 noundef 1, i32 noundef 511, ptr noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%20 = call i32 @atoi(ptr noundef %19)
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %18, %12
%22 = load ptr, ptr %2, align 8
%23 = call i32 @pclose(ptr noundef %22)
br label %25
24: ; preds = %0
store i32 -1, ptr %4, align 4
br label %48
25: ; preds = %21
%26 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%27 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef 512)
%28 = call ptr @popen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %28, ptr %2, align 8
%29 = load ptr, ptr %2, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %43
31: ; preds = %25
%32 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%33 = load ptr, ptr %2, align 8
%34 = call i32 @fread(ptr noundef %32, i32 noundef 1, i32 noundef 511, ptr noundef %33)
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %31
%41 = load ptr, ptr %2, align 8
%42 = call i32 @pclose(ptr noundef %41)
br label %44
43: ; preds = %25
store i32 -1, ptr %4, align 4
br label %48
44: ; preds = %40
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %45, %46
store i32 %47, ptr %4, align 4
br label %48
48: ; preds = %44, %43, %24
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @atoi(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbz9zeewx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"wl -i wlan0 assoclist | wc | awk '{print $1}'\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"wl -i wl0.1 assoclist | wc | awk '{print $1}'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_wifi_connect_count() #0 {
%1 = alloca [512 x i8], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 512)
%9 = call ptr @popen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %24
12: ; preds = %0
%13 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%14 = load ptr, ptr %2, align 8
%15 = call i32 @fread(ptr noundef %13, i32 noundef 1, i32 noundef 511, ptr noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%20 = call i32 @atoi(ptr noundef %19)
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %18, %12
%22 = load ptr, ptr %2, align 8
%23 = call i32 @pclose(ptr noundef %22)
br label %25
24: ; preds = %0
store i32 -1, ptr %4, align 4
br label %48
25: ; preds = %21
%26 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%27 = call i32 @memset(ptr noundef %26, i32 noundef 0, i32 noundef 512)
%28 = call ptr @popen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %28, ptr %2, align 8
%29 = load ptr, ptr %2, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %31, label %43
31: ; preds = %25
%32 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%33 = load ptr, ptr %2, align 8
%34 = call i32 @fread(ptr noundef %32, i32 noundef 1, i32 noundef 511, ptr noundef %33)
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 0
%39 = call i32 @atoi(ptr noundef %38)
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %31
%41 = load ptr, ptr %2, align 8
%42 = call i32 @pclose(ptr noundef %41)
br label %44
43: ; preds = %25
store i32 -1, ptr %4, align 4
br label %48
44: ; preds = %40
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %45, %46
store i32 %47, ptr %4, align 4
br label %48
48: ; preds = %44, %43, %24
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @atoi(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp30yxv8zc.c'
source_filename = "/tmp/tmp30yxv8zc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Files %s and %s differ\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @brief(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%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
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = call i64 @malloc(i32 noundef 200)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %10, align 8
%14 = call i64 @malloc(i32 noundef 200)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %11, align 8
br label %16
16: ; preds = %41, %4
%17 = load ptr, ptr %10, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load ptr, ptr %11, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %20, %16
%25 = phi i1 [ false, %16 ], [ %23, %20 ]
br i1 %25, label %26, label %42
26: ; preds = %24
%27 = load ptr, ptr %10, align 8
%28 = load ptr, ptr %6, align 8
%29 = call i32 @getline(ptr noundef %27, i32 noundef 200, ptr noundef %28)
%30 = load ptr, ptr %11, align 8
%31 = load ptr, ptr %7, align 8
%32 = call i32 @getline(ptr noundef %30, i32 noundef 200, ptr noundef %31)
%33 = load ptr, ptr %10, align 8
%34 = load ptr, ptr %11, align 8
%35 = call i64 @strcmp(ptr noundef %33, ptr noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %26
%38 = load ptr, ptr %8, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @printf(ptr noundef @.str.1, ptr noundef %38, ptr noundef %39)
store i32 1, ptr %5, align 4
br label %43
41: ; preds = %26
br label %16, !llvm.loop !6
42: ; preds = %24
store i32 0, ptr %5, align 4
br label %43
43: ; preds = %42, %37
%44 = load i32, ptr %5, align 4
ret i32 %44
}
declare i64 @malloc(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp30yxv8zc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Files %s and %s differ\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @brief(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%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
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = call i64 @malloc(i32 noundef 200)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %10, align 8
%14 = call i64 @malloc(i32 noundef 200)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %11, align 8
br label %16
16: ; preds = %26, %4
%17 = load ptr, ptr %10, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load ptr, ptr %11, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str)
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %20, %16
%25 = phi i1 [ false, %16 ], [ %23, %20 ]
br i1 %25, label %26, label %41
26: ; preds = %24
%27 = load ptr, ptr %10, align 8
%28 = load ptr, ptr %6, align 8
%29 = call i32 @getline(ptr noundef %27, i32 noundef 200, ptr noundef %28)
%30 = load ptr, ptr %11, align 8
%31 = load ptr, ptr %7, align 8
%32 = call i32 @getline(ptr noundef %30, i32 noundef 200, ptr noundef %31)
%33 = load ptr, ptr %10, align 8
%34 = load ptr, ptr %11, align 8
%35 = call i64 @strcmp(ptr noundef %33, ptr noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %16, !llvm.loop !6
37: ; preds = %26
%38 = load ptr, ptr %8, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @printf(ptr noundef @.str.1, ptr noundef %38, ptr noundef %39)
store i32 1, ptr %5, align 4
br label %42
41: ; preds = %24
store i32 0, ptr %5, align 4
br label %42
42: ; preds = %41, %37
%43 = load i32, ptr %5, align 4
ret i32 %43
}
declare i64 @malloc(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @getline(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcwt067fl.c'
source_filename = "/tmp/tmpcwt067fl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randint(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 1
%8 = sitofp i32 %7 to double
%9 = call double (...) @rand()
%10 = load double, ptr @RAND_MAX, align 8
%11 = fadd double %10, 1.000000e+00
%12 = fdiv double %9, %11
%13 = fmul double %8, %12
%14 = fptosi double %13 to i32
%15 = add nsw i32 %5, %14
ret i32 %15
}
declare double @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcwt067fl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @randint(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 %6, 1
%8 = sitofp i32 %7 to double
%9 = call double (...) @rand()
%10 = load double, ptr @RAND_MAX, align 8
%11 = fadd double %10, 1.000000e+00
%12 = fdiv double %9, %11
%13 = fmul double %8, %12
%14 = fptosi double %13 to i32
%15 = add nsw i32 %5, %14
ret i32 %15
}
declare double @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpif3a59kl.c'
source_filename = "/tmp/tmpif3a59kl.c"
target datalayout = "e-m:e-p270: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.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.timeval, align 4
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %5, align 4
%8 = call i32 @settimeofday(ptr noundef %3, ptr noundef null)
ret i32 %8
}
declare i32 @settimeofday(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/tmpif3a59kl.c"
target datalayout = "e-m:e-p270: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.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @stime(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.timeval, align 4
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i32 0, ptr %4, align 4
%5 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
store i32 %7, ptr %5, align 4
%8 = call i32 @settimeofday(ptr noundef %3, ptr noundef null)
ret i32 %8
}
declare i32 @settimeofday(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/tmpgvlq5_pk.c'
source_filename = "/tmp/tmpgvlq5_pk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @process_seperate()
ret i32 0
}
declare i32 @process_seperate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgvlq5_pk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @process_seperate()
ret i32 0
}
declare i32 @process_seperate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpojz9cvpr.c'
source_filename = "/tmp/tmpojz9cvpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strdel(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 %14
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %10, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %9, %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/tmpojz9cvpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strdel(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 %14
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %10, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %9, %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/tmp5kibpwt_.c'
source_filename = "/tmp/tmp5kibpwt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @gcd(i32 noundef 98, i32 noundef 56)
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 @gcd(i32 noundef, 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/tmp5kibpwt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @gcd(i32 noundef 98, i32 noundef 56)
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 @gcd(i32 noundef, 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/tmpf662tlyh.c'
source_filename = "/tmp/tmpf662tlyh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf662tlyh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps9_i_aop.c'
source_filename = "/tmp/tmps9_i_aop.c"
target datalayout = "e-m:e-p270: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/tmps9_i_aop.c"
target datalayout = "e-m:e-p270: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/tmpeqjh6jvc.c'
source_filename = "/tmp/tmpeqjh6jvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_15(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 97
%10 = zext i1 %9 to i32
%11 = call i32 @__analyzer_eval(i32 noundef %10)
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %13, %17
%19 = zext i1 %18 to i32
%20 = call i32 @__analyzer_eval(i32 noundef %19)
store i8 97, ptr %3, align 1
%21 = load i8, ptr %3, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 97
%24 = zext i1 %23 to i32
%25 = call i32 @__analyzer_eval(i32 noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 0
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 97
%31 = zext i1 %30 to i32
%32 = call i32 @__analyzer_eval(i32 noundef %31)
ret void
}
declare i32 @__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/tmpeqjh6jvc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_15(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 97
%10 = zext i1 %9 to i32
%11 = call i32 @__analyzer_eval(i32 noundef %10)
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %13, %17
%19 = zext i1 %18 to i32
%20 = call i32 @__analyzer_eval(i32 noundef %19)
store i8 97, ptr %3, align 1
%21 = load i8, ptr %3, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 97
%24 = zext i1 %23 to i32
%25 = call i32 @__analyzer_eval(i32 noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 0
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 97
%31 = zext i1 %30 to i32
%32 = call i32 @__analyzer_eval(i32 noundef %31)
ret void
}
declare i32 @__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/tmp58x4n4qx.c'
source_filename = "/tmp/tmp58x4n4qx.c"
target datalayout = "e-m:e-p270: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.A = private unnamed_addr constant [8 x i32] [i32 34, i32 21, i32 91, i32 47, i32 82, i32 10, i32 48, i32 29], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [8 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.A, i64 32, i1 false)
store i32 8, ptr %3, align 4
%5 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @rand_quicksort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
; 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 @rand_quicksort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp58x4n4qx.c"
target datalayout = "e-m:e-p270: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.A = private unnamed_addr constant [8 x i32] [i32 34, i32 21, i32 91, i32 47, i32 82, i32 10, i32 48, i32 29], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [8 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.A, i64 32, i1 false)
store i32 8, ptr %3, align 4
%5 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 0
%6 = load i32, ptr %3, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @rand_quicksort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %18
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [8 x i32], ptr %4, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%26 = load i32, ptr %1, align 4
ret i32 %26
}
; 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 @rand_quicksort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi2dwln9l.c'
source_filename = "/tmp/tmpi2dwln9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gui_bar_item_timer_cb.item_time_text = internal global [128 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gui_bar_item_timer_cb(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 [128 x i8], align 16
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 %6, align 4
%10 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @config_get_item_time(ptr noundef %10, i32 noundef 128)
%12 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @gui_bar_item_timer_cb.item_time_text)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%17 = call i32 @snprintf(ptr noundef @gui_bar_item_timer_cb.item_time_text, i32 noundef 128, ptr noundef @.str, ptr noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = call i32 @gui_bar_item_update(ptr noundef %18)
br label %20
20: ; preds = %15, %3
ret i32 0
}
declare i32 @config_get_item_time(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @gui_bar_item_update(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi2dwln9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gui_bar_item_timer_cb.item_time_text = internal global [128 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gui_bar_item_timer_cb(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 [128 x i8], align 16
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 %6, align 4
%10 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @config_get_item_time(ptr noundef %10, i32 noundef 128)
%12 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @gui_bar_item_timer_cb.item_time_text)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%17 = call i32 @snprintf(ptr noundef @gui_bar_item_timer_cb.item_time_text, i32 noundef 128, ptr noundef @.str, ptr noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = call i32 @gui_bar_item_update(ptr noundef %18)
br label %20
20: ; preds = %15, %3
ret i32 0
}
declare i32 @config_get_item_time(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @gui_bar_item_update(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcllreqso.c'
source_filename = "/tmp/tmpcllreqso.c"
target datalayout = "e-m:e-p270: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/tmpcllreqso.c"
target datalayout = "e-m:e-p270: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/tmps0xi971c.c'
source_filename = "/tmp/tmps0xi971c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"C2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c" The input value of ARRAY:\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c" Modified value of ARRAY is:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @c2_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @print_array(ptr noundef %8)
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %65, %1
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %68
13: ; preds = %10
store i32 0, ptr %4, align 4
br label %14
14: ; preds = %61, %13
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %64
17: ; preds = %14
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [3 x i32], ptr %18, i64 %20
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %44
27: ; preds = %17
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [3 x i32], ptr %28, i64 %30
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = sub nsw i32 0, %35
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x i32], ptr %37, i64 %39
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [3 x i32], ptr %40, i64 0, i64 %42
store i32 %36, ptr %43, align 4
br label %44
44: ; preds = %27, %17
%45 = load ptr, ptr %2, align 8
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x i32], ptr %45, i64 %47
%49 = load i32, ptr %4, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [3 x i32], ptr %48, i64 0, i64 %50
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, 1
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x i32], ptr %54, i64 %56
%58 = load i32, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 %59
store i32 %53, ptr %60, align 4
br label %61
61: ; preds = %44
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %4, align 4
br label %14, !llvm.loop !6
64: ; preds = %14
br label %65
65: ; preds = %64
%66 = load i32, ptr %3, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %3, align 4
br label %10, !llvm.loop !8
68: ; preds = %10
%69 = call i32 @printf(ptr noundef @.str)
%70 = call i32 @printf(ptr noundef @.str.1)
%71 = call i32 @printf(ptr noundef @.str.3)
%72 = load ptr, ptr %2, align 8
%73 = call i32 @print_array(ptr noundef %72)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @print_array(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmps0xi971c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"C2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c" The input value of ARRAY:\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c" Modified value of ARRAY is:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @c2_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @print_array(ptr noundef %8)
store i32 0, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %.lr.ph2, label %70
.lr.ph2: ; preds = %1
br label %12
12: ; preds = %.lr.ph2, %65
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %.lr.ph, label %64
.lr.ph: ; preds = %12
br label %15
15: ; preds = %.lr.ph, %59
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x i32], ptr %16, i64 %18
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x i32], ptr %19, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %42
25: ; preds = %15
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x i32], ptr %26, i64 %28
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = sub nsw i32 0, %33
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [3 x i32], ptr %35, i64 %37
%39 = load i32, ptr %4, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x i32], ptr %38, i64 0, i64 %40
store i32 %34, ptr %41, align 4
br label %42
42: ; preds = %25, %15
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [3 x i32], ptr %43, i64 %45
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x i32], ptr %46, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = add nsw i32 %50, 1
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr %3, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [3 x i32], ptr %52, i64 %54
%56 = load i32, ptr %4, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x i32], ptr %55, i64 0, i64 %57
store i32 %51, ptr %58, align 4
br label %59
59: ; preds = %42
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %4, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %64
64: ; preds = %._crit_edge, %12
br label %65
65: ; preds = %64
%66 = load i32, ptr %3, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %3, align 4
%68 = load i32, ptr %3, align 4
%69 = icmp slt i32 %68, 3
br i1 %69, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %70
70: ; preds = %._crit_edge3, %1
%71 = call i32 @printf(ptr noundef @.str)
%72 = call i32 @printf(ptr noundef @.str.1)
%73 = call i32 @printf(ptr noundef @.str.3)
%74 = load ptr, ptr %2, align 8
%75 = call i32 @print_array(ptr noundef %74)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @print_array(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfs5z5bb_.c'
source_filename = "/tmp/tmpfs5z5bb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_exp(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @exp(double noundef %3)
%5 = load double, ptr %2, align 8
%6 = call i64 @exp(double noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_exp()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @exp(double noundef) #1
declare i32 @link_failure_exp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfs5z5bb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_exp(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i64 @exp(double noundef %3)
%5 = load double, ptr %2, align 8
%6 = call i64 @exp(double noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_exp()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @exp(double noundef) #1
declare i32 @link_failure_exp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm52hfxoe.c'
source_filename = "/tmp/tmpm52hfxoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rl_getbit(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store ptr null, ptr %12, align 8
%16 = load i64, ptr %9, align 8
%17 = ashr i64 %16, 3
store i64 %17, ptr %14, align 8
%18 = load i64, ptr %9, align 8
%19 = and i64 %18, 7
%20 = sub nsw i64 7, %19
store i64 %20, ptr %15, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %8, align 8
%24 = load i64, ptr %14, align 8
%25 = load i64, ptr %14, align 8
%26 = call i32 @rl_getrange(ptr noundef %21, ptr noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef %25, ptr noundef %12, ptr noundef %13)
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = icmp ne i32 0, %27
br i1 %28, label %29, label %33
29: ; preds = %5
%30 = load i32, ptr %11, align 4
%31 = icmp ne i32 3, %30
br i1 %31, label %32, label %33
32: ; preds = %29
br label %54
33: ; preds = %29, %5
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i64, ptr %13, align 8
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36, %33
%40 = load ptr, ptr %10, align 8
store i32 0, ptr %40, align 4
store i32 0, ptr %11, align 4
br label %54
41: ; preds = %36
%42 = load ptr, ptr %12, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 0
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = load i64, ptr %15, align 8
%47 = trunc i64 %46 to i32
%48 = shl i32 1, %47
%49 = and i32 %45, %48
%50 = icmp ne i32 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i32 1, i32 0
%53 = load ptr, ptr %10, align 8
store i32 %52, ptr %53, align 4
store i32 0, ptr %11, align 4
br label %54
54: ; preds = %41, %39, %32
%55 = load ptr, ptr %12, align 8
%56 = call i32 @free(ptr noundef %55)
%57 = load i32, ptr %11, align 4
ret i32 %57
}
declare i32 @rl_getrange(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm52hfxoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rl_getbit(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store ptr null, ptr %12, align 8
%16 = load i64, ptr %9, align 8
%17 = ashr i64 %16, 3
store i64 %17, ptr %14, align 8
%18 = load i64, ptr %9, align 8
%19 = and i64 %18, 7
%20 = sub nsw i64 7, %19
store i64 %20, ptr %15, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %8, align 8
%24 = load i64, ptr %14, align 8
%25 = load i64, ptr %14, align 8
%26 = call i32 @rl_getrange(ptr noundef %21, ptr noundef %22, i64 noundef %23, i64 noundef %24, i64 noundef %25, ptr noundef %12, ptr noundef %13)
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = icmp ne i32 0, %27
br i1 %28, label %29, label %33
29: ; preds = %5
%30 = load i32, ptr %11, align 4
%31 = icmp ne i32 3, %30
br i1 %31, label %32, label %33
32: ; preds = %29
br label %54
33: ; preds = %29, %5
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i64, ptr %13, align 8
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36, %33
%40 = load ptr, ptr %10, align 8
store i32 0, ptr %40, align 4
store i32 0, ptr %11, align 4
br label %54
41: ; preds = %36
%42 = load ptr, ptr %12, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 0
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = load i64, ptr %15, align 8
%47 = trunc i64 %46 to i32
%48 = shl i32 1, %47
%49 = and i32 %45, %48
%50 = icmp ne i32 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i32 1, i32 0
%53 = load ptr, ptr %10, align 8
store i32 %52, ptr %53, align 4
store i32 0, ptr %11, align 4
br label %54
54: ; preds = %41, %39, %32
%55 = load ptr, ptr %12, align 8
%56 = call i32 @free(ptr noundef %55)
%57 = load i32, ptr %11, align 4
ret i32 %57
}
declare i32 @rl_getrange(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8o1qlcgi.c'
source_filename = "/tmp/tmp8o1qlcgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MAG3110_Set_CTRL_REG2(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @I2C_WriteToReg(i32 noundef 14, i32 noundef 17, i8 noundef zeroext %3)
ret void
}
declare i32 @I2C_WriteToReg(i32 noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8o1qlcgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MAG3110_Set_CTRL_REG2(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @I2C_WriteToReg(i32 noundef 14, i32 noundef 17, i8 noundef zeroext %3)
ret void
}
declare i32 @I2C_WriteToReg(i32 noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpty0fsyge.c'
source_filename = "/tmp/tmpty0fsyge.c"
target datalayout = "e-m:e-p270: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/tmpty0fsyge.c"
target datalayout = "e-m:e-p270: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/tmpn81d7zto.c'
source_filename = "/tmp/tmpn81d7zto.c"
target datalayout = "e-m:e-p270: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/tmpn81d7zto.c"
target datalayout = "e-m:e-p270: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/tmp6z9imtv7.c'
source_filename = "/tmp/tmp6z9imtv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i8, ptr %1, align 1
%4 = sext i8 %3 to i32
%5 = sub nsw i32 122, %4
%6 = add nsw i32 %5, 97
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret i32 0
}
declare i32 @scanf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6z9imtv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i8, ptr %1, align 1
%4 = sext i8 %3 to i32
%5 = sub nsw i32 122, %4
%6 = add nsw i32 %5, 97
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret i32 0
}
declare i32 @scanf(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"}
|
; ModuleID = '/tmp/tmpx51ed3u1.c'
source_filename = "/tmp/tmpx51ed3u1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handle_eof(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %7 [
i32 128, label %5
i32 0, label %6
]
5: ; preds = %1
store i32 -1, ptr %2, align 4
br label %8
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %8
7: ; preds = %1
store i32 -2, ptr %2, align 4
br label %8
8: ; preds = %7, %6, %5
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx51ed3u1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @handle_eof(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %7 [
i32 128, label %5
i32 0, label %6
]
5: ; preds = %1
store i32 -1, ptr %2, align 4
br label %8
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %8
7: ; preds = %1
store i32 -2, ptr %2, align 4
br label %8
8: ; preds = %7, %6, %5
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsax0_ad9.c'
source_filename = "/tmp/tmpsax0_ad9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BASM_PP_PrintName(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 -1
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, 59
br i1 %11, label %33, label %12
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 95
br i1 %14, label %33, label %15
15: ; preds = %12
%16 = load i32, ptr %5, align 4
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr %5, align 4
%20 = icmp sle i32 %19, 57
br i1 %20, label %33, label %21
21: ; preds = %18, %15
%22 = load i32, ptr %5, align 4
%23 = icmp sge i32 %22, 65
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %5, align 4
%26 = icmp sle i32 %25, 90
br i1 %26, label %33, label %27
27: ; preds = %24, %21
%28 = load i32, ptr %5, align 4
%29 = icmp sge i32 %28, 97
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %36
33: ; preds = %30, %24, %18, %12, %2
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %3, align 8
store i8 32, ptr %34, align 1
br label %36
36: ; preds = %33, %30, %27
%37 = load ptr, ptr %3, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @strcpy(ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strlen(ptr noundef %40)
%42 = load ptr, ptr %3, align 8
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds i8, ptr %42, i64 %43
store ptr %44, ptr %3, align 8
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsax0_ad9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BASM_PP_PrintName(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 -1
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %10, 59
br i1 %11, label %33, label %12
12: ; preds = %2
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 95
br i1 %14, label %33, label %15
15: ; preds = %12
%16 = load i32, ptr %5, align 4
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr %5, align 4
%20 = icmp sle i32 %19, 57
br i1 %20, label %33, label %21
21: ; preds = %18, %15
%22 = load i32, ptr %5, align 4
%23 = icmp sge i32 %22, 65
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %5, align 4
%26 = icmp sle i32 %25, 90
br i1 %26, label %33, label %27
27: ; preds = %24, %21
%28 = load i32, ptr %5, align 4
%29 = icmp sge i32 %28, 97
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, ptr %5, align 4
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %36
33: ; preds = %30, %24, %18, %12, %2
%34 = load ptr, ptr %3, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %3, align 8
store i8 32, ptr %34, align 1
br label %36
36: ; preds = %33, %30, %27
%37 = load ptr, ptr %3, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @strcpy(ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strlen(ptr noundef %40)
%42 = load ptr, ptr %3, align 8
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds i8, ptr %42, i64 %43
store ptr %44, ptr %3, align 8
%45 = load ptr, ptr %3, align 8
ret ptr %45
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmponjqhvjm.c'
source_filename = "/tmp/tmponjqhvjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Prompt1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @PrintTty(i32 noundef 2, i32 noundef 10, ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @PrintTty(i32 noundef 2, i32 noundef 10, ptr noundef %4)
ret void
}
declare i32 @PrintTty(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmponjqhvjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c" \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Prompt1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @PrintTty(i32 noundef 2, i32 noundef 10, ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @PrintTty(i32 noundef 2, i32 noundef 10, ptr noundef %4)
ret void
}
declare i32 @PrintTty(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkabs62o2.c'
source_filename = "/tmp/tmpkabs62o2.c"
target datalayout = "e-m:e-p270: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/tmpkabs62o2.c"
target datalayout = "e-m:e-p270: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/tmpcw3080xm.c'
source_filename = "/tmp/tmpcw3080xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Campos verdes\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"voltado: %s\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 ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i64 @malloc(i32 noundef 1)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %2, align 8
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @duplica_string(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call ptr @voltea_string(ptr noundef %12)
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare ptr @duplica_string(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @voltea_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/tmpcw3080xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Campos verdes\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"voltado: %s\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 ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i64 @malloc(i32 noundef 1)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %2, align 8
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @duplica_string(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call ptr @voltea_string(ptr noundef %12)
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare ptr @duplica_string(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @voltea_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 = '/tmp/tmpgetvzgl5.c'
source_filename = "/tmp/tmpgetvzgl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caml_js_http_get_with_status() #0 {
%1 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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/tmpgetvzgl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caml_js_http_get_with_status() #0 {
%1 = call i32 @exit(i32 noundef 1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.