llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpfa1o4mop.c'
source_filename = "/tmp/tmpfa1o4mop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel120nf_f77_double(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77dkernel120nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77dkernel120nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfa1o4mop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nb_kernel120nf_f77_double(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30) #0 {
%32 = alloca ptr, align 8
%33 = alloca ptr, align 8
%34 = alloca ptr, align 8
%35 = alloca ptr, align 8
%36 = alloca ptr, align 8
%37 = alloca ptr, align 8
%38 = alloca ptr, align 8
%39 = alloca ptr, align 8
%40 = alloca ptr, align 8
%41 = alloca ptr, align 8
%42 = alloca ptr, align 8
%43 = alloca ptr, align 8
%44 = alloca ptr, align 8
%45 = alloca ptr, align 8
%46 = alloca ptr, align 8
%47 = alloca ptr, align 8
%48 = alloca ptr, align 8
%49 = alloca ptr, align 8
%50 = alloca ptr, align 8
%51 = alloca ptr, align 8
%52 = alloca ptr, align 8
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca ptr, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca ptr, align 8
%59 = alloca ptr, align 8
%60 = alloca ptr, align 8
%61 = alloca ptr, align 8
%62 = alloca ptr, align 8
store ptr %0, ptr %32, align 8
store ptr %1, ptr %33, align 8
store ptr %2, ptr %34, align 8
store ptr %3, ptr %35, align 8
store ptr %4, ptr %36, align 8
store ptr %5, ptr %37, align 8
store ptr %6, ptr %38, align 8
store ptr %7, ptr %39, align 8
store ptr %8, ptr %40, align 8
store ptr %9, ptr %41, align 8
store ptr %10, ptr %42, align 8
store ptr %11, ptr %43, align 8
store ptr %12, ptr %44, align 8
store ptr %13, ptr %45, align 8
store ptr %14, ptr %46, align 8
store ptr %15, ptr %47, align 8
store ptr %16, ptr %48, align 8
store ptr %17, ptr %49, align 8
store ptr %18, ptr %50, align 8
store ptr %19, ptr %51, align 8
store ptr %20, ptr %52, align 8
store ptr %21, ptr %53, align 8
store ptr %22, ptr %54, align 8
store ptr %23, ptr %55, align 8
store ptr %24, ptr %56, align 8
store ptr %25, ptr %57, align 8
store ptr %26, ptr %58, align 8
store ptr %27, ptr %59, align 8
store ptr %28, ptr %60, align 8
store ptr %29, ptr %61, align 8
store ptr %30, ptr %62, align 8
%63 = load ptr, ptr %32, align 8
%64 = load ptr, ptr %33, align 8
%65 = load ptr, ptr %34, align 8
%66 = load ptr, ptr %35, align 8
%67 = load ptr, ptr %36, align 8
%68 = load ptr, ptr %37, align 8
%69 = load ptr, ptr %38, align 8
%70 = load ptr, ptr %39, align 8
%71 = load ptr, ptr %40, align 8
%72 = load ptr, ptr %41, align 8
%73 = load ptr, ptr %42, align 8
%74 = load ptr, ptr %43, align 8
%75 = load ptr, ptr %44, align 8
%76 = load ptr, ptr %45, align 8
%77 = load ptr, ptr %46, align 8
%78 = load ptr, ptr %47, align 8
%79 = load ptr, ptr %48, align 8
%80 = load ptr, ptr %49, align 8
%81 = load ptr, ptr %50, align 8
%82 = load ptr, ptr %51, align 8
%83 = load ptr, ptr %52, align 8
%84 = load ptr, ptr %53, align 8
%85 = load ptr, ptr %54, align 8
%86 = load ptr, ptr %55, align 8
%87 = load ptr, ptr %56, align 8
%88 = load ptr, ptr %57, align 8
%89 = load ptr, ptr %58, align 8
%90 = load ptr, ptr %59, align 8
%91 = load ptr, ptr %60, align 8
%92 = load ptr, ptr %61, align 8
%93 = load ptr, ptr %62, align 8
%94 = call i32 @f77dkernel120nf_(ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
ret void
}
declare i32 @f77dkernel120nf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp30gzzk_4.c'
source_filename = "/tmp/tmp30gzzk_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dsp_pkt_simple(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @print_proto_simple(i32 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call i32 @print_simple(i32 noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19)
ret void
}
declare i32 @print_proto_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp30gzzk_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dsp_pkt_simple(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @print_proto_simple(i32 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %7, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %9, align 8
%20 = call i32 @print_simple(i32 noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19)
ret void
}
declare i32 @print_proto_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7w8wzdee.c'
source_filename = "/tmp/tmp7w8wzdee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"%2d\C2\BA n\C3\BAmero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [36 x i8] c"\0A\0AVoc\C3\AA digitou %d n\C3\BAmeros pares: \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\0AA soma dos n\C3\BAmeros pares \C3\A9 %d.\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"\0AVoc\C3\AA digitou %d n\C3\BAmeros \C3\ADmpares: \00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"\0AA soma dos n\C3\BAmeros \C3\ADmpares \C3\A9 %d.\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
%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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @LC_ALL, align 4
%15 = call i32 @setlocale(i32 noundef %14, ptr noundef @.str)
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
br label %16
16: ; preds = %29, %2
%17 = load i32, ptr %13, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = load i32, ptr %13, align 4
%21 = add nsw i32 %20, 1
%22 = call i32 @printf(ptr noundef @.str.1, i32 noundef %21)
%23 = load i32, ptr %13, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %24
%26 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr @stdin, align 4
%28 = call i32 @fflush(i32 noundef %27)
br label %29
29: ; preds = %19
%30 = load i32, ptr %13, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %13, align 4
br label %16, !llvm.loop !6
32: ; preds = %16
store i32 0, ptr %13, align 4
br label %33
33: ; preds = %76, %32
%34 = load i32, ptr %13, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %36, label %79
36: ; preds = %33
%37 = load i32, ptr %13, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %59
43: ; preds = %36
%44 = load i32, ptr %13, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %49
store i32 %47, ptr %50, align 4
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = load i32, ptr %11, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %11, align 4
br label %75
59: ; preds = %36
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %65
store i32 %63, ptr %66, align 4
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %10, align 4
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, %72
store i32 %74, ptr %12, align 4
br label %75
75: ; preds = %59, %43
br label %76
76: ; preds = %75
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
br label %33, !llvm.loop !8
79: ; preds = %33
%80 = load i32, ptr %9, align 4
%81 = call i32 @printf(ptr noundef @.str.3, i32 noundef %80)
store i32 0, ptr %13, align 4
br label %82
82: ; preds = %92, %79
%83 = load i32, ptr %13, align 4
%84 = load i32, ptr %9, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %95
86: ; preds = %82
%87 = load i32, ptr %13, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = call i32 @printf(ptr noundef @.str.4, i32 noundef %90)
br label %92
92: ; preds = %86
%93 = load i32, ptr %13, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %13, align 4
br label %82, !llvm.loop !9
95: ; preds = %82
%96 = load i32, ptr %11, align 4
%97 = call i32 @printf(ptr noundef @.str.5, i32 noundef %96)
%98 = load i32, ptr %10, align 4
%99 = call i32 @printf(ptr noundef @.str.6, i32 noundef %98)
store i32 0, ptr %13, align 4
br label %100
100: ; preds = %110, %95
%101 = load i32, ptr %13, align 4
%102 = load i32, ptr %10, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %113
104: ; preds = %100
%105 = load i32, ptr %13, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %106
%108 = load i32, ptr %107, align 4
%109 = call i32 @printf(ptr noundef @.str.4, i32 noundef %108)
br label %110
110: ; preds = %104
%111 = load i32, ptr %13, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %13, align 4
br label %100, !llvm.loop !10
113: ; preds = %100
%114 = load i32, ptr %12, align 4
%115 = call i32 @printf(ptr noundef @.str.7, i32 noundef %114)
%116 = call i32 @system(ptr noundef @.str.8)
%117 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %117
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7w8wzdee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LC_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"%2d\C2\BA n\C3\BAmero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [36 x i8] c"\0A\0AVoc\C3\AA digitou %d n\C3\BAmeros pares: \00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"\0AA soma dos n\C3\BAmeros pares \C3\A9 %d.\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"\0AVoc\C3\AA digitou %d n\C3\BAmeros \C3\ADmpares: \00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"\0AA soma dos n\C3\BAmeros \C3\ADmpares \C3\A9 %d.\0A\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [10 x i32], align 16
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
%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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @LC_ALL, align 4
%15 = call i32 @setlocale(i32 noundef %14, ptr noundef @.str)
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
%16 = load i32, ptr %13, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %28
%19 = load i32, ptr %13, align 4
%20 = add nsw i32 %19, 1
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
%22 = load i32, ptr %13, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %23
%25 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %24)
%26 = load i32, ptr @stdin, align 4
%27 = call i32 @fflush(i32 noundef %26)
br label %28
28: ; preds = %18
%29 = load i32, ptr %13, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %13, align 4
%31 = load i32, ptr %13, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %2
store i32 0, ptr %13, align 4
%34 = load i32, ptr %13, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %.lr.ph2, label %81
.lr.ph2: ; preds = %33
br label %36
36: ; preds = %.lr.ph2, %76
%37 = load i32, ptr %13, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %59
43: ; preds = %36
%44 = load i32, ptr %13, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %49
store i32 %47, ptr %50, align 4
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = load i32, ptr %11, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %11, align 4
br label %75
59: ; preds = %36
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %65
store i32 %63, ptr %66, align 4
%67 = load i32, ptr %10, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %10, align 4
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, %72
store i32 %74, ptr %12, align 4
br label %75
75: ; preds = %59, %43
br label %76
76: ; preds = %75
%77 = load i32, ptr %13, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %13, align 4
%79 = load i32, ptr %13, align 4
%80 = icmp slt i32 %79, 10
br i1 %80, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %76
br label %81
81: ; preds = %._crit_edge3, %33
%82 = load i32, ptr %9, align 4
%83 = call i32 @printf(ptr noundef @.str.3, i32 noundef %82)
store i32 0, ptr %13, align 4
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %.lr.ph5, label %99
.lr.ph5: ; preds = %81
br label %87
87: ; preds = %.lr.ph5, %93
%88 = load i32, ptr %13, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = call i32 @printf(ptr noundef @.str.4, i32 noundef %91)
br label %93
93: ; preds = %87
%94 = load i32, ptr %13, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %13, align 4
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %9, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %87, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %99
99: ; preds = %._crit_edge6, %81
%100 = load i32, ptr %11, align 4
%101 = call i32 @printf(ptr noundef @.str.5, i32 noundef %100)
%102 = load i32, ptr %10, align 4
%103 = call i32 @printf(ptr noundef @.str.6, i32 noundef %102)
store i32 0, ptr %13, align 4
%104 = load i32, ptr %13, align 4
%105 = load i32, ptr %10, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %.lr.ph8, label %119
.lr.ph8: ; preds = %99
br label %107
107: ; preds = %.lr.ph8, %113
%108 = load i32, ptr %13, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %109
%111 = load i32, ptr %110, align 4
%112 = call i32 @printf(ptr noundef @.str.4, i32 noundef %111)
br label %113
113: ; preds = %107
%114 = load i32, ptr %13, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %13, align 4
%116 = load i32, ptr %13, align 4
%117 = load i32, ptr %10, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %107, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %113
br label %119
119: ; preds = %._crit_edge9, %99
%120 = load i32, ptr %12, align 4
%121 = call i32 @printf(ptr noundef @.str.7, i32 noundef %120)
%122 = call i32 @system(ptr noundef @.str.8)
%123 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %123
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmprdq9lcia.c'
source_filename = "/tmp/tmprdq9lcia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in_static(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 = call i32 @read_character(ptr noundef %4, ptr noundef %3)
%6 = icmp slt i32 %5, 1
br i1 %6, label %7, label %8
7: ; preds = %1
br label %21
8: ; preds = %1
%9 = load i8, ptr %3, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 91
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @have_opening_bracket(ptr noundef %13)
br label %20
15: ; preds = %8
%16 = load ptr, ptr %2, align 8
%17 = load i8, ptr %3, align 1
%18 = call i32 @write_static(ptr noundef %16, i8 noundef signext %17)
%19 = load ptr, ptr %2, align 8
call void @in_static(ptr noundef %19)
br label %20
20: ; preds = %15, %12
br label %21
21: ; preds = %20, %7
ret void
}
declare i32 @read_character(ptr noundef, ptr noundef) #1
declare i32 @have_opening_bracket(ptr noundef) #1
declare i32 @write_static(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprdq9lcia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in_static(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 = call i32 @read_character(ptr noundef %4, ptr noundef %3)
%6 = icmp slt i32 %5, 1
br i1 %6, label %7, label %8
7: ; preds = %1
br label %21
8: ; preds = %1
%9 = load i8, ptr %3, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 91
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @have_opening_bracket(ptr noundef %13)
br label %20
15: ; preds = %8
%16 = load ptr, ptr %2, align 8
%17 = load i8, ptr %3, align 1
%18 = call i32 @write_static(ptr noundef %16, i8 noundef signext %17)
%19 = load ptr, ptr %2, align 8
call void @in_static(ptr noundef %19)
br label %20
20: ; preds = %15, %12
br label %21
21: ; preds = %20, %7
ret void
}
declare i32 @read_character(ptr noundef, ptr noundef) #1
declare i32 @have_opening_bracket(ptr noundef) #1
declare i32 @write_static(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqg9x340c.c'
source_filename = "/tmp/tmpqg9x340c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detach_handler(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @_detach_handler(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @_detach_handler(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqg9x340c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detach_handler(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @_detach_handler(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @_detach_handler(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0p37pua7.c'
source_filename = "/tmp/tmp0p37pua7.c"
target datalayout = "e-m:e-p270: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/tmp0p37pua7.c"
target datalayout = "e-m:e-p270: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/tmpneq0qgnu.c'
source_filename = "/tmp/tmpneq0qgnu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fmt \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_hdr(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = call ptr @malloc(i32 noundef 256)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %85
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fread(ptr noundef %13, i64 noundef 44, i32 noundef 1, ptr noundef %14)
%16 = icmp ne i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %12
br label %78
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 12
%21 = call i64 @strncmp(ptr noundef %20, ptr noundef @.str, i32 noundef 4)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
br label %78
24: ; preds = %18
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 16
%27 = getelementptr inbounds i8, ptr %26, i64 3
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i64
%30 = shl i64 %29, 24
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 16
%33 = getelementptr inbounds i8, ptr %32, i64 2
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i64
%36 = shl i64 %35, 16
%37 = or i64 %30, %36
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 16
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i64
%43 = shl i64 %42, 8
%44 = or i64 %37, %43
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 16
%47 = getelementptr inbounds i8, ptr %46, i64 0
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i64
%50 = or i64 %44, %49
store i64 %50, ptr %7, align 8
%51 = load i64, ptr %7, align 8
%52 = icmp ult i64 %51, 16
br i1 %52, label %56, label %53
53: ; preds = %24
%54 = load i64, ptr %7, align 8
%55 = icmp ugt i64 %54, 100
br i1 %55, label %56, label %57
56: ; preds = %53, %24
br label %78
57: ; preds = %53
%58 = load ptr, ptr %5, align 8
store i64 44, ptr %58, align 8
%59 = load i64, ptr %7, align 8
%60 = icmp ugt i64 %59, 16
br i1 %60, label %61, label %76
61: ; preds = %57
%62 = load ptr, ptr %6, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 44
%64 = load i64, ptr %7, align 8
%65 = sub i64 %64, 16
%66 = load ptr, ptr %4, align 8
%67 = call i32 @fread(ptr noundef %63, i64 noundef %65, i32 noundef 1, ptr noundef %66)
%68 = icmp ne i32 %67, 1
br i1 %68, label %69, label %70
69: ; preds = %61
br label %78
70: ; preds = %61
%71 = load i64, ptr %7, align 8
%72 = sub i64 %71, 16
%73 = load ptr, ptr %5, align 8
%74 = load i64, ptr %73, align 8
%75 = add i64 %74, %72
store i64 %75, ptr %73, align 8
br label %76
76: ; preds = %70, %57
%77 = load ptr, ptr %6, align 8
store ptr %77, ptr %3, align 8
br label %85
78: ; preds = %69, %56, %23, %17
%79 = load ptr, ptr %6, align 8
%80 = icmp ne ptr %79, null
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load ptr, ptr %6, align 8
%83 = call i32 @free(ptr noundef %82)
br label %84
84: ; preds = %81, %78
store ptr null, ptr %3, align 8
br label %85
85: ; preds = %84, %76, %11
%86 = load ptr, ptr %3, align 8
ret ptr %86
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpneq0qgnu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fmt \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_hdr(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = call ptr @malloc(i32 noundef 256)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %85
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fread(ptr noundef %13, i64 noundef 44, i32 noundef 1, ptr noundef %14)
%16 = icmp ne i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %12
br label %78
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 12
%21 = call i64 @strncmp(ptr noundef %20, ptr noundef @.str, i32 noundef 4)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
br label %78
24: ; preds = %18
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 16
%27 = getelementptr inbounds i8, ptr %26, i64 3
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i64
%30 = shl i64 %29, 24
%31 = load ptr, ptr %6, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 16
%33 = getelementptr inbounds i8, ptr %32, i64 2
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i64
%36 = shl i64 %35, 16
%37 = or i64 %30, %36
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 16
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i64
%43 = shl i64 %42, 8
%44 = or i64 %37, %43
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 16
%47 = getelementptr inbounds i8, ptr %46, i64 0
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i64
%50 = or i64 %44, %49
store i64 %50, ptr %7, align 8
%51 = load i64, ptr %7, align 8
%52 = icmp ult i64 %51, 16
br i1 %52, label %56, label %53
53: ; preds = %24
%54 = load i64, ptr %7, align 8
%55 = icmp ugt i64 %54, 100
br i1 %55, label %56, label %57
56: ; preds = %53, %24
br label %78
57: ; preds = %53
%58 = load ptr, ptr %5, align 8
store i64 44, ptr %58, align 8
%59 = load i64, ptr %7, align 8
%60 = icmp ugt i64 %59, 16
br i1 %60, label %61, label %76
61: ; preds = %57
%62 = load ptr, ptr %6, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 44
%64 = load i64, ptr %7, align 8
%65 = sub i64 %64, 16
%66 = load ptr, ptr %4, align 8
%67 = call i32 @fread(ptr noundef %63, i64 noundef %65, i32 noundef 1, ptr noundef %66)
%68 = icmp ne i32 %67, 1
br i1 %68, label %69, label %70
69: ; preds = %61
br label %78
70: ; preds = %61
%71 = load i64, ptr %7, align 8
%72 = sub i64 %71, 16
%73 = load ptr, ptr %5, align 8
%74 = load i64, ptr %73, align 8
%75 = add i64 %74, %72
store i64 %75, ptr %73, align 8
br label %76
76: ; preds = %70, %57
%77 = load ptr, ptr %6, align 8
store ptr %77, ptr %3, align 8
br label %85
78: ; preds = %69, %56, %23, %17
%79 = load ptr, ptr %6, align 8
%80 = icmp ne ptr %79, null
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load ptr, ptr %6, align 8
%83 = call i32 @free(ptr noundef %82)
br label %84
84: ; preds = %81, %78
store ptr null, ptr %3, align 8
br label %85
85: ; preds = %84, %76, %11
%86 = load ptr, ptr %3, align 8
ret ptr %86
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9bcvt6j9.c'
source_filename = "/tmp/tmp9bcvt6j9.c"
target datalayout = "e-m:e-p270: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/tmp9bcvt6j9.c"
target datalayout = "e-m:e-p270: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/tmp9y92l2eo.c'
source_filename = "/tmp/tmp9y92l2eo.c"
target datalayout = "e-m:e-p270: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.termios = type { i32, ptr, i64, i32, i64 }
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@B1200 = dso_local global i32 0, align 4
@B9600 = dso_local global i32 0, align 4
@B115200 = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"ERROR: Invalid baud rate to InitSerial (%i)\0A\00", align 1
@CS8 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@IGNCR = dso_local global i32 0, align 4
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@TCIFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @InitSerial(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.termios, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_NOCTTY, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_NONBLOCK, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef %9, i32 noundef %14)
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 -1, ptr %3, align 4
br label %62
19: ; preds = %2
%20 = load i32, ptr %5, align 4
switch i32 %20, label %27 [
i32 1200, label %21
i32 9600, label %23
i32 115200, label %25
]
21: ; preds = %19
%22 = load i32, ptr @B1200, align 4
store i32 %22, ptr %7, align 4
br label %32
23: ; preds = %19
%24 = load i32, ptr @B9600, align 4
store i32 %24, ptr %7, align 4
br label %32
25: ; preds = %19
%26 = load i32, ptr @B115200, align 4
store i32 %26, ptr %7, align 4
br label %32
27: ; preds = %19
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %5, align 4
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str, i32 noundef %29)
%31 = call i32 @exit(i32 noundef 1) #3
unreachable
32: ; preds = %25, %23, %21
%33 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 4
store i64 0, ptr %33, align 8
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr @CS8, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @CLOCAL, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @CREAD, align 4
%40 = or i32 %38, %39
%41 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
store i32 %40, ptr %41, align 8
%42 = load i32, ptr @IGNCR, align 4
%43 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
store i32 %42, ptr %43, align 8
%44 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 2
store i64 0, ptr %44, align 8
%45 = load i32, ptr %7, align 4
%46 = call i32 @cfsetspeed(ptr noundef %6, i32 noundef %45)
%47 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%48 = load ptr, ptr %47, align 8
%49 = load i64, ptr @VTIME, align 8
%50 = getelementptr inbounds i32, ptr %48, i64 %49
store i32 0, ptr %50, align 4
%51 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%52 = load ptr, ptr %51, align 8
%53 = load i64, ptr @VMIN, align 8
%54 = getelementptr inbounds i32, ptr %52, i64 %53
store i32 1, ptr %54, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @TCIFLUSH, align 4
%57 = call i32 @tcflush(i32 noundef %55, i32 noundef %56)
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr @TCSANOW, align 4
%60 = call i32 @tcsetattr(i32 noundef %58, i32 noundef %59, ptr noundef %6)
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %32, %18
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cfsetspeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i32 @tcsetattr(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" }
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/tmp9y92l2eo.c"
target datalayout = "e-m:e-p270: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.termios = type { i32, ptr, i64, i32, i64 }
@O_RDWR = dso_local global i32 0, align 4
@O_NOCTTY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@B1200 = dso_local global i32 0, align 4
@B9600 = dso_local global i32 0, align 4
@B115200 = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"ERROR: Invalid baud rate to InitSerial (%i)\0A\00", align 1
@CS8 = dso_local global i32 0, align 4
@CLOCAL = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@IGNCR = dso_local global i32 0, align 4
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@TCIFLUSH = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @InitSerial(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.termios, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_NOCTTY, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_NONBLOCK, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef %9, i32 noundef %14)
store i32 %15, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 -1, ptr %3, align 4
br label %62
19: ; preds = %2
%20 = load i32, ptr %5, align 4
switch i32 %20, label %27 [
i32 1200, label %21
i32 9600, label %23
i32 115200, label %25
]
21: ; preds = %19
%22 = load i32, ptr @B1200, align 4
store i32 %22, ptr %7, align 4
br label %32
23: ; preds = %19
%24 = load i32, ptr @B9600, align 4
store i32 %24, ptr %7, align 4
br label %32
25: ; preds = %19
%26 = load i32, ptr @B115200, align 4
store i32 %26, ptr %7, align 4
br label %32
27: ; preds = %19
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %5, align 4
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str, i32 noundef %29)
%31 = call i32 @exit(i32 noundef 1) #3
unreachable
32: ; preds = %25, %23, %21
%33 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 4
store i64 0, ptr %33, align 8
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr @CS8, align 4
%36 = or i32 %34, %35
%37 = load i32, ptr @CLOCAL, align 4
%38 = or i32 %36, %37
%39 = load i32, ptr @CREAD, align 4
%40 = or i32 %38, %39
%41 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
store i32 %40, ptr %41, align 8
%42 = load i32, ptr @IGNCR, align 4
%43 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
store i32 %42, ptr %43, align 8
%44 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 2
store i64 0, ptr %44, align 8
%45 = load i32, ptr %7, align 4
%46 = call i32 @cfsetspeed(ptr noundef %6, i32 noundef %45)
%47 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%48 = load ptr, ptr %47, align 8
%49 = load i64, ptr @VTIME, align 8
%50 = getelementptr inbounds i32, ptr %48, i64 %49
store i32 0, ptr %50, align 4
%51 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%52 = load ptr, ptr %51, align 8
%53 = load i64, ptr @VMIN, align 8
%54 = getelementptr inbounds i32, ptr %52, i64 %53
store i32 1, ptr %54, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @TCIFLUSH, align 4
%57 = call i32 @tcflush(i32 noundef %55, i32 noundef %56)
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr @TCSANOW, align 4
%60 = call i32 @tcsetattr(i32 noundef %58, i32 noundef %59, ptr noundef %6)
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %32, %18
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cfsetspeed(ptr noundef, i32 noundef) #1
declare i32 @tcflush(i32 noundef, i32 noundef) #1
declare i32 @tcsetattr(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" }
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/tmpjbfqclp5.c'
source_filename = "/tmp/tmpjbfqclp5.c"
target datalayout = "e-m:e-p270: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/tmpjbfqclp5.c"
target datalayout = "e-m:e-p270: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/tmpx9i9si6_.c'
source_filename = "/tmp/tmpx9i9si6_.c"
target datalayout = "e-m:e-p270: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.utsname = type { ptr, ptr, ptr, ptr, ptr }
@.str = private unnamed_addr constant [19 x i8] c"uname call failed!\00", align 1
@.str.1 = private unnamed_addr constant [120 x i8] c"<p><b>O.S.:</b> %s<br><b>Custom Name:</b> %s<br><b>Release:</b> %s<br><b>Version:</b> %s<br><b>Architecture:</b> %s</p>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @versaoso(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.utsname, align 8
%7 = alloca [500 x i8], align 16
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = call i32 @uname(ptr noundef %6)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %31
12: ; preds = %2
%13 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %13, align 16
%14 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
%15 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 0
%16 = load ptr, ptr %15, align 8
%17 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 1
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 3
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 4
%24 = load ptr, ptr %23, align 8
%25 = call i32 @snprintf(ptr noundef %14, i32 noundef 500, ptr noundef @.str.1, ptr noundef %16, ptr noundef %18, ptr noundef %20, ptr noundef %22, ptr noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
%28 = load i64, ptr %5, align 8
%29 = call i32 @strncat(ptr noundef %26, ptr noundef %27, i64 noundef %28)
br label %30
30: ; preds = %12
store i32 1, ptr %3, align 4
br label %31
31: ; preds = %30, %10
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @uname(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx9i9si6_.c"
target datalayout = "e-m:e-p270: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.utsname = type { ptr, ptr, ptr, ptr, ptr }
@.str = private unnamed_addr constant [19 x i8] c"uname call failed!\00", align 1
@.str.1 = private unnamed_addr constant [120 x i8] c"<p><b>O.S.:</b> %s<br><b>Custom Name:</b> %s<br><b>Release:</b> %s<br><b>Version:</b> %s<br><b>Architecture:</b> %s</p>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @versaoso(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca %struct.utsname, align 8
%7 = alloca [500 x i8], align 16
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = call i32 @uname(ptr noundef %6)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %31
12: ; preds = %2
%13 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
store i8 0, ptr %13, align 16
%14 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
%15 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 0
%16 = load ptr, ptr %15, align 8
%17 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 1
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 3
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds %struct.utsname, ptr %6, i32 0, i32 4
%24 = load ptr, ptr %23, align 8
%25 = call i32 @snprintf(ptr noundef %14, i32 noundef 500, ptr noundef @.str.1, ptr noundef %16, ptr noundef %18, ptr noundef %20, ptr noundef %22, ptr noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [500 x i8], ptr %7, i64 0, i64 0
%28 = load i64, ptr %5, align 8
%29 = call i32 @strncat(ptr noundef %26, ptr noundef %27, i64 noundef %28)
br label %30
30: ; preds = %12
store i32 1, ptr %3, align 4
br label %31
31: ; preds = %30, %10
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @uname(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7lbdo2xe.c'
source_filename = "/tmp/tmp7lbdo2xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/itmm/waelzer/refs/heads/master/2.5-t-log-adapter/test.c\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"test %s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"test abc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_simple(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @_do_log(ptr noundef @.str, i32 noundef 38, ptr noundef @.str.1, ptr noundef @.str.2)
%4 = call i32 @assert_messages(i32 noundef 1, ptr noundef @.str.3)
ret void
}
declare i32 @_do_log(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert_messages(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/tmp7lbdo2xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/itmm/waelzer/refs/heads/master/2.5-t-log-adapter/test.c\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"test %s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"abc\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"test abc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_simple(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @_do_log(ptr noundef @.str, i32 noundef 38, ptr noundef @.str.1, ptr noundef @.str.2)
%4 = call i32 @assert_messages(i32 noundef 1, ptr noundef @.str.3)
ret void
}
declare i32 @_do_log(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @assert_messages(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/tmpe1cdk35y.c'
source_filename = "/tmp/tmpe1cdk35y.c"
target datalayout = "e-m:e-p270: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/tmpe1cdk35y.c"
target datalayout = "e-m:e-p270: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/tmplfb5emkp.c'
source_filename = "/tmp/tmplfb5emkp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"myFile.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"myCopy.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wt\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.4 = private unnamed_addr constant [3 x i8] c". \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 i8, align 1
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %2, align 8
br label %7
7: ; preds = %14, %0
%8 = load ptr, ptr %3, align 8
%9 = call signext i8 @fgetc(ptr noundef %8)
store i8 %9, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = load i8, ptr @EOF, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %10, %12
br i1 %13, label %14, label %19
14: ; preds = %7
%15 = load i8, ptr %4, align 1
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fputc(i8 noundef signext %15, ptr noundef %16)
%18 = call i32 @printf(ptr noundef @.str.4)
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = load ptr, ptr %2, align 8
%21 = call i32 @fclose(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fclose(ptr noundef %22)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplfb5emkp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"myFile.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rt\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"myCopy.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wt\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.4 = private unnamed_addr constant [3 x i8] c". \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 i8, align 1
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = call signext i8 @fgetc(ptr noundef %7)
store i8 %8, ptr %4, align 1
%9 = sext i8 %8 to i32
%10 = load i8, ptr @EOF, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %9, %11
br i1 %12, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i8, ptr %4, align 1
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fputc(i8 noundef signext %14, ptr noundef %15)
%17 = call i32 @printf(ptr noundef @.str.4)
%18 = load ptr, ptr %3, align 8
%19 = call signext i8 @fgetc(ptr noundef %18)
store i8 %19, ptr %4, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr @EOF, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %20, %22
br i1 %23, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %24
24: ; preds = %._crit_edge, %0
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fclose(ptr noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fclose(ptr noundef %27)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwhd4u39z.c'
source_filename = "/tmp/tmpwhd4u39z.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Warning: tms_put_chksum: odd packet length %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tms_put_chksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = srem i32 %7, 2
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %10, %2
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %38, %14
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = sdiv i32 %17, 2
%19 = icmp slt i32 %16, %18
br i1 %19, label %20, label %41
20: ; preds = %15
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = mul nsw i32 2, %22
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %21, i64 %25
%27 = load i32, ptr %26, align 4
%28 = shl i32 %27, 8
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = mul nsw i32 2, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %28, %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %6, align 4
br label %38
38: ; preds = %20
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %15, !llvm.loop !6
41: ; preds = %15
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 0, %42
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %4, align 4
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %6, align 4
%46 = load ptr, ptr %3, align 8
%47 = call i32 @tms_put_int(i32 noundef %45, ptr noundef %46, ptr noundef %5, i32 noundef 2)
%48 = load i32, ptr %5, align 4
ret i32 %48
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tms_put_int(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwhd4u39z.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Warning: tms_put_chksum: odd packet length %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tms_put_chksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = srem i32 %7, 2
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %10, %2
store i32 0, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = sdiv i32 %16, 2
%18 = icmp slt i32 %15, %17
br i1 %18, label %.lr.ph, label %44
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %37
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = mul nsw i32 2, %21
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %20, i64 %24
%26 = load i32, ptr %25, align 4
%27 = shl i32 %26, 8
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %5, align 4
%30 = mul nsw i32 2, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %27, %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %6, align 4
br label %37
37: ; preds = %19
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %4, align 4
%42 = sdiv i32 %41, 2
%43 = icmp slt i32 %40, %42
br i1 %43, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %44
44: ; preds = %._crit_edge, %14
%45 = load i32, ptr %6, align 4
%46 = sub nsw i32 0, %45
store i32 %46, ptr %6, align 4
%47 = load i32, ptr %4, align 4
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %6, align 4
%49 = load ptr, ptr %3, align 8
%50 = call i32 @tms_put_int(i32 noundef %48, ptr noundef %49, ptr noundef %5, i32 noundef 2)
%51 = load i32, ptr %5, align 4
ret i32 %51
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @tms_put_int(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxpqnjpa6.c'
source_filename = "/tmp/tmpxpqnjpa6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @readKey() #0 {
%1 = alloca i8, align 1
br label %2
2: ; preds = %0, %21
%3 = call signext i8 (...) @getkbcode()
store i8 %3, ptr %1, align 1
%4 = load i8, ptr %1, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 65
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i8, ptr %1, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 90
br i1 %10, label %19, label %11
11: ; preds = %7, %2
%12 = load i8, ptr %1, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 10
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i8, ptr %1, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %21
19: ; preds = %15, %11, %7
%20 = load i8, ptr %1, align 1
ret i8 %20
21: ; preds = %15
br label %2
}
declare signext i8 @getkbcode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpqnjpa6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @readKey() #0 {
%1 = alloca i8, align 1
br label %2
2: ; preds = %15, %0
%3 = call signext i8 (...) @getkbcode()
store i8 %3, ptr %1, align 1
%4 = load i8, ptr %1, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 65
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i8, ptr %1, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 90
br i1 %10, label %19, label %11
11: ; preds = %7, %2
%12 = load i8, ptr %1, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 10
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = load i8, ptr %1, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %2
19: ; preds = %15, %11, %7
%20 = load i8, ptr %1, align 1
ret i8 %20
}
declare signext i8 @getkbcode(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5g7yo0wd.c'
source_filename = "/tmp/tmp5g7yo0wd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%x \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 @print_in_hex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %17, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp slt i32 %5, %7
br i1 %8, label %9, label %20
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %4, !llvm.loop !6
20: ; preds = %4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @strlen(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/tmp5g7yo0wd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%x \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 @print_in_hex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = icmp slt i32 %4, %6
br i1 %7, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %16
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = zext i8 %13 to i32
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr %2, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = icmp slt i32 %19, %21
br i1 %22, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @strlen(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/tmpjm69kwxn.c'
source_filename = "/tmp/tmpjm69kwxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @solcon_replace_solution_string(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %10, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %11, align 8
%19 = load i32, ptr %5, align 4
%20 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = load i32, ptr %6, align 4
%22 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %7, align 4
%24 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 2
store i32 %23, ptr %24, align 4
store i32 0, ptr %13, align 4
br label %25
25: ; preds = %39, %4
%26 = load i32, ptr %13, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %42
29: ; preds = %25
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %13, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load i32, ptr %13, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %18, i64 %37
store i32 %35, ptr %38, align 4
br label %39
39: ; preds = %29
%40 = load i32, ptr %13, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %13, align 4
br label %25, !llvm.loop !6
42: ; preds = %25
%43 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%44 = load ptr, ptr %14, align 8
%45 = call i32 @_ada_use_c2phc4c(i32 noundef 209, ptr noundef %43, ptr noundef %18, ptr noundef %44, i32 noundef 0)
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %12, align 4
%47 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %47)
ret i32 %46
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjm69kwxn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @solcon_replace_solution_string(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [3 x i32], align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %10, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %11, align 8
%19 = load i32, ptr %5, align 4
%20 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = load i32, ptr %6, align 4
%22 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %7, align 4
%24 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 2
store i32 %23, ptr %24, align 4
store i32 0, ptr %13, align 4
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %44
.lr.ph: ; preds = %4
br label %28
28: ; preds = %.lr.ph, %38
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = load i32, ptr %13, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %18, i64 %36
store i32 %34, ptr %37, align 4
br label %38
38: ; preds = %28
%39 = load i32, ptr %13, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %13, align 4
%41 = load i32, ptr %13, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %4
%45 = getelementptr inbounds [3 x i32], ptr %9, i64 0, i64 0
%46 = load ptr, ptr %14, align 8
%47 = call i32 @_ada_use_c2phc4c(i32 noundef 209, ptr noundef %45, ptr noundef %18, ptr noundef %46, i32 noundef 0)
store i32 %47, ptr %12, align 4
%48 = load i32, ptr %12, align 4
%49 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %49)
ret i32 %48
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpoucr9pkg.c'
source_filename = "/tmp/tmpoucr9pkg.c"
target datalayout = "e-m:e-p270: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/tmpoucr9pkg.c"
target datalayout = "e-m:e-p270: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/tmpngymnner.c'
source_filename = "/tmp/tmpngymnner.c"
target datalayout = "e-m:e-p270: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/tmpngymnner.c"
target datalayout = "e-m:e-p270: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/tmp47qqqjac.c'
source_filename = "/tmp/tmp47qqqjac.c"
target datalayout = "e-m:e-p270: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/tmp47qqqjac.c"
target datalayout = "e-m:e-p270: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/tmpt5i6zue5.c'
source_filename = "/tmp/tmpt5i6zue5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatchString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = sub nsw i32 %9, %11
store i32 %12, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %30, %2
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %33
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %5, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = call i32 @strncmp(ptr noundef %22, ptr noundef %23, i32 noundef %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %18
store i32 1, ptr %3, align 4
br label %34
29: ; preds = %18
br label %30
30: ; preds = %29
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %13, !llvm.loop !6
33: ; preds = %13
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %33, %28
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncmp(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/tmpt5i6zue5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatchString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = load ptr, ptr %5, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = sub nsw i32 %9, %11
store i32 %12, ptr %6, align 4
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
%16 = icmp slt i32 %13, %15
br i1 %16, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %29
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = call i32 @strncmp(ptr noundef %21, ptr noundef %22, i32 noundef %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %17
store i32 1, ptr %3, align 4
br label %37
28: ; preds = %17
br label %29
29: ; preds = %28
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
%35 = icmp slt i32 %32, %34
br i1 %35, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %36
36: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %36, %27
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncmp(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/tmpeuyz4w5s.c'
source_filename = "/tmp/tmpeuyz4w5s.c"
target datalayout = "e-m:e-p270: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/tmpeuyz4w5s.c"
target datalayout = "e-m:e-p270: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/tmpvobaa4e5.c'
source_filename = "/tmp/tmpvobaa4e5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SayUsage.usage = internal global [38 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.1, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.1, ptr @.str.13, ptr @.str.1, ptr @.str.14, ptr @.str.15, ptr @.str.16, ptr @.str.17, ptr @.str.18, ptr @.str.19, ptr @.str.20, ptr @.str.21, ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25, ptr @.str.26, ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31, ptr @.str.32, ptr @.str.33, ptr null], align 16
@.str = private unnamed_addr constant [53 x i8] c"Convert MIDI files to an Arduino PLAYTUNE bytestream\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Use: miditones <options> <basefilename>\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c" input file will be <basefilename>.mid\00", align 1
@.str.4 = private unnamed_addr constant [54 x i8] c" output file will be <basefilename>.bin or .c or .h\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c" log file will be <basefilename>.log\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Commonly-used options:\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c" -v include volume data\00", align 1
@.str.8 = private unnamed_addr constant [43 x i8] c" -i include instrument change commands\00", align 1
@.str.9 = private unnamed_addr constant [68 x i8] c" -pt translate notes in the percussion track to notes 129 to 255\00", align 1
@.str.10 = private unnamed_addr constant [46 x i8] c" -d include a self-describing file header\00", align 1
@.str.11 = private unnamed_addr constant [63 x i8] c" -b generate a binary file output instead of C source code\00", align 1
@.str.12 = private unnamed_addr constant [64 x i8] c" -t=n use at most n tone generators (default is 6, max is 16)\00", align 1
@.str.13 = private unnamed_addr constant [70 x i8] c" The best options for later Playtune music players are: -v -i -pt -d\00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"Lesser-used command-line options:\00", align 1
@.str.15 = private unnamed_addr constant [69 x i8] c" -c=n mask for which tracks to process, e.g. -c3 for only 0 and 1\00", align 1
@.str.16 = private unnamed_addr constant [41 x i8] c" -dp define PROGMEM in output C code\00", align 1
@.str.17 = private unnamed_addr constant [60 x i8] c" -k=n key shift in chromatic notes, positive or negative\00", align 1
@.str.18 = private unnamed_addr constant [27 x i8] c" -lp log input parsing\00", align 1
@.str.19 = private unnamed_addr constant [31 x i8] c" -lg log output generation\00", align 1
@.str.20 = private unnamed_addr constant [61 x i8] c" -n=n put about n items on each line of the C file output\00", align 1
@.str.21 = private unnamed_addr constant [47 x i8] c" -p parse only, don't generate bytestream\00", align 1
@.str.22 = private unnamed_addr constant [49 x i8] c" -pi ignore notes in the percussion track, 9\00", align 1
@.str.23 = private unnamed_addr constant [72 x i8] c" -r terminate output file with \22restart\22 instead of \22stop\22 command\00", align 1
@.str.24 = private unnamed_addr constant [35 x i8] c" -s1 strategy 1: favor track 1\00", align 1
@.str.25 = private unnamed_addr constant [70 x i8] c" -s2 strategy 2: try to assign tracks to specific tone generators\00", align 1
@.str.26 = private unnamed_addr constant [79 x i8] c" -showskipped display information about each note that had to be skipped\00", align 1
@.str.27 = private unnamed_addr constant [70 x i8] c" -delaymin=x minimum delay is x msec, to save bytestream space\00", align 1
@.str.28 = private unnamed_addr constant [62 x i8] c" -attacktime=x the high volume attack phase lasts x msec\00", align 1
@.str.29 = private unnamed_addr constant [75 x i8] c" -attacknotemax=x notes over x msec don't use the attack/sustain profile\00", align 1
@.str.30 = private unnamed_addr constant [69 x i8] c" -sustainlevel=p the sustain level is p percent of maximum volume\00", align 1
@.str.31 = private unnamed_addr constant [60 x i8] c" -releasetime=x release each note x msec before it ends\00", align 1
@.str.32 = private unnamed_addr constant [75 x i8] c" -notemin=x don't let release shorten the note to less than x msec\00", align 1
@.str.33 = private unnamed_addr constant [70 x i8] c" -scorename use <basefilename> as the score name in a .h file\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.34 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SayUsage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %17, %1
%5 = load i32, ptr %3, align 4
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds [38 x ptr], ptr @SayUsage.usage, i64 0, i64 %6
%8 = load ptr, ptr %7, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %20
10: ; preds = %4
%11 = load i32, ptr @stderr, align 4
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [38 x ptr], ptr @SayUsage.usage, i64 0, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.34, ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %4, !llvm.loop !6
20: ; preds = %4
ret void
}
declare i32 @fprintf(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/tmpvobaa4e5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SayUsage.usage = internal global [38 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.1, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12, ptr @.str.1, ptr @.str.13, ptr @.str.1, ptr @.str.14, ptr @.str.15, ptr @.str.16, ptr @.str.17, ptr @.str.18, ptr @.str.19, ptr @.str.20, ptr @.str.21, ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25, ptr @.str.26, ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31, ptr @.str.32, ptr @.str.33, ptr null], align 16
@.str = private unnamed_addr constant [53 x i8] c"Convert MIDI files to an Arduino PLAYTUNE bytestream\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"Use: miditones <options> <basefilename>\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c" input file will be <basefilename>.mid\00", align 1
@.str.4 = private unnamed_addr constant [54 x i8] c" output file will be <basefilename>.bin or .c or .h\00", align 1
@.str.5 = private unnamed_addr constant [39 x i8] c" log file will be <basefilename>.log\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Commonly-used options:\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c" -v include volume data\00", align 1
@.str.8 = private unnamed_addr constant [43 x i8] c" -i include instrument change commands\00", align 1
@.str.9 = private unnamed_addr constant [68 x i8] c" -pt translate notes in the percussion track to notes 129 to 255\00", align 1
@.str.10 = private unnamed_addr constant [46 x i8] c" -d include a self-describing file header\00", align 1
@.str.11 = private unnamed_addr constant [63 x i8] c" -b generate a binary file output instead of C source code\00", align 1
@.str.12 = private unnamed_addr constant [64 x i8] c" -t=n use at most n tone generators (default is 6, max is 16)\00", align 1
@.str.13 = private unnamed_addr constant [70 x i8] c" The best options for later Playtune music players are: -v -i -pt -d\00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"Lesser-used command-line options:\00", align 1
@.str.15 = private unnamed_addr constant [69 x i8] c" -c=n mask for which tracks to process, e.g. -c3 for only 0 and 1\00", align 1
@.str.16 = private unnamed_addr constant [41 x i8] c" -dp define PROGMEM in output C code\00", align 1
@.str.17 = private unnamed_addr constant [60 x i8] c" -k=n key shift in chromatic notes, positive or negative\00", align 1
@.str.18 = private unnamed_addr constant [27 x i8] c" -lp log input parsing\00", align 1
@.str.19 = private unnamed_addr constant [31 x i8] c" -lg log output generation\00", align 1
@.str.20 = private unnamed_addr constant [61 x i8] c" -n=n put about n items on each line of the C file output\00", align 1
@.str.21 = private unnamed_addr constant [47 x i8] c" -p parse only, don't generate bytestream\00", align 1
@.str.22 = private unnamed_addr constant [49 x i8] c" -pi ignore notes in the percussion track, 9\00", align 1
@.str.23 = private unnamed_addr constant [72 x i8] c" -r terminate output file with \22restart\22 instead of \22stop\22 command\00", align 1
@.str.24 = private unnamed_addr constant [35 x i8] c" -s1 strategy 1: favor track 1\00", align 1
@.str.25 = private unnamed_addr constant [70 x i8] c" -s2 strategy 2: try to assign tracks to specific tone generators\00", align 1
@.str.26 = private unnamed_addr constant [79 x i8] c" -showskipped display information about each note that had to be skipped\00", align 1
@.str.27 = private unnamed_addr constant [70 x i8] c" -delaymin=x minimum delay is x msec, to save bytestream space\00", align 1
@.str.28 = private unnamed_addr constant [62 x i8] c" -attacktime=x the high volume attack phase lasts x msec\00", align 1
@.str.29 = private unnamed_addr constant [75 x i8] c" -attacknotemax=x notes over x msec don't use the attack/sustain profile\00", align 1
@.str.30 = private unnamed_addr constant [69 x i8] c" -sustainlevel=p the sustain level is p percent of maximum volume\00", align 1
@.str.31 = private unnamed_addr constant [60 x i8] c" -releasetime=x release each note x msec before it ends\00", align 1
@.str.32 = private unnamed_addr constant [75 x i8] c" -notemin=x don't let release shorten the note to less than x msec\00", align 1
@.str.33 = private unnamed_addr constant [70 x i8] c" -scorename use <basefilename> as the score name in a .h file\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.34 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SayUsage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [38 x ptr], ptr @SayUsage.usage, i64 0, i64 %5
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr @stderr, align 4
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [38 x ptr], ptr @SayUsage.usage, i64 0, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str.34, ptr noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [38 x ptr], ptr @SayUsage.usage, i64 0, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %24
24: ; preds = %._crit_edge, %1
ret void
}
declare i32 @fprintf(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/tmptg_oj9kr.c'
source_filename = "/tmp/tmptg_oj9kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter a number:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"The sum is: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"The difference is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"The product is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"The quotient is: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"The modulus is: %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
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 2
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 %12, 2
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = mul nsw i32 %14, 2
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = srem i32 %18, 2
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %26)
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %28)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptg_oj9kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter a number:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"The sum is: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"The difference is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"The product is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"The quotient is: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"The modulus is: %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
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 2
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 %12, 2
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = mul nsw i32 %14, 2
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %2, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = srem i32 %18, 2
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %26)
%28 = load i32, ptr %7, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %28)
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"}
|
; ModuleID = '/tmp/tmplyyqbqry.c'
source_filename = "/tmp/tmplyyqbqry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr i8, ptr %7, i64 -8
store ptr %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = call ptr @malloc(i64 noundef %9) #3
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %13, align 8
%15 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %14)
%16 = load ptr, ptr %6, align 8
ret ptr %16
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplyyqbqry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr i8, ptr %7, i64 -8
store ptr %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = call ptr @malloc(i64 noundef %9) #3
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %13, align 8
%15 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %14)
%16 = load ptr, ptr %6, align 8
ret ptr %16
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpktqj58sw.c'
source_filename = "/tmp/tmpktqj58sw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BitMatPrint(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i64 -9223372036854775808, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %30, %1
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %33
9: ; preds = %6
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %25, %9
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load i64, ptr %2, align 8
%15 = load i64, ptr %3, align 8
%16 = and i64 %14, %15
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 @printf(ptr noundef @.str)
br label %22
20: ; preds = %13
%21 = call i32 @printf(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %18
%23 = load i64, ptr %3, align 8
%24 = lshr i64 %23, 1
store i64 %24, ptr %3, align 8
br label %25
25: ; preds = %22
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %10, !llvm.loop !6
28: ; preds = %10
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %6, !llvm.loop !8
33: ; preds = %6
%34 = call i32 @printf(ptr noundef @.str.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 = '<stdin>'
source_filename = "/tmp/tmpktqj58sw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BitMatPrint(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i64 %0, ptr %2, align 8
store i64 -9223372036854775808, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph2, label %35
.lr.ph2: ; preds = %1
br label %8
8: ; preds = %.lr.ph2, %30
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 8
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %23
%12 = load i64, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = and i64 %12, %13
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 @printf(ptr noundef @.str)
br label %20
18: ; preds = %11
%19 = call i32 @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %16
%21 = load i64, ptr %3, align 8
%22 = lshr i64 %21, 1
store i64 %22, ptr %3, align 8
br label %23
23: ; preds = %20
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %26, 8
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %8
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 8
br i1 %34, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %30
br label %35
35: ; preds = %._crit_edge3, %1
%36 = call i32 @printf(ptr noundef @.str.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/tmp_7fw7ekl.c'
source_filename = "/tmp/tmp_7fw7ekl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_7fw7ekl.c"
target datalayout = "e-m:e-p270: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/tmpax7_trzd.c'
source_filename = "/tmp/tmpax7_trzd.c"
target datalayout = "e-m:e-p270: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/tmpax7_trzd.c"
target datalayout = "e-m:e-p270: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/tmp8jdjt0o3.c'
source_filename = "/tmp/tmp8jdjt0o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ies\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cfg_io_get_gpio_ies_addr(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 @cfg_processor_get_hex_int_attr(ptr noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @cfg_processor_get_hex_int_attr(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/tmp8jdjt0o3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ies\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cfg_io_get_gpio_ies_addr(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 @cfg_processor_get_hex_int_attr(ptr noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @cfg_processor_get_hex_int_attr(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/tmpszekza43.c'
source_filename = "/tmp/tmpszekza43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk_or_eos(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 @strpbrk(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 0)
store ptr %13, ptr %5, align 8
br label %14
14: ; preds = %11, %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @strpbrk(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpszekza43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk_or_eos(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 @strpbrk(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 0)
store ptr %13, ptr %5, align 8
br label %14
14: ; preds = %11, %2
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @strpbrk(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6162ipey.c'
source_filename = "/tmp/tmp6162ipey.c"
target datalayout = "e-m:e-p270: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/tmp6162ipey.c"
target datalayout = "e-m:e-p270: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/tmpi746ovcx.c'
source_filename = "/tmp/tmpi746ovcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"conftestval\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cisize_(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %24
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %6, align 4
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %6, align 4
%21 = call i32 @fprintf(ptr noundef %19, ptr noundef @.str.2, i32 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = call i32 @fclose(ptr noundef %22)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %12, %11
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 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/tmpi746ovcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"conftestval\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cisize_(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %7, align 8
%9 = load ptr, ptr %7, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %24
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %6, align 4
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %6, align 4
%21 = call i32 @fprintf(ptr noundef %19, ptr noundef @.str.2, i32 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = call i32 @fclose(ptr noundef %22)
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %12, %11
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 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/tmpym0ovr8_.c'
source_filename = "/tmp/tmpym0ovr8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @data_set_sram_char(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @DATA_INPUT(ptr noundef @.str, ptr noundef %5)
ret void
}
declare i32 @DATA_INPUT(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/tmpym0ovr8_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @data_set_sram_char(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @DATA_INPUT(ptr noundef @.str, ptr noundef %5)
ret void
}
declare i32 @DATA_INPUT(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/tmpti52sjbd.c'
source_filename = "/tmp/tmpti52sjbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0x9c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x9c() #0 {
%1 = call i64 @isupper(i32 noundef 156)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 785, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmpti52sjbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0x9c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x9c() #0 {
%1 = call i64 @isupper(i32 noundef 156)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 785, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmpef9ntet8.c'
source_filename = "/tmp/tmpef9ntet8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @minimumLengthEncoding(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @quick_sort(ptr noundef %9, i32 noundef 0, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %5, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %22
22: ; preds = %61, %2
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %64
26: ; preds = %22
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %8, align 4
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %27, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = call i64 @in(ptr noundef %32, ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %26
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
%43 = load i32, ptr %6, align 4
%44 = sub nsw i32 %43, %42
store i32 %44, ptr %6, align 4
br label %45
45: ; preds = %40, %26
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = call i32 @strlen(ptr noundef %50)
%52 = add nsw i32 %51, 1
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, %52
store i32 %54, ptr %6, align 4
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strlen(ptr noundef %59)
store i32 %60, ptr %5, align 4
br label %61
61: ; preds = %45
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
br label %22, !llvm.loop !6
64: ; preds = %22
%65 = load i32, ptr %6, align 4
ret i32 %65
}
declare i32 @quick_sort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @in(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/tmpef9ntet8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @minimumLengthEncoding(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = call i32 @quick_sort(ptr noundef %9, i32 noundef 0, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %5, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %66
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %60
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %8, align 4
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %26, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call i64 @in(ptr noundef %31, ptr noundef %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %25
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
%42 = load i32, ptr %6, align 4
%43 = sub nsw i32 %42, %41
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %39, %25
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = call i32 @strlen(ptr noundef %49)
%51 = add nsw i32 %50, 1
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %6, align 4
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = call i32 @strlen(ptr noundef %58)
store i32 %59, ptr %5, align 4
br label %60
60: ; preds = %44
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %66
66: ; preds = %._crit_edge, %2
%67 = load i32, ptr %6, align 4
ret i32 %67
}
declare i32 @quick_sort(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @in(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/tmpe2g06ap2.c'
source_filename = "/tmp/tmpe2g06ap2.c"
target datalayout = "e-m:e-p270: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/tmpe2g06ap2.c"
target datalayout = "e-m:e-p270: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/tmpblycknwq.c'
source_filename = "/tmp/tmpblycknwq.c"
target datalayout = "e-m:e-p270: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/tmpblycknwq.c"
target datalayout = "e-m:e-p270: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/tmpewjzbl4a.c'
source_filename = "/tmp/tmpewjzbl4a.c"
target datalayout = "e-m:e-p270: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/tmpewjzbl4a.c"
target datalayout = "e-m:e-p270: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/tmp7jq7bguv.c'
source_filename = "/tmp/tmp7jq7bguv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@check_user_matrix_series.lin2 = internal global [1025 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [30 x i8] c"Enter name of the matrix file\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Cannot find matrix file [%s]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @check_user_matrix_series(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%8 = load i8, ptr %5, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @getstr(ptr noundef @.str, ptr noundef @check_user_matrix_series.lin2)
br label %15
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strcpy(ptr noundef @check_user_matrix_series.lin2, ptr noundef %13)
br label %15
15: ; preds = %12, %10
%16 = load i8, ptr @check_user_matrix_series.lin2, align 16
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i8 0, ptr %3, align 1
br label %36
20: ; preds = %15
%21 = call ptr @fopen(ptr noundef @check_user_matrix_series.lin2, ptr noundef @.str.1)
store ptr %21, ptr %7, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @error(ptr noundef @.str.2, ptr noundef @check_user_matrix_series.lin2)
store i8 0, ptr %3, align 1
br label %36
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = call i32 @strcpy(ptr noundef %28, ptr noundef @check_user_matrix_series.lin2)
%30 = load ptr, ptr %4, align 8
%31 = call i32 @read_user_matrix_series(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp sle i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %25
store i8 0, ptr %3, align 1
br label %36
35: ; preds = %25
store i8 1, ptr %3, align 1
br label %36
36: ; preds = %35, %34, %23, %19
%37 = load i8, ptr %3, align 1
ret i8 %37
}
declare i32 @getstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @read_user_matrix_series(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7jq7bguv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@check_user_matrix_series.lin2 = internal global [1025 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [30 x i8] c"Enter name of the matrix file\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Cannot find matrix file [%s]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @check_user_matrix_series(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
%8 = load i8, ptr %5, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @getstr(ptr noundef @.str, ptr noundef @check_user_matrix_series.lin2)
br label %15
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strcpy(ptr noundef @check_user_matrix_series.lin2, ptr noundef %13)
br label %15
15: ; preds = %12, %10
%16 = load i8, ptr @check_user_matrix_series.lin2, align 16
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store i8 0, ptr %3, align 1
br label %36
20: ; preds = %15
%21 = call ptr @fopen(ptr noundef @check_user_matrix_series.lin2, ptr noundef @.str.1)
store ptr %21, ptr %7, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @error(ptr noundef @.str.2, ptr noundef @check_user_matrix_series.lin2)
store i8 0, ptr %3, align 1
br label %36
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = load ptr, ptr %4, align 8
%29 = call i32 @strcpy(ptr noundef %28, ptr noundef @check_user_matrix_series.lin2)
%30 = load ptr, ptr %4, align 8
%31 = call i32 @read_user_matrix_series(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp sle i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %25
store i8 0, ptr %3, align 1
br label %36
35: ; preds = %25
store i8 1, ptr %3, align 1
br label %36
36: ; preds = %35, %34, %23, %19
%37 = load i8, ptr %3, align 1
ret i8 %37
}
declare i32 @getstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @read_user_matrix_series(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbhf9c8iq.c'
source_filename = "/tmp/tmpbhf9c8iq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bm_strupcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @bm_strnupcmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret i32 %9
}
declare i32 @bm_strnupcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbhf9c8iq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bm_strupcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @bm_strnupcmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret i32 %9
}
declare i32 @bm_strnupcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvb0h8q26.c'
source_filename = "/tmp/tmpvb0h8q26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"results.txt\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"erro ao abrir ficheiro\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d;\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%f;\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"ERROS no calculo da mediana ou moda\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"OK no calculo da mediana e moda\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@.str.8 = private unnamed_addr constant [17 x i8] c"Median SCORE %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"Mode SCORE %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 float, align 4
%4 = alloca float, align 4
%5 = alloca [16 x i8], align 16
%6 = alloca [16 x i8], align 16
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [16 x i8], align 16
%17 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %3, align 4
store float -1.000000e+00, ptr %4, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
store i32 0, ptr %8, align 4
%18 = call i64 @time(ptr noundef null)
%19 = trunc i64 %18 to i32
%20 = call i32 @srand(i32 noundef %19)
%21 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %21, ptr %9, align 8
%22 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %9, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = load ptr, ptr %10, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %30, label %28
28: ; preds = %25, %0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %1, align 4
br label %179
30: ; preds = %25
%31 = call i32 @median_initModule(i32 noundef 100000)
%32 = call i32 @mode_initModule(i32 noundef 100000)
br label %33
33: ; preds = %96, %30
%34 = load ptr, ptr %9, align 8
%35 = call i32 @feof(ptr noundef %34)
%36 = icmp ne i32 %35, 0
%37 = xor i1 %36, true
br i1 %37, label %38, label %97
38: ; preds = %33
%39 = load ptr, ptr %9, align 8
%40 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %39, ptr noundef @.str.4, ptr noundef %2)
%41 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%42 = load ptr, ptr %9, align 8
%43 = call i32 @fgets(ptr noundef %41, i32 noundef 16, ptr noundef %42)
%44 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%45 = call ptr @strchr(ptr noundef %44, i8 noundef signext 13)
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %38
%48 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%49 = call ptr @strchr(ptr noundef %48, i8 noundef signext 13)
store i64 0, ptr %49, align 8
br label %50
50: ; preds = %47, %38
%51 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%52 = call ptr @strchr(ptr noundef %51, i8 noundef signext 10)
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%56 = call ptr @strchr(ptr noundef %55, i8 noundef signext 10)
store i64 0, ptr %56, align 8
br label %57
57: ; preds = %54, %50
%58 = load ptr, ptr %10, align 8
%59 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %58, ptr noundef @.str.5, ptr noundef %4)
%60 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%61 = load ptr, ptr %10, align 8
%62 = call i32 @fgets(ptr noundef %60, i32 noundef 16, ptr noundef %61)
%63 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%64 = call ptr @strchr(ptr noundef %63, i8 noundef signext 13)
%65 = icmp ne ptr %64, null
br i1 %65, label %66, label %69
66: ; preds = %57
%67 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%68 = call ptr @strchr(ptr noundef %67, i8 noundef signext 13)
store i64 0, ptr %68, align 8
br label %69
69: ; preds = %66, %57
%70 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%71 = call ptr @strchr(ptr noundef %70, i8 noundef signext 10)
%72 = icmp ne ptr %71, null
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%75 = call ptr @strchr(ptr noundef %74, i8 noundef signext 10)
store i64 0, ptr %75, align 8
br label %76
76: ; preds = %73, %69
%77 = load i32, ptr %2, align 4
%78 = call i32 @median_newObservation(i32 noundef %77, ptr noundef %3)
%79 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%80 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%81 = call i32 @mode_newObservation(ptr noundef %79, ptr noundef %80)
%82 = load float, ptr %3, align 4
%83 = load float, ptr %4, align 4
%84 = fcmp une float %82, %83
br i1 %84, label %85, label %88
85: ; preds = %76
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %97
88: ; preds = %76
%89 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%90 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%91 = call i64 @strcmp(ptr noundef %89, ptr noundef %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %8, align 4
br label %97
96: ; preds = %88
br label %33, !llvm.loop !6
97: ; preds = %93, %85, %33
%98 = call i32 (...) @median_closeModule()
%99 = call i32 (...) @mode_closeModule()
%100 = load ptr, ptr %9, align 8
%101 = call i32 @fclose(ptr noundef %100)
%102 = load ptr, ptr %10, align 8
%103 = call i32 @fclose(ptr noundef %102)
%104 = load i32, ptr %8, align 4
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %97
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 -1, ptr %1, align 4
br label %179
108: ; preds = %97
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %110
110: ; preds = %108
store i32 10000000, ptr %15, align 4
%111 = load i32, ptr %15, align 4
%112 = call i32 @median_initModule(i32 noundef %111)
store i32 0, ptr %14, align 4
%113 = call i64 (...) @clock()
store i64 %113, ptr %11, align 8
br label %114
114: ; preds = %110, %138
%115 = call i32 (...) @rand()
%116 = load i32, ptr %15, align 4
%117 = sdiv i32 %116, 100
%118 = srem i32 %115, %117
store i32 %118, ptr %2, align 4
%119 = load i32, ptr %2, align 4
%120 = call i32 @median_newObservation(i32 noundef %119, ptr noundef %3)
%121 = call i64 (...) @clock()
store i64 %121, ptr %12, align 8
%122 = load i64, ptr %12, align 8
%123 = load i64, ptr %11, align 8
%124 = sub nsw i64 %122, %123
%125 = sitofp i64 %124 to double
%126 = load double, ptr @CLOCKS_PER_SEC, align 8
%127 = fdiv double %125, %126
store double %127, ptr %13, align 8
%128 = load double, ptr %13, align 8
%129 = fcmp ogt double %128, 2.000000e+00
br i1 %129, label %130, label %131
130: ; preds = %114
br label %139
131: ; preds = %114
%132 = load i32, ptr %14, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %14, align 4
%134 = load i32, ptr %14, align 4
%135 = load i32, ptr %15, align 4
%136 = icmp sge i32 %134, %135
br i1 %136, label %137, label %138
137: ; preds = %131
br label %139
138: ; preds = %131
br label %114
139: ; preds = %137, %130
%140 = call i32 (...) @median_closeModule()
%141 = load i32, ptr %14, align 4
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %141)
%143 = load i32, ptr %15, align 4
%144 = call i32 @mode_initModule(i32 noundef %143)
store i32 0, ptr %14, align 4
%145 = call i64 (...) @clock()
store i64 %145, ptr %11, align 8
br label %146
146: ; preds = %139, %174
%147 = call i32 (...) @rand()
%148 = load i32, ptr %15, align 4
%149 = sdiv i32 %148, 100
%150 = srem i32 %147, %149
store i32 %150, ptr %2, align 4
%151 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
%152 = load i32, ptr %2, align 4
%153 = call i32 @sprintf(ptr noundef %151, ptr noundef @.str.9, i32 noundef %152)
%154 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
%155 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%156 = call i32 @mode_newObservation(ptr noundef %154, ptr noundef %155)
%157 = call i64 (...) @clock()
store i64 %157, ptr %12, align 8
%158 = load i64, ptr %12, align 8
%159 = load i64, ptr %11, align 8
%160 = sub nsw i64 %158, %159
%161 = sitofp i64 %160 to double
%162 = load double, ptr @CLOCKS_PER_SEC, align 8
%163 = fdiv double %161, %162
store double %163, ptr %13, align 8
%164 = load double, ptr %13, align 8
%165 = fcmp ogt double %164, 2.000000e+00
br i1 %165, label %166, label %167
166: ; preds = %146
br label %175
167: ; preds = %146
%168 = load i32, ptr %14, align 4
%169 = add nsw i32 %168, 1
store i32 %169, ptr %14, align 4
%170 = load i32, ptr %14, align 4
%171 = load i32, ptr %15, align 4
%172 = icmp sge i32 %170, %171
br i1 %172, label %173, label %174
173: ; preds = %167
br label %175
174: ; preds = %167
br label %146
175: ; preds = %173, %166
%176 = call i32 (...) @mode_closeModule()
%177 = load i32, ptr %14, align 4
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %177)
br label %179
179: ; preds = %175, %106, %28
%180 = load i32, ptr %1, align 4
ret i32 %180
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i64 @time(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @median_initModule(i32 noundef) #2
declare i32 @mode_initModule(i32 noundef) #2
declare i32 @feof(ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @median_newObservation(i32 noundef, ptr noundef) #2
declare i32 @mode_newObservation(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @median_closeModule(...) #2
declare i32 @mode_closeModule(...) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @clock(...) #2
declare i32 @rand(...) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvb0h8q26.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"results.txt\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"erro ao abrir ficheiro\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d;\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%f;\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"ERROS no calculo da mediana ou moda\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"OK no calculo da mediana e moda\0A\00", align 1
@CLOCKS_PER_SEC = dso_local global double 0.000000e+00, align 8
@.str.8 = private unnamed_addr constant [17 x i8] c"Median SCORE %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"Mode SCORE %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 float, align 4
%4 = alloca float, align 4
%5 = alloca [16 x i8], align 16
%6 = alloca [16 x i8], align 16
%7 = alloca [16 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [16 x i8], align 16
%17 = alloca [16 x i8], align 16
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %3, align 4
store float -1.000000e+00, ptr %4, align 4
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 16, i1 false)
store i32 0, ptr %8, align 4
%18 = call i64 @time(ptr noundef null)
%19 = trunc i64 %18 to i32
%20 = call i32 @srand(i32 noundef %19)
%21 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %21, ptr %9, align 8
%22 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.1)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %9, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = load ptr, ptr %10, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %30, label %28
28: ; preds = %25, %0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %1, align 4
br label %180
30: ; preds = %25
%31 = call i32 @median_initModule(i32 noundef 100000)
%32 = call i32 @mode_initModule(i32 noundef 100000)
%33 = load ptr, ptr %9, align 8
%34 = call i32 @feof(ptr noundef %33)
%35 = icmp ne i32 %34, 0
%36 = xor i1 %35, true
br i1 %36, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %30
br label %42
37: ; preds = %92
%38 = load ptr, ptr %9, align 8
%39 = call i32 @feof(ptr noundef %38)
%40 = icmp ne i32 %39, 0
%41 = xor i1 %40, true
br i1 %41, label %42, label %..loopexit_crit_edge, !llvm.loop !6
42: ; preds = %.lr.ph, %37
%43 = load ptr, ptr %9, align 8
%44 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %43, ptr noundef @.str.4, ptr noundef %2)
%45 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%46 = load ptr, ptr %9, align 8
%47 = call i32 @fgets(ptr noundef %45, i32 noundef 16, ptr noundef %46)
%48 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%49 = call ptr @strchr(ptr noundef %48, i8 noundef signext 13)
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %54
51: ; preds = %42
%52 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%53 = call ptr @strchr(ptr noundef %52, i8 noundef signext 13)
store i64 0, ptr %53, align 8
br label %54
54: ; preds = %51, %42
%55 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%56 = call ptr @strchr(ptr noundef %55, i8 noundef signext 10)
%57 = icmp ne ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%60 = call ptr @strchr(ptr noundef %59, i8 noundef signext 10)
store i64 0, ptr %60, align 8
br label %61
61: ; preds = %58, %54
%62 = load ptr, ptr %10, align 8
%63 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %62, ptr noundef @.str.5, ptr noundef %4)
%64 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%65 = load ptr, ptr %10, align 8
%66 = call i32 @fgets(ptr noundef %64, i32 noundef 16, ptr noundef %65)
%67 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%68 = call ptr @strchr(ptr noundef %67, i8 noundef signext 13)
%69 = icmp ne ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %61
%71 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%72 = call ptr @strchr(ptr noundef %71, i8 noundef signext 13)
store i64 0, ptr %72, align 8
br label %73
73: ; preds = %70, %61
%74 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%75 = call ptr @strchr(ptr noundef %74, i8 noundef signext 10)
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%79 = call ptr @strchr(ptr noundef %78, i8 noundef signext 10)
store i64 0, ptr %79, align 8
br label %80
80: ; preds = %77, %73
%81 = load i32, ptr %2, align 4
%82 = call i32 @median_newObservation(i32 noundef %81, ptr noundef %3)
%83 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
%84 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%85 = call i32 @mode_newObservation(ptr noundef %83, ptr noundef %84)
%86 = load float, ptr %3, align 4
%87 = load float, ptr %4, align 4
%88 = fcmp une float %86, %87
br i1 %88, label %89, label %92
89: ; preds = %80
%90 = load i32, ptr %8, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %8, align 4
br label %100
92: ; preds = %80
%93 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%94 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
%95 = call i64 @strcmp(ptr noundef %93, ptr noundef %94)
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %37
97: ; preds = %92
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %8, align 4
br label %100
..loopexit_crit_edge: ; preds = %37
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %100
100: ; preds = %.loopexit, %97, %89
%101 = call i32 (...) @median_closeModule()
%102 = call i32 (...) @mode_closeModule()
%103 = load ptr, ptr %9, align 8
%104 = call i32 @fclose(ptr noundef %103)
%105 = load ptr, ptr %10, align 8
%106 = call i32 @fclose(ptr noundef %105)
%107 = load i32, ptr %8, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %100
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 -1, ptr %1, align 4
br label %180
111: ; preds = %100
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %113
113: ; preds = %111
store i32 10000000, ptr %15, align 4
%114 = load i32, ptr %15, align 4
%115 = call i32 @median_initModule(i32 noundef %114)
store i32 0, ptr %14, align 4
%116 = call i64 (...) @clock()
store i64 %116, ptr %11, align 8
br label %117
117: ; preds = %134, %113
%118 = call i32 (...) @rand()
%119 = load i32, ptr %15, align 4
%120 = sdiv i32 %119, 100
%121 = srem i32 %118, %120
store i32 %121, ptr %2, align 4
%122 = load i32, ptr %2, align 4
%123 = call i32 @median_newObservation(i32 noundef %122, ptr noundef %3)
%124 = call i64 (...) @clock()
store i64 %124, ptr %12, align 8
%125 = load i64, ptr %12, align 8
%126 = load i64, ptr %11, align 8
%127 = sub nsw i64 %125, %126
%128 = sitofp i64 %127 to double
%129 = load double, ptr @CLOCKS_PER_SEC, align 8
%130 = fdiv double %128, %129
store double %130, ptr %13, align 8
%131 = load double, ptr %13, align 8
%132 = fcmp ogt double %131, 2.000000e+00
br i1 %132, label %133, label %134
133: ; preds = %117
br label %141
134: ; preds = %117
%135 = load i32, ptr %14, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %14, align 4
%137 = load i32, ptr %14, align 4
%138 = load i32, ptr %15, align 4
%139 = icmp sge i32 %137, %138
br i1 %139, label %140, label %117
140: ; preds = %134
br label %141
141: ; preds = %140, %133
%142 = call i32 (...) @median_closeModule()
%143 = load i32, ptr %14, align 4
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %143)
%145 = load i32, ptr %15, align 4
%146 = call i32 @mode_initModule(i32 noundef %145)
store i32 0, ptr %14, align 4
%147 = call i64 (...) @clock()
store i64 %147, ptr %11, align 8
br label %148
148: ; preds = %169, %141
%149 = call i32 (...) @rand()
%150 = load i32, ptr %15, align 4
%151 = sdiv i32 %150, 100
%152 = srem i32 %149, %151
store i32 %152, ptr %2, align 4
%153 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
%154 = load i32, ptr %2, align 4
%155 = call i32 @sprintf(ptr noundef %153, ptr noundef @.str.9, i32 noundef %154)
%156 = getelementptr inbounds [16 x i8], ptr %17, i64 0, i64 0
%157 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%158 = call i32 @mode_newObservation(ptr noundef %156, ptr noundef %157)
%159 = call i64 (...) @clock()
store i64 %159, ptr %12, align 8
%160 = load i64, ptr %12, align 8
%161 = load i64, ptr %11, align 8
%162 = sub nsw i64 %160, %161
%163 = sitofp i64 %162 to double
%164 = load double, ptr @CLOCKS_PER_SEC, align 8
%165 = fdiv double %163, %164
store double %165, ptr %13, align 8
%166 = load double, ptr %13, align 8
%167 = fcmp ogt double %166, 2.000000e+00
br i1 %167, label %168, label %169
168: ; preds = %148
br label %176
169: ; preds = %148
%170 = load i32, ptr %14, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %14, align 4
%172 = load i32, ptr %14, align 4
%173 = load i32, ptr %15, align 4
%174 = icmp sge i32 %172, %173
br i1 %174, label %175, label %148
175: ; preds = %169
br label %176
176: ; preds = %175, %168
%177 = call i32 (...) @mode_closeModule()
%178 = load i32, ptr %14, align 4
%179 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %178)
br label %180
180: ; preds = %176, %109, %28
%181 = load i32, ptr %1, align 4
ret i32 %181
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @srand(i32 noundef) #2
declare i64 @time(ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @median_initModule(i32 noundef) #2
declare i32 @mode_initModule(i32 noundef) #2
declare i32 @feof(ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @median_newObservation(i32 noundef, ptr noundef) #2
declare i32 @mode_newObservation(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @median_closeModule(...) #2
declare i32 @mode_closeModule(...) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @clock(...) #2
declare i32 @rand(...) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp88s0nae0.c'
source_filename = "/tmp/tmp88s0nae0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x ptr], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i64 0, ptr %10, align 8
br label %12
12: ; preds = %56, %2
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %57
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %16
store i32 1, ptr %9, align 4
br label %23
23: ; preds = %22, %16
br label %24
24: ; preds = %40, %23
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load i8, ptr %4, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %27, %29
br i1 %30, label %36, label %31
31: ; preds = %24
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 0
br label %36
36: ; preds = %31, %24
%37 = phi i1 [ true, %24 ], [ %35, %31 ]
%38 = xor i1 %37, true
br i1 %38, label %39, label %43
39: ; preds = %36
br label %40
40: ; preds = %39
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %3, align 8
br label %24, !llvm.loop !6
43: ; preds = %36
%44 = load ptr, ptr %3, align 8
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %8, align 8
%46 = call ptr @strdup(ptr noundef %45)
%47 = load i64, ptr %10, align 8
%48 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %47
store ptr %46, ptr %48, align 8
%49 = load i64, ptr %10, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %10, align 8
%51 = load i32, ptr %9, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %43
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %3, align 8
br label %56
56: ; preds = %53, %43
br label %12, !llvm.loop !8
57: ; preds = %12
%58 = load i64, ptr %10, align 8
%59 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %58
store ptr null, ptr %59, align 8
%60 = load i64, ptr %10, align 8
%61 = add i64 %60, 1
%62 = mul i64 8, %61
%63 = trunc i64 %62 to i32
%64 = call i64 @malloc(i32 noundef %63)
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %5, align 8
%66 = load ptr, ptr %5, align 8
store ptr %66, ptr %6, align 8
store i64 0, ptr %11, align 8
br label %67
67: ; preds = %76, %57
%68 = load i64, ptr %11, align 8
%69 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = load ptr, ptr %6, align 8
store ptr %70, ptr %71, align 8
%72 = icmp ne ptr %70, null
br i1 %72, label %73, label %79
73: ; preds = %67
%74 = load ptr, ptr %6, align 8
%75 = getelementptr inbounds ptr, ptr %74, i32 1
store ptr %75, ptr %6, align 8
br label %76
76: ; preds = %73
%77 = load i64, ptr %11, align 8
%78 = add i64 %77, 1
store i64 %78, ptr %11, align 8
br label %67, !llvm.loop !9
79: ; preds = %67
%80 = load ptr, ptr %5, align 8
ret ptr %80
}
declare ptr @strdup(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp88s0nae0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x ptr], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i64 0, ptr %10, align 8
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %.lr.ph, label %59
.lr.ph: ; preds = %2
br label %15
15: ; preds = %.lr.ph, %55
%16 = load ptr, ptr %3, align 8
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 1, ptr %9, align 4
br label %22
22: ; preds = %21, %15
br label %23
23: ; preds = %39, %22
%24 = load ptr, ptr %3, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %26, %28
br i1 %29, label %35, label %30
30: ; preds = %23
%31 = load ptr, ptr %3, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 0
br label %35
35: ; preds = %30, %23
%36 = phi i1 [ true, %23 ], [ %34, %30 ]
%37 = xor i1 %36, true
br i1 %37, label %38, label %42
38: ; preds = %35
br label %39
39: ; preds = %38
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %3, align 8
br label %23, !llvm.loop !6
42: ; preds = %35
%43 = load ptr, ptr %3, align 8
store i8 0, ptr %43, align 1
%44 = load ptr, ptr %8, align 8
%45 = call ptr @strdup(ptr noundef %44)
%46 = load i64, ptr %10, align 8
%47 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %46
store ptr %45, ptr %47, align 8
%48 = load i64, ptr %10, align 8
%49 = add i64 %48, 1
store i64 %49, ptr %10, align 8
%50 = load i32, ptr %9, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %42
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %3, align 8
br label %55
55: ; preds = %52, %42
%56 = load ptr, ptr %3, align 8
%57 = load i8, ptr %56, align 1
%58 = icmp ne i8 %57, 0
br i1 %58, label %15, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %55
br label %59
59: ; preds = %._crit_edge, %2
%60 = load i64, ptr %10, align 8
%61 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %60
store ptr null, ptr %61, align 8
%62 = load i64, ptr %10, align 8
%63 = add i64 %62, 1
%64 = mul i64 8, %63
%65 = trunc i64 %64 to i32
%66 = call i64 @malloc(i32 noundef %65)
%67 = inttoptr i64 %66 to ptr
store ptr %67, ptr %5, align 8
%68 = load ptr, ptr %5, align 8
store ptr %68, ptr %6, align 8
store i64 0, ptr %11, align 8
%69 = load i64, ptr %11, align 8
%70 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = load ptr, ptr %6, align 8
store ptr %71, ptr %72, align 8
%73 = icmp ne ptr %71, null
br i1 %73, label %.lr.ph2, label %85
.lr.ph2: ; preds = %59
br label %74
74: ; preds = %.lr.ph2, %77
%75 = load ptr, ptr %6, align 8
%76 = getelementptr inbounds ptr, ptr %75, i32 1
store ptr %76, ptr %6, align 8
br label %77
77: ; preds = %74
%78 = load i64, ptr %11, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %11, align 8
%80 = load i64, ptr %11, align 8
%81 = getelementptr inbounds [1024 x ptr], ptr %7, i64 0, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = load ptr, ptr %6, align 8
store ptr %82, ptr %83, align 8
%84 = icmp ne ptr %82, null
br i1 %84, label %74, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %77
br label %85
85: ; preds = %._crit_edge3, %59
%86 = load ptr, ptr %5, align 8
ret ptr %86
}
declare ptr @strdup(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxrntzbmn.c'
source_filename = "/tmp/tmpxrntzbmn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %52
10: ; preds = %1
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %48, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %51
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i32 @isdigit(i8 noundef signext %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %14
store i32 2, ptr %2, align 4
br label %52
23: ; preds = %14
store i32 0, ptr %5, align 4
br label %24
24: ; preds = %44, %23
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %47
28: ; preds = %24
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %34, %40
br i1 %41, label %42, label %43
42: ; preds = %28
store i32 3, ptr %2, align 4
br label %52
43: ; preds = %28
br label %44
44: ; preds = %43
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
br label %24, !llvm.loop !6
47: ; preds = %24
br label %48
48: ; preds = %47
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
br label %11, !llvm.loop !8
51: ; preds = %11
store i32 0, ptr %2, align 4
br label %52
52: ; preds = %51, %42, %22, %9
%53 = load i32, ptr %2, align 4
ret i32 %53
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxrntzbmn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %55
10: ; preds = %1
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %.lr.ph2, label %54
.lr.ph2: ; preds = %10
br label %13
13: ; preds = %.lr.ph2, %49
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i32 @isdigit(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %13
store i32 2, ptr %2, align 4
br label %55
22: ; preds = %13
store i32 0, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %48
.lr.ph: ; preds = %22
br label %26
26: ; preds = %.lr.ph, %42
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %32, %38
br i1 %39, label %40, label %41
40: ; preds = %26
store i32 3, ptr %2, align 4
br label %55
41: ; preds = %26
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %22
br label %49
49: ; preds = %48
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %52, 4
br i1 %53, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %54
54: ; preds = %._crit_edge3, %10
store i32 0, ptr %2, align 4
br label %55
55: ; preds = %54, %40, %21, %9
%56 = load i32, ptr %2, align 4
ret i32 %56
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvqwrhy6a.c'
source_filename = "/tmp/tmpvqwrhy6a.c"
target datalayout = "e-m:e-p270: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/tmpvqwrhy6a.c"
target datalayout = "e-m:e-p270: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/tmp2rstrsos.c'
source_filename = "/tmp/tmp2rstrsos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c";\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %4, align 1
%14 = call i32 @count_entries(ptr noundef %12, i8 noundef signext %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %11, align 4
%26 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i32 noundef %25)
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 8, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %5, align 8
store ptr %33, ptr %6, align 8
store i32 0, ptr %9, align 4
br label %34
34: ; preds = %78, %2
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %81
38: ; preds = %34
%39 = load ptr, ptr %7, align 8
%40 = call i32 @strcspn(ptr noundef %39, ptr noundef @.str)
store i32 %40, ptr %10, align 4
%41 = load i32, ptr %10, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 noundef %44)
%46 = inttoptr i64 %45 to ptr
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
store ptr %46, ptr %50, align 8
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %51, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %10, align 4
%58 = call i32 @memcpy(ptr noundef %55, ptr noundef %56, i32 noundef %57)
%59 = load ptr, ptr %6, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = getelementptr inbounds i8, ptr %66, i64 1
store i8 0, ptr %67, align 1
%68 = load ptr, ptr %7, align 8
%69 = load ptr, ptr %7, align 8
%70 = load i32, ptr %10, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %69, i64 %72
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %10, align 4
%76 = sub nsw i32 %74, %75
%77 = call i32 @memmove(ptr noundef %68, ptr noundef %73, i32 noundef %76)
br label %78
78: ; preds = %38
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
br label %34, !llvm.loop !6
81: ; preds = %34
%82 = load ptr, ptr %7, align 8
%83 = call i32 @free(ptr noundef %82)
%84 = load ptr, ptr %5, align 8
ret ptr %84
}
declare i32 @count_entries(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcspn(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2rstrsos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c";\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @split(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %4, align 1
%14 = call i32 @count_entries(ptr noundef %12, i8 noundef signext %13)
store i32 %14, ptr %8, align 4
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %11, align 4
%17 = load i32, ptr %11, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %7, align 8
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %11, align 4
%26 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i32 noundef %25)
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 8, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %5, align 8
%33 = load ptr, ptr %5, align 8
store ptr %33, ptr %6, align 8
store i32 0, ptr %9, align 4
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %83
.lr.ph: ; preds = %2
br label %37
37: ; preds = %.lr.ph, %77
%38 = load ptr, ptr %7, align 8
%39 = call i32 @strcspn(ptr noundef %38, ptr noundef @.str)
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = mul i64 1, %41
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
store ptr %45, ptr %49, align 8
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %10, align 4
%57 = call i32 @memcpy(ptr noundef %54, ptr noundef %55, i32 noundef %56)
%58 = load ptr, ptr %6, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %58, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
%66 = getelementptr inbounds i8, ptr %65, i64 1
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %7, align 8
%69 = load i32, ptr %10, align 4
%70 = add nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %68, i64 %71
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %10, align 4
%75 = sub nsw i32 %73, %74
%76 = call i32 @memmove(ptr noundef %67, ptr noundef %72, i32 noundef %75)
br label %77
77: ; preds = %37
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %83
83: ; preds = %._crit_edge, %2
%84 = load ptr, ptr %7, align 8
%85 = call i32 @free(ptr noundef %84)
%86 = load ptr, ptr %5, align 8
ret ptr %86
}
declare i32 @count_entries(ptr noundef, i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcspn(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpod_r6c6_.c'
source_filename = "/tmp/tmpod_r6c6_.c"
target datalayout = "e-m:e-p270: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/tmpod_r6c6_.c"
target datalayout = "e-m:e-p270: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/tmp1gk_ao8s.c'
source_filename = "/tmp/tmp1gk_ao8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getint(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %6
6: ; preds = %10, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %4, align 4
%8 = call i64 @isspace(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %6
br label %6, !llvm.loop !6
11: ; preds = %6
%12 = load i32, ptr %4, align 4
%13 = call i64 @isdigit(i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %28, label %15
15: ; preds = %11
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @EOF, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 43
br i1 %21, label %22, label %28
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 45
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, ptr %4, align 4
%27 = call i32 @ungetch(i32 noundef %26)
store i32 0, ptr %2, align 4
br label %81
28: ; preds = %22, %19, %15, %11
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %29, 45
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 -1, i32 1
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp eq i32 %33, 43
br i1 %34, label %38, label %35
35: ; preds = %28
%36 = load i32, ptr %4, align 4
%37 = icmp eq i32 %36, 45
br i1 %37, label %38, label %52
38: ; preds = %35, %28
%39 = call i32 (...) @getch()
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = call i64 @isdigit(i32 noundef %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %51, label %43
43: ; preds = %38
%44 = load ptr, ptr %3, align 8
store i32 0, ptr %44, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 1
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 43, i32 45
%49 = call i32 @ungetch(i32 noundef %48)
%50 = load i32, ptr %4, align 4
store i32 %50, ptr %2, align 4
br label %81
51: ; preds = %38
br label %52
52: ; preds = %51, %35
%53 = load ptr, ptr %3, align 8
store i32 0, ptr %53, align 4
br label %54
54: ; preds = %66, %52
%55 = load i32, ptr %4, align 4
%56 = call i64 @isdigit(i32 noundef %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %68
58: ; preds = %54
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %59, align 4
%61 = mul nsw i32 10, %60
%62 = load i32, ptr %4, align 4
%63 = sub nsw i32 %62, 48
%64 = add nsw i32 %61, %63
%65 = load ptr, ptr %3, align 8
store i32 %64, ptr %65, align 4
br label %66
66: ; preds = %58
%67 = call i32 (...) @getch()
store i32 %67, ptr %4, align 4
br label %54, !llvm.loop !8
68: ; preds = %54
%69 = load i32, ptr %5, align 4
%70 = load ptr, ptr %3, align 8
%71 = load i32, ptr %70, align 4
%72 = mul nsw i32 %71, %69
store i32 %72, ptr %70, align 4
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr @EOF, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %79
76: ; preds = %68
%77 = load i32, ptr %4, align 4
%78 = call i32 @ungetch(i32 noundef %77)
br label %79
79: ; preds = %76, %68
%80 = load i32, ptr %4, align 4
store i32 %80, ptr %2, align 4
br label %81
81: ; preds = %79, %43, %25
%82 = load i32, ptr %2, align 4
ret i32 %82
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1gk_ao8s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getint(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
br label %6
6: ; preds = %6, %1
%7 = call i32 (...) @getch()
store i32 %7, ptr %4, align 4
%8 = call i64 @isspace(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %6, label %10, !llvm.loop !6
10: ; preds = %6
%11 = load i32, ptr %4, align 4
%12 = call i64 @isdigit(i32 noundef %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %27, label %14
14: ; preds = %10
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr @EOF, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = load i32, ptr %4, align 4
%20 = icmp ne i32 %19, 43
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 45
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, ptr %4, align 4
%26 = call i32 @ungetch(i32 noundef %25)
store i32 0, ptr %2, align 4
br label %82
27: ; preds = %21, %18, %14, %10
%28 = load i32, ptr %4, align 4
%29 = icmp eq i32 %28, 45
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 -1, i32 1
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 43
br i1 %33, label %37, label %34
34: ; preds = %27
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 45
br i1 %36, label %37, label %51
37: ; preds = %34, %27
%38 = call i32 (...) @getch()
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = call i64 @isdigit(i32 noundef %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %50, label %42
42: ; preds = %37
%43 = load ptr, ptr %3, align 8
store i32 0, ptr %43, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp eq i32 %44, 1
%46 = zext i1 %45 to i64
%47 = select i1 %45, i32 43, i32 45
%48 = call i32 @ungetch(i32 noundef %47)
%49 = load i32, ptr %4, align 4
store i32 %49, ptr %2, align 4
br label %82
50: ; preds = %37
br label %51
51: ; preds = %50, %34
%52 = load ptr, ptr %3, align 8
store i32 0, ptr %52, align 4
%53 = load i32, ptr %4, align 4
%54 = call i64 @isdigit(i32 noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %.lr.ph, label %69
.lr.ph: ; preds = %51
br label %56
56: ; preds = %.lr.ph, %64
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %57, align 4
%59 = mul nsw i32 10, %58
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 %60, 48
%62 = add nsw i32 %59, %61
%63 = load ptr, ptr %3, align 8
store i32 %62, ptr %63, align 4
br label %64
64: ; preds = %56
%65 = call i32 (...) @getch()
store i32 %65, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = call i64 @isdigit(i32 noundef %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %56, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %64
br label %69
69: ; preds = %._crit_edge, %51
%70 = load i32, ptr %5, align 4
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %71, align 4
%73 = mul nsw i32 %72, %70
store i32 %73, ptr %71, align 4
%74 = load i32, ptr %4, align 4
%75 = load i32, ptr @EOF, align 4
%76 = icmp ne i32 %74, %75
br i1 %76, label %77, label %80
77: ; preds = %69
%78 = load i32, ptr %4, align 4
%79 = call i32 @ungetch(i32 noundef %78)
br label %80
80: ; preds = %77, %69
%81 = load i32, ptr %4, align 4
store i32 %81, ptr %2, align 4
br label %82
82: ; preds = %80, %42, %24
%83 = load i32, ptr %2, align 4
ret i32 %83
}
declare i64 @isspace(i32 noundef) #1
declare i32 @getch(...) #1
declare i64 @isdigit(i32 noundef) #1
declare i32 @ungetch(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppgdl1cpq.c'
source_filename = "/tmp/tmppgdl1cpq.c"
target datalayout = "e-m:e-p270: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/tmppgdl1cpq.c"
target datalayout = "e-m:e-p270: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/tmpy13nw1ap.c'
source_filename = "/tmp/tmpy13nw1ap.c"
target datalayout = "e-m:e-p270: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/tmpy13nw1ap.c"
target datalayout = "e-m:e-p270: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/tmpgclh3sp9.c'
source_filename = "/tmp/tmpgclh3sp9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printcharV2(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 37
br i1 %5, label %6, label %7
6: ; preds = %1
store i8 13, ptr %2, align 1
br label %13
7: ; preds = %1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 95
br i1 %10, label %11, label %12
11: ; preds = %7
store i8 32, ptr %2, align 1
br label %12
12: ; preds = %11, %7
br label %13
13: ; preds = %12, %6
%14 = load i8, ptr %2, align 1
%15 = call i32 @printautocase(i8 noundef signext %14)
ret void
}
declare i32 @printautocase(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgclh3sp9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @printcharV2(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 37
br i1 %5, label %6, label %7
6: ; preds = %1
store i8 13, ptr %2, align 1
br label %13
7: ; preds = %1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 95
br i1 %10, label %11, label %12
11: ; preds = %7
store i8 32, ptr %2, align 1
br label %12
12: ; preds = %11, %7
br label %13
13: ; preds = %12, %6
%14 = load i8, ptr %2, align 1
%15 = call i32 @printautocase(i8 noundef signext %14)
ret void
}
declare i32 @printautocase(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfa2bsu_w.c'
source_filename = "/tmp/tmpfa2bsu_w.c"
target datalayout = "e-m:e-p270: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/tmpfa2bsu_w.c"
target datalayout = "e-m:e-p270: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/tmpe71la7h8.c'
source_filename = "/tmp/tmpe71la7h8.c"
target datalayout = "e-m:e-p270: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/tmpe71la7h8.c"
target datalayout = "e-m:e-p270: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/tmpaxohtsic.c'
source_filename = "/tmp/tmpaxohtsic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Exerc\C3\ADcio pratico 01\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Escolha uma opcao valida!\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @escolheValores(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %8
8: ; preds = %38, %0
%9 = call i32 (...) @escolheOpcao()
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
switch i32 %10, label %32 [
i32 1, label %11
i32 2, label %16
i32 3, label %20
i32 4, label %23
i32 5, label %28
i32 6, label %30
]
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @soma(i32 noundef %12, i32 noundef %13, i32 noundef %14)
br label %34
16: ; preds = %8
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @ehPar(i32 noundef %17, i32 noundef %18)
br label %34
20: ; preds = %8
%21 = load i32, ptr %4, align 4
%22 = call i32 @cEhPositivo(i32 noundef %21)
br label %34
23: ; preds = %8
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = call i32 @imprimeRange(i32 noundef %24, i32 noundef %25, i32 noundef %26)
br label %34
28: ; preds = %8
%29 = call i32 @escolheValores(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %34
30: ; preds = %8
%31 = call i32 (...) @finalizaMenu()
br label %34
32: ; preds = %8
%33 = call i32 @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32, %30, %28, %23, %20, %16, %11
%35 = call i32 @printf(ptr noundef @.str.2)
%36 = call i32 @system(ptr noundef @.str.3)
%37 = call i32 @system(ptr noundef @.str.4)
br label %38
38: ; preds = %34
%39 = load i32, ptr %5, align 4
%40 = icmp ne i32 %39, 6
br i1 %40, label %8, label %41, !llvm.loop !6
41: ; preds = %38
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @escolheValores(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @escolheOpcao(...) #1
declare i32 @soma(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ehPar(i32 noundef, i32 noundef) #1
declare i32 @cEhPositivo(i32 noundef) #1
declare i32 @imprimeRange(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @finalizaMenu(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaxohtsic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Exerc\C3\ADcio pratico 01\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Escolha uma opcao valida!\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"cls\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @escolheValores(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %8
8: ; preds = %38, %0
%9 = call i32 (...) @escolheOpcao()
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
switch i32 %10, label %32 [
i32 1, label %11
i32 2, label %16
i32 3, label %20
i32 4, label %23
i32 5, label %28
i32 6, label %30
]
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @soma(i32 noundef %12, i32 noundef %13, i32 noundef %14)
br label %34
16: ; preds = %8
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @ehPar(i32 noundef %17, i32 noundef %18)
br label %34
20: ; preds = %8
%21 = load i32, ptr %4, align 4
%22 = call i32 @cEhPositivo(i32 noundef %21)
br label %34
23: ; preds = %8
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = call i32 @imprimeRange(i32 noundef %24, i32 noundef %25, i32 noundef %26)
br label %34
28: ; preds = %8
%29 = call i32 @escolheValores(ptr noundef %2, ptr noundef %3, ptr noundef %4)
br label %34
30: ; preds = %8
%31 = call i32 (...) @finalizaMenu()
br label %34
32: ; preds = %8
%33 = call i32 @printf(ptr noundef @.str.1)
br label %34
34: ; preds = %32, %30, %28, %23, %20, %16, %11
%35 = call i32 @printf(ptr noundef @.str.2)
%36 = call i32 @system(ptr noundef @.str.3)
%37 = call i32 @system(ptr noundef @.str.4)
br label %38
38: ; preds = %34
%39 = load i32, ptr %5, align 4
%40 = icmp ne i32 %39, 6
br i1 %40, label %8, label %41, !llvm.loop !6
41: ; preds = %38
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @escolheValores(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @escolheOpcao(...) #1
declare i32 @soma(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ehPar(i32 noundef, i32 noundef) #1
declare i32 @cEhPositivo(i32 noundef) #1
declare i32 @imprimeRange(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @finalizaMenu(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp27rj9l4h.c'
source_filename = "/tmp/tmp27rj9l4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @acoshl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = load x86_fp80, ptr %2, align 16
%5 = load x86_fp80, ptr %2, align 16
%6 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %4, x86_fp80 %5, x86_fp80 0xKBFFF8000000000000000)
%7 = call i64 @sqrtl(x86_fp80 noundef %6)
%8 = sitofp i64 %7 to x86_fp80
%9 = fadd x86_fp80 %3, %8
%10 = fptosi x86_fp80 %9 to i64
%11 = call x86_fp80 @logl(i64 noundef %10)
ret x86_fp80 %11
}
declare x86_fp80 @logl(i64 noundef) #1
declare i64 @sqrtl(x86_fp80 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp27rj9l4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @acoshl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = load x86_fp80, ptr %2, align 16
%5 = load x86_fp80, ptr %2, align 16
%6 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %4, x86_fp80 %5, x86_fp80 0xKBFFF8000000000000000)
%7 = call i64 @sqrtl(x86_fp80 noundef %6)
%8 = sitofp i64 %7 to x86_fp80
%9 = fadd x86_fp80 %3, %8
%10 = fptosi x86_fp80 %9 to i64
%11 = call x86_fp80 @logl(i64 noundef %10)
ret x86_fp80 %11
}
declare x86_fp80 @logl(i64 noundef) #1
declare i64 @sqrtl(x86_fp80 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvopgzh2q.c'
source_filename = "/tmp/tmpvopgzh2q.c"
target datalayout = "e-m:e-p270: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/tmpvopgzh2q.c"
target datalayout = "e-m:e-p270: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/tmpqvcdru1r.c'
source_filename = "/tmp/tmpqvcdru1r.c"
target datalayout = "e-m:e-p270: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 [212 x i8] c"Usage: %s [-n nm] [-m make] libs...\0Anm -- The command used to run nm on reactos objects\0Amake -- The command used to build reactos\0A\0Alibs are import libraries (.a files) typically from\0Adk/lib/nkm and dk/lib/w32\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqvcdru1r.c"
target datalayout = "e-m:e-p270: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 [212 x i8] c"Usage: %s [-n nm] [-m make] libs...\0Anm -- The command used to run nm on reactos objects\0Amake -- The command used to build reactos\0A\0Alibs are import libraries (.a files) typically from\0Adk/lib/nkm and dk/lib/w32\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp6ki92pc.c'
source_filename = "/tmp/tmpp6ki92pc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unexport_P8() #0 {
%1 = call i32 @pin_unexport(i32 noundef 44)
%2 = call i32 @pin_unexport(i32 noundef 46)
ret void
}
declare i32 @pin_unexport(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/tmpp6ki92pc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unexport_P8() #0 {
%1 = call i32 @pin_unexport(i32 noundef 44)
%2 = call i32 @pin_unexport(i32 noundef 46)
ret void
}
declare i32 @pin_unexport(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/tmpnznjde81.c'
source_filename = "/tmp/tmpnznjde81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRandIntToMax(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @time(i32 noundef 0)
%4 = call i32 @srand(i32 noundef %3)
%5 = call i32 (...) @rand()
%6 = load i32, ptr %2, align 4
%7 = srem i32 %5, %6
ret i32 %7
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnznjde81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRandIntToMax(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @time(i32 noundef 0)
%4 = call i32 @srand(i32 noundef %3)
%5 = call i32 (...) @rand()
%6 = load i32, ptr %2, align 4
%7 = srem i32 %5, %6
ret i32 %7
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzzbbubrx.c'
source_filename = "/tmp/tmpzzbbubrx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %3
store ptr null, ptr %4, align 8
br label %28
12: ; preds = %3
store i64 0, ptr %8, align 8
br label %13
13: ; preds = %23, %12
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %5, align 8
%21 = load i64, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
store i8 %19, ptr %22, align 1
br label %23
23: ; preds = %17
%24 = load i64, ptr %8, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %8, align 8
br label %13, !llvm.loop !6
26: ; preds = %13
%27 = load ptr, ptr %5, align 8
store ptr %27, ptr %4, align 8
br label %28
28: ; preds = %26, %11
%29 = load ptr, ptr %4, align 8
ret ptr %29
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzzbbubrx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memset(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i64 %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %3
store ptr null, ptr %4, align 8
br label %30
12: ; preds = %3
store i64 0, ptr %8, align 8
%13 = load i64, ptr %8, align 8
%14 = load i64, ptr %7, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %22
%17 = load i32, ptr %6, align 4
%18 = trunc i32 %17 to i8
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
store i8 %18, ptr %21, align 1
br label %22
22: ; preds = %16
%23 = load i64, ptr %8, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %8, align 8
%25 = load i64, ptr %8, align 8
%26 = load i64, ptr %7, align 8
%27 = icmp ult i64 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %12
%29 = load ptr, ptr %5, align 8
store ptr %29, ptr %4, align 8
br label %30
30: ; preds = %28, %11
%31 = load ptr, ptr %4, align 8
ret ptr %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpurs9qntq.c'
source_filename = "/tmp/tmpurs9qntq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"atomic_io\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @atomic_read(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr 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 i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %12
12: ; preds = %4
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %8, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %12
br label %18
18: ; preds = %70, %17
%19 = load i32, ptr %11, align 4
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br i1 %21, label %22, label %71
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = load ptr, ptr %6, align 8
%25 = load i64, ptr %9, align 8
%26 = getelementptr i8, ptr %24, i64 %25
%27 = load i64, ptr %7, align 8
%28 = load i64, ptr %9, align 8
%29 = sub i64 %27, %28
store i64 %29, ptr %10, align 8
%30 = load i64, ptr %10, align 8
%31 = icmp eq i64 -1, %30
br i1 %31, label %32, label %52
32: ; preds = %22
%33 = load i32, ptr @errno, align 4
switch i32 %33, label %48 [
i32 131, label %34
i32 129, label %35
i32 128, label %36
i32 130, label %42
]
34: ; preds = %32
store i32 1, ptr %11, align 4
br label %51
35: ; preds = %32
br label %51
36: ; preds = %32
%37 = load ptr, ptr %8, align 8
%38 = icmp ne ptr null, %37
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load ptr, ptr %8, align 8
store i32 1, ptr %40, align 4
br label %41
41: ; preds = %39, %36
store i32 1, ptr %11, align 4
br label %51
42: ; preds = %32
%43 = load ptr, ptr %8, align 8
%44 = icmp ne ptr null, %43
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = load ptr, ptr %8, align 8
store i32 1, ptr %46, align 4
br label %47
47: ; preds = %45, %42
store i32 1, ptr %11, align 4
br label %51
48: ; preds = %32
%49 = call i32 @perror(ptr noundef @.str)
%50 = call i32 @assert(i32 noundef 0)
br label %51
51: ; preds = %48, %47, %41, %35, %34
br label %70
52: ; preds = %22
%53 = load i64, ptr %10, align 8
%54 = icmp eq i64 0, %53
br i1 %54, label %55, label %61
55: ; preds = %52
%56 = load ptr, ptr %8, align 8
%57 = icmp ne ptr null, %56
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = load ptr, ptr %8, align 8
store i32 1, ptr %59, align 4
br label %60
60: ; preds = %58, %55
store i32 1, ptr %11, align 4
br label %69
61: ; preds = %52
%62 = load i64, ptr %10, align 8
%63 = load i64, ptr %9, align 8
%64 = add i64 %63, %62
store i64 %64, ptr %9, align 8
%65 = load i64, ptr %9, align 8
%66 = load i64, ptr %7, align 8
%67 = icmp eq i64 %65, %66
%68 = zext i1 %67 to i32
store i32 %68, ptr %11, align 4
br label %69
69: ; preds = %61, %60
br label %70
70: ; preds = %69, %51
br label %18, !llvm.loop !6
71: ; preds = %18
%72 = load i64, ptr %9, align 8
br label %73
73: ; preds = %71
ret i64 %72
}
declare i32 @perror(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpurs9qntq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"atomic_io\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @atomic_read(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr 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 i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %12
12: ; preds = %4
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %8, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %11, align 4
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
br i1 %20, label %.lr.ph, label %73
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %69
%22 = load i32, ptr %5, align 4
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr i8, ptr %23, i64 %24
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %9, align 8
%28 = sub i64 %26, %27
store i64 %28, ptr %10, align 8
%29 = load i64, ptr %10, align 8
%30 = icmp eq i64 -1, %29
br i1 %30, label %31, label %51
31: ; preds = %21
%32 = load i32, ptr @errno, align 4
switch i32 %32, label %47 [
i32 131, label %33
i32 129, label %34
i32 128, label %35
i32 130, label %41
]
33: ; preds = %31
store i32 1, ptr %11, align 4
br label %50
34: ; preds = %31
br label %50
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = icmp ne ptr null, %36
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = load ptr, ptr %8, align 8
store i32 1, ptr %39, align 4
br label %40
40: ; preds = %38, %35
store i32 1, ptr %11, align 4
br label %50
41: ; preds = %31
%42 = load ptr, ptr %8, align 8
%43 = icmp ne ptr null, %42
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load ptr, ptr %8, align 8
store i32 1, ptr %45, align 4
br label %46
46: ; preds = %44, %41
store i32 1, ptr %11, align 4
br label %50
47: ; preds = %31
%48 = call i32 @perror(ptr noundef @.str)
%49 = call i32 @assert(i32 noundef 0)
br label %50
50: ; preds = %47, %46, %40, %34, %33
br label %69
51: ; preds = %21
%52 = load i64, ptr %10, align 8
%53 = icmp eq i64 0, %52
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load ptr, ptr %8, align 8
%56 = icmp ne ptr null, %55
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load ptr, ptr %8, align 8
store i32 1, ptr %58, align 4
br label %59
59: ; preds = %57, %54
store i32 1, ptr %11, align 4
br label %68
60: ; preds = %51
%61 = load i64, ptr %10, align 8
%62 = load i64, ptr %9, align 8
%63 = add i64 %62, %61
store i64 %63, ptr %9, align 8
%64 = load i64, ptr %9, align 8
%65 = load i64, ptr %7, align 8
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
store i32 %67, ptr %11, align 4
br label %68
68: ; preds = %60, %59
br label %69
69: ; preds = %68, %50
%70 = load i32, ptr %11, align 4
%71 = icmp ne i32 %70, 0
%72 = xor i1 %71, true
br i1 %72, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %73
73: ; preds = %._crit_edge, %17
%74 = load i64, ptr %9, align 8
br label %75
75: ; preds = %73
ret i64 %74
}
declare i32 @perror(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6ivz1bw_.c'
source_filename = "/tmp/tmp6ivz1bw_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_gettid = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ivz1bw_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_gettid = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_uo0e6ex.c'
source_filename = "/tmp/tmp_uo0e6ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"NOT IMPLEMENTED:pa_thread_free_nojoin\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_thread_free_nojoin() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_uo0e6ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"NOT IMPLEMENTED:pa_thread_free_nojoin\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_thread_free_nojoin() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzihij93p.c'
source_filename = "/tmp/tmpzihij93p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XFocusInEvent_detail(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzihij93p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XFocusInEvent_detail(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptqvddhdj.c'
source_filename = "/tmp/tmptqvddhdj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"5-DATA\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c" \0A %d\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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %11, %0
%7 = load ptr, ptr %2, align 8
%8 = call i64 @fscanf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %3)
%9 = load i64, ptr @EOF, align 8
%10 = icmp ne i64 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %6
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, %12
store i32 %14, ptr %4, align 4
br label %6, !llvm.loop !6
15: ; preds = %6
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fclose(ptr noundef %16)
%18 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %18, ptr %2, align 8
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %4, align 4
%21 = call i32 @fprintf(ptr noundef %19, ptr noundef @.str.4, i32 noundef %20)
%22 = load ptr, ptr %2, align 8
%23 = call i32 @fclose(ptr noundef %22)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptqvddhdj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"5-DATA\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c" \0A %d\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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @fscanf(ptr noundef %6, ptr noundef @.str.2, ptr noundef %3)
%8 = load i64, ptr @EOF, align 8
%9 = icmp ne i64 %7, %8
br i1 %9, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %4, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i64 @fscanf(ptr noundef %14, ptr noundef @.str.2, ptr noundef %3)
%16 = load i64, ptr @EOF, align 8
%17 = icmp ne i64 %15, %16
br i1 %17, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %18
18: ; preds = %._crit_edge, %0
%19 = load ptr, ptr %2, align 8
%20 = call i32 @fclose(ptr noundef %19)
%21 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %21, ptr %2, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %4, align 4
%24 = call i32 @fprintf(ptr noundef %22, ptr noundef @.str.4, i32 noundef %23)
%25 = load ptr, ptr %2, align 8
%26 = call i32 @fclose(ptr noundef %25)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbp9c7dlh.c'
source_filename = "/tmp/tmpbp9c7dlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"MPI Stub WARNING: Should not rsend message to self\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MPI_Rsend(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%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
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbp9c7dlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"MPI Stub WARNING: Should not rsend message to self\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MPI_Rsend(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%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
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%13 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpti_oy8ql.c'
source_filename = "/tmp/tmpti_oy8ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @io_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i64 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i64, ptr @errno, align 8
%17 = load i64, ptr @EAGAIN, align 8
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 -3, ptr %4, align 4
br label %22
20: ; preds = %15, %3
%21 = load i32, ptr %8, align 4
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %20, %19
%23 = load i32, ptr %4, align 4
ret i32 %23
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpti_oy8ql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @io_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = call i32 @write(i32 noundef %9, ptr noundef %10, i64 noundef %11)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i64, ptr @errno, align 8
%17 = load i64, ptr @EAGAIN, align 8
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 -3, ptr %4, align 4
br label %22
20: ; preds = %15, %3
%21 = load i32, ptr %8, align 4
store i32 %21, ptr %4, align 4
br label %22
22: ; preds = %20, %19
%23 = load i32, ptr %4, align 4
ret i32 %23
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyvqbvgxs.c'
source_filename = "/tmp/tmpyvqbvgxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT64_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @use_int64_max_Good() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = load i64, ptr @INT64_MAX, align 8
store i64 %4, ptr %2, align 8
%5 = load i64, ptr @INT64_MAX, align 8
%6 = sub i64 %5, 5
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = load i64, ptr %3, align 8
%9 = sub i64 %7, %8
%10 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 %9
store i8 0, ptr %10, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyvqbvgxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT64_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @use_int64_max_Good() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = load i64, ptr @INT64_MAX, align 8
store i64 %4, ptr %2, align 8
%5 = load i64, ptr @INT64_MAX, align 8
%6 = sub i64 %5, 5
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %2, align 8
%8 = load i64, ptr %3, align 8
%9 = sub i64 %7, %8
%10 = getelementptr inbounds [10 x i8], ptr %1, i64 0, i64 %9
store i8 0, ptr %10, align 1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_qis7huq.c'
source_filename = "/tmp/tmp_qis7huq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freqawav(double noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store double %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
%17 = load double, ptr %9, align 8
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %11, align 4
%20 = load i32, ptr %12, align 4
%21 = load ptr, ptr %13, align 8
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = call i32 @freqwave(double noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %16, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %7
%27 = load i32, ptr %16, align 4
store i32 %27, ptr %8, align 4
br label %37
28: ; preds = %7
%29 = load double, ptr %9, align 8
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %14, align 8
%34 = load ptr, ptr %14, align 8
%35 = load ptr, ptr %15, align 8
%36 = call i32 @waveawav(double noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35)
store i32 %36, ptr %8, align 4
br label %37
37: ; preds = %28, %26
%38 = load i32, ptr %8, align 4
ret i32 %38
}
declare i32 @freqwave(double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @waveawav(double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qis7huq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freqawav(double noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store double %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
%17 = load double, ptr %9, align 8
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %11, align 4
%20 = load i32, ptr %12, align 4
%21 = load ptr, ptr %13, align 8
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = call i32 @freqwave(double noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %16, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %7
%27 = load i32, ptr %16, align 4
store i32 %27, ptr %8, align 4
br label %37
28: ; preds = %7
%29 = load double, ptr %9, align 8
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %12, align 4
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %14, align 8
%34 = load ptr, ptr %14, align 8
%35 = load ptr, ptr %15, align 8
%36 = call i32 @waveawav(double noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35)
store i32 %36, ptr %8, align 4
br label %37
37: ; preds = %28, %26
%38 = load i32, ptr %8, align 4
ret i32 %38
}
declare i32 @freqwave(double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @waveawav(double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6a53lcsd.c'
source_filename = "/tmp/tmp6a53lcsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Could not open %s to read\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Could not open %s to write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @copyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [100000 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %45
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.2)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load ptr, ptr %5, align 8
%24 = call i32 @printf(ptr noundef @.str.3, ptr noundef %23)
store i32 -1, ptr %3, align 4
br label %45
25: ; preds = %17
br label %26
26: ; preds = %25, %33
%27 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fread(ptr noundef %27, i32 noundef 1, i32 noundef 100000, ptr noundef %28)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %26
br label %38
33: ; preds = %26
%34 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %7, align 8
%37 = call i32 @fwrite(ptr noundef %34, i32 noundef 1, i32 noundef %35, ptr noundef %36)
br label %26
38: ; preds = %32
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = call i32 @fclose(ptr noundef %41)
%43 = load ptr, ptr %5, align 8
%44 = call i32 @chmod(ptr noundef %43, i32 noundef 420)
store i32 0, ptr %3, align 4
br label %45
45: ; preds = %38, %22, %14
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6a53lcsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Could not open %s to read\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Could not open %s to write\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @copyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [100000 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @printf(ptr noundef @.str.1, ptr noundef %15)
store i32 -1, ptr %3, align 4
br label %48
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.2)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load ptr, ptr %5, align 8
%24 = call i32 @printf(ptr noundef @.str.3, ptr noundef %23)
store i32 -1, ptr %3, align 4
br label %48
25: ; preds = %17
%26 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%27 = load ptr, ptr %6, align 8
%28 = call i32 @fread(ptr noundef %26, i32 noundef 1, i32 noundef 100000, ptr noundef %27)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp sle i32 %29, 0
br i1 %30, label %31, label %.lr.ph
.lr.ph: ; preds = %25
br label %32
._crit_edge: ; preds = %32
br label %31
31: ; preds = %._crit_edge, %25
br label %41
32: ; preds = %.lr.ph, %32
%33 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%34 = load i32, ptr %9, align 4
%35 = load ptr, ptr %7, align 8
%36 = call i32 @fwrite(ptr noundef %33, i32 noundef 1, i32 noundef %34, ptr noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fread(ptr noundef %26, i32 noundef 1, i32 noundef 100000, ptr noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp sle i32 %39, 0
br i1 %40, label %._crit_edge, label %32
41: ; preds = %31
%42 = load ptr, ptr %6, align 8
%43 = call i32 @fclose(ptr noundef %42)
%44 = load ptr, ptr %7, align 8
%45 = call i32 @fclose(ptr noundef %44)
%46 = load ptr, ptr %5, align 8
%47 = call i32 @chmod(ptr noundef %46, i32 noundef 420)
store i32 0, ptr %3, align 4
br label %48
48: ; preds = %41, %22, %14
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp2akqvlzn.c'
source_filename = "/tmp/tmp2akqvlzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
store i32 %5, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %4
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @system(ptr noundef @.str.1)
br label %14
12: ; preds = %4
%13 = call i32 @printf(ptr noundef @.str.2)
br label %14
14: ; preds = %12, %9
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 1, %15
%17 = zext i1 %16 to i32
%18 = icmp sle i32 %17, 2
br i1 %18, label %4, label %19, !llvm.loop !6
19: ; preds = %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2akqvlzn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pause\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
store i32 %5, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %4
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @system(ptr noundef @.str.1)
br label %14
12: ; preds = %4
%13 = call i32 @printf(ptr noundef @.str.2)
br label %14
14: ; preds = %12, %9
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 1, %15
%17 = zext i1 %16 to i32
%18 = icmp sle i32 %17, 2
br i1 %18, label %4, label %19, !llvm.loop !6
19: ; preds = %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgnc7wysi.c'
source_filename = "/tmp/tmpgnc7wysi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"sprintf (%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c", %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_sprintf(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @output(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %21, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %24
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 = call i32 @output(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
br label %10, !llvm.loop !6
24: ; preds = %10
ret void
}
declare i32 @output(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/tmpgnc7wysi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"sprintf (%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c", %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output_sprintf(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @output(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %26
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %20
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 @output(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %3
ret void
}
declare i32 @output(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/tmpm42fkchp.c'
source_filename = "/tmp/tmpm42fkchp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"cat %s | %s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fifo_open_input_pipe(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str.1)
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(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/tmpm42fkchp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"cat %s | %s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fifo_open_input_pipe(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%11 = call ptr @popen(ptr noundef %10, ptr noundef @.str.1)
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @popen(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/tmpnct5234p.c'
source_filename = "/tmp/tmpnct5234p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_fnckey(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %35
8: ; preds = %2
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %16, %8
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 20
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @put_fnckey1(i32 noundef %13, ptr noundef %14)
br label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 32
store ptr %20, ptr %4, align 8
br label %9, !llvm.loop !6
21: ; preds = %9
store i32 0, ptr %5, align 4
br label %22
22: ; preds = %29, %21
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 12
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load i32, ptr %5, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i32 @put_fnckey2(i32 noundef %26, ptr noundef %27)
br label %29
29: ; preds = %25
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 6
store ptr %33, ptr %4, align 8
br label %22, !llvm.loop !8
34: ; preds = %22
br label %35
35: ; preds = %34, %2
%36 = load i32, ptr %3, align 4
%37 = icmp sge i32 %36, 1
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = load i32, ptr %3, align 4
%40 = icmp sle i32 %39, 20
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i32, ptr %3, align 4
%43 = sub nsw i32 %42, 1
%44 = load ptr, ptr %4, align 8
%45 = call i32 @put_fnckey1(i32 noundef %43, ptr noundef %44)
br label %46
46: ; preds = %41, %38, %35
%47 = load i32, ptr %3, align 4
%48 = icmp sge i32 %47, 21
br i1 %48, label %49, label %57
49: ; preds = %46
%50 = load i32, ptr %3, align 4
%51 = icmp sle i32 %50, 32
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr %3, align 4
%54 = sub nsw i32 %53, 21
%55 = load ptr, ptr %4, align 8
%56 = call i32 @put_fnckey2(i32 noundef %54, ptr noundef %55)
br label %57
57: ; preds = %52, %49, %46
ret void
}
declare i32 @put_fnckey1(i32 noundef, ptr noundef) #1
declare i32 @put_fnckey2(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/tmpnct5234p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_fnckey(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %37
8: ; preds = %2
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 20
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %8
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @put_fnckey1(i32 noundef %12, ptr noundef %13)
br label %15
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 32
store ptr %19, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %20, 20
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %8
store i32 0, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 12
br i1 %24, label %.lr.ph2, label %36
.lr.ph2: ; preds = %22
br label %25
25: ; preds = %.lr.ph2, %29
%26 = load i32, ptr %5, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i32 @put_fnckey2(i32 noundef %26, ptr noundef %27)
br label %29
29: ; preds = %25
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 6
store ptr %33, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %34, 12
br i1 %35, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %36
36: ; preds = %._crit_edge3, %22
br label %37
37: ; preds = %36, %2
%38 = load i32, ptr %3, align 4
%39 = icmp sge i32 %38, 1
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load i32, ptr %3, align 4
%42 = icmp sle i32 %41, 20
br i1 %42, label %43, label %48
43: ; preds = %40
%44 = load i32, ptr %3, align 4
%45 = sub nsw i32 %44, 1
%46 = load ptr, ptr %4, align 8
%47 = call i32 @put_fnckey1(i32 noundef %45, ptr noundef %46)
br label %48
48: ; preds = %43, %40, %37
%49 = load i32, ptr %3, align 4
%50 = icmp sge i32 %49, 21
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %3, align 4
%53 = icmp sle i32 %52, 32
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 21
%57 = load ptr, ptr %4, align 8
%58 = call i32 @put_fnckey2(i32 noundef %56, ptr noundef %57)
br label %59
59: ; preds = %54, %51, %48
ret void
}
declare i32 @put_fnckey1(i32 noundef, ptr noundef) #1
declare i32 @put_fnckey2(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/tmpe5yjt2gm.c'
source_filename = "/tmp/tmpe5yjt2gm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: 2nash A B [outfile]\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"lrsnash %s %s > out%i\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"lrsnash %s %s finished first\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"player numbers will be reversed in output\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"output file: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"/bin/mv -f out%i %s\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"output file: out\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"/bin/mv -f out%i out\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"/bin/rm -f out%i\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"the other process will be \00", align 1
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca [250 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %6, align 8
%25 = alloca i32, i64 %23, align 16
store i64 %23, ptr %7, align 8
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 3
br i1 %27, label %31, label %28
28: ; preds = %2
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %29, 4
br i1 %30, label %31, label %35
31: ; preds = %28, %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%33 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %33)
%34 = load i32, ptr %3, align 4
ret i32 %34
35: ; preds = %28
store i32 1, ptr %11, align 4
br label %36
36: ; preds = %90, %35
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %37, 3
br i1 %38, label %39, label %93
39: ; preds = %36
%40 = call i32 (...) @fork()
%41 = load i32, ptr %11, align 4
%42 = sub nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %25, i64 %43
store i32 %40, ptr %44, align 4
%45 = load i32, ptr %11, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %25, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %55
51: ; preds = %39
%52 = call i32 @perror(ptr noundef @.str.1)
%53 = load i32, ptr @EXIT_FAILURE, align 4
%54 = call i32 @exit(i32 noundef %53) #4
unreachable
55: ; preds = %39
%56 = load i32, ptr %11, align 4
%57 = sub nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %25, i64 %58
%60 = load i32, ptr %59, align 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %89
62: ; preds = %55
%63 = load i32, ptr %11, align 4
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 1
%69 = load ptr, ptr %68, align 8
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 2
%72 = load ptr, ptr %71, align 8
%73 = load i32, ptr %11, align 4
%74 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %66, ptr noundef @.str.2, ptr noundef %69, ptr noundef %72, i32 noundef %73)
store i32 %74, ptr %13, align 4
br label %85
75: ; preds = %62
%76 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds ptr, ptr %77, i64 2
%79 = load ptr, ptr %78, align 8
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 1
%82 = load ptr, ptr %81, align 8
%83 = load i32, ptr %11, align 4
%84 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %76, ptr noundef @.str.2, ptr noundef %79, ptr noundef %82, i32 noundef %83)
store i32 %84, ptr %14, align 4
br label %85
85: ; preds = %75, %65
%86 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%87 = call i32 @system(ptr noundef %86)
store i32 %87, ptr %15, align 4
%88 = call i32 @_exit(i32 noundef 0) #4
unreachable
89: ; preds = %55
br label %90
90: ; preds = %89
%91 = load i32, ptr %11, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %11, align 4
br label %36, !llvm.loop !6
93: ; preds = %36
%94 = call i32 @wait(ptr noundef %10)
store i32 %94, ptr %8, align 4
store i32 1, ptr %12, align 4
br label %95
95: ; preds = %155, %93
%96 = load i32, ptr %12, align 4
%97 = icmp slt i32 %96, 3
br i1 %97, label %98, label %158
98: ; preds = %95
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr %12, align 4
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %25, i64 %102
%104 = load i32, ptr %103, align 4
%105 = icmp eq i32 %99, %104
br i1 %105, label %106, label %148
106: ; preds = %98
%107 = load i32, ptr %12, align 4
%108 = icmp eq i32 %107, 1
br i1 %108, label %109, label %117
109: ; preds = %106
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds ptr, ptr %110, i64 1
%112 = load ptr, ptr %111, align 8
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds ptr, ptr %113, i64 2
%115 = load ptr, ptr %114, align 8
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %112, ptr noundef %115)
br label %126
117: ; preds = %106
%118 = load ptr, ptr %5, align 8
%119 = getelementptr inbounds ptr, ptr %118, i64 2
%120 = load ptr, ptr %119, align 8
%121 = load ptr, ptr %5, align 8
%122 = getelementptr inbounds ptr, ptr %121, i64 1
%123 = load ptr, ptr %122, align 8
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %120, ptr noundef %123)
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %126
126: ; preds = %117, %109
%127 = load i32, ptr %4, align 4
%128 = icmp eq i32 %127, 4
br i1 %128, label %129, label %140
129: ; preds = %126
%130 = load ptr, ptr %5, align 8
%131 = getelementptr inbounds ptr, ptr %130, i64 3
%132 = load ptr, ptr %131, align 8
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %132)
%134 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%135 = load i32, ptr %12, align 4
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 3
%138 = load ptr, ptr %137, align 8
%139 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %134, ptr noundef @.str.6, i32 noundef %135, ptr noundef %138)
store i32 %139, ptr %16, align 4
br label %145
140: ; preds = %126
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%142 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%143 = load i32, ptr %12, align 4
%144 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %142, ptr noundef @.str.8, i32 noundef %143)
store i32 %144, ptr %17, align 4
br label %145
145: ; preds = %140, %129
%146 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%147 = call i32 @system(ptr noundef %146)
store i32 %147, ptr %18, align 4
br label %154
148: ; preds = %98
%149 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%150 = load i32, ptr %12, align 4
%151 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %149, ptr noundef @.str.9, i32 noundef %150)
store i32 %151, ptr %19, align 4
%152 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%153 = call i32 @system(ptr noundef %152)
store i32 %153, ptr %20, align 4
br label %154
154: ; preds = %148, %145
br label %155
155: ; preds = %154
%156 = load i32, ptr %12, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %12, align 4
br label %95, !llvm.loop !8
158: ; preds = %95
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%160 = load i32, ptr @stdout, align 4
%161 = call i32 @fflush(i32 noundef %160)
%162 = call i32 @kill(i32 noundef 0, i32 noundef 9)
%163 = load i32, ptr @EXIT_SUCCESS, align 4
%164 = call i32 @exit(i32 noundef %163) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fork(...) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2
declare i32 @system(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @wait(ptr noundef) #2
declare i32 @fflush(i32 noundef) #2
declare i32 @kill(i32 noundef, i32 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" }
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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe5yjt2gm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: 2nash A B [outfile]\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"lrsnash %s %s > out%i\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"lrsnash %s %s finished first\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"player numbers will be reversed in output\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"output file: %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"/bin/mv -f out%i %s\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"output file: out\0A\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"/bin/mv -f out%i out\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"/bin/rm -f out%i\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"the other process will be \00", align 1
@stdout = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca [250 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
%23 = zext i32 %22 to i64
%24 = call ptr @llvm.stacksave()
store ptr %24, ptr %6, align 8
%25 = alloca i32, i64 %23, align 16
store i64 %23, ptr %7, align 8
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 3
br i1 %27, label %31, label %28
28: ; preds = %2
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %29, 4
br i1 %30, label %31, label %35
31: ; preds = %28, %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%33 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %33)
%34 = load i32, ptr %3, align 4
ret i32 %34
35: ; preds = %28
store i32 1, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = icmp slt i32 %36, 3
br i1 %37, label %.lr.ph, label %94
.lr.ph: ; preds = %35
br label %38
38: ; preds = %.lr.ph, %89
%39 = call i32 (...) @fork()
%40 = load i32, ptr %11, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %25, i64 %42
store i32 %39, ptr %43, align 4
%44 = load i32, ptr %11, align 4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %25, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %54
50: ; preds = %38
%51 = call i32 @perror(ptr noundef @.str.1)
%52 = load i32, ptr @EXIT_FAILURE, align 4
%53 = call i32 @exit(i32 noundef %52) #4
unreachable
54: ; preds = %38
%55 = load i32, ptr %11, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %25, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %88
61: ; preds = %54
%62 = load i32, ptr %11, align 4
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %74
64: ; preds = %61
%65 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 2
%71 = load ptr, ptr %70, align 8
%72 = load i32, ptr %11, align 4
%73 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %65, ptr noundef @.str.2, ptr noundef %68, ptr noundef %71, i32 noundef %72)
store i32 %73, ptr %13, align 4
br label %84
74: ; preds = %61
%75 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 2
%78 = load ptr, ptr %77, align 8
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 1
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %11, align 4
%83 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %75, ptr noundef @.str.2, ptr noundef %78, ptr noundef %81, i32 noundef %82)
store i32 %83, ptr %14, align 4
br label %84
84: ; preds = %74, %64
%85 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%86 = call i32 @system(ptr noundef %85)
store i32 %86, ptr %15, align 4
%87 = call i32 @_exit(i32 noundef 0) #4
unreachable
88: ; preds = %54
br label %89
89: ; preds = %88
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %11, align 4
%92 = load i32, ptr %11, align 4
%93 = icmp slt i32 %92, 3
br i1 %93, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %94
94: ; preds = %._crit_edge, %35
%95 = call i32 @wait(ptr noundef %10)
store i32 %95, ptr %8, align 4
store i32 1, ptr %12, align 4
%96 = load i32, ptr %12, align 4
%97 = icmp slt i32 %96, 3
br i1 %97, label %.lr.ph2, label %160
.lr.ph2: ; preds = %94
br label %98
98: ; preds = %.lr.ph2, %155
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr %12, align 4
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %25, i64 %102
%104 = load i32, ptr %103, align 4
%105 = icmp eq i32 %99, %104
br i1 %105, label %106, label %148
106: ; preds = %98
%107 = load i32, ptr %12, align 4
%108 = icmp eq i32 %107, 1
br i1 %108, label %109, label %117
109: ; preds = %106
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds ptr, ptr %110, i64 1
%112 = load ptr, ptr %111, align 8
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds ptr, ptr %113, i64 2
%115 = load ptr, ptr %114, align 8
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %112, ptr noundef %115)
br label %126
117: ; preds = %106
%118 = load ptr, ptr %5, align 8
%119 = getelementptr inbounds ptr, ptr %118, i64 2
%120 = load ptr, ptr %119, align 8
%121 = load ptr, ptr %5, align 8
%122 = getelementptr inbounds ptr, ptr %121, i64 1
%123 = load ptr, ptr %122, align 8
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %120, ptr noundef %123)
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %126
126: ; preds = %117, %109
%127 = load i32, ptr %4, align 4
%128 = icmp eq i32 %127, 4
br i1 %128, label %129, label %140
129: ; preds = %126
%130 = load ptr, ptr %5, align 8
%131 = getelementptr inbounds ptr, ptr %130, i64 3
%132 = load ptr, ptr %131, align 8
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %132)
%134 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%135 = load i32, ptr %12, align 4
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 3
%138 = load ptr, ptr %137, align 8
%139 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %134, ptr noundef @.str.6, i32 noundef %135, ptr noundef %138)
store i32 %139, ptr %16, align 4
br label %145
140: ; preds = %126
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%142 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%143 = load i32, ptr %12, align 4
%144 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %142, ptr noundef @.str.8, i32 noundef %143)
store i32 %144, ptr %17, align 4
br label %145
145: ; preds = %140, %129
%146 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%147 = call i32 @system(ptr noundef %146)
store i32 %147, ptr %18, align 4
br label %154
148: ; preds = %98
%149 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%150 = load i32, ptr %12, align 4
%151 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %149, ptr noundef @.str.9, i32 noundef %150)
store i32 %151, ptr %19, align 4
%152 = getelementptr inbounds [250 x i8], ptr %9, i64 0, i64 0
%153 = call i32 @system(ptr noundef %152)
store i32 %153, ptr %20, align 4
br label %154
154: ; preds = %148, %145
br label %155
155: ; preds = %154
%156 = load i32, ptr %12, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %12, align 4
%158 = load i32, ptr %12, align 4
%159 = icmp slt i32 %158, 3
br i1 %159, label %98, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %155
br label %160
160: ; preds = %._crit_edge3, %94
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%162 = load i32, ptr @stdout, align 4
%163 = call i32 @fflush(i32 noundef %162)
%164 = call i32 @kill(i32 noundef 0, i32 noundef 9)
%165 = load i32, ptr @EXIT_SUCCESS, align 4
%166 = call i32 @exit(i32 noundef %165) #4
unreachable
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fork(...) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2
declare i32 @system(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
declare i32 @wait(ptr noundef) #2
declare i32 @fflush(i32 noundef) #2
declare i32 @kill(i32 noundef, i32 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" }
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 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeni8yyql.c'
source_filename = "/tmp/tmpeni8yyql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @exception(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 @debugf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @destroy_shared_resources()
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @debugf(ptr noundef, ptr noundef) #1
declare i32 @destroy_shared_resources(...) #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/tmpeni8yyql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @exception(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 @debugf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @destroy_shared_resources()
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @debugf(ptr noundef, ptr noundef) #1
declare i32 @destroy_shared_resources(...) #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/tmpodfbv_05.c'
source_filename = "/tmp/tmpodfbv_05.c"
target datalayout = "e-m:e-p270: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/tmpodfbv_05.c"
target datalayout = "e-m:e-p270: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/tmpbfex2m1s.c'
source_filename = "/tmp/tmpbfex2m1s.c"
target datalayout = "e-m:e-p270: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/tmpbfex2m1s.c"
target datalayout = "e-m:e-p270: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/tmpa8ooa3q7.c'
source_filename = "/tmp/tmpa8ooa3q7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"%s >%s< not found!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @par_check_word_flag(i32 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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %30, %4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %33
14: ; preds = %10
%15 = load ptr, ptr %7, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %14
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 @cdoWarning(ptr noundef @.str, ptr noundef %22, ptr noundef %27)
br label %29
29: ; preds = %21, %14
br label %30
30: ; preds = %29
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %9, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
ret void
}
declare i32 @cdoWarning(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/tmpa8ooa3q7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"%s >%s< not found!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @par_check_word_flag(i32 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 i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %35
.lr.ph: ; preds = %4
br label %13
13: ; preds = %.lr.ph, %29
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %13
%21 = load ptr, ptr %8, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i32 @cdoWarning(ptr noundef @.str, ptr noundef %21, ptr noundef %26)
br label %28
28: ; preds = %20, %13
br label %29
29: ; preds = %28
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %4
ret void
}
declare i32 @cdoWarning(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/tmp3sxw0ks4.c'
source_filename = "/tmp/tmp3sxw0ks4.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { ptr, ptr }
%struct.TYPE_2__ = type { i64 }
%struct.sockaddr_ll = type { i64, ptr }
@AF_PACKET = dso_local global i64 0, align 8
@ARPHRD_INFINIBAND = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [45 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
@ARPHRD_ETHER = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [35 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_macs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [32 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %8, align 4
%10 = call i32 @getifaddrs(ptr noundef %6)
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %5, align 8
br label %12
12: ; preds = %133, %2
%13 = load ptr, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %137
15: ; preds = %12
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds %struct.ifaddrs, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %18, i32 0, i32 0
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr @AF_PACKET, align 8
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %15
br label %133
24: ; preds = %15
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.ifaddrs, ptr %25, i32 0, i32 0
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.sockaddr_ll, ptr %28, i32 0, i32 0
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr @ARPHRD_INFINIBAND, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %76
33: ; preds = %24
%34 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds %struct.sockaddr_ll, ptr %35, i32 0, i32 1
%37 = load ptr, ptr %36, align 8
%38 = getelementptr inbounds i32, ptr %37, i64 12
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds %struct.sockaddr_ll, ptr %40, i32 0, i32 1
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 13
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds %struct.sockaddr_ll, ptr %45, i32 0, i32 1
%47 = load ptr, ptr %46, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 14
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %7, align 8
%51 = getelementptr inbounds %struct.sockaddr_ll, ptr %50, i32 0, i32 1
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 15
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %7, align 8
%56 = getelementptr inbounds %struct.sockaddr_ll, ptr %55, i32 0, i32 1
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds i32, ptr %57, i64 16
%59 = load i32, ptr %58, align 4
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds %struct.sockaddr_ll, ptr %60, i32 0, i32 1
%62 = load ptr, ptr %61, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 17
%64 = load i32, ptr %63, align 4
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds %struct.sockaddr_ll, ptr %65, i32 0, i32 1
%67 = load ptr, ptr %66, align 8
%68 = getelementptr inbounds i32, ptr %67, i64 18
%69 = load i32, ptr %68, align 4
%70 = load ptr, ptr %7, align 8
%71 = getelementptr inbounds %struct.sockaddr_ll, ptr %70, i32 0, i32 1
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds i32, ptr %72, i64 19
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, i32, ptr, i32, i32, i32, i32, i32, i32, ...) @snprintf(ptr noundef %34, i32 noundef 32, ptr noundef @.str, i32 noundef %39, i32 noundef %44, i32 noundef %49, i32 noundef %54, i32 noundef %59, i32 noundef %64, i32 noundef %69, i32 noundef %74)
br label %117
76: ; preds = %24
%77 = load ptr, ptr %7, align 8
%78 = getelementptr inbounds %struct.sockaddr_ll, ptr %77, i32 0, i32 0
%79 = load i64, ptr %78, align 8
%80 = load i64, ptr @ARPHRD_ETHER, align 8
%81 = icmp eq i64 %79, %80
br i1 %81, label %82, label %115
82: ; preds = %76
%83 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%84 = load ptr, ptr %7, align 8
%85 = getelementptr inbounds %struct.sockaddr_ll, ptr %84, i32 0, i32 1
%86 = load ptr, ptr %85, align 8
%87 = getelementptr inbounds i32, ptr %86, i64 0
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %7, align 8
%90 = getelementptr inbounds %struct.sockaddr_ll, ptr %89, i32 0, i32 1
%91 = load ptr, ptr %90, align 8
%92 = getelementptr inbounds i32, ptr %91, i64 1
%93 = load i32, ptr %92, align 4
%94 = load ptr, ptr %7, align 8
%95 = getelementptr inbounds %struct.sockaddr_ll, ptr %94, i32 0, i32 1
%96 = load ptr, ptr %95, align 8
%97 = getelementptr inbounds i32, ptr %96, i64 2
%98 = load i32, ptr %97, align 4
%99 = load ptr, ptr %7, align 8
%100 = getelementptr inbounds %struct.sockaddr_ll, ptr %99, i32 0, i32 1
%101 = load ptr, ptr %100, align 8
%102 = getelementptr inbounds i32, ptr %101, i64 3
%103 = load i32, ptr %102, align 4
%104 = load ptr, ptr %7, align 8
%105 = getelementptr inbounds %struct.sockaddr_ll, ptr %104, i32 0, i32 1
%106 = load ptr, ptr %105, align 8
%107 = getelementptr inbounds i32, ptr %106, i64 4
%108 = load i32, ptr %107, align 4
%109 = load ptr, ptr %7, align 8
%110 = getelementptr inbounds %struct.sockaddr_ll, ptr %109, i32 0, i32 1
%111 = load ptr, ptr %110, align 8
%112 = getelementptr inbounds i32, ptr %111, i64 5
%113 = load i32, ptr %112, align 4
%114 = call i32 (ptr, i32, ptr, i32, i32, i32, i32, i32, i32, ...) @snprintf(ptr noundef %83, i32 noundef 32, ptr noundef @.str.1, i32 noundef %88, i32 noundef %93, i32 noundef %98, i32 noundef %103, i32 noundef %108, i32 noundef %113)
br label %116
115: ; preds = %76
br label %133
116: ; preds = %82
br label %117
117: ; preds = %116, %33
%118 = load ptr, ptr %3, align 8
%119 = load i32, ptr %8, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i8, ptr %118, i64 %120
%122 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%123 = load i32, ptr %4, align 4
%124 = load i32, ptr %8, align 4
%125 = sub nsw i32 %123, %124
%126 = call i32 @strncpy(ptr noundef %121, ptr noundef %122, i32 noundef %125)
%127 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%128 = call i64 @strnlen(ptr noundef %127, i32 noundef 32)
%129 = load i32, ptr %8, align 4
%130 = sext i32 %129 to i64
%131 = add nsw i64 %130, %128
%132 = trunc i64 %131 to i32
store i32 %132, ptr %8, align 4
br label %133
133: ; preds = %117, %115, %23
%134 = load ptr, ptr %5, align 8
%135 = getelementptr inbounds %struct.ifaddrs, ptr %134, i32 0, i32 1
%136 = load ptr, ptr %135, align 8
store ptr %136, ptr %5, align 8
br label %12, !llvm.loop !6
137: ; preds = %12
%138 = load ptr, ptr %6, align 8
%139 = call i32 @freeifaddrs(ptr noundef %138)
ret void
}
declare i32 @getifaddrs(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strnlen(ptr noundef, i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3sxw0ks4.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { ptr, ptr }
%struct.TYPE_2__ = type { i64 }
%struct.sockaddr_ll = type { i64, ptr }
@AF_PACKET = dso_local global i64 0, align 8
@ARPHRD_INFINIBAND = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [45 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
@ARPHRD_ETHER = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [35 x i8] c"/mac=%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_macs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [32 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %8, align 4
%10 = call i32 @getifaddrs(ptr noundef %6)
%11 = load ptr, ptr %6, align 8
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %138
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %132
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds %struct.ifaddrs, ptr %15, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
%18 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = load i64, ptr @AF_PACKET, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
br label %132
23: ; preds = %14
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds %struct.ifaddrs, ptr %24, i32 0, i32 0
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %7, align 8
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.sockaddr_ll, ptr %27, i32 0, i32 0
%29 = load i64, ptr %28, align 8
%30 = load i64, ptr @ARPHRD_INFINIBAND, align 8
%31 = icmp eq i64 %29, %30
br i1 %31, label %32, label %75
32: ; preds = %23
%33 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds %struct.sockaddr_ll, ptr %34, i32 0, i32 1
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 12
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %7, align 8
%40 = getelementptr inbounds %struct.sockaddr_ll, ptr %39, i32 0, i32 1
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds i32, ptr %41, i64 13
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds %struct.sockaddr_ll, ptr %44, i32 0, i32 1
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds i32, ptr %46, i64 14
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds %struct.sockaddr_ll, ptr %49, i32 0, i32 1
%51 = load ptr, ptr %50, align 8
%52 = getelementptr inbounds i32, ptr %51, i64 15
%53 = load i32, ptr %52, align 4
%54 = load ptr, ptr %7, align 8
%55 = getelementptr inbounds %struct.sockaddr_ll, ptr %54, i32 0, i32 1
%56 = load ptr, ptr %55, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 16
%58 = load i32, ptr %57, align 4
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds %struct.sockaddr_ll, ptr %59, i32 0, i32 1
%61 = load ptr, ptr %60, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 17
%63 = load i32, ptr %62, align 4
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds %struct.sockaddr_ll, ptr %64, i32 0, i32 1
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 18
%68 = load i32, ptr %67, align 4
%69 = load ptr, ptr %7, align 8
%70 = getelementptr inbounds %struct.sockaddr_ll, ptr %69, i32 0, i32 1
%71 = load ptr, ptr %70, align 8
%72 = getelementptr inbounds i32, ptr %71, i64 19
%73 = load i32, ptr %72, align 4
%74 = call i32 (ptr, i32, ptr, i32, i32, i32, i32, i32, i32, ...) @snprintf(ptr noundef %33, i32 noundef 32, ptr noundef @.str, i32 noundef %38, i32 noundef %43, i32 noundef %48, i32 noundef %53, i32 noundef %58, i32 noundef %63, i32 noundef %68, i32 noundef %73)
br label %116
75: ; preds = %23
%76 = load ptr, ptr %7, align 8
%77 = getelementptr inbounds %struct.sockaddr_ll, ptr %76, i32 0, i32 0
%78 = load i64, ptr %77, align 8
%79 = load i64, ptr @ARPHRD_ETHER, align 8
%80 = icmp eq i64 %78, %79
br i1 %80, label %81, label %114
81: ; preds = %75
%82 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%83 = load ptr, ptr %7, align 8
%84 = getelementptr inbounds %struct.sockaddr_ll, ptr %83, i32 0, i32 1
%85 = load ptr, ptr %84, align 8
%86 = getelementptr inbounds i32, ptr %85, i64 0
%87 = load i32, ptr %86, align 4
%88 = load ptr, ptr %7, align 8
%89 = getelementptr inbounds %struct.sockaddr_ll, ptr %88, i32 0, i32 1
%90 = load ptr, ptr %89, align 8
%91 = getelementptr inbounds i32, ptr %90, i64 1
%92 = load i32, ptr %91, align 4
%93 = load ptr, ptr %7, align 8
%94 = getelementptr inbounds %struct.sockaddr_ll, ptr %93, i32 0, i32 1
%95 = load ptr, ptr %94, align 8
%96 = getelementptr inbounds i32, ptr %95, i64 2
%97 = load i32, ptr %96, align 4
%98 = load ptr, ptr %7, align 8
%99 = getelementptr inbounds %struct.sockaddr_ll, ptr %98, i32 0, i32 1
%100 = load ptr, ptr %99, align 8
%101 = getelementptr inbounds i32, ptr %100, i64 3
%102 = load i32, ptr %101, align 4
%103 = load ptr, ptr %7, align 8
%104 = getelementptr inbounds %struct.sockaddr_ll, ptr %103, i32 0, i32 1
%105 = load ptr, ptr %104, align 8
%106 = getelementptr inbounds i32, ptr %105, i64 4
%107 = load i32, ptr %106, align 4
%108 = load ptr, ptr %7, align 8
%109 = getelementptr inbounds %struct.sockaddr_ll, ptr %108, i32 0, i32 1
%110 = load ptr, ptr %109, align 8
%111 = getelementptr inbounds i32, ptr %110, i64 5
%112 = load i32, ptr %111, align 4
%113 = call i32 (ptr, i32, ptr, i32, i32, i32, i32, i32, i32, ...) @snprintf(ptr noundef %82, i32 noundef 32, ptr noundef @.str.1, i32 noundef %87, i32 noundef %92, i32 noundef %97, i32 noundef %102, i32 noundef %107, i32 noundef %112)
br label %115
114: ; preds = %75
br label %132
115: ; preds = %81
br label %116
116: ; preds = %115, %32
%117 = load ptr, ptr %3, align 8
%118 = load i32, ptr %8, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
%121 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%122 = load i32, ptr %4, align 4
%123 = load i32, ptr %8, align 4
%124 = sub nsw i32 %122, %123
%125 = call i32 @strncpy(ptr noundef %120, ptr noundef %121, i32 noundef %124)
%126 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%127 = call i64 @strnlen(ptr noundef %126, i32 noundef 32)
%128 = load i32, ptr %8, align 4
%129 = sext i32 %128 to i64
%130 = add nsw i64 %129, %127
%131 = trunc i64 %130 to i32
store i32 %131, ptr %8, align 4
br label %132
132: ; preds = %116, %114, %22
%133 = load ptr, ptr %5, align 8
%134 = getelementptr inbounds %struct.ifaddrs, ptr %133, i32 0, i32 1
%135 = load ptr, ptr %134, align 8
store ptr %135, ptr %5, align 8
%136 = load ptr, ptr %5, align 8
%137 = icmp ne ptr %136, null
br i1 %137, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %132
br label %138
138: ; preds = %._crit_edge, %2
%139 = load ptr, ptr %6, align 8
%140 = call i32 @freeifaddrs(ptr noundef %139)
ret void
}
declare i32 @getifaddrs(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @strnlen(ptr noundef, i32 noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdwl0ffnt.c'
source_filename = "/tmp/tmpdwl0ffnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @x(i32 noundef 0)
%3 = icmp ne i32 %2, 2
br i1 %3, label %10, label %4
4: ; preds = %0
%5 = call i32 @x(i32 noundef 1)
%6 = icmp ne i32 %5, 3
br i1 %6, label %10, label %7
7: ; preds = %4
%8 = call i32 @x(i32 noundef 2)
%9 = icmp ne i32 %8, 5
br i1 %9, label %10, label %12
10: ; preds = %7, %4, %0
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %7
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @x(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
; 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/tmpdwl0ffnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @x(i32 noundef 0)
%3 = icmp ne i32 %2, 2
br i1 %3, label %10, label %4
4: ; preds = %0
%5 = call i32 @x(i32 noundef 1)
%6 = icmp ne i32 %5, 3
br i1 %6, label %10, label %7
7: ; preds = %4
%8 = call i32 @x(i32 noundef 2)
%9 = icmp ne i32 %8, 5
br i1 %9, label %10, label %12
10: ; preds = %7, %4, %0
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %7
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @x(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
; 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/tmpw2dgf2vz.c'
source_filename = "/tmp/tmpw2dgf2vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RET_Z() #0 {
%1 = call i32 (...) @hardwareTick()
%2 = call i32 @testFlag(i32 noundef 7)
%3 = icmp eq i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @RET()
br label %6
6: ; preds = %4, %0
ret void
}
declare i32 @hardwareTick(...) #1
declare i32 @testFlag(i32 noundef) #1
declare i32 @RET(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw2dgf2vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RET_Z() #0 {
%1 = call i32 (...) @hardwareTick()
%2 = call i32 @testFlag(i32 noundef 7)
%3 = icmp eq i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @RET()
br label %6
6: ; preds = %4, %0
ret void
}
declare i32 @hardwareTick(...) #1
declare i32 @testFlag(i32 noundef) #1
declare i32 @RET(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppkyxynn7.c'
source_filename = "/tmp/tmppkyxynn7.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"clock_gettime(CLOCK_REALTIME) error: %d (%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @now_ms(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @CLOCK_REALTIME, align 4
%7 = call i64 @clock_gettime(i32 noundef %6, ptr noundef %4)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %20
9: ; preds = %1
%10 = load i32, ptr @errno, align 4
store i32 %10, ptr %5, align 4
%11 = load ptr, ptr %3, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @terror(i32 noundef %16)
%18 = call i32 @htrace_log(ptr noundef %14, ptr noundef @.str, i32 noundef %15, i32 noundef %17)
br label %19
19: ; preds = %13, %9
store i32 0, ptr %2, align 4
br label %22
20: ; preds = %1
%21 = call i32 @timespec_to_ms(ptr noundef %4)
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %20, %19
%23 = load i32, ptr %2, align 4
ret i32 %23
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @htrace_log(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terror(i32 noundef) #1
declare i32 @timespec_to_ms(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppkyxynn7.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"clock_gettime(CLOCK_REALTIME) error: %d (%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @now_ms(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.timespec, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @CLOCK_REALTIME, align 4
%7 = call i64 @clock_gettime(i32 noundef %6, ptr noundef %4)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %20
9: ; preds = %1
%10 = load i32, ptr @errno, align 4
store i32 %10, ptr %5, align 4
%11 = load ptr, ptr %3, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @terror(i32 noundef %16)
%18 = call i32 @htrace_log(ptr noundef %14, ptr noundef @.str, i32 noundef %15, i32 noundef %17)
br label %19
19: ; preds = %13, %9
store i32 0, ptr %2, align 4
br label %22
20: ; preds = %1
%21 = call i32 @timespec_to_ms(ptr noundef %4)
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %20, %19
%23 = load i32, ptr %2, align 4
ret i32 %23
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @htrace_log(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @terror(i32 noundef) #1
declare i32 @timespec_to_ms(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3evqnoe6.c'
source_filename = "/tmp/tmp3evqnoe6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QEIIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store volatile i64 %0, ptr %3, align 8
store volatile i64 %1, ptr %4, align 8
%5 = load volatile i64, ptr %4, align 8
%6 = load volatile i64, ptr %3, align 8
%7 = add i64 %6, 32
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = or i64 %9, %5
store volatile i64 %10, ptr %8, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3evqnoe6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QEIIntEnable(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store volatile i64 %0, ptr %3, align 8
store volatile i64 %1, ptr %4, align 8
%5 = load volatile i64, ptr %4, align 8
%6 = load volatile i64, ptr %3, align 8
%7 = add i64 %6, 32
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = or i64 %9, %5
store volatile i64 %10, ptr %8, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi08qo9wx.c'
source_filename = "/tmp/tmpi08qo9wx.c"
target datalayout = "e-m:e-p270: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/tmpi08qo9wx.c"
target datalayout = "e-m:e-p270: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/tmpsb_06mjb.c'
source_filename = "/tmp/tmpsb_06mjb.c"
target datalayout = "e-m:e-p270: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/tmpsb_06mjb.c"
target datalayout = "e-m:e-p270: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/tmp4uaz8b3a.c'
source_filename = "/tmp/tmp4uaz8b3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"floor\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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/tmp4uaz8b3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"floor\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(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/tmps1e1khqn.c'
source_filename = "/tmp/tmps1e1khqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MAC\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KN\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"PH\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"SCH\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nysiis(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 1
%16 = mul i64 %15, 1
%17 = call ptr @alloca(i64 noundef %16)
store ptr %17, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 1
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %1
store ptr null, ptr %2, align 8
br label %438
26: ; preds = %1
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = call ptr @calloc(i64 noundef 1, i32 noundef 1)
store ptr %31, ptr %2, align 8
br label %438
32: ; preds = %26
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, 1
%35 = call ptr @calloc(i64 noundef %34, i32 noundef 1)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %39, label %38
38: ; preds = %32
store ptr null, ptr %2, align 8
br label %438
39: ; preds = %32
%40 = load ptr, ptr %8, align 8
%41 = call i32 @strncmp(ptr noundef %40, ptr noundef @.str, i32 noundef 3)
%42 = icmp ne i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %39
%44 = load ptr, ptr %8, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
store i8 67, ptr %45, align 1
br label %84
46: ; preds = %39
%47 = load ptr, ptr %8, align 8
%48 = call i32 @strncmp(ptr noundef %47, ptr noundef @.str.1, i32 noundef 3)
%49 = icmp ne i32 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %46
%51 = load ptr, ptr %8, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
store i8 78, ptr %52, align 1
br label %83
53: ; preds = %46
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 75
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 0
store i8 67, ptr %61, align 1
br label %82
62: ; preds = %53
%63 = load ptr, ptr %8, align 8
%64 = call i32 @strncmp(ptr noundef %63, ptr noundef @.str.2, i32 noundef 2)
%65 = icmp ne i32 %64, 0
br i1 %65, label %71, label %66
66: ; preds = %62
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
store i8 70, ptr %68, align 1
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 1
store i8 70, ptr %70, align 1
br label %81
71: ; preds = %62
%72 = load ptr, ptr %8, align 8
%73 = call i32 @strncmp(ptr noundef %72, ptr noundef @.str.3, i32 noundef 3)
%74 = icmp ne i32 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %71
%76 = load ptr, ptr %8, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 1
store i8 83, ptr %77, align 1
%78 = load ptr, ptr %8, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 2
store i8 83, ptr %79, align 1
br label %80
80: ; preds = %75, %71
br label %81
81: ; preds = %80, %66
br label %82
82: ; preds = %81, %59
br label %83
83: ; preds = %82, %50
br label %84
84: ; preds = %83, %43
%85 = load ptr, ptr %8, align 8
%86 = load i64, ptr %4, align 8
%87 = sub i64 %86, 1
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i8, ptr %88, align 1
store i8 %89, ptr %5, align 1
%90 = load i8, ptr %5, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 69
br i1 %92, label %93, label %116
93: ; preds = %84
%94 = load ptr, ptr %8, align 8
%95 = load i64, ptr %4, align 8
%96 = sub i64 %95, 2
%97 = getelementptr inbounds i8, ptr %94, i64 %96
%98 = load i8, ptr %97, align 1
store i8 %98, ptr %6, align 1
%99 = load i8, ptr %6, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 69
br i1 %101, label %106, label %102
102: ; preds = %93
%103 = load i8, ptr %6, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 73
br i1 %105, label %106, label %115
106: ; preds = %102, %93
%107 = load ptr, ptr %8, align 8
%108 = load i64, ptr %4, align 8
%109 = sub i64 %108, 1
%110 = getelementptr inbounds i8, ptr %107, i64 %109
store i8 32, ptr %110, align 1
%111 = load ptr, ptr %8, align 8
%112 = load i64, ptr %4, align 8
%113 = sub i64 %112, 2
%114 = getelementptr inbounds i8, ptr %111, i64 %113
store i8 89, ptr %114, align 1
br label %115
115: ; preds = %106, %102
br label %176
116: ; preds = %84
%117 = load i8, ptr %5, align 1
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 84
br i1 %119, label %120, label %147
120: ; preds = %116
%121 = load ptr, ptr %8, align 8
%122 = load i64, ptr %4, align 8
%123 = sub i64 %122, 2
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
store i8 %125, ptr %6, align 1
%126 = load i8, ptr %6, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 68
br i1 %128, label %137, label %129
129: ; preds = %120
%130 = load i8, ptr %6, align 1
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 82
br i1 %132, label %137, label %133
133: ; preds = %129
%134 = load i8, ptr %6, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 78
br i1 %136, label %137, label %146
137: ; preds = %133, %129, %120
%138 = load ptr, ptr %8, align 8
%139 = load i64, ptr %4, align 8
%140 = sub i64 %139, 1
%141 = getelementptr inbounds i8, ptr %138, i64 %140
store i8 32, ptr %141, align 1
%142 = load ptr, ptr %8, align 8
%143 = load i64, ptr %4, align 8
%144 = sub i64 %143, 2
%145 = getelementptr inbounds i8, ptr %142, i64 %144
store i8 68, ptr %145, align 1
br label %146
146: ; preds = %137, %133
br label %175
147: ; preds = %116
%148 = load i8, ptr %5, align 1
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 68
br i1 %150, label %151, label %174
151: ; preds = %147
%152 = load ptr, ptr %8, align 8
%153 = load i64, ptr %4, align 8
%154 = sub i64 %153, 2
%155 = getelementptr inbounds i8, ptr %152, i64 %154
%156 = load i8, ptr %155, align 1
store i8 %156, ptr %6, align 1
%157 = load i8, ptr %6, align 1
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 82
br i1 %159, label %164, label %160
160: ; preds = %151
%161 = load i8, ptr %6, align 1
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 78
br i1 %163, label %164, label %173
164: ; preds = %160, %151
%165 = load ptr, ptr %8, align 8
%166 = load i64, ptr %4, align 8
%167 = sub i64 %166, 1
%168 = getelementptr inbounds i8, ptr %165, i64 %167
store i8 32, ptr %168, align 1
%169 = load ptr, ptr %8, align 8
%170 = load i64, ptr %4, align 8
%171 = sub i64 %170, 2
%172 = getelementptr inbounds i8, ptr %169, i64 %171
store i8 68, ptr %172, align 1
br label %173
173: ; preds = %164, %160
br label %174
174: ; preds = %173, %147
br label %175
175: ; preds = %174, %146
br label %176
176: ; preds = %175, %115
%177 = load ptr, ptr %9, align 8
store ptr %177, ptr %11, align 8
%178 = load ptr, ptr %8, align 8
store ptr %178, ptr %10, align 8
%179 = load ptr, ptr %10, align 8
%180 = getelementptr inbounds i8, ptr %179, i32 1
store ptr %180, ptr %10, align 8
%181 = load i8, ptr %179, align 1
%182 = call signext i8 @toupper(i8 noundef signext %181)
%183 = load ptr, ptr %11, align 8
%184 = getelementptr inbounds i8, ptr %183, i32 1
store ptr %184, ptr %11, align 8
store i8 %182, ptr %183, align 1
br label %185
185: ; preds = %396, %176
%186 = load ptr, ptr %10, align 8
%187 = load i8, ptr %186, align 1
%188 = call signext i8 @toupper(i8 noundef signext %187)
store i8 %188, ptr %5, align 1
%189 = icmp ne i8 %188, 0
br i1 %189, label %190, label %399
190: ; preds = %185
%191 = load i8, ptr %5, align 1
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 32
br i1 %193, label %194, label %195
194: ; preds = %190
br label %399
195: ; preds = %190
%196 = load i8, ptr %5, align 1
%197 = sext i8 %196 to i32
switch i32 %197, label %380 [
i32 69, label %198
i32 65, label %212
i32 73, label %212
i32 79, label %212
i32 85, label %212
i32 81, label %214
i32 90, label %216
i32 77, label %218
i32 75, label %220
i32 83, label %232
i32 80, label %257
i32 72, label %273
i32 87, label %350
]
198: ; preds = %195
%199 = load ptr, ptr %10, align 8
%200 = getelementptr inbounds i8, ptr %199, i64 1
%201 = load i8, ptr %200, align 1
%202 = call signext i8 @toupper(i8 noundef signext %201)
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 86
br i1 %204, label %205, label %211
205: ; preds = %198
%206 = load ptr, ptr %11, align 8
store i8 65, ptr %206, align 1
%207 = load ptr, ptr %11, align 8
%208 = getelementptr inbounds i8, ptr %207, i32 1
store ptr %208, ptr %11, align 8
store i8 70, ptr %208, align 1
%209 = load ptr, ptr %10, align 8
%210 = getelementptr inbounds i8, ptr %209, i32 1
store ptr %210, ptr %10, align 8
br label %384
211: ; preds = %198
br label %212
212: ; preds = %195, %195, %195, %195, %211
%213 = load ptr, ptr %11, align 8
store i8 65, ptr %213, align 1
br label %384
214: ; preds = %195
%215 = load ptr, ptr %11, align 8
store i8 71, ptr %215, align 1
br label %384
216: ; preds = %195
%217 = load ptr, ptr %11, align 8
store i8 83, ptr %217, align 1
br label %384
218: ; preds = %195
%219 = load ptr, ptr %11, align 8
store i8 78, ptr %219, align 1
br label %384
220: ; preds = %195
%221 = load ptr, ptr %10, align 8
%222 = getelementptr inbounds i8, ptr %221, i64 1
%223 = load i8, ptr %222, align 1
%224 = call signext i8 @toupper(i8 noundef signext %223)
%225 = sext i8 %224 to i32
%226 = icmp eq i32 %225, 78
br i1 %226, label %227, label %229
227: ; preds = %220
%228 = load ptr, ptr %11, align 8
store i8 78, ptr %228, align 1
br label %231
229: ; preds = %220
%230 = load ptr, ptr %11, align 8
store i8 67, ptr %230, align 1
br label %231
231: ; preds = %229, %227
br label %384
232: ; preds = %195
%233 = load ptr, ptr %10, align 8
%234 = getelementptr inbounds i8, ptr %233, i64 1
%235 = load i8, ptr %234, align 1
%236 = call signext i8 @toupper(i8 noundef signext %235)
%237 = sext i8 %236 to i32
%238 = icmp eq i32 %237, 67
br i1 %238, label %239, label %254
239: ; preds = %232
%240 = load ptr, ptr %10, align 8
%241 = getelementptr inbounds i8, ptr %240, i64 2
%242 = load i8, ptr %241, align 1
%243 = call signext i8 @toupper(i8 noundef signext %242)
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %244, 72
br i1 %245, label %246, label %254
246: ; preds = %239
%247 = load ptr, ptr %11, align 8
%248 = getelementptr inbounds i8, ptr %247, i32 1
store ptr %248, ptr %11, align 8
store i8 83, ptr %247, align 1
%249 = load ptr, ptr %11, align 8
%250 = getelementptr inbounds i8, ptr %249, i32 1
store ptr %250, ptr %11, align 8
store i8 83, ptr %249, align 1
%251 = load ptr, ptr %11, align 8
store i8 83, ptr %251, align 1
%252 = load ptr, ptr %10, align 8
%253 = getelementptr inbounds i8, ptr %252, i64 2
store ptr %253, ptr %10, align 8
br label %256
254: ; preds = %239, %232
%255 = load ptr, ptr %11, align 8
store i8 83, ptr %255, align 1
br label %256
256: ; preds = %254, %246
br label %384
257: ; preds = %195
%258 = load ptr, ptr %10, align 8
%259 = getelementptr inbounds i8, ptr %258, i64 1
%260 = load i8, ptr %259, align 1
%261 = call signext i8 @toupper(i8 noundef signext %260)
%262 = sext i8 %261 to i32
%263 = icmp eq i32 %262, 72
br i1 %263, label %264, label %270
264: ; preds = %257
%265 = load ptr, ptr %11, align 8
store i8 70, ptr %265, align 1
%266 = load ptr, ptr %11, align 8
%267 = getelementptr inbounds i8, ptr %266, i32 1
store ptr %267, ptr %11, align 8
store i8 70, ptr %267, align 1
%268 = load ptr, ptr %10, align 8
%269 = getelementptr inbounds i8, ptr %268, i32 1
store ptr %269, ptr %10, align 8
br label %272
270: ; preds = %257
%271 = load ptr, ptr %11, align 8
store i8 80, ptr %271, align 1
br label %272
272: ; preds = %270, %264
br label %384
273: ; preds = %195
%274 = load ptr, ptr %10, align 8
%275 = getelementptr inbounds i8, ptr %274, i64 1
%276 = load i8, ptr %275, align 1
%277 = call signext i8 @toupper(i8 noundef signext %276)
store i8 %277, ptr %6, align 1
%278 = load ptr, ptr %10, align 8
%279 = getelementptr inbounds i8, ptr %278, i64 -1
%280 = load i8, ptr %279, align 1
%281 = call signext i8 @toupper(i8 noundef signext %280)
store i8 %281, ptr %7, align 1
%282 = load i8, ptr %6, align 1
%283 = sext i8 %282 to i32
%284 = icmp eq i32 %283, 65
br i1 %284, label %301, label %285
285: ; preds = %273
%286 = load i8, ptr %6, align 1
%287 = sext i8 %286 to i32
%288 = icmp eq i32 %287, 69
br i1 %288, label %301, label %289
289: ; preds = %285
%290 = load i8, ptr %6, align 1
%291 = sext i8 %290 to i32
%292 = icmp eq i32 %291, 73
br i1 %292, label %301, label %293
293: ; preds = %289
%294 = load i8, ptr %6, align 1
%295 = sext i8 %294 to i32
%296 = icmp eq i32 %295, 79
br i1 %296, label %301, label %297
297: ; preds = %293
%298 = load i8, ptr %6, align 1
%299 = sext i8 %298 to i32
%300 = icmp eq i32 %299, 85
br i1 %300, label %301, label %321
301: ; preds = %297, %293, %289, %285, %273
%302 = load i8, ptr %7, align 1
%303 = sext i8 %302 to i32
%304 = icmp eq i32 %303, 65
br i1 %304, label %347, label %305
305: ; preds = %301
%306 = load i8, ptr %7, align 1
%307 = sext i8 %306 to i32
%308 = icmp eq i32 %307, 69
br i1 %308, label %347, label %309
309: ; preds = %305
%310 = load i8, ptr %7, align 1
%311 = sext i8 %310 to i32
%312 = icmp eq i32 %311, 73
br i1 %312, label %347, label %313
313: ; preds = %309
%314 = load i8, ptr %7, align 1
%315 = sext i8 %314 to i32
%316 = icmp eq i32 %315, 79
br i1 %316, label %347, label %317
317: ; preds = %313
%318 = load i8, ptr %7, align 1
%319 = sext i8 %318 to i32
%320 = icmp eq i32 %319, 85
br i1 %320, label %347, label %321
321: ; preds = %317, %297
%322 = load i8, ptr %7, align 1
%323 = sext i8 %322 to i32
%324 = icmp eq i32 %323, 65
br i1 %324, label %341, label %325
325: ; preds = %321
%326 = load i8, ptr %7, align 1
%327 = sext i8 %326 to i32
%328 = icmp eq i32 %327, 69
br i1 %328, label %341, label %329
329: ; preds = %325
%330 = load i8, ptr %7, align 1
%331 = sext i8 %330 to i32
%332 = icmp eq i32 %331, 73
br i1 %332, label %341, label %333
333: ; preds = %329
%334 = load i8, ptr %7, align 1
%335 = sext i8 %334 to i32
%336 = icmp eq i32 %335, 79
br i1 %336, label %341, label %337
337: ; preds = %333
%338 = load i8, ptr %7, align 1
%339 = sext i8 %338 to i32
%340 = icmp eq i32 %339, 85
br i1 %340, label %341, label %343
341: ; preds = %337, %333, %329, %325, %321
%342 = load ptr, ptr %11, align 8
store i8 65, ptr %342, align 1
br label %346
343: ; preds = %337
%344 = load i8, ptr %7, align 1
%345 = load ptr, ptr %11, align 8
store i8 %344, ptr %345, align 1
br label %346
346: ; preds = %343, %341
br label %349
347: ; preds = %317, %313, %309, %305, %301
%348 = load ptr, ptr %11, align 8
store i8 72, ptr %348, align 1
br label %349
349: ; preds = %347, %346
br label %384
350: ; preds = %195
%351 = load ptr, ptr %10, align 8
%352 = getelementptr inbounds i8, ptr %351, i64 -1
%353 = load i8, ptr %352, align 1
%354 = call signext i8 @toupper(i8 noundef signext %353)
store i8 %354, ptr %6, align 1
%355 = load i8, ptr %6, align 1
%356 = sext i8 %355 to i32
%357 = icmp eq i32 %356, 65
br i1 %357, label %374, label %358
358: ; preds = %350
%359 = load i8, ptr %6, align 1
%360 = sext i8 %359 to i32
%361 = icmp eq i32 %360, 69
br i1 %361, label %374, label %362
362: ; preds = %358
%363 = load i8, ptr %6, align 1
%364 = sext i8 %363 to i32
%365 = icmp eq i32 %364, 73
br i1 %365, label %374, label %366
366: ; preds = %362
%367 = load i8, ptr %6, align 1
%368 = sext i8 %367 to i32
%369 = icmp eq i32 %368, 79
br i1 %369, label %374, label %370
370: ; preds = %366
%371 = load i8, ptr %6, align 1
%372 = sext i8 %371 to i32
%373 = icmp eq i32 %372, 85
br i1 %373, label %374, label %377
374: ; preds = %370, %366, %362, %358, %350
%375 = load i8, ptr %6, align 1
%376 = load ptr, ptr %11, align 8
store i8 %375, ptr %376, align 1
br label %379
377: ; preds = %370
%378 = load ptr, ptr %11, align 8
store i8 87, ptr %378, align 1
br label %379
379: ; preds = %377, %374
br label %384
380: ; preds = %195
%381 = load i8, ptr %5, align 1
%382 = call signext i8 @toupper(i8 noundef signext %381)
%383 = load ptr, ptr %11, align 8
store i8 %382, ptr %383, align 1
br label %384
384: ; preds = %380, %379, %349, %272, %256, %231, %218, %216, %214, %212, %205
%385 = load ptr, ptr %11, align 8
%386 = load i8, ptr %385, align 1
%387 = sext i8 %386 to i32
%388 = load ptr, ptr %11, align 8
%389 = getelementptr inbounds i8, ptr %388, i64 -1
%390 = load i8, ptr %389, align 1
%391 = sext i8 %390 to i32
%392 = icmp ne i32 %387, %391
br i1 %392, label %393, label %396
393: ; preds = %384
%394 = load ptr, ptr %11, align 8
%395 = getelementptr inbounds i8, ptr %394, i32 1
store ptr %395, ptr %11, align 8
br label %396
396: ; preds = %393, %384
%397 = load ptr, ptr %10, align 8
%398 = getelementptr inbounds i8, ptr %397, i32 1
store ptr %398, ptr %10, align 8
br label %185, !llvm.loop !6
399: ; preds = %194, %185
%400 = load ptr, ptr %11, align 8
store i8 0, ptr %400, align 1
%401 = load ptr, ptr %11, align 8
%402 = getelementptr inbounds i8, ptr %401, i64 -1
%403 = load i8, ptr %402, align 1
store i8 %403, ptr %5, align 1
%404 = load i8, ptr %5, align 1
%405 = sext i8 %404 to i32
%406 = icmp eq i32 %405, 83
br i1 %406, label %407, label %410
407: ; preds = %399
%408 = load ptr, ptr %11, align 8
%409 = getelementptr inbounds i8, ptr %408, i32 -1
store ptr %409, ptr %11, align 8
store i8 0, ptr %409, align 1
br label %427
410: ; preds = %399
%411 = load i8, ptr %5, align 1
%412 = sext i8 %411 to i32
%413 = icmp eq i32 %412, 89
br i1 %413, label %414, label %426
414: ; preds = %410
%415 = load ptr, ptr %11, align 8
%416 = getelementptr inbounds i8, ptr %415, i64 -2
%417 = load i8, ptr %416, align 1
%418 = sext i8 %417 to i32
%419 = icmp eq i32 %418, 65
br i1 %419, label %420, label %425
420: ; preds = %414
%421 = load ptr, ptr %11, align 8
%422 = getelementptr inbounds i8, ptr %421, i32 -1
store ptr %422, ptr %11, align 8
store i8 0, ptr %422, align 1
%423 = load ptr, ptr %11, align 8
%424 = getelementptr inbounds i8, ptr %423, i32 -1
store ptr %424, ptr %11, align 8
store i8 89, ptr %424, align 1
br label %425
425: ; preds = %420, %414
br label %426
426: ; preds = %425, %410
br label %427
427: ; preds = %426, %407
%428 = load ptr, ptr %11, align 8
%429 = getelementptr inbounds i8, ptr %428, i64 -1
%430 = load i8, ptr %429, align 1
%431 = sext i8 %430 to i32
%432 = icmp eq i32 %431, 65
br i1 %432, label %433, label %436
433: ; preds = %427
%434 = load ptr, ptr %11, align 8
%435 = getelementptr inbounds i8, ptr %434, i64 -1
store i8 0, ptr %435, align 1
br label %436
436: ; preds = %433, %427
%437 = load ptr, ptr %9, align 8
store ptr %437, ptr %2, align 8
br label %438
438: ; preds = %436, %38, %30, %25
%439 = load ptr, ptr %2, align 8
ret ptr %439
}
declare i64 @strlen(ptr noundef) #1
declare ptr @alloca(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
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/tmps1e1khqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MAC\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KN\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"PH\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"SCH\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nysiis(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 1
%16 = mul i64 %15, 1
%17 = call ptr @alloca(i64 noundef %16)
store ptr %17, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 1
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %1
store ptr null, ptr %2, align 8
br label %441
26: ; preds = %1
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = call ptr @calloc(i64 noundef 1, i32 noundef 1)
store ptr %31, ptr %2, align 8
br label %441
32: ; preds = %26
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, 1
%35 = call ptr @calloc(i64 noundef %34, i32 noundef 1)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %39, label %38
38: ; preds = %32
store ptr null, ptr %2, align 8
br label %441
39: ; preds = %32
%40 = load ptr, ptr %8, align 8
%41 = call i32 @strncmp(ptr noundef %40, ptr noundef @.str, i32 noundef 3)
%42 = icmp ne i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %39
%44 = load ptr, ptr %8, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 1
store i8 67, ptr %45, align 1
br label %84
46: ; preds = %39
%47 = load ptr, ptr %8, align 8
%48 = call i32 @strncmp(ptr noundef %47, ptr noundef @.str.1, i32 noundef 3)
%49 = icmp ne i32 %48, 0
br i1 %49, label %53, label %50
50: ; preds = %46
%51 = load ptr, ptr %8, align 8
%52 = getelementptr inbounds i8, ptr %51, i64 0
store i8 78, ptr %52, align 1
br label %83
53: ; preds = %46
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 75
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load ptr, ptr %8, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 0
store i8 67, ptr %61, align 1
br label %82
62: ; preds = %53
%63 = load ptr, ptr %8, align 8
%64 = call i32 @strncmp(ptr noundef %63, ptr noundef @.str.2, i32 noundef 2)
%65 = icmp ne i32 %64, 0
br i1 %65, label %71, label %66
66: ; preds = %62
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 0
store i8 70, ptr %68, align 1
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 1
store i8 70, ptr %70, align 1
br label %81
71: ; preds = %62
%72 = load ptr, ptr %8, align 8
%73 = call i32 @strncmp(ptr noundef %72, ptr noundef @.str.3, i32 noundef 3)
%74 = icmp ne i32 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %71
%76 = load ptr, ptr %8, align 8
%77 = getelementptr inbounds i8, ptr %76, i64 1
store i8 83, ptr %77, align 1
%78 = load ptr, ptr %8, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 2
store i8 83, ptr %79, align 1
br label %80
80: ; preds = %75, %71
br label %81
81: ; preds = %80, %66
br label %82
82: ; preds = %81, %59
br label %83
83: ; preds = %82, %50
br label %84
84: ; preds = %83, %43
%85 = load ptr, ptr %8, align 8
%86 = load i64, ptr %4, align 8
%87 = sub i64 %86, 1
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i8, ptr %88, align 1
store i8 %89, ptr %5, align 1
%90 = load i8, ptr %5, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 69
br i1 %92, label %93, label %116
93: ; preds = %84
%94 = load ptr, ptr %8, align 8
%95 = load i64, ptr %4, align 8
%96 = sub i64 %95, 2
%97 = getelementptr inbounds i8, ptr %94, i64 %96
%98 = load i8, ptr %97, align 1
store i8 %98, ptr %6, align 1
%99 = load i8, ptr %6, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 69
br i1 %101, label %106, label %102
102: ; preds = %93
%103 = load i8, ptr %6, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 73
br i1 %105, label %106, label %115
106: ; preds = %102, %93
%107 = load ptr, ptr %8, align 8
%108 = load i64, ptr %4, align 8
%109 = sub i64 %108, 1
%110 = getelementptr inbounds i8, ptr %107, i64 %109
store i8 32, ptr %110, align 1
%111 = load ptr, ptr %8, align 8
%112 = load i64, ptr %4, align 8
%113 = sub i64 %112, 2
%114 = getelementptr inbounds i8, ptr %111, i64 %113
store i8 89, ptr %114, align 1
br label %115
115: ; preds = %106, %102
br label %176
116: ; preds = %84
%117 = load i8, ptr %5, align 1
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 84
br i1 %119, label %120, label %147
120: ; preds = %116
%121 = load ptr, ptr %8, align 8
%122 = load i64, ptr %4, align 8
%123 = sub i64 %122, 2
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
store i8 %125, ptr %6, align 1
%126 = load i8, ptr %6, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 68
br i1 %128, label %137, label %129
129: ; preds = %120
%130 = load i8, ptr %6, align 1
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 82
br i1 %132, label %137, label %133
133: ; preds = %129
%134 = load i8, ptr %6, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 78
br i1 %136, label %137, label %146
137: ; preds = %133, %129, %120
%138 = load ptr, ptr %8, align 8
%139 = load i64, ptr %4, align 8
%140 = sub i64 %139, 1
%141 = getelementptr inbounds i8, ptr %138, i64 %140
store i8 32, ptr %141, align 1
%142 = load ptr, ptr %8, align 8
%143 = load i64, ptr %4, align 8
%144 = sub i64 %143, 2
%145 = getelementptr inbounds i8, ptr %142, i64 %144
store i8 68, ptr %145, align 1
br label %146
146: ; preds = %137, %133
br label %175
147: ; preds = %116
%148 = load i8, ptr %5, align 1
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 68
br i1 %150, label %151, label %174
151: ; preds = %147
%152 = load ptr, ptr %8, align 8
%153 = load i64, ptr %4, align 8
%154 = sub i64 %153, 2
%155 = getelementptr inbounds i8, ptr %152, i64 %154
%156 = load i8, ptr %155, align 1
store i8 %156, ptr %6, align 1
%157 = load i8, ptr %6, align 1
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 82
br i1 %159, label %164, label %160
160: ; preds = %151
%161 = load i8, ptr %6, align 1
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 78
br i1 %163, label %164, label %173
164: ; preds = %160, %151
%165 = load ptr, ptr %8, align 8
%166 = load i64, ptr %4, align 8
%167 = sub i64 %166, 1
%168 = getelementptr inbounds i8, ptr %165, i64 %167
store i8 32, ptr %168, align 1
%169 = load ptr, ptr %8, align 8
%170 = load i64, ptr %4, align 8
%171 = sub i64 %170, 2
%172 = getelementptr inbounds i8, ptr %169, i64 %171
store i8 68, ptr %172, align 1
br label %173
173: ; preds = %164, %160
br label %174
174: ; preds = %173, %147
br label %175
175: ; preds = %174, %146
br label %176
176: ; preds = %175, %115
%177 = load ptr, ptr %9, align 8
store ptr %177, ptr %11, align 8
%178 = load ptr, ptr %8, align 8
store ptr %178, ptr %10, align 8
%179 = load ptr, ptr %10, align 8
%180 = getelementptr inbounds i8, ptr %179, i32 1
store ptr %180, ptr %10, align 8
%181 = load i8, ptr %179, align 1
%182 = call signext i8 @toupper(i8 noundef signext %181)
%183 = load ptr, ptr %11, align 8
%184 = getelementptr inbounds i8, ptr %183, i32 1
store ptr %184, ptr %11, align 8
store i8 %182, ptr %183, align 1
%185 = load ptr, ptr %10, align 8
%186 = load i8, ptr %185, align 1
%187 = call signext i8 @toupper(i8 noundef signext %186)
store i8 %187, ptr %5, align 1
%188 = icmp ne i8 %187, 0
br i1 %188, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %176
br label %189
189: ; preds = %.lr.ph, %395
%190 = load i8, ptr %5, align 1
%191 = sext i8 %190 to i32
%192 = icmp eq i32 %191, 32
br i1 %192, label %193, label %194
193: ; preds = %189
br label %402
194: ; preds = %189
%195 = load i8, ptr %5, align 1
%196 = sext i8 %195 to i32
switch i32 %196, label %379 [
i32 69, label %197
i32 65, label %211
i32 73, label %211
i32 79, label %211
i32 85, label %211
i32 81, label %213
i32 90, label %215
i32 77, label %217
i32 75, label %219
i32 83, label %231
i32 80, label %256
i32 72, label %272
i32 87, label %349
]
197: ; preds = %194
%198 = load ptr, ptr %10, align 8
%199 = getelementptr inbounds i8, ptr %198, i64 1
%200 = load i8, ptr %199, align 1
%201 = call signext i8 @toupper(i8 noundef signext %200)
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 86
br i1 %203, label %204, label %210
204: ; preds = %197
%205 = load ptr, ptr %11, align 8
store i8 65, ptr %205, align 1
%206 = load ptr, ptr %11, align 8
%207 = getelementptr inbounds i8, ptr %206, i32 1
store ptr %207, ptr %11, align 8
store i8 70, ptr %207, align 1
%208 = load ptr, ptr %10, align 8
%209 = getelementptr inbounds i8, ptr %208, i32 1
store ptr %209, ptr %10, align 8
br label %383
210: ; preds = %197
br label %211
211: ; preds = %210, %194, %194, %194, %194
%212 = load ptr, ptr %11, align 8
store i8 65, ptr %212, align 1
br label %383
213: ; preds = %194
%214 = load ptr, ptr %11, align 8
store i8 71, ptr %214, align 1
br label %383
215: ; preds = %194
%216 = load ptr, ptr %11, align 8
store i8 83, ptr %216, align 1
br label %383
217: ; preds = %194
%218 = load ptr, ptr %11, align 8
store i8 78, ptr %218, align 1
br label %383
219: ; preds = %194
%220 = load ptr, ptr %10, align 8
%221 = getelementptr inbounds i8, ptr %220, i64 1
%222 = load i8, ptr %221, align 1
%223 = call signext i8 @toupper(i8 noundef signext %222)
%224 = sext i8 %223 to i32
%225 = icmp eq i32 %224, 78
br i1 %225, label %226, label %228
226: ; preds = %219
%227 = load ptr, ptr %11, align 8
store i8 78, ptr %227, align 1
br label %230
228: ; preds = %219
%229 = load ptr, ptr %11, align 8
store i8 67, ptr %229, align 1
br label %230
230: ; preds = %228, %226
br label %383
231: ; preds = %194
%232 = load ptr, ptr %10, align 8
%233 = getelementptr inbounds i8, ptr %232, i64 1
%234 = load i8, ptr %233, align 1
%235 = call signext i8 @toupper(i8 noundef signext %234)
%236 = sext i8 %235 to i32
%237 = icmp eq i32 %236, 67
br i1 %237, label %238, label %253
238: ; preds = %231
%239 = load ptr, ptr %10, align 8
%240 = getelementptr inbounds i8, ptr %239, i64 2
%241 = load i8, ptr %240, align 1
%242 = call signext i8 @toupper(i8 noundef signext %241)
%243 = sext i8 %242 to i32
%244 = icmp eq i32 %243, 72
br i1 %244, label %245, label %253
245: ; preds = %238
%246 = load ptr, ptr %11, align 8
%247 = getelementptr inbounds i8, ptr %246, i32 1
store ptr %247, ptr %11, align 8
store i8 83, ptr %246, align 1
%248 = load ptr, ptr %11, align 8
%249 = getelementptr inbounds i8, ptr %248, i32 1
store ptr %249, ptr %11, align 8
store i8 83, ptr %248, align 1
%250 = load ptr, ptr %11, align 8
store i8 83, ptr %250, align 1
%251 = load ptr, ptr %10, align 8
%252 = getelementptr inbounds i8, ptr %251, i64 2
store ptr %252, ptr %10, align 8
br label %255
253: ; preds = %238, %231
%254 = load ptr, ptr %11, align 8
store i8 83, ptr %254, align 1
br label %255
255: ; preds = %253, %245
br label %383
256: ; preds = %194
%257 = load ptr, ptr %10, align 8
%258 = getelementptr inbounds i8, ptr %257, i64 1
%259 = load i8, ptr %258, align 1
%260 = call signext i8 @toupper(i8 noundef signext %259)
%261 = sext i8 %260 to i32
%262 = icmp eq i32 %261, 72
br i1 %262, label %263, label %269
263: ; preds = %256
%264 = load ptr, ptr %11, align 8
store i8 70, ptr %264, align 1
%265 = load ptr, ptr %11, align 8
%266 = getelementptr inbounds i8, ptr %265, i32 1
store ptr %266, ptr %11, align 8
store i8 70, ptr %266, align 1
%267 = load ptr, ptr %10, align 8
%268 = getelementptr inbounds i8, ptr %267, i32 1
store ptr %268, ptr %10, align 8
br label %271
269: ; preds = %256
%270 = load ptr, ptr %11, align 8
store i8 80, ptr %270, align 1
br label %271
271: ; preds = %269, %263
br label %383
272: ; preds = %194
%273 = load ptr, ptr %10, align 8
%274 = getelementptr inbounds i8, ptr %273, i64 1
%275 = load i8, ptr %274, align 1
%276 = call signext i8 @toupper(i8 noundef signext %275)
store i8 %276, ptr %6, align 1
%277 = load ptr, ptr %10, align 8
%278 = getelementptr inbounds i8, ptr %277, i64 -1
%279 = load i8, ptr %278, align 1
%280 = call signext i8 @toupper(i8 noundef signext %279)
store i8 %280, ptr %7, align 1
%281 = load i8, ptr %6, align 1
%282 = sext i8 %281 to i32
%283 = icmp eq i32 %282, 65
br i1 %283, label %300, label %284
284: ; preds = %272
%285 = load i8, ptr %6, align 1
%286 = sext i8 %285 to i32
%287 = icmp eq i32 %286, 69
br i1 %287, label %300, label %288
288: ; preds = %284
%289 = load i8, ptr %6, align 1
%290 = sext i8 %289 to i32
%291 = icmp eq i32 %290, 73
br i1 %291, label %300, label %292
292: ; preds = %288
%293 = load i8, ptr %6, align 1
%294 = sext i8 %293 to i32
%295 = icmp eq i32 %294, 79
br i1 %295, label %300, label %296
296: ; preds = %292
%297 = load i8, ptr %6, align 1
%298 = sext i8 %297 to i32
%299 = icmp eq i32 %298, 85
br i1 %299, label %300, label %320
300: ; preds = %296, %292, %288, %284, %272
%301 = load i8, ptr %7, align 1
%302 = sext i8 %301 to i32
%303 = icmp eq i32 %302, 65
br i1 %303, label %346, label %304
304: ; preds = %300
%305 = load i8, ptr %7, align 1
%306 = sext i8 %305 to i32
%307 = icmp eq i32 %306, 69
br i1 %307, label %346, label %308
308: ; preds = %304
%309 = load i8, ptr %7, align 1
%310 = sext i8 %309 to i32
%311 = icmp eq i32 %310, 73
br i1 %311, label %346, label %312
312: ; preds = %308
%313 = load i8, ptr %7, align 1
%314 = sext i8 %313 to i32
%315 = icmp eq i32 %314, 79
br i1 %315, label %346, label %316
316: ; preds = %312
%317 = load i8, ptr %7, align 1
%318 = sext i8 %317 to i32
%319 = icmp eq i32 %318, 85
br i1 %319, label %346, label %320
320: ; preds = %316, %296
%321 = load i8, ptr %7, align 1
%322 = sext i8 %321 to i32
%323 = icmp eq i32 %322, 65
br i1 %323, label %340, label %324
324: ; preds = %320
%325 = load i8, ptr %7, align 1
%326 = sext i8 %325 to i32
%327 = icmp eq i32 %326, 69
br i1 %327, label %340, label %328
328: ; preds = %324
%329 = load i8, ptr %7, align 1
%330 = sext i8 %329 to i32
%331 = icmp eq i32 %330, 73
br i1 %331, label %340, label %332
332: ; preds = %328
%333 = load i8, ptr %7, align 1
%334 = sext i8 %333 to i32
%335 = icmp eq i32 %334, 79
br i1 %335, label %340, label %336
336: ; preds = %332
%337 = load i8, ptr %7, align 1
%338 = sext i8 %337 to i32
%339 = icmp eq i32 %338, 85
br i1 %339, label %340, label %342
340: ; preds = %336, %332, %328, %324, %320
%341 = load ptr, ptr %11, align 8
store i8 65, ptr %341, align 1
br label %345
342: ; preds = %336
%343 = load i8, ptr %7, align 1
%344 = load ptr, ptr %11, align 8
store i8 %343, ptr %344, align 1
br label %345
345: ; preds = %342, %340
br label %348
346: ; preds = %316, %312, %308, %304, %300
%347 = load ptr, ptr %11, align 8
store i8 72, ptr %347, align 1
br label %348
348: ; preds = %346, %345
br label %383
349: ; preds = %194
%350 = load ptr, ptr %10, align 8
%351 = getelementptr inbounds i8, ptr %350, i64 -1
%352 = load i8, ptr %351, align 1
%353 = call signext i8 @toupper(i8 noundef signext %352)
store i8 %353, ptr %6, align 1
%354 = load i8, ptr %6, align 1
%355 = sext i8 %354 to i32
%356 = icmp eq i32 %355, 65
br i1 %356, label %373, label %357
357: ; preds = %349
%358 = load i8, ptr %6, align 1
%359 = sext i8 %358 to i32
%360 = icmp eq i32 %359, 69
br i1 %360, label %373, label %361
361: ; preds = %357
%362 = load i8, ptr %6, align 1
%363 = sext i8 %362 to i32
%364 = icmp eq i32 %363, 73
br i1 %364, label %373, label %365
365: ; preds = %361
%366 = load i8, ptr %6, align 1
%367 = sext i8 %366 to i32
%368 = icmp eq i32 %367, 79
br i1 %368, label %373, label %369
369: ; preds = %365
%370 = load i8, ptr %6, align 1
%371 = sext i8 %370 to i32
%372 = icmp eq i32 %371, 85
br i1 %372, label %373, label %376
373: ; preds = %369, %365, %361, %357, %349
%374 = load i8, ptr %6, align 1
%375 = load ptr, ptr %11, align 8
store i8 %374, ptr %375, align 1
br label %378
376: ; preds = %369
%377 = load ptr, ptr %11, align 8
store i8 87, ptr %377, align 1
br label %378
378: ; preds = %376, %373
br label %383
379: ; preds = %194
%380 = load i8, ptr %5, align 1
%381 = call signext i8 @toupper(i8 noundef signext %380)
%382 = load ptr, ptr %11, align 8
store i8 %381, ptr %382, align 1
br label %383
383: ; preds = %379, %378, %348, %271, %255, %230, %217, %215, %213, %211, %204
%384 = load ptr, ptr %11, align 8
%385 = load i8, ptr %384, align 1
%386 = sext i8 %385 to i32
%387 = load ptr, ptr %11, align 8
%388 = getelementptr inbounds i8, ptr %387, i64 -1
%389 = load i8, ptr %388, align 1
%390 = sext i8 %389 to i32
%391 = icmp ne i32 %386, %390
br i1 %391, label %392, label %395
392: ; preds = %383
%393 = load ptr, ptr %11, align 8
%394 = getelementptr inbounds i8, ptr %393, i32 1
store ptr %394, ptr %11, align 8
br label %395
395: ; preds = %392, %383
%396 = load ptr, ptr %10, align 8
%397 = getelementptr inbounds i8, ptr %396, i32 1
store ptr %397, ptr %10, align 8
%398 = load ptr, ptr %10, align 8
%399 = load i8, ptr %398, align 1
%400 = call signext i8 @toupper(i8 noundef signext %399)
store i8 %400, ptr %5, align 1
%401 = icmp ne i8 %400, 0
br i1 %401, label %189, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %395
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %176
br label %402
402: ; preds = %.loopexit, %193
%403 = load ptr, ptr %11, align 8
store i8 0, ptr %403, align 1
%404 = load ptr, ptr %11, align 8
%405 = getelementptr inbounds i8, ptr %404, i64 -1
%406 = load i8, ptr %405, align 1
store i8 %406, ptr %5, align 1
%407 = load i8, ptr %5, align 1
%408 = sext i8 %407 to i32
%409 = icmp eq i32 %408, 83
br i1 %409, label %410, label %413
410: ; preds = %402
%411 = load ptr, ptr %11, align 8
%412 = getelementptr inbounds i8, ptr %411, i32 -1
store ptr %412, ptr %11, align 8
store i8 0, ptr %412, align 1
br label %430
413: ; preds = %402
%414 = load i8, ptr %5, align 1
%415 = sext i8 %414 to i32
%416 = icmp eq i32 %415, 89
br i1 %416, label %417, label %429
417: ; preds = %413
%418 = load ptr, ptr %11, align 8
%419 = getelementptr inbounds i8, ptr %418, i64 -2
%420 = load i8, ptr %419, align 1
%421 = sext i8 %420 to i32
%422 = icmp eq i32 %421, 65
br i1 %422, label %423, label %428
423: ; preds = %417
%424 = load ptr, ptr %11, align 8
%425 = getelementptr inbounds i8, ptr %424, i32 -1
store ptr %425, ptr %11, align 8
store i8 0, ptr %425, align 1
%426 = load ptr, ptr %11, align 8
%427 = getelementptr inbounds i8, ptr %426, i32 -1
store ptr %427, ptr %11, align 8
store i8 89, ptr %427, align 1
br label %428
428: ; preds = %423, %417
br label %429
429: ; preds = %428, %413
br label %430
430: ; preds = %429, %410
%431 = load ptr, ptr %11, align 8
%432 = getelementptr inbounds i8, ptr %431, i64 -1
%433 = load i8, ptr %432, align 1
%434 = sext i8 %433 to i32
%435 = icmp eq i32 %434, 65
br i1 %435, label %436, label %439
436: ; preds = %430
%437 = load ptr, ptr %11, align 8
%438 = getelementptr inbounds i8, ptr %437, i64 -1
store i8 0, ptr %438, align 1
br label %439
439: ; preds = %436, %430
%440 = load ptr, ptr %9, align 8
store ptr %440, ptr %2, align 8
br label %441
441: ; preds = %439, %38, %30, %25
%442 = load ptr, ptr %2, align 8
ret ptr %442
}
declare i64 @strlen(ptr noundef) #1
declare ptr @alloca(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
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/tmpg91ri75k.c'
source_filename = "/tmp/tmpg91ri75k.c"
target datalayout = "e-m:e-p270: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/tmpg91ri75k.c"
target datalayout = "e-m:e-p270: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/tmpmxr9y6tn.c'
source_filename = "/tmp/tmpmxr9y6tn.c"
target datalayout = "e-m:e-p270: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/tmpmxr9y6tn.c"
target datalayout = "e-m:e-p270: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/tmpw6a648i6.c'
source_filename = "/tmp/tmpw6a648i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc fail\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Begin init\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Begin compute\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Finished Compute\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"mismatch at %d,%d, was: %d should be: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Results pass\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 ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 20000, ptr %7, align 4
store i32 14000, ptr %8, align 4
store i32 16, ptr %9, align 4
store i32 16, ptr %10, align 4
%13 = call i64 @malloc(i32 noundef 1122177024)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %12, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %0
%20 = call i64 @malloc(i32 noundef 1120000000)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %11, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %19
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = load ptr, ptr %12, align 8
%29 = call i32 @memset(ptr noundef %28, i32 noundef 127, i32 noundef 1122177024)
%30 = load ptr, ptr %11, align 8
%31 = call i32 @memset(ptr noundef %30, i32 noundef 127, i32 noundef 1120000000)
store i32 0, ptr %2, align 4
br label %32
32: ; preds = %51, %26
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %33, 20016
br i1 %34, label %35, label %54
35: ; preds = %32
store i32 0, ptr %3, align 4
br label %36
36: ; preds = %47, %35
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %37, 14016
br i1 %38, label %39, label %50
39: ; preds = %36
%40 = load ptr, ptr %12, align 8
%41 = load i32, ptr %2, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [14016 x i32], ptr %40, i64 %42
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [14016 x i32], ptr %43, i64 0, i64 %45
store i32 1, ptr %46, align 4
br label %47
47: ; preds = %39
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 16
store i32 %49, ptr %3, align 4
br label %36, !llvm.loop !6
50: ; preds = %36
br label %51
51: ; preds = %50
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 16
store i32 %53, ptr %2, align 4
br label %32, !llvm.loop !8
54: ; preds = %32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
br label %56
56: ; preds = %126, %54
%57 = load i32, ptr %2, align 4
%58 = icmp slt i32 %57, 20000
br i1 %58, label %59, label %129
59: ; preds = %56
store i32 0, ptr %3, align 4
br label %60
60: ; preds = %122, %59
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %61, 14000
br i1 %62, label %63, label %125
63: ; preds = %60
store i32 0, ptr %4, align 4
br label %64
64: ; preds = %118, %63
%65 = load i32, ptr %4, align 4
%66 = icmp slt i32 %65, 16
br i1 %66, label %67, label %121
67: ; preds = %64
store i32 0, ptr %5, align 4
br label %68
68: ; preds = %114, %67
%69 = load i32, ptr %5, align 4
%70 = icmp slt i32 %69, 16
br i1 %70, label %71, label %117
71: ; preds = %68
%72 = load ptr, ptr %11, align 8
%73 = load i32, ptr %2, align 4
%74 = load i32, ptr %4, align 4
%75 = add nsw i32 %73, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [14000 x i32], ptr %72, i64 %76
%78 = load i32, ptr %3, align 4
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %78, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [14000 x i32], ptr %77, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %12, align 8
%85 = load i32, ptr %2, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [14016 x i32], ptr %84, i64 %86
%88 = load i32, ptr %3, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [14016 x i32], ptr %87, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp sgt i32 %83, %91
br i1 %92, label %93, label %113
93: ; preds = %71
%94 = load ptr, ptr %12, align 8
%95 = load i32, ptr %2, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [14016 x i32], ptr %94, i64 %96
%98 = load i32, ptr %3, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [14016 x i32], ptr %97, i64 0, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load ptr, ptr %11, align 8
%103 = load i32, ptr %2, align 4
%104 = load i32, ptr %4, align 4
%105 = add nsw i32 %103, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [14000 x i32], ptr %102, i64 %106
%108 = load i32, ptr %3, align 4
%109 = load i32, ptr %5, align 4
%110 = add nsw i32 %108, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [14000 x i32], ptr %107, i64 0, i64 %111
store i32 %101, ptr %112, align 4
br label %113
113: ; preds = %93, %71
br label %114
114: ; preds = %113
%115 = load i32, ptr %5, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %5, align 4
br label %68, !llvm.loop !9
117: ; preds = %68
br label %118
118: ; preds = %117
%119 = load i32, ptr %4, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %4, align 4
br label %64, !llvm.loop !10
121: ; preds = %64
br label %122
122: ; preds = %121
%123 = load i32, ptr %3, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %3, align 4
br label %60, !llvm.loop !11
125: ; preds = %60
br label %126
126: ; preds = %125
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %2, align 4
br label %56, !llvm.loop !12
129: ; preds = %56
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
br label %131
131: ; preds = %165, %129
%132 = load i32, ptr %2, align 4
%133 = icmp slt i32 %132, 20000
br i1 %133, label %134, label %168
134: ; preds = %131
store i32 0, ptr %3, align 4
br label %135
135: ; preds = %161, %134
%136 = load i32, ptr %3, align 4
%137 = icmp slt i32 %136, 14000
br i1 %137, label %138, label %164
138: ; preds = %135
%139 = load ptr, ptr %11, align 8
%140 = load i32, ptr %2, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [14000 x i32], ptr %139, i64 %141
%143 = load i32, ptr %3, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [14000 x i32], ptr %142, i64 0, i64 %144
%146 = load i32, ptr %145, align 4
%147 = icmp ne i32 %146, 1
br i1 %147, label %148, label %160
148: ; preds = %138
%149 = load i32, ptr %2, align 4
%150 = load i32, ptr %3, align 4
%151 = load ptr, ptr %11, align 8
%152 = load i32, ptr %2, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [14000 x i32], ptr %151, i64 %153
%155 = load i32, ptr %3, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [14000 x i32], ptr %154, i64 0, i64 %156
%158 = load i32, ptr %157, align 4
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %149, i32 noundef %150, i32 noundef %158, i32 noundef 1)
store i32 1, ptr %1, align 4
br label %170
160: ; preds = %138
br label %161
161: ; preds = %160
%162 = load i32, ptr %3, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %3, align 4
br label %135, !llvm.loop !13
164: ; preds = %135
br label %165
165: ; preds = %164
%166 = load i32, ptr %2, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %2, align 4
br label %131, !llvm.loop !14
168: ; preds = %131
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %170
170: ; preds = %168, %148
%171 = load i32, ptr %1, align 4
ret i32 %171
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw6a648i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc fail\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Begin init\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Begin compute\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"Finished Compute\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"mismatch at %d,%d, was: %d should be: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Results pass\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 ptr, align 8
%12 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 20000, ptr %7, align 4
store i32 14000, ptr %8, align 4
store i32 16, ptr %9, align 4
store i32 16, ptr %10, align 4
%13 = call i64 @malloc(i32 noundef 1122177024)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %12, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %0
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %0
%20 = call i64 @malloc(i32 noundef 1120000000)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %11, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %19
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = load ptr, ptr %12, align 8
%29 = call i32 @memset(ptr noundef %28, i32 noundef 127, i32 noundef 1122177024)
%30 = load ptr, ptr %11, align 8
%31 = call i32 @memset(ptr noundef %30, i32 noundef 127, i32 noundef 1120000000)
store i32 0, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = icmp slt i32 %32, 20016
br i1 %33, label %.lr.ph2, label %56
.lr.ph2: ; preds = %26
br label %34
34: ; preds = %.lr.ph2, %51
store i32 0, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 14016
br i1 %36, label %.lr.ph, label %50
.lr.ph: ; preds = %34
br label %37
37: ; preds = %.lr.ph, %45
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %2, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [14016 x i32], ptr %38, i64 %40
%42 = load i32, ptr %3, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [14016 x i32], ptr %41, i64 0, i64 %43
store i32 1, ptr %44, align 4
br label %45
45: ; preds = %37
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %46, 16
store i32 %47, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %48, 14016
br i1 %49, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %34
br label %51
51: ; preds = %50
%52 = load i32, ptr %2, align 4
%53 = add nsw i32 %52, 16
store i32 %53, ptr %2, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %54, 20016
br i1 %55, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %56
56: ; preds = %._crit_edge3, %26
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%58 = load i32, ptr %2, align 4
%59 = icmp slt i32 %58, 20000
br i1 %59, label %.lr.ph14, label %135
.lr.ph14: ; preds = %56
br label %60
60: ; preds = %.lr.ph14, %130
store i32 0, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %61, 14000
br i1 %62, label %.lr.ph11, label %129
.lr.ph11: ; preds = %60
br label %63
63: ; preds = %.lr.ph11, %124
store i32 0, ptr %4, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %64, 16
br i1 %65, label %.lr.ph8, label %123
.lr.ph8: ; preds = %63
br label %66
66: ; preds = %.lr.ph8, %118
store i32 0, ptr %5, align 4
%67 = load i32, ptr %5, align 4
%68 = icmp slt i32 %67, 16
br i1 %68, label %.lr.ph5, label %117
.lr.ph5: ; preds = %66
br label %69
69: ; preds = %.lr.ph5, %112
%70 = load ptr, ptr %11, align 8
%71 = load i32, ptr %2, align 4
%72 = load i32, ptr %4, align 4
%73 = add nsw i32 %71, %72
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [14000 x i32], ptr %70, i64 %74
%76 = load i32, ptr %3, align 4
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [14000 x i32], ptr %75, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load ptr, ptr %12, align 8
%83 = load i32, ptr %2, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [14016 x i32], ptr %82, i64 %84
%86 = load i32, ptr %3, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [14016 x i32], ptr %85, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sgt i32 %81, %89
br i1 %90, label %91, label %111
91: ; preds = %69
%92 = load ptr, ptr %12, align 8
%93 = load i32, ptr %2, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [14016 x i32], ptr %92, i64 %94
%96 = load i32, ptr %3, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [14016 x i32], ptr %95, i64 0, i64 %97
%99 = load i32, ptr %98, align 4
%100 = load ptr, ptr %11, align 8
%101 = load i32, ptr %2, align 4
%102 = load i32, ptr %4, align 4
%103 = add nsw i32 %101, %102
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [14000 x i32], ptr %100, i64 %104
%106 = load i32, ptr %3, align 4
%107 = load i32, ptr %5, align 4
%108 = add nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [14000 x i32], ptr %105, i64 0, i64 %109
store i32 %99, ptr %110, align 4
br label %111
111: ; preds = %91, %69
br label %112
112: ; preds = %111
%113 = load i32, ptr %5, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %5, align 4
%115 = load i32, ptr %5, align 4
%116 = icmp slt i32 %115, 16
br i1 %116, label %69, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %112
br label %117
117: ; preds = %._crit_edge6, %66
br label %118
118: ; preds = %117
%119 = load i32, ptr %4, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %4, align 4
%121 = load i32, ptr %4, align 4
%122 = icmp slt i32 %121, 16
br i1 %122, label %66, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %118
br label %123
123: ; preds = %._crit_edge9, %63
br label %124
124: ; preds = %123
%125 = load i32, ptr %3, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %3, align 4
%127 = load i32, ptr %3, align 4
%128 = icmp slt i32 %127, 14000
br i1 %128, label %63, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %124
br label %129
129: ; preds = %._crit_edge12, %60
br label %130
130: ; preds = %129
%131 = load i32, ptr %2, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %2, align 4
%133 = load i32, ptr %2, align 4
%134 = icmp slt i32 %133, 20000
br i1 %134, label %60, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %130
br label %135
135: ; preds = %._crit_edge15, %56
%136 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %2, align 4
%137 = load i32, ptr %2, align 4
%138 = icmp slt i32 %137, 20000
br i1 %138, label %.lr.ph20, label %176
.lr.ph20: ; preds = %135
br label %139
139: ; preds = %.lr.ph20, %171
store i32 0, ptr %3, align 4
%140 = load i32, ptr %3, align 4
%141 = icmp slt i32 %140, 14000
br i1 %141, label %.lr.ph17, label %170
.lr.ph17: ; preds = %139
br label %142
142: ; preds = %.lr.ph17, %165
%143 = load ptr, ptr %11, align 8
%144 = load i32, ptr %2, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [14000 x i32], ptr %143, i64 %145
%147 = load i32, ptr %3, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [14000 x i32], ptr %146, i64 0, i64 %148
%150 = load i32, ptr %149, align 4
%151 = icmp ne i32 %150, 1
br i1 %151, label %152, label %164
152: ; preds = %142
%153 = load i32, ptr %2, align 4
%154 = load i32, ptr %3, align 4
%155 = load ptr, ptr %11, align 8
%156 = load i32, ptr %2, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [14000 x i32], ptr %155, i64 %157
%159 = load i32, ptr %3, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [14000 x i32], ptr %158, i64 0, i64 %160
%162 = load i32, ptr %161, align 4
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %153, i32 noundef %154, i32 noundef %162, i32 noundef 1)
store i32 1, ptr %1, align 4
br label %178
164: ; preds = %142
br label %165
165: ; preds = %164
%166 = load i32, ptr %3, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %3, align 4
%168 = load i32, ptr %3, align 4
%169 = icmp slt i32 %168, 14000
br i1 %169, label %142, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %165
br label %170
170: ; preds = %._crit_edge18, %139
br label %171
171: ; preds = %170
%172 = load i32, ptr %2, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %2, align 4
%174 = load i32, ptr %2, align 4
%175 = icmp slt i32 %174, 20000
br i1 %175, label %139, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %171
br label %176
176: ; preds = %._crit_edge21, %135
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %178
178: ; preds = %176, %152
%179 = load i32, ptr %1, align 4
ret i32 %179
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmp6r8bzwbm.c'
source_filename = "/tmp/tmp6r8bzwbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @silent_dobldobl_path_tracker(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca [4 x i32], align 16
%16 = alloca [2 x i32], align 4
%17 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%18 = load i32, ptr %8, align 4
%19 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %20, align 4
%22 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
%24 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
%25 = load ptr, ptr %10, align 8
%26 = call i32 @_ada_use_c2phc4c(i32 noundef 175, ptr noundef %23, ptr noundef %24, ptr noundef %25, i32 noundef 0)
store i32 %26, ptr %17, align 4
%27 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %9, align 8
store i32 %28, ptr %29, align 4
%30 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
%31 = load i32, ptr %30, align 16
%32 = load ptr, ptr %11, align 8
store i32 %31, ptr %32, align 4
%33 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %12, align 8
store i32 %34, ptr %35, align 4
%36 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
%37 = load i32, ptr %36, align 8
%38 = load ptr, ptr %13, align 8
store i32 %37, ptr %38, align 4
%39 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %14, align 8
store i32 %40, ptr %41, align 4
%42 = load i32, ptr %17, align 4
ret i32 %42
}
declare i32 @_ada_use_c2phc4c(i32 noundef, 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/tmp6r8bzwbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @silent_dobldobl_path_tracker(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca [4 x i32], align 16
%16 = alloca [2 x i32], align 4
%17 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%18 = load i32, ptr %8, align 4
%19 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %9, align 8
%21 = load i32, ptr %20, align 4
%22 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
%24 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
%25 = load ptr, ptr %10, align 8
%26 = call i32 @_ada_use_c2phc4c(i32 noundef 175, ptr noundef %23, ptr noundef %24, ptr noundef %25, i32 noundef 0)
store i32 %26, ptr %17, align 4
%27 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %9, align 8
store i32 %28, ptr %29, align 4
%30 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
%31 = load i32, ptr %30, align 16
%32 = load ptr, ptr %11, align 8
store i32 %31, ptr %32, align 4
%33 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %12, align 8
store i32 %34, ptr %35, align 4
%36 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
%37 = load i32, ptr %36, align 8
%38 = load ptr, ptr %13, align 8
store i32 %37, ptr %38, align 4
%39 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %14, align 8
store i32 %40, ptr %41, align 4
%42 = load i32, ptr %17, align 4
ret i32 %42
}
declare i32 @_ada_use_c2phc4c(i32 noundef, 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/tmpkeu9zrhw.c'
source_filename = "/tmp/tmpkeu9zrhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 999, ptr %2, align 4
br label %5
5: ; preds = %35, %0
%6 = load i32, ptr %2, align 4
%7 = icmp sge i32 %6, 100
br i1 %7, label %8, label %38
8: ; preds = %5
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %31, %8
%11 = load i32, ptr %3, align 4
%12 = icmp sge i32 %11, 100
br i1 %12, label %13, label %34
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = mul nsw i32 %14, %15
%17 = call i64 @check_palindrome(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %30
19: ; preds = %13
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %3, align 4
%23 = mul nsw i32 %21, %22
%24 = icmp slt i32 %20, %23
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %3, align 4
%28 = mul nsw i32 %26, %27
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %25, %19
br label %30
30: ; preds = %29, %13
br label %31
31: ; preds = %30
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %3, align 4
br label %10, !llvm.loop !6
34: ; preds = %10
br label %35
35: ; preds = %34
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %2, align 4
br label %5, !llvm.loop !8
38: ; preds = %5
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = call i32 @printf(ptr noundef @.str, i32 noundef %40)
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i64 @check_palindrome(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkeu9zrhw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 999, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 100
br i1 %6, label %.lr.ph2, label %40
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %35
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 100
br i1 %10, label %.lr.ph, label %34
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %29
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 %12, %13
%15 = call i64 @check_palindrome(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %28
17: ; preds = %11
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %3, align 4
%21 = mul nsw i32 %19, %20
%22 = icmp slt i32 %18, %21
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = mul nsw i32 %24, %25
store i32 %26, ptr %4, align 4
br label %27
27: ; preds = %23, %17
br label %28
28: ; preds = %27, %11
br label %29
29: ; preds = %28
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp sge i32 %32, 100
br i1 %33, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %7
br label %35
35: ; preds = %34
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %2, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp sge i32 %38, 100
br i1 %39, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %0
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = call i32 @printf(ptr noundef @.str, i32 noundef %42)
%44 = load i32, ptr %1, align 4
ret i32 %44
}
declare i64 @check_palindrome(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpaakz3gnl.c'
source_filename = "/tmp/tmpaakz3gnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getenv_with_default(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @getenv(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaakz3gnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getenv_with_default(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @getenv(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphc9lp4g4.c'
source_filename = "/tmp/tmphc9lp4g4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @selection(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %49, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sub nsw i32 %10, 1
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %52
13: ; preds = %8
%14 = load i32, ptr %5, align 4
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
br label %17
17: ; preds = %36, %13
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %39
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp slt i32 %26, %31
br i1 %32, label %33, label %35
33: ; preds = %21
%34 = load i32, ptr %6, align 4
store i32 %34, ptr %7, align 4
br label %35
35: ; preds = %33, %21
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
br label %17, !llvm.loop !6
39: ; preds = %17
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %44, i64 %46
%48 = call i32 @swap(ptr noundef %43, ptr noundef %47)
br label %49
49: ; preds = %39
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %8, !llvm.loop !8
52: ; preds = %8
ret void
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphc9lp4g4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @selection(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph2, label %57
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %50
%13 = load i32, ptr %5, align 4
store i32 %13, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %40
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %34
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp slt i32 %24, %29
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = load i32, ptr %6, align 4
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %31, %19
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %12
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = call i32 @swap(ptr noundef %44, ptr noundef %48)
br label %50
50: ; preds = %40
%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 = sub nsw i32 %54, 1
%56 = icmp slt i32 %53, %55
br i1 %56, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %57
57: ; preds = %._crit_edge3, %2
ret void
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2e1ltw1s.c'
source_filename = "/tmp/tmp2e1ltw1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 43, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
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/tmp2e1ltw1s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 43, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
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/tmp69elm8g_.c'
source_filename = "/tmp/tmp69elm8g_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hypre_ReAlloc(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 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
br label %14
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call ptr @realloc(ptr noundef %11, i32 noundef %12)
store ptr %13, ptr %3, align 8
br label %14
14: ; preds = %10, %7
%15 = load ptr, ptr %3, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %4, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = load i32, ptr %4, align 4
%22 = call i32 @hypre_OutOfMemory(i32 noundef %21)
br label %23
23: ; preds = %20, %17, %14
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare ptr @malloc(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @hypre_OutOfMemory(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/tmp69elm8g_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hypre_ReAlloc(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 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
br label %14
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call ptr @realloc(ptr noundef %11, i32 noundef %12)
store ptr %13, ptr %3, align 8
br label %14
14: ; preds = %10, %7
%15 = load ptr, ptr %3, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %4, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = load i32, ptr %4, align 4
%22 = call i32 @hypre_OutOfMemory(i32 noundef %21)
br label %23
23: ; preds = %20, %17, %14
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare ptr @malloc(i32 noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @hypre_OutOfMemory(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/tmpulgu_s3z.c'
source_filename = "/tmp/tmpulgu_s3z.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cutils_cout_unsigned_char_print(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i32, ptr @stdout, align 4
%4 = load i8, ptr %2, align 1
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, i8 noundef zeroext %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpulgu_s3z.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cutils_cout_unsigned_char_print(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i32, ptr @stdout, align 4
%4 = load i8, ptr %2, align 1
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, i8 noundef zeroext %4)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps14svt9y.c'
source_filename = "/tmp/tmps14svt9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca 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 0, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %6, align 4
br label %9
9: ; preds = %27, %0
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %30
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = load i32, ptr %6, align 4
%17 = call i64 @reverse(i32 noundef %16)
%18 = sub nsw i64 %15, %17
%19 = call i32 @_abs_(i64 noundef %18)
%20 = load i32, ptr %4, align 4
%21 = srem i32 %19, %20
%22 = icmp eq i32 0, %21
br i1 %22, label %23, label %26
23: ; preds = %13
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %26
26: ; preds = %23, %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %9, !llvm.loop !6
30: ; preds = %9
%31 = load i32, ptr %5, align 4
%32 = call i32 @printf(ptr noundef @.str.1, i32 noundef %31)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @_abs_(i64 noundef) #1
declare i64 @reverse(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps14svt9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca 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 0, ptr %5, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %26
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = load i32, ptr %6, align 4
%16 = call i64 @reverse(i32 noundef %15)
%17 = sub nsw i64 %14, %16
%18 = call i32 @_abs_(i64 noundef %17)
%19 = load i32, ptr %4, align 4
%20 = srem i32 %18, %19
%21 = icmp eq i32 0, %20
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %22, %12
br label %26
26: ; preds = %25
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %0
%33 = load i32, ptr %5, align 4
%34 = call i32 @printf(ptr noundef @.str.1, i32 noundef %33)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @_abs_(i64 noundef) #1
declare i64 @reverse(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpozavjozh.c'
source_filename = "/tmp/tmpozavjozh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_int_or_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%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 i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = 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/tmpozavjozh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @shmem_int_or_to_all(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%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 i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = 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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.