llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp6mpn_7_0.c'
source_filename = "/tmp/tmp6mpn_7_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PQCLEAN_KYBER512_CLEAN_csubq(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sub nsw i32 %3, 3329
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = ashr i32 %5, 15
%7 = and i32 %6, 3329
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, %7
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6mpn_7_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PQCLEAN_KYBER512_CLEAN_csubq(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sub nsw i32 %3, 3329
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = ashr i32 %5, 15
%7 = and i32 %6, 3329
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, %7
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqi54_au7.c'
source_filename = "/tmp/tmpqi54_au7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @rev(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9)
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
call void @rev(ptr noundef %16, i32 noundef %17)
br label %18
18: ; preds = %13, %2
ret void
}
declare i32 @printf(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/tmpqi54_au7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @rev(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9)
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
call void @rev(ptr noundef %16, i32 noundef %17)
br label %18
18: ; preds = %13, %2
ret void
}
declare i32 @printf(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/tmpe08zjhuk.c'
source_filename = "/tmp/tmpe08zjhuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Media: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call double (...) @media()
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @media(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe08zjhuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Media: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call double (...) @media()
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @media(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvu6ksjlx.c'
source_filename = "/tmp/tmpvu6ksjlx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xfe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xfe() #0 {
%1 = call i64 @isdigit(i32 noundef 254)
%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 1275, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpvu6ksjlx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xfe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xfe() #0 {
%1 = call i64 @isdigit(i32 noundef 254)
%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 1275, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmpckwq5d_c.c'
source_filename = "/tmp/tmpckwq5d_c.c"
target datalayout = "e-m:e-p270: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/tmpckwq5d_c.c"
target datalayout = "e-m:e-p270: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/tmpcojr2cud.c'
source_filename = "/tmp/tmpcojr2cud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i8
store i8 %30, ptr %9, align 1
%31 = load i8, ptr %9, align 1
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %33
store i8 %31, ptr %34, align 1
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %43, 212
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcojr2cud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i8
store i8 %29, ptr %9, align 1
%30 = load i8, ptr %9, align 1
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %32
store i8 %30, ptr %33, align 1
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 212
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_tvo3ocd.c'
source_filename = "/tmp/tmp_tvo3ocd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.display.no_mat = private unnamed_addr constant [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@__const.display.mat_ambient = private unnamed_addr constant [4 x double] [double 0x3FE6666666666666, double 0x3FE6666666666666, double 0x3FE6666666666666, double 1.000000e+00], align 16
@__const.display.mat_ambient_color = private unnamed_addr constant [4 x double] [double 8.000000e-01, double 8.000000e-01, double 2.000000e-01, double 1.000000e+00], align 16
@__const.display.mat_diffuse = private unnamed_addr constant [4 x double] [double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e+00], align 16
@__const.display.mat_specular = private unnamed_addr constant [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.display.low_shininess = private unnamed_addr constant [1 x double] [double 5.000000e+00], align 8
@__const.display.high_shininess = private unnamed_addr constant [1 x double] [double 1.000000e+02], align 8
@__const.display.mat_emission = private unnamed_addr constant [4 x double] [double 3.000000e-01, double 2.000000e-01, double 2.000000e-01, double 0.000000e+00], align 16
@GL_COLOR_BUFFER_BIT = dso_local global i32 0, align 4
@GL_DEPTH_BUFFER_BIT = dso_local global i32 0, align 4
@GL_FRONT = dso_local global i32 0, align 4
@GL_AMBIENT = dso_local global i32 0, align 4
@GL_DIFFUSE = dso_local global i32 0, align 4
@GL_SPECULAR = dso_local global i32 0, align 4
@GL_SHININESS = dso_local global i32 0, align 4
@GL_EMISSION = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display() #0 {
%1 = alloca [4 x double], align 16
%2 = alloca [4 x double], align 16
%3 = alloca [4 x double], align 16
%4 = alloca [4 x double], align 16
%5 = alloca [4 x double], align 16
%6 = alloca [1 x double], align 8
%7 = alloca [1 x double], align 8
%8 = alloca [1 x double], align 8
%9 = alloca [4 x double], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.display.no_mat, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.display.mat_ambient, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.display.mat_ambient_color, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.display.mat_diffuse, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.display.mat_specular, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @__const.display.low_shininess, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const.display.high_shininess, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.display.mat_emission, i64 32, i1 false)
%10 = load i32, ptr @GL_COLOR_BUFFER_BIT, align 4
%11 = load i32, ptr @GL_DEPTH_BUFFER_BIT, align 4
%12 = or i32 %10, %11
%13 = call i32 @glClear(i32 noundef %12)
%14 = call i32 (...) @glPushMatrix()
%15 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%16 = load i32, ptr @GL_FRONT, align 4
%17 = load i32, ptr @GL_AMBIENT, align 4
%18 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%19 = call i32 @glMaterialfv(i32 noundef %16, i32 noundef %17, ptr noundef %18)
%20 = load i32, ptr @GL_FRONT, align 4
%21 = load i32, ptr @GL_DIFFUSE, align 4
%22 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%23 = call i32 @glMaterialfv(i32 noundef %20, i32 noundef %21, ptr noundef %22)
%24 = load i32, ptr @GL_FRONT, align 4
%25 = load i32, ptr @GL_SPECULAR, align 4
%26 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%27 = call i32 @glMaterialfv(i32 noundef %24, i32 noundef %25, ptr noundef %26)
%28 = load i32, ptr @GL_FRONT, align 4
%29 = load i32, ptr @GL_SHININESS, align 4
%30 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%31 = call i32 @glMaterialfv(i32 noundef %28, i32 noundef %29, ptr noundef %30)
%32 = load i32, ptr @GL_FRONT, align 4
%33 = load i32, ptr @GL_EMISSION, align 4
%34 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%35 = call i32 @glMaterialfv(i32 noundef %32, i32 noundef %33, ptr noundef %34)
%36 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%37 = call i32 (...) @glPopMatrix()
%38 = call i32 (...) @glPushMatrix()
%39 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%40 = load i32, ptr @GL_FRONT, align 4
%41 = load i32, ptr @GL_AMBIENT, align 4
%42 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%43 = call i32 @glMaterialfv(i32 noundef %40, i32 noundef %41, ptr noundef %42)
%44 = load i32, ptr @GL_FRONT, align 4
%45 = load i32, ptr @GL_DIFFUSE, align 4
%46 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%47 = call i32 @glMaterialfv(i32 noundef %44, i32 noundef %45, ptr noundef %46)
%48 = load i32, ptr @GL_FRONT, align 4
%49 = load i32, ptr @GL_SPECULAR, align 4
%50 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%51 = call i32 @glMaterialfv(i32 noundef %48, i32 noundef %49, ptr noundef %50)
%52 = load i32, ptr @GL_FRONT, align 4
%53 = load i32, ptr @GL_SHININESS, align 4
%54 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%55 = call i32 @glMaterialfv(i32 noundef %52, i32 noundef %53, ptr noundef %54)
%56 = load i32, ptr @GL_FRONT, align 4
%57 = load i32, ptr @GL_EMISSION, align 4
%58 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%59 = call i32 @glMaterialfv(i32 noundef %56, i32 noundef %57, ptr noundef %58)
%60 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%61 = call i32 (...) @glPopMatrix()
%62 = call i32 (...) @glPushMatrix()
%63 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%64 = load i32, ptr @GL_FRONT, align 4
%65 = load i32, ptr @GL_AMBIENT, align 4
%66 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%67 = call i32 @glMaterialfv(i32 noundef %64, i32 noundef %65, ptr noundef %66)
%68 = load i32, ptr @GL_FRONT, align 4
%69 = load i32, ptr @GL_DIFFUSE, align 4
%70 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%71 = call i32 @glMaterialfv(i32 noundef %68, i32 noundef %69, ptr noundef %70)
%72 = load i32, ptr @GL_FRONT, align 4
%73 = load i32, ptr @GL_SPECULAR, align 4
%74 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%75 = call i32 @glMaterialfv(i32 noundef %72, i32 noundef %73, ptr noundef %74)
%76 = load i32, ptr @GL_FRONT, align 4
%77 = load i32, ptr @GL_SHININESS, align 4
%78 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%79 = call i32 @glMaterialfv(i32 noundef %76, i32 noundef %77, ptr noundef %78)
%80 = load i32, ptr @GL_FRONT, align 4
%81 = load i32, ptr @GL_EMISSION, align 4
%82 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%83 = call i32 @glMaterialfv(i32 noundef %80, i32 noundef %81, ptr noundef %82)
%84 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%85 = call i32 (...) @glPopMatrix()
%86 = call i32 (...) @glPushMatrix()
%87 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%88 = load i32, ptr @GL_FRONT, align 4
%89 = load i32, ptr @GL_AMBIENT, align 4
%90 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%91 = call i32 @glMaterialfv(i32 noundef %88, i32 noundef %89, ptr noundef %90)
%92 = load i32, ptr @GL_FRONT, align 4
%93 = load i32, ptr @GL_DIFFUSE, align 4
%94 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%95 = call i32 @glMaterialfv(i32 noundef %92, i32 noundef %93, ptr noundef %94)
%96 = load i32, ptr @GL_FRONT, align 4
%97 = load i32, ptr @GL_SPECULAR, align 4
%98 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%99 = call i32 @glMaterialfv(i32 noundef %96, i32 noundef %97, ptr noundef %98)
%100 = load i32, ptr @GL_FRONT, align 4
%101 = load i32, ptr @GL_SHININESS, align 4
%102 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%103 = call i32 @glMaterialfv(i32 noundef %100, i32 noundef %101, ptr noundef %102)
%104 = load i32, ptr @GL_FRONT, align 4
%105 = load i32, ptr @GL_EMISSION, align 4
%106 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%107 = call i32 @glMaterialfv(i32 noundef %104, i32 noundef %105, ptr noundef %106)
%108 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%109 = call i32 (...) @glPopMatrix()
%110 = call i32 (...) @glPushMatrix()
%111 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%112 = load i32, ptr @GL_FRONT, align 4
%113 = load i32, ptr @GL_AMBIENT, align 4
%114 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%115 = call i32 @glMaterialfv(i32 noundef %112, i32 noundef %113, ptr noundef %114)
%116 = load i32, ptr @GL_FRONT, align 4
%117 = load i32, ptr @GL_DIFFUSE, align 4
%118 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%119 = call i32 @glMaterialfv(i32 noundef %116, i32 noundef %117, ptr noundef %118)
%120 = load i32, ptr @GL_FRONT, align 4
%121 = load i32, ptr @GL_SPECULAR, align 4
%122 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%123 = call i32 @glMaterialfv(i32 noundef %120, i32 noundef %121, ptr noundef %122)
%124 = load i32, ptr @GL_FRONT, align 4
%125 = load i32, ptr @GL_SHININESS, align 4
%126 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%127 = call i32 @glMaterialfv(i32 noundef %124, i32 noundef %125, ptr noundef %126)
%128 = load i32, ptr @GL_FRONT, align 4
%129 = load i32, ptr @GL_EMISSION, align 4
%130 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%131 = call i32 @glMaterialfv(i32 noundef %128, i32 noundef %129, ptr noundef %130)
%132 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%133 = call i32 (...) @glPopMatrix()
%134 = call i32 (...) @glPushMatrix()
%135 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%136 = load i32, ptr @GL_FRONT, align 4
%137 = load i32, ptr @GL_AMBIENT, align 4
%138 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%139 = call i32 @glMaterialfv(i32 noundef %136, i32 noundef %137, ptr noundef %138)
%140 = load i32, ptr @GL_FRONT, align 4
%141 = load i32, ptr @GL_DIFFUSE, align 4
%142 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%143 = call i32 @glMaterialfv(i32 noundef %140, i32 noundef %141, ptr noundef %142)
%144 = load i32, ptr @GL_FRONT, align 4
%145 = load i32, ptr @GL_SPECULAR, align 4
%146 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%147 = call i32 @glMaterialfv(i32 noundef %144, i32 noundef %145, ptr noundef %146)
%148 = load i32, ptr @GL_FRONT, align 4
%149 = load i32, ptr @GL_SHININESS, align 4
%150 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%151 = call i32 @glMaterialfv(i32 noundef %148, i32 noundef %149, ptr noundef %150)
%152 = load i32, ptr @GL_FRONT, align 4
%153 = load i32, ptr @GL_EMISSION, align 4
%154 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%155 = call i32 @glMaterialfv(i32 noundef %152, i32 noundef %153, ptr noundef %154)
%156 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%157 = call i32 (...) @glPopMatrix()
%158 = call i32 (...) @glPushMatrix()
%159 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%160 = load i32, ptr @GL_FRONT, align 4
%161 = load i32, ptr @GL_AMBIENT, align 4
%162 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%163 = call i32 @glMaterialfv(i32 noundef %160, i32 noundef %161, ptr noundef %162)
%164 = load i32, ptr @GL_FRONT, align 4
%165 = load i32, ptr @GL_DIFFUSE, align 4
%166 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%167 = call i32 @glMaterialfv(i32 noundef %164, i32 noundef %165, ptr noundef %166)
%168 = load i32, ptr @GL_FRONT, align 4
%169 = load i32, ptr @GL_SPECULAR, align 4
%170 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%171 = call i32 @glMaterialfv(i32 noundef %168, i32 noundef %169, ptr noundef %170)
%172 = load i32, ptr @GL_FRONT, align 4
%173 = load i32, ptr @GL_SHININESS, align 4
%174 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%175 = call i32 @glMaterialfv(i32 noundef %172, i32 noundef %173, ptr noundef %174)
%176 = load i32, ptr @GL_FRONT, align 4
%177 = load i32, ptr @GL_EMISSION, align 4
%178 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%179 = call i32 @glMaterialfv(i32 noundef %176, i32 noundef %177, ptr noundef %178)
%180 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%181 = call i32 (...) @glPopMatrix()
%182 = call i32 (...) @glPushMatrix()
%183 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%184 = load i32, ptr @GL_FRONT, align 4
%185 = load i32, ptr @GL_AMBIENT, align 4
%186 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%187 = call i32 @glMaterialfv(i32 noundef %184, i32 noundef %185, ptr noundef %186)
%188 = load i32, ptr @GL_FRONT, align 4
%189 = load i32, ptr @GL_DIFFUSE, align 4
%190 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%191 = call i32 @glMaterialfv(i32 noundef %188, i32 noundef %189, ptr noundef %190)
%192 = load i32, ptr @GL_FRONT, align 4
%193 = load i32, ptr @GL_SPECULAR, align 4
%194 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%195 = call i32 @glMaterialfv(i32 noundef %192, i32 noundef %193, ptr noundef %194)
%196 = load i32, ptr @GL_FRONT, align 4
%197 = load i32, ptr @GL_SHININESS, align 4
%198 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%199 = call i32 @glMaterialfv(i32 noundef %196, i32 noundef %197, ptr noundef %198)
%200 = load i32, ptr @GL_FRONT, align 4
%201 = load i32, ptr @GL_EMISSION, align 4
%202 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%203 = call i32 @glMaterialfv(i32 noundef %200, i32 noundef %201, ptr noundef %202)
%204 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%205 = call i32 (...) @glPopMatrix()
%206 = call i32 (...) @glPushMatrix()
%207 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%208 = load i32, ptr @GL_FRONT, align 4
%209 = load i32, ptr @GL_AMBIENT, align 4
%210 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%211 = call i32 @glMaterialfv(i32 noundef %208, i32 noundef %209, ptr noundef %210)
%212 = load i32, ptr @GL_FRONT, align 4
%213 = load i32, ptr @GL_DIFFUSE, align 4
%214 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%215 = call i32 @glMaterialfv(i32 noundef %212, i32 noundef %213, ptr noundef %214)
%216 = load i32, ptr @GL_FRONT, align 4
%217 = load i32, ptr @GL_SPECULAR, align 4
%218 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%219 = call i32 @glMaterialfv(i32 noundef %216, i32 noundef %217, ptr noundef %218)
%220 = load i32, ptr @GL_FRONT, align 4
%221 = load i32, ptr @GL_SHININESS, align 4
%222 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%223 = call i32 @glMaterialfv(i32 noundef %220, i32 noundef %221, ptr noundef %222)
%224 = load i32, ptr @GL_FRONT, align 4
%225 = load i32, ptr @GL_EMISSION, align 4
%226 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%227 = call i32 @glMaterialfv(i32 noundef %224, i32 noundef %225, ptr noundef %226)
%228 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%229 = call i32 (...) @glPopMatrix()
%230 = call i32 (...) @glPushMatrix()
%231 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%232 = load i32, ptr @GL_FRONT, align 4
%233 = load i32, ptr @GL_AMBIENT, align 4
%234 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%235 = call i32 @glMaterialfv(i32 noundef %232, i32 noundef %233, ptr noundef %234)
%236 = load i32, ptr @GL_FRONT, align 4
%237 = load i32, ptr @GL_DIFFUSE, align 4
%238 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%239 = call i32 @glMaterialfv(i32 noundef %236, i32 noundef %237, ptr noundef %238)
%240 = load i32, ptr @GL_FRONT, align 4
%241 = load i32, ptr @GL_SPECULAR, align 4
%242 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%243 = call i32 @glMaterialfv(i32 noundef %240, i32 noundef %241, ptr noundef %242)
%244 = load i32, ptr @GL_FRONT, align 4
%245 = load i32, ptr @GL_SHININESS, align 4
%246 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%247 = call i32 @glMaterialfv(i32 noundef %244, i32 noundef %245, ptr noundef %246)
%248 = load i32, ptr @GL_FRONT, align 4
%249 = load i32, ptr @GL_EMISSION, align 4
%250 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%251 = call i32 @glMaterialfv(i32 noundef %248, i32 noundef %249, ptr noundef %250)
%252 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%253 = call i32 (...) @glPopMatrix()
%254 = call i32 (...) @glPushMatrix()
%255 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%256 = load i32, ptr @GL_FRONT, align 4
%257 = load i32, ptr @GL_AMBIENT, align 4
%258 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%259 = call i32 @glMaterialfv(i32 noundef %256, i32 noundef %257, ptr noundef %258)
%260 = load i32, ptr @GL_FRONT, align 4
%261 = load i32, ptr @GL_DIFFUSE, align 4
%262 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%263 = call i32 @glMaterialfv(i32 noundef %260, i32 noundef %261, ptr noundef %262)
%264 = load i32, ptr @GL_FRONT, align 4
%265 = load i32, ptr @GL_SPECULAR, align 4
%266 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%267 = call i32 @glMaterialfv(i32 noundef %264, i32 noundef %265, ptr noundef %266)
%268 = load i32, ptr @GL_FRONT, align 4
%269 = load i32, ptr @GL_SHININESS, align 4
%270 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%271 = call i32 @glMaterialfv(i32 noundef %268, i32 noundef %269, ptr noundef %270)
%272 = load i32, ptr @GL_FRONT, align 4
%273 = load i32, ptr @GL_EMISSION, align 4
%274 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%275 = call i32 @glMaterialfv(i32 noundef %272, i32 noundef %273, ptr noundef %274)
%276 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%277 = call i32 (...) @glPopMatrix()
%278 = call i32 (...) @glPushMatrix()
%279 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%280 = load i32, ptr @GL_FRONT, align 4
%281 = load i32, ptr @GL_AMBIENT, align 4
%282 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%283 = call i32 @glMaterialfv(i32 noundef %280, i32 noundef %281, ptr noundef %282)
%284 = load i32, ptr @GL_FRONT, align 4
%285 = load i32, ptr @GL_DIFFUSE, align 4
%286 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%287 = call i32 @glMaterialfv(i32 noundef %284, i32 noundef %285, ptr noundef %286)
%288 = load i32, ptr @GL_FRONT, align 4
%289 = load i32, ptr @GL_SPECULAR, align 4
%290 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%291 = call i32 @glMaterialfv(i32 noundef %288, i32 noundef %289, ptr noundef %290)
%292 = load i32, ptr @GL_FRONT, align 4
%293 = load i32, ptr @GL_SHININESS, align 4
%294 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%295 = call i32 @glMaterialfv(i32 noundef %292, i32 noundef %293, ptr noundef %294)
%296 = load i32, ptr @GL_FRONT, align 4
%297 = load i32, ptr @GL_EMISSION, align 4
%298 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%299 = call i32 @glMaterialfv(i32 noundef %296, i32 noundef %297, ptr noundef %298)
%300 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%301 = call i32 (...) @glPopMatrix()
%302 = call i32 (...) @glFlush()
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @glClear(i32 noundef) #3
declare i32 @glPushMatrix(...) #3
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #3
declare i32 @glMaterialfv(i32 noundef, i32 noundef, ptr noundef) #3
declare i32 @glutSolidSphere(double noundef, i32 noundef, i32 noundef) #3
declare i32 @glPopMatrix(...) #3
declare i32 @glFlush(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_tvo3ocd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.display.no_mat = private unnamed_addr constant [4 x double] [double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00], align 16
@__const.display.mat_ambient = private unnamed_addr constant [4 x double] [double 0x3FE6666666666666, double 0x3FE6666666666666, double 0x3FE6666666666666, double 1.000000e+00], align 16
@__const.display.mat_ambient_color = private unnamed_addr constant [4 x double] [double 8.000000e-01, double 8.000000e-01, double 2.000000e-01, double 1.000000e+00], align 16
@__const.display.mat_diffuse = private unnamed_addr constant [4 x double] [double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e+00], align 16
@__const.display.mat_specular = private unnamed_addr constant [4 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.display.low_shininess = private unnamed_addr constant [1 x double] [double 5.000000e+00], align 8
@__const.display.high_shininess = private unnamed_addr constant [1 x double] [double 1.000000e+02], align 8
@__const.display.mat_emission = private unnamed_addr constant [4 x double] [double 3.000000e-01, double 2.000000e-01, double 2.000000e-01, double 0.000000e+00], align 16
@GL_COLOR_BUFFER_BIT = dso_local global i32 0, align 4
@GL_DEPTH_BUFFER_BIT = dso_local global i32 0, align 4
@GL_FRONT = dso_local global i32 0, align 4
@GL_AMBIENT = dso_local global i32 0, align 4
@GL_DIFFUSE = dso_local global i32 0, align 4
@GL_SPECULAR = dso_local global i32 0, align 4
@GL_SHININESS = dso_local global i32 0, align 4
@GL_EMISSION = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display() #0 {
%1 = alloca [4 x double], align 16
%2 = alloca [4 x double], align 16
%3 = alloca [4 x double], align 16
%4 = alloca [4 x double], align 16
%5 = alloca [4 x double], align 16
%6 = alloca [1 x double], align 8
%7 = alloca [1 x double], align 8
%8 = alloca [1 x double], align 8
%9 = alloca [4 x double], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.display.no_mat, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.display.mat_ambient, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.display.mat_ambient_color, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.display.mat_diffuse, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.display.mat_specular, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @__const.display.low_shininess, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const.display.high_shininess, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.display.mat_emission, i64 32, i1 false)
%10 = load i32, ptr @GL_COLOR_BUFFER_BIT, align 4
%11 = load i32, ptr @GL_DEPTH_BUFFER_BIT, align 4
%12 = or i32 %10, %11
%13 = call i32 @glClear(i32 noundef %12)
%14 = call i32 (...) @glPushMatrix()
%15 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%16 = load i32, ptr @GL_FRONT, align 4
%17 = load i32, ptr @GL_AMBIENT, align 4
%18 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%19 = call i32 @glMaterialfv(i32 noundef %16, i32 noundef %17, ptr noundef %18)
%20 = load i32, ptr @GL_FRONT, align 4
%21 = load i32, ptr @GL_DIFFUSE, align 4
%22 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%23 = call i32 @glMaterialfv(i32 noundef %20, i32 noundef %21, ptr noundef %22)
%24 = load i32, ptr @GL_FRONT, align 4
%25 = load i32, ptr @GL_SPECULAR, align 4
%26 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%27 = call i32 @glMaterialfv(i32 noundef %24, i32 noundef %25, ptr noundef %26)
%28 = load i32, ptr @GL_FRONT, align 4
%29 = load i32, ptr @GL_SHININESS, align 4
%30 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%31 = call i32 @glMaterialfv(i32 noundef %28, i32 noundef %29, ptr noundef %30)
%32 = load i32, ptr @GL_FRONT, align 4
%33 = load i32, ptr @GL_EMISSION, align 4
%34 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%35 = call i32 @glMaterialfv(i32 noundef %32, i32 noundef %33, ptr noundef %34)
%36 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%37 = call i32 (...) @glPopMatrix()
%38 = call i32 (...) @glPushMatrix()
%39 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%40 = load i32, ptr @GL_FRONT, align 4
%41 = load i32, ptr @GL_AMBIENT, align 4
%42 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%43 = call i32 @glMaterialfv(i32 noundef %40, i32 noundef %41, ptr noundef %42)
%44 = load i32, ptr @GL_FRONT, align 4
%45 = load i32, ptr @GL_DIFFUSE, align 4
%46 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%47 = call i32 @glMaterialfv(i32 noundef %44, i32 noundef %45, ptr noundef %46)
%48 = load i32, ptr @GL_FRONT, align 4
%49 = load i32, ptr @GL_SPECULAR, align 4
%50 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%51 = call i32 @glMaterialfv(i32 noundef %48, i32 noundef %49, ptr noundef %50)
%52 = load i32, ptr @GL_FRONT, align 4
%53 = load i32, ptr @GL_SHININESS, align 4
%54 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%55 = call i32 @glMaterialfv(i32 noundef %52, i32 noundef %53, ptr noundef %54)
%56 = load i32, ptr @GL_FRONT, align 4
%57 = load i32, ptr @GL_EMISSION, align 4
%58 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%59 = call i32 @glMaterialfv(i32 noundef %56, i32 noundef %57, ptr noundef %58)
%60 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%61 = call i32 (...) @glPopMatrix()
%62 = call i32 (...) @glPushMatrix()
%63 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%64 = load i32, ptr @GL_FRONT, align 4
%65 = load i32, ptr @GL_AMBIENT, align 4
%66 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%67 = call i32 @glMaterialfv(i32 noundef %64, i32 noundef %65, ptr noundef %66)
%68 = load i32, ptr @GL_FRONT, align 4
%69 = load i32, ptr @GL_DIFFUSE, align 4
%70 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%71 = call i32 @glMaterialfv(i32 noundef %68, i32 noundef %69, ptr noundef %70)
%72 = load i32, ptr @GL_FRONT, align 4
%73 = load i32, ptr @GL_SPECULAR, align 4
%74 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%75 = call i32 @glMaterialfv(i32 noundef %72, i32 noundef %73, ptr noundef %74)
%76 = load i32, ptr @GL_FRONT, align 4
%77 = load i32, ptr @GL_SHININESS, align 4
%78 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%79 = call i32 @glMaterialfv(i32 noundef %76, i32 noundef %77, ptr noundef %78)
%80 = load i32, ptr @GL_FRONT, align 4
%81 = load i32, ptr @GL_EMISSION, align 4
%82 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%83 = call i32 @glMaterialfv(i32 noundef %80, i32 noundef %81, ptr noundef %82)
%84 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%85 = call i32 (...) @glPopMatrix()
%86 = call i32 (...) @glPushMatrix()
%87 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef 3.000000e+00, double noundef 0.000000e+00)
%88 = load i32, ptr @GL_FRONT, align 4
%89 = load i32, ptr @GL_AMBIENT, align 4
%90 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%91 = call i32 @glMaterialfv(i32 noundef %88, i32 noundef %89, ptr noundef %90)
%92 = load i32, ptr @GL_FRONT, align 4
%93 = load i32, ptr @GL_DIFFUSE, align 4
%94 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%95 = call i32 @glMaterialfv(i32 noundef %92, i32 noundef %93, ptr noundef %94)
%96 = load i32, ptr @GL_FRONT, align 4
%97 = load i32, ptr @GL_SPECULAR, align 4
%98 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%99 = call i32 @glMaterialfv(i32 noundef %96, i32 noundef %97, ptr noundef %98)
%100 = load i32, ptr @GL_FRONT, align 4
%101 = load i32, ptr @GL_SHININESS, align 4
%102 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%103 = call i32 @glMaterialfv(i32 noundef %100, i32 noundef %101, ptr noundef %102)
%104 = load i32, ptr @GL_FRONT, align 4
%105 = load i32, ptr @GL_EMISSION, align 4
%106 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%107 = call i32 @glMaterialfv(i32 noundef %104, i32 noundef %105, ptr noundef %106)
%108 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%109 = call i32 (...) @glPopMatrix()
%110 = call i32 (...) @glPushMatrix()
%111 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%112 = load i32, ptr @GL_FRONT, align 4
%113 = load i32, ptr @GL_AMBIENT, align 4
%114 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%115 = call i32 @glMaterialfv(i32 noundef %112, i32 noundef %113, ptr noundef %114)
%116 = load i32, ptr @GL_FRONT, align 4
%117 = load i32, ptr @GL_DIFFUSE, align 4
%118 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%119 = call i32 @glMaterialfv(i32 noundef %116, i32 noundef %117, ptr noundef %118)
%120 = load i32, ptr @GL_FRONT, align 4
%121 = load i32, ptr @GL_SPECULAR, align 4
%122 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%123 = call i32 @glMaterialfv(i32 noundef %120, i32 noundef %121, ptr noundef %122)
%124 = load i32, ptr @GL_FRONT, align 4
%125 = load i32, ptr @GL_SHININESS, align 4
%126 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%127 = call i32 @glMaterialfv(i32 noundef %124, i32 noundef %125, ptr noundef %126)
%128 = load i32, ptr @GL_FRONT, align 4
%129 = load i32, ptr @GL_EMISSION, align 4
%130 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%131 = call i32 @glMaterialfv(i32 noundef %128, i32 noundef %129, ptr noundef %130)
%132 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%133 = call i32 (...) @glPopMatrix()
%134 = call i32 (...) @glPushMatrix()
%135 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%136 = load i32, ptr @GL_FRONT, align 4
%137 = load i32, ptr @GL_AMBIENT, align 4
%138 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%139 = call i32 @glMaterialfv(i32 noundef %136, i32 noundef %137, ptr noundef %138)
%140 = load i32, ptr @GL_FRONT, align 4
%141 = load i32, ptr @GL_DIFFUSE, align 4
%142 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%143 = call i32 @glMaterialfv(i32 noundef %140, i32 noundef %141, ptr noundef %142)
%144 = load i32, ptr @GL_FRONT, align 4
%145 = load i32, ptr @GL_SPECULAR, align 4
%146 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%147 = call i32 @glMaterialfv(i32 noundef %144, i32 noundef %145, ptr noundef %146)
%148 = load i32, ptr @GL_FRONT, align 4
%149 = load i32, ptr @GL_SHININESS, align 4
%150 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%151 = call i32 @glMaterialfv(i32 noundef %148, i32 noundef %149, ptr noundef %150)
%152 = load i32, ptr @GL_FRONT, align 4
%153 = load i32, ptr @GL_EMISSION, align 4
%154 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%155 = call i32 @glMaterialfv(i32 noundef %152, i32 noundef %153, ptr noundef %154)
%156 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%157 = call i32 (...) @glPopMatrix()
%158 = call i32 (...) @glPushMatrix()
%159 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%160 = load i32, ptr @GL_FRONT, align 4
%161 = load i32, ptr @GL_AMBIENT, align 4
%162 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%163 = call i32 @glMaterialfv(i32 noundef %160, i32 noundef %161, ptr noundef %162)
%164 = load i32, ptr @GL_FRONT, align 4
%165 = load i32, ptr @GL_DIFFUSE, align 4
%166 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%167 = call i32 @glMaterialfv(i32 noundef %164, i32 noundef %165, ptr noundef %166)
%168 = load i32, ptr @GL_FRONT, align 4
%169 = load i32, ptr @GL_SPECULAR, align 4
%170 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%171 = call i32 @glMaterialfv(i32 noundef %168, i32 noundef %169, ptr noundef %170)
%172 = load i32, ptr @GL_FRONT, align 4
%173 = load i32, ptr @GL_SHININESS, align 4
%174 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%175 = call i32 @glMaterialfv(i32 noundef %172, i32 noundef %173, ptr noundef %174)
%176 = load i32, ptr @GL_FRONT, align 4
%177 = load i32, ptr @GL_EMISSION, align 4
%178 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%179 = call i32 @glMaterialfv(i32 noundef %176, i32 noundef %177, ptr noundef %178)
%180 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%181 = call i32 (...) @glPopMatrix()
%182 = call i32 (...) @glPushMatrix()
%183 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%184 = load i32, ptr @GL_FRONT, align 4
%185 = load i32, ptr @GL_AMBIENT, align 4
%186 = getelementptr inbounds [4 x double], ptr %2, i64 0, i64 0
%187 = call i32 @glMaterialfv(i32 noundef %184, i32 noundef %185, ptr noundef %186)
%188 = load i32, ptr @GL_FRONT, align 4
%189 = load i32, ptr @GL_DIFFUSE, align 4
%190 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%191 = call i32 @glMaterialfv(i32 noundef %188, i32 noundef %189, ptr noundef %190)
%192 = load i32, ptr @GL_FRONT, align 4
%193 = load i32, ptr @GL_SPECULAR, align 4
%194 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%195 = call i32 @glMaterialfv(i32 noundef %192, i32 noundef %193, ptr noundef %194)
%196 = load i32, ptr @GL_FRONT, align 4
%197 = load i32, ptr @GL_SHININESS, align 4
%198 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%199 = call i32 @glMaterialfv(i32 noundef %196, i32 noundef %197, ptr noundef %198)
%200 = load i32, ptr @GL_FRONT, align 4
%201 = load i32, ptr @GL_EMISSION, align 4
%202 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%203 = call i32 @glMaterialfv(i32 noundef %200, i32 noundef %201, ptr noundef %202)
%204 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%205 = call i32 (...) @glPopMatrix()
%206 = call i32 (...) @glPushMatrix()
%207 = call i32 @glTranslatef(double noundef -3.750000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%208 = load i32, ptr @GL_FRONT, align 4
%209 = load i32, ptr @GL_AMBIENT, align 4
%210 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%211 = call i32 @glMaterialfv(i32 noundef %208, i32 noundef %209, ptr noundef %210)
%212 = load i32, ptr @GL_FRONT, align 4
%213 = load i32, ptr @GL_DIFFUSE, align 4
%214 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%215 = call i32 @glMaterialfv(i32 noundef %212, i32 noundef %213, ptr noundef %214)
%216 = load i32, ptr @GL_FRONT, align 4
%217 = load i32, ptr @GL_SPECULAR, align 4
%218 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%219 = call i32 @glMaterialfv(i32 noundef %216, i32 noundef %217, ptr noundef %218)
%220 = load i32, ptr @GL_FRONT, align 4
%221 = load i32, ptr @GL_SHININESS, align 4
%222 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%223 = call i32 @glMaterialfv(i32 noundef %220, i32 noundef %221, ptr noundef %222)
%224 = load i32, ptr @GL_FRONT, align 4
%225 = load i32, ptr @GL_EMISSION, align 4
%226 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%227 = call i32 @glMaterialfv(i32 noundef %224, i32 noundef %225, ptr noundef %226)
%228 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%229 = call i32 (...) @glPopMatrix()
%230 = call i32 (...) @glPushMatrix()
%231 = call i32 @glTranslatef(double noundef -1.250000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%232 = load i32, ptr @GL_FRONT, align 4
%233 = load i32, ptr @GL_AMBIENT, align 4
%234 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%235 = call i32 @glMaterialfv(i32 noundef %232, i32 noundef %233, ptr noundef %234)
%236 = load i32, ptr @GL_FRONT, align 4
%237 = load i32, ptr @GL_DIFFUSE, align 4
%238 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%239 = call i32 @glMaterialfv(i32 noundef %236, i32 noundef %237, ptr noundef %238)
%240 = load i32, ptr @GL_FRONT, align 4
%241 = load i32, ptr @GL_SPECULAR, align 4
%242 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%243 = call i32 @glMaterialfv(i32 noundef %240, i32 noundef %241, ptr noundef %242)
%244 = load i32, ptr @GL_FRONT, align 4
%245 = load i32, ptr @GL_SHININESS, align 4
%246 = getelementptr inbounds [1 x double], ptr %7, i64 0, i64 0
%247 = call i32 @glMaterialfv(i32 noundef %244, i32 noundef %245, ptr noundef %246)
%248 = load i32, ptr @GL_FRONT, align 4
%249 = load i32, ptr @GL_EMISSION, align 4
%250 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%251 = call i32 @glMaterialfv(i32 noundef %248, i32 noundef %249, ptr noundef %250)
%252 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%253 = call i32 (...) @glPopMatrix()
%254 = call i32 (...) @glPushMatrix()
%255 = call i32 @glTranslatef(double noundef 1.250000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%256 = load i32, ptr @GL_FRONT, align 4
%257 = load i32, ptr @GL_AMBIENT, align 4
%258 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%259 = call i32 @glMaterialfv(i32 noundef %256, i32 noundef %257, ptr noundef %258)
%260 = load i32, ptr @GL_FRONT, align 4
%261 = load i32, ptr @GL_DIFFUSE, align 4
%262 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%263 = call i32 @glMaterialfv(i32 noundef %260, i32 noundef %261, ptr noundef %262)
%264 = load i32, ptr @GL_FRONT, align 4
%265 = load i32, ptr @GL_SPECULAR, align 4
%266 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
%267 = call i32 @glMaterialfv(i32 noundef %264, i32 noundef %265, ptr noundef %266)
%268 = load i32, ptr @GL_FRONT, align 4
%269 = load i32, ptr @GL_SHININESS, align 4
%270 = getelementptr inbounds [1 x double], ptr %8, i64 0, i64 0
%271 = call i32 @glMaterialfv(i32 noundef %268, i32 noundef %269, ptr noundef %270)
%272 = load i32, ptr @GL_FRONT, align 4
%273 = load i32, ptr @GL_EMISSION, align 4
%274 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%275 = call i32 @glMaterialfv(i32 noundef %272, i32 noundef %273, ptr noundef %274)
%276 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%277 = call i32 (...) @glPopMatrix()
%278 = call i32 (...) @glPushMatrix()
%279 = call i32 @glTranslatef(double noundef 3.750000e+00, double noundef -3.000000e+00, double noundef 0.000000e+00)
%280 = load i32, ptr @GL_FRONT, align 4
%281 = load i32, ptr @GL_AMBIENT, align 4
%282 = getelementptr inbounds [4 x double], ptr %3, i64 0, i64 0
%283 = call i32 @glMaterialfv(i32 noundef %280, i32 noundef %281, ptr noundef %282)
%284 = load i32, ptr @GL_FRONT, align 4
%285 = load i32, ptr @GL_DIFFUSE, align 4
%286 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
%287 = call i32 @glMaterialfv(i32 noundef %284, i32 noundef %285, ptr noundef %286)
%288 = load i32, ptr @GL_FRONT, align 4
%289 = load i32, ptr @GL_SPECULAR, align 4
%290 = getelementptr inbounds [4 x double], ptr %1, i64 0, i64 0
%291 = call i32 @glMaterialfv(i32 noundef %288, i32 noundef %289, ptr noundef %290)
%292 = load i32, ptr @GL_FRONT, align 4
%293 = load i32, ptr @GL_SHININESS, align 4
%294 = getelementptr inbounds [1 x double], ptr %6, i64 0, i64 0
%295 = call i32 @glMaterialfv(i32 noundef %292, i32 noundef %293, ptr noundef %294)
%296 = load i32, ptr @GL_FRONT, align 4
%297 = load i32, ptr @GL_EMISSION, align 4
%298 = getelementptr inbounds [4 x double], ptr %9, i64 0, i64 0
%299 = call i32 @glMaterialfv(i32 noundef %296, i32 noundef %297, ptr noundef %298)
%300 = call i32 @glutSolidSphere(double noundef 1.000000e+00, i32 noundef 16, i32 noundef 16)
%301 = call i32 (...) @glPopMatrix()
%302 = call i32 (...) @glFlush()
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @glClear(i32 noundef) #3
declare i32 @glPushMatrix(...) #3
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #3
declare i32 @glMaterialfv(i32 noundef, i32 noundef, ptr noundef) #3
declare i32 @glutSolidSphere(double noundef, i32 noundef, i32 noundef) #3
declare i32 @glPopMatrix(...) #3
declare i32 @glFlush(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppv2nezfo.c'
source_filename = "/tmp/tmppv2nezfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EthernetEnable(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 1074036736
%5 = zext i1 %4 to i32
%6 = call i32 @DEBUG_ASSERT(i32 noundef %5)
%7 = load i64, ptr %2, align 8
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i64, ptr %9, align 8
%11 = or i64 %10, 16
store volatile i64 %11, ptr %9, align 8
%12 = load i64, ptr %2, align 8
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to ptr
%15 = load volatile i64, ptr %14, align 8
%16 = or i64 %15, 1
store volatile i64 %16, ptr %14, align 8
%17 = load i64, ptr %2, align 8
%18 = add i64 %17, 12
%19 = inttoptr i64 %18 to ptr
%20 = load volatile i64, ptr %19, align 8
%21 = or i64 %20, 1
store volatile i64 %21, ptr %19, align 8
%22 = load i64, ptr %2, align 8
%23 = add i64 %22, 8
%24 = inttoptr i64 %23 to ptr
%25 = load volatile i64, ptr %24, align 8
%26 = or i64 %25, 16
store volatile i64 %26, ptr %24, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppv2nezfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EthernetEnable(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 1074036736
%5 = zext i1 %4 to i32
%6 = call i32 @DEBUG_ASSERT(i32 noundef %5)
%7 = load i64, ptr %2, align 8
%8 = add i64 %7, 8
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i64, ptr %9, align 8
%11 = or i64 %10, 16
store volatile i64 %11, ptr %9, align 8
%12 = load i64, ptr %2, align 8
%13 = add i64 %12, 8
%14 = inttoptr i64 %13 to ptr
%15 = load volatile i64, ptr %14, align 8
%16 = or i64 %15, 1
store volatile i64 %16, ptr %14, align 8
%17 = load i64, ptr %2, align 8
%18 = add i64 %17, 12
%19 = inttoptr i64 %18 to ptr
%20 = load volatile i64, ptr %19, align 8
%21 = or i64 %20, 1
store volatile i64 %21, ptr %19, align 8
%22 = load i64, ptr %2, align 8
%23 = add i64 %22, 8
%24 = inttoptr i64 %23 to ptr
%25 = load volatile i64, ptr %24, align 8
%26 = or i64 %25, 16
store volatile i64 %26, ptr %24, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_q1v_89.c'
source_filename = "/tmp/tmpf_q1v_89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@True = dso_local global i32 0, align 4
@False = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @has_writable_cells(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @visual_class(ptr noundef %6, ptr noundef %7)
switch i32 %8, label %13 [
i32 132, label %9
i32 131, label %9
i32 129, label %11
i32 128, label %11
i32 130, label %11
i32 133, label %11
]
9: ; preds = %2, %2
%10 = load i32, ptr @True, align 4
store i32 %10, ptr %3, align 4
br label %15
11: ; preds = %2, %2, %2, %2
%12 = load i32, ptr @False, align 4
store i32 %12, ptr %3, align 4
br label %15
13: ; preds = %2
%14 = call i32 (...) @abort() #3
unreachable
15: ; preds = %11, %9
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @visual_class(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpf_q1v_89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@True = dso_local global i32 0, align 4
@False = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @has_writable_cells(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @visual_class(ptr noundef %6, ptr noundef %7)
switch i32 %8, label %13 [
i32 132, label %9
i32 131, label %9
i32 129, label %11
i32 128, label %11
i32 130, label %11
i32 133, label %11
]
9: ; preds = %2, %2
%10 = load i32, ptr @True, align 4
store i32 %10, ptr %3, align 4
br label %15
11: ; preds = %2, %2, %2, %2
%12 = load i32, ptr @False, align 4
store i32 %12, ptr %3, align 4
br label %15
13: ; preds = %2
%14 = call i32 (...) @abort() #3
unreachable
15: ; preds = %11, %9
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @visual_class(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmpgtaj1j03.c'
source_filename = "/tmp/tmpgtaj1j03.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%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
%21 = alloca i32, align 4
%22 = alloca [8 x i32], align 16
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i8, align 1
%27 = alloca [20 x i8], align 16
%28 = alloca i8, align 1
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i32 %6, ptr %18, align 4
store i32 %7, ptr %19, align 4
store i32 %8, ptr %20, align 4
store i32 %9, ptr %21, align 4
store i32 0, ptr %23, align 4
%29 = load i32, ptr %14, align 4
%30 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 0
store i32 %29, ptr %30, align 16
%31 = load i32, ptr %15, align 4
%32 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 1
store i32 %31, ptr %32, align 4
%33 = load i32, ptr %16, align 4
%34 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 2
store i32 %33, ptr %34, align 8
%35 = load i32, ptr %17, align 4
%36 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 3
store i32 %35, ptr %36, align 4
%37 = load i32, ptr %18, align 4
%38 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 4
store i32 %37, ptr %38, align 16
%39 = load i32, ptr %19, align 4
%40 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 5
store i32 %39, ptr %40, align 4
%41 = load i32, ptr %20, align 4
%42 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 6
store i32 %41, ptr %42, align 8
%43 = load i32, ptr %21, align 4
%44 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 7
store i32 %43, ptr %44, align 4
br label %45
45: ; preds = %254, %10
%46 = load ptr, ptr %13, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %13, align 8
%48 = load i8, ptr %46, align 1
store i8 %48, ptr %26, align 1
%49 = load i8, ptr %26, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %45
%53 = load i32, ptr %23, align 4
store i32 %53, ptr %11, align 4
br label %256
54: ; preds = %45
%55 = load i8, ptr %26, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 37
br i1 %57, label %58, label %227
58: ; preds = %54
store i32 0, ptr %24, align 4
store i8 32, ptr %28, align 1
%59 = load ptr, ptr %13, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %13, align 8
%61 = load i8, ptr %59, align 1
store i8 %61, ptr %26, align 1
br label %62
62: ; preds = %72, %58
%63 = load i8, ptr %26, align 1
%64 = sext i8 %63 to i32
%65 = icmp sle i32 48, %64
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = load i8, ptr %26, align 1
%68 = sext i8 %67 to i32
%69 = icmp sle i32 %68, 57
br label %70
70: ; preds = %66, %62
%71 = phi i1 [ false, %62 ], [ %69, %66 ]
br i1 %71, label %72, label %82
72: ; preds = %70
%73 = load i32, ptr %24, align 4
%74 = mul nsw i32 %73, 10
%75 = load i8, ptr %26, align 1
%76 = sext i8 %75 to i32
%77 = add nsw i32 %74, %76
%78 = sub nsw i32 %77, 48
store i32 %78, ptr %24, align 4
%79 = load ptr, ptr %13, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %13, align 8
%81 = load i8, ptr %79, align 1
store i8 %81, ptr %26, align 1
br label %62, !llvm.loop !6
82: ; preds = %70
%83 = load i8, ptr %26, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 46
br i1 %85, label %86, label %90
86: ; preds = %82
store i8 48, ptr %28, align 1
%87 = load ptr, ptr %13, align 8
%88 = getelementptr inbounds i8, ptr %87, i32 1
store ptr %88, ptr %13, align 8
%89 = load i8, ptr %87, align 1
store i8 %89, ptr %26, align 1
br label %90
90: ; preds = %86, %82
%91 = load i8, ptr %26, align 1
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %90
%95 = load i32, ptr %23, align 4
store i32 %95, ptr %11, align 4
br label %256
96: ; preds = %90
%97 = load i8, ptr %26, align 1
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 100
br i1 %99, label %100, label %130
100: ; preds = %96
%101 = load ptr, ptr %12, align 8
%102 = load i8, ptr %28, align 1
%103 = load i32, ptr %24, align 4
%104 = call i32 @memset2(ptr noundef %101, i8 noundef signext %102, i32 noundef %103)
%105 = load i32, ptr %23, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %23, align 4
%107 = sext i32 %105 to i64
%108 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %107
%109 = load i32, ptr %108, align 4
%110 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%111 = call i32 @itoa(i32 noundef %109, ptr noundef %110, i32 noundef 10)
%112 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%113 = call i32 @strlen2(ptr noundef %112)
store i32 %113, ptr %25, align 4
%114 = load i32, ptr %24, align 4
%115 = load i32, ptr %25, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %119
117: ; preds = %100
%118 = load i32, ptr %25, align 4
store i32 %118, ptr %24, align 4
br label %119
119: ; preds = %117, %100
%120 = load ptr, ptr %12, align 8
%121 = load i32, ptr %24, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
%124 = load i32, ptr %25, align 4
%125 = sext i32 %124 to i64
%126 = sub i64 0, %125
%127 = getelementptr inbounds i8, ptr %123, i64 %126
%128 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%129 = call i32 @strcpy2(ptr noundef %127, ptr noundef %128)
br label %221
130: ; preds = %96
%131 = load i8, ptr %26, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 120
br i1 %133, label %138, label %134
134: ; preds = %130
%135 = load i8, ptr %26, align 1
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 102
br i1 %137, label %138, label %167
138: ; preds = %134, %130
%139 = load ptr, ptr %12, align 8
%140 = load i32, ptr %24, align 4
%141 = call i32 @memset2(ptr noundef %139, i8 noundef signext 48, i32 noundef %140)
%142 = load i32, ptr %23, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %23, align 4
%144 = sext i32 %142 to i64
%145 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %144
%146 = load i32, ptr %145, align 4
%147 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%148 = call i32 @itoa(i32 noundef %146, ptr noundef %147, i32 noundef 16)
%149 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%150 = call i32 @strlen2(ptr noundef %149)
store i32 %150, ptr %25, align 4
%151 = load i32, ptr %24, align 4
%152 = load i32, ptr %25, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %156
154: ; preds = %138
%155 = load i32, ptr %25, align 4
store i32 %155, ptr %24, align 4
br label %156
156: ; preds = %154, %138
%157 = load ptr, ptr %12, align 8
%158 = load i32, ptr %24, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %157, i64 %159
%161 = load i32, ptr %25, align 4
%162 = sext i32 %161 to i64
%163 = sub i64 0, %162
%164 = getelementptr inbounds i8, ptr %160, i64 %163
%165 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%166 = call i32 @strcpy2(ptr noundef %164, ptr noundef %165)
br label %220
167: ; preds = %134
%168 = load i8, ptr %26, align 1
%169 = sext i8 %168 to i32
%170 = icmp eq i32 %169, 99
br i1 %170, label %171, label %181
171: ; preds = %167
%172 = load i32, ptr %23, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %23, align 4
%174 = sext i32 %172 to i64
%175 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %174
%176 = load i32, ptr %175, align 4
%177 = trunc i32 %176 to i8
%178 = load ptr, ptr %12, align 8
%179 = getelementptr inbounds i8, ptr %178, i32 1
store ptr %179, ptr %12, align 8
store i8 %177, ptr %178, align 1
%180 = load ptr, ptr %12, align 8
store i8 0, ptr %180, align 1
br label %219
181: ; preds = %167
%182 = load i8, ptr %26, align 1
%183 = sext i8 %182 to i32
%184 = icmp eq i32 %183, 115
br i1 %184, label %185, label %218
185: ; preds = %181
%186 = load i32, ptr %23, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %187
%189 = load i32, ptr %188, align 4
%190 = sext i32 %189 to i64
%191 = inttoptr i64 %190 to ptr
%192 = call i32 @strlen2(ptr noundef %191)
store i32 %192, ptr %25, align 4
%193 = load i32, ptr %24, align 4
%194 = load i32, ptr %25, align 4
%195 = icmp sgt i32 %193, %194
br i1 %195, label %196, label %208
196: ; preds = %185
%197 = load ptr, ptr %12, align 8
%198 = load i32, ptr %24, align 4
%199 = load i32, ptr %25, align 4
%200 = sub nsw i32 %198, %199
%201 = call i32 @memset2(ptr noundef %197, i8 noundef signext 32, i32 noundef %200)
%202 = load i32, ptr %24, align 4
%203 = load i32, ptr %25, align 4
%204 = sub nsw i32 %202, %203
%205 = load ptr, ptr %12, align 8
%206 = sext i32 %204 to i64
%207 = getelementptr inbounds i8, ptr %205, i64 %206
store ptr %207, ptr %12, align 8
br label %208
208: ; preds = %196, %185
%209 = load ptr, ptr %12, align 8
%210 = load i32, ptr %23, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %23, align 4
%212 = sext i32 %210 to i64
%213 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %212
%214 = load i32, ptr %213, align 4
%215 = sext i32 %214 to i64
%216 = inttoptr i64 %215 to ptr
%217 = call i32 @strcpy2(ptr noundef %209, ptr noundef %216)
br label %218
218: ; preds = %208, %181
br label %219
219: ; preds = %218, %171
br label %220
220: ; preds = %219, %156
br label %221
221: ; preds = %220, %119
%222 = load ptr, ptr %12, align 8
%223 = call i32 @strlen2(ptr noundef %222)
%224 = load ptr, ptr %12, align 8
%225 = sext i32 %223 to i64
%226 = getelementptr inbounds i8, ptr %224, i64 %225
store ptr %226, ptr %12, align 8
br label %253
227: ; preds = %54
%228 = load i8, ptr %26, align 1
%229 = sext i8 %228 to i32
%230 = icmp eq i32 %229, 10
br i1 %230, label %231, label %234
231: ; preds = %227
%232 = load ptr, ptr %12, align 8
%233 = getelementptr inbounds i8, ptr %232, i32 1
store ptr %233, ptr %12, align 8
store i8 13, ptr %232, align 1
br label %234
234: ; preds = %231, %227
%235 = load i8, ptr %26, align 1
%236 = load ptr, ptr %12, align 8
%237 = getelementptr inbounds i8, ptr %236, i32 1
store ptr %237, ptr %12, align 8
store i8 %235, ptr %236, align 1
%238 = load i8, ptr %26, align 1
%239 = sext i8 %238 to i32
%240 = icmp eq i32 %239, 13
br i1 %240, label %241, label %252
241: ; preds = %234
%242 = load ptr, ptr %13, align 8
%243 = load i8, ptr %242, align 1
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %244, 10
br i1 %245, label %246, label %252
246: ; preds = %241
%247 = load ptr, ptr %13, align 8
%248 = getelementptr inbounds i8, ptr %247, i32 1
store ptr %248, ptr %13, align 8
%249 = load i8, ptr %247, align 1
%250 = load ptr, ptr %12, align 8
%251 = getelementptr inbounds i8, ptr %250, i32 1
store ptr %251, ptr %12, align 8
store i8 %249, ptr %250, align 1
br label %252
252: ; preds = %246, %241, %234
br label %253
253: ; preds = %252, %221
br label %254
254: ; preds = %253
%255 = load ptr, ptr %12, align 8
store i8 0, ptr %255, align 1
br label %45
256: ; preds = %94, %52
%257 = load i32, ptr %11, align 4
ret i32 %257
}
declare i32 @memset2(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @itoa(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen2(ptr noundef) #1
declare i32 @strcpy2(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/tmpgtaj1j03.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%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
%21 = alloca i32, align 4
%22 = alloca [8 x i32], align 16
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i8, align 1
%27 = alloca [20 x i8], align 16
%28 = alloca i8, align 1
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store i32 %5, ptr %17, align 4
store i32 %6, ptr %18, align 4
store i32 %7, ptr %19, align 4
store i32 %8, ptr %20, align 4
store i32 %9, ptr %21, align 4
store i32 0, ptr %23, align 4
%29 = load i32, ptr %14, align 4
%30 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 0
store i32 %29, ptr %30, align 16
%31 = load i32, ptr %15, align 4
%32 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 1
store i32 %31, ptr %32, align 4
%33 = load i32, ptr %16, align 4
%34 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 2
store i32 %33, ptr %34, align 8
%35 = load i32, ptr %17, align 4
%36 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 3
store i32 %35, ptr %36, align 4
%37 = load i32, ptr %18, align 4
%38 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 4
store i32 %37, ptr %38, align 16
%39 = load i32, ptr %19, align 4
%40 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 5
store i32 %39, ptr %40, align 4
%41 = load i32, ptr %20, align 4
%42 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 6
store i32 %41, ptr %42, align 8
%43 = load i32, ptr %21, align 4
%44 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 7
store i32 %43, ptr %44, align 4
%45 = load ptr, ptr %13, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %13, align 8
%47 = load i8, ptr %45, align 1
store i8 %47, ptr %26, align 1
%48 = load i8, ptr %26, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %.lr.ph
.lr.ph: ; preds = %10
br label %53
._crit_edge: ; preds = %253
br label %51
51: ; preds = %._crit_edge, %10
%52 = load i32, ptr %23, align 4
store i32 %52, ptr %11, align 4
br label %261
53: ; preds = %.lr.ph, %253
%54 = load i8, ptr %26, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 37
br i1 %56, label %57, label %226
57: ; preds = %53
store i32 0, ptr %24, align 4
store i8 32, ptr %28, align 1
%58 = load ptr, ptr %13, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %13, align 8
%60 = load i8, ptr %58, align 1
store i8 %60, ptr %26, align 1
br label %61
61: ; preds = %71, %57
%62 = load i8, ptr %26, align 1
%63 = sext i8 %62 to i32
%64 = icmp sle i32 48, %63
br i1 %64, label %65, label %69
65: ; preds = %61
%66 = load i8, ptr %26, align 1
%67 = sext i8 %66 to i32
%68 = icmp sle i32 %67, 57
br label %69
69: ; preds = %65, %61
%70 = phi i1 [ false, %61 ], [ %68, %65 ]
br i1 %70, label %71, label %81
71: ; preds = %69
%72 = load i32, ptr %24, align 4
%73 = mul nsw i32 %72, 10
%74 = load i8, ptr %26, align 1
%75 = sext i8 %74 to i32
%76 = add nsw i32 %73, %75
%77 = sub nsw i32 %76, 48
store i32 %77, ptr %24, align 4
%78 = load ptr, ptr %13, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %13, align 8
%80 = load i8, ptr %78, align 1
store i8 %80, ptr %26, align 1
br label %61, !llvm.loop !6
81: ; preds = %69
%82 = load i8, ptr %26, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 46
br i1 %84, label %85, label %89
85: ; preds = %81
store i8 48, ptr %28, align 1
%86 = load ptr, ptr %13, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %13, align 8
%88 = load i8, ptr %86, align 1
store i8 %88, ptr %26, align 1
br label %89
89: ; preds = %85, %81
%90 = load i8, ptr %26, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %89
%94 = load i32, ptr %23, align 4
store i32 %94, ptr %11, align 4
br label %261
95: ; preds = %89
%96 = load i8, ptr %26, align 1
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 100
br i1 %98, label %99, label %129
99: ; preds = %95
%100 = load ptr, ptr %12, align 8
%101 = load i8, ptr %28, align 1
%102 = load i32, ptr %24, align 4
%103 = call i32 @memset2(ptr noundef %100, i8 noundef signext %101, i32 noundef %102)
%104 = load i32, ptr %23, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %23, align 4
%106 = sext i32 %104 to i64
%107 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %106
%108 = load i32, ptr %107, align 4
%109 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%110 = call i32 @itoa(i32 noundef %108, ptr noundef %109, i32 noundef 10)
%111 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%112 = call i32 @strlen2(ptr noundef %111)
store i32 %112, ptr %25, align 4
%113 = load i32, ptr %24, align 4
%114 = load i32, ptr %25, align 4
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %118
116: ; preds = %99
%117 = load i32, ptr %25, align 4
store i32 %117, ptr %24, align 4
br label %118
118: ; preds = %116, %99
%119 = load ptr, ptr %12, align 8
%120 = load i32, ptr %24, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
%123 = load i32, ptr %25, align 4
%124 = sext i32 %123 to i64
%125 = sub i64 0, %124
%126 = getelementptr inbounds i8, ptr %122, i64 %125
%127 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%128 = call i32 @strcpy2(ptr noundef %126, ptr noundef %127)
br label %220
129: ; preds = %95
%130 = load i8, ptr %26, align 1
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 120
br i1 %132, label %137, label %133
133: ; preds = %129
%134 = load i8, ptr %26, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 102
br i1 %136, label %137, label %166
137: ; preds = %133, %129
%138 = load ptr, ptr %12, align 8
%139 = load i32, ptr %24, align 4
%140 = call i32 @memset2(ptr noundef %138, i8 noundef signext 48, i32 noundef %139)
%141 = load i32, ptr %23, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %23, align 4
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %143
%145 = load i32, ptr %144, align 4
%146 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%147 = call i32 @itoa(i32 noundef %145, ptr noundef %146, i32 noundef 16)
%148 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%149 = call i32 @strlen2(ptr noundef %148)
store i32 %149, ptr %25, align 4
%150 = load i32, ptr %24, align 4
%151 = load i32, ptr %25, align 4
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %155
153: ; preds = %137
%154 = load i32, ptr %25, align 4
store i32 %154, ptr %24, align 4
br label %155
155: ; preds = %153, %137
%156 = load ptr, ptr %12, align 8
%157 = load i32, ptr %24, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %156, i64 %158
%160 = load i32, ptr %25, align 4
%161 = sext i32 %160 to i64
%162 = sub i64 0, %161
%163 = getelementptr inbounds i8, ptr %159, i64 %162
%164 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%165 = call i32 @strcpy2(ptr noundef %163, ptr noundef %164)
br label %219
166: ; preds = %133
%167 = load i8, ptr %26, align 1
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %168, 99
br i1 %169, label %170, label %180
170: ; preds = %166
%171 = load i32, ptr %23, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %23, align 4
%173 = sext i32 %171 to i64
%174 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %173
%175 = load i32, ptr %174, align 4
%176 = trunc i32 %175 to i8
%177 = load ptr, ptr %12, align 8
%178 = getelementptr inbounds i8, ptr %177, i32 1
store ptr %178, ptr %12, align 8
store i8 %176, ptr %177, align 1
%179 = load ptr, ptr %12, align 8
store i8 0, ptr %179, align 1
br label %218
180: ; preds = %166
%181 = load i8, ptr %26, align 1
%182 = sext i8 %181 to i32
%183 = icmp eq i32 %182, 115
br i1 %183, label %184, label %217
184: ; preds = %180
%185 = load i32, ptr %23, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %186
%188 = load i32, ptr %187, align 4
%189 = sext i32 %188 to i64
%190 = inttoptr i64 %189 to ptr
%191 = call i32 @strlen2(ptr noundef %190)
store i32 %191, ptr %25, align 4
%192 = load i32, ptr %24, align 4
%193 = load i32, ptr %25, align 4
%194 = icmp sgt i32 %192, %193
br i1 %194, label %195, label %207
195: ; preds = %184
%196 = load ptr, ptr %12, align 8
%197 = load i32, ptr %24, align 4
%198 = load i32, ptr %25, align 4
%199 = sub nsw i32 %197, %198
%200 = call i32 @memset2(ptr noundef %196, i8 noundef signext 32, i32 noundef %199)
%201 = load i32, ptr %24, align 4
%202 = load i32, ptr %25, align 4
%203 = sub nsw i32 %201, %202
%204 = load ptr, ptr %12, align 8
%205 = sext i32 %203 to i64
%206 = getelementptr inbounds i8, ptr %204, i64 %205
store ptr %206, ptr %12, align 8
br label %207
207: ; preds = %195, %184
%208 = load ptr, ptr %12, align 8
%209 = load i32, ptr %23, align 4
%210 = add nsw i32 %209, 1
store i32 %210, ptr %23, align 4
%211 = sext i32 %209 to i64
%212 = getelementptr inbounds [8 x i32], ptr %22, i64 0, i64 %211
%213 = load i32, ptr %212, align 4
%214 = sext i32 %213 to i64
%215 = inttoptr i64 %214 to ptr
%216 = call i32 @strcpy2(ptr noundef %208, ptr noundef %215)
br label %217
217: ; preds = %207, %180
br label %218
218: ; preds = %217, %170
br label %219
219: ; preds = %218, %155
br label %220
220: ; preds = %219, %118
%221 = load ptr, ptr %12, align 8
%222 = call i32 @strlen2(ptr noundef %221)
%223 = load ptr, ptr %12, align 8
%224 = sext i32 %222 to i64
%225 = getelementptr inbounds i8, ptr %223, i64 %224
store ptr %225, ptr %12, align 8
br label %252
226: ; preds = %53
%227 = load i8, ptr %26, align 1
%228 = sext i8 %227 to i32
%229 = icmp eq i32 %228, 10
br i1 %229, label %230, label %233
230: ; preds = %226
%231 = load ptr, ptr %12, align 8
%232 = getelementptr inbounds i8, ptr %231, i32 1
store ptr %232, ptr %12, align 8
store i8 13, ptr %231, align 1
br label %233
233: ; preds = %230, %226
%234 = load i8, ptr %26, align 1
%235 = load ptr, ptr %12, align 8
%236 = getelementptr inbounds i8, ptr %235, i32 1
store ptr %236, ptr %12, align 8
store i8 %234, ptr %235, align 1
%237 = load i8, ptr %26, align 1
%238 = sext i8 %237 to i32
%239 = icmp eq i32 %238, 13
br i1 %239, label %240, label %251
240: ; preds = %233
%241 = load ptr, ptr %13, align 8
%242 = load i8, ptr %241, align 1
%243 = sext i8 %242 to i32
%244 = icmp eq i32 %243, 10
br i1 %244, label %245, label %251
245: ; preds = %240
%246 = load ptr, ptr %13, align 8
%247 = getelementptr inbounds i8, ptr %246, i32 1
store ptr %247, ptr %13, align 8
%248 = load i8, ptr %246, align 1
%249 = load ptr, ptr %12, align 8
%250 = getelementptr inbounds i8, ptr %249, i32 1
store ptr %250, ptr %12, align 8
store i8 %248, ptr %249, align 1
br label %251
251: ; preds = %245, %240, %233
br label %252
252: ; preds = %251, %220
br label %253
253: ; preds = %252
%254 = load ptr, ptr %12, align 8
store i8 0, ptr %254, align 1
%255 = load ptr, ptr %13, align 8
%256 = getelementptr inbounds i8, ptr %255, i32 1
store ptr %256, ptr %13, align 8
%257 = load i8, ptr %255, align 1
store i8 %257, ptr %26, align 1
%258 = load i8, ptr %26, align 1
%259 = sext i8 %258 to i32
%260 = icmp eq i32 %259, 0
br i1 %260, label %._crit_edge, label %53
261: ; preds = %93, %51
%262 = load i32, ptr %11, align 4
ret i32 %262
}
declare i32 @memset2(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @itoa(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen2(ptr noundef) #1
declare i32 @strcpy2(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/tmp90s9knwc.c'
source_filename = "/tmp/tmp90s9knwc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlib_safestrncpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %43
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %5, align 8
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 0, ptr %17, align 1
br label %18
18: ; preds = %39, %11
%19 = load i64, ptr %6, align 8
%20 = icmp ugt i64 %19, 0
br i1 %20, label %21, label %42
21: ; preds = %18
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %8, align 8
%24 = load i8, ptr %22, align 1
%25 = load ptr, ptr %7, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %7, align 8
store i8 %24, ptr %25, align 1
%27 = sext i8 %24 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %21
br label %30
30: ; preds = %34, %29
%31 = load i64, ptr %6, align 8
%32 = add i64 %31, -1
store i64 %32, ptr %6, align 8
%33 = icmp ugt i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %7, align 8
store i8 0, ptr %35, align 1
br label %30, !llvm.loop !6
37: ; preds = %30
br label %42
38: ; preds = %21
br label %39
39: ; preds = %38
%40 = load i64, ptr %6, align 8
%41 = add i64 %40, -1
store i64 %41, ptr %6, align 8
br label %18, !llvm.loop !8
42: ; preds = %37, %18
br label %43
43: ; preds = %42, %3
%44 = load ptr, ptr %4, align 8
ret ptr %44
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp90s9knwc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlib_safestrncpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ugt i64 %9, 0
br i1 %10, label %11, label %46
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %5, align 8
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %14, i64 %16
store i8 0, ptr %17, align 1
%18 = load i64, ptr %6, align 8
%19 = icmp ugt i64 %18, 0
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %11
br label %20
20: ; preds = %.lr.ph, %40
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %7, align 8
store i8 %23, ptr %24, align 1
%26 = sext i8 %23 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %39
28: ; preds = %20
%29 = load i64, ptr %6, align 8
%30 = add i64 %29, -1
store i64 %30, ptr %6, align 8
%31 = icmp ugt i64 %30, 0
br i1 %31, label %.lr.ph1, label %38
.lr.ph1: ; preds = %28
br label %32
32: ; preds = %.lr.ph1, %32
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %7, align 8
store i8 0, ptr %33, align 1
%35 = load i64, ptr %6, align 8
%36 = add i64 %35, -1
store i64 %36, ptr %6, align 8
%37 = icmp ugt i64 %36, 0
br i1 %37, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %28
br label %45
39: ; preds = %20
br label %40
40: ; preds = %39
%41 = load i64, ptr %6, align 8
%42 = add i64 %41, -1
store i64 %42, ptr %6, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp ugt i64 %43, 0
br i1 %44, label %20, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %40
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %11
br label %45
45: ; preds = %.loopexit, %38
br label %46
46: ; preds = %45, %3
%47 = load ptr, ptr %4, align 8
ret ptr %47
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmphud42xvr.c'
source_filename = "/tmp/tmphud42xvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"um\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"nm\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"m\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"cm\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"mm\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"eV\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"J\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"THz\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"GHz\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"Hz\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"rad/s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @convert_units_from_um(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str)
%8 = icmp eq i64 0, %7
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %108
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str.1)
%13 = icmp eq i64 0, %12
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load double, ptr %15, align 8
%17 = fmul double %16, 1.000000e+03
store double %17, ptr %15, align 8
br label %106
18: ; preds = %10
%19 = load ptr, ptr %5, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.2)
%21 = icmp eq i64 0, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load double, ptr %23, align 8
%25 = fmul double %24, 0x3EB0C6F7A0B5ED8D
store double %25, ptr %23, align 8
br label %105
26: ; preds = %18
%27 = load ptr, ptr %5, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.3)
%29 = icmp eq i64 0, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load ptr, ptr %4, align 8
%32 = load double, ptr %31, align 8
%33 = fmul double %32, 1.000000e-04
store double %33, ptr %31, align 8
br label %104
34: ; preds = %26
%35 = load ptr, ptr %5, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str.4)
%37 = icmp eq i64 0, %36
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load double, ptr %39, align 8
%41 = fmul double %40, 1.000000e-03
store double %41, ptr %39, align 8
br label %103
42: ; preds = %34
%43 = load ptr, ptr %5, align 8
%44 = call i64 @strcmp(ptr noundef %43, ptr noundef @.str.5)
%45 = icmp eq i64 0, %44
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load ptr, ptr %4, align 8
%48 = load double, ptr %47, align 8
%49 = fdiv double 0x3FF3D663C014D249, %48
%50 = load ptr, ptr %4, align 8
store double %49, ptr %50, align 8
br label %102
51: ; preds = %42
%52 = load ptr, ptr %5, align 8
%53 = call i64 @strcmp(ptr noundef %52, ptr noundef @.str.6)
%54 = icmp eq i64 0, %53
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load double, ptr %56, align 8
%58 = fdiv double 0x3C0D50943428E06B, %57
%59 = load ptr, ptr %4, align 8
store double %58, ptr %59, align 8
br label %101
60: ; preds = %51
%61 = load ptr, ptr %5, align 8
%62 = call i64 @strcmp(ptr noundef %61, ptr noundef @.str.7)
%63 = icmp eq i64 0, %62
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load ptr, ptr %4, align 8
%66 = load double, ptr %65, align 8
%67 = fdiv double 0x4072BCADE8709742, %66
%68 = load ptr, ptr %4, align 8
store double %67, ptr %68, align 8
br label %100
69: ; preds = %60
%70 = load ptr, ptr %5, align 8
%71 = call i64 @strcmp(ptr noundef %70, ptr noundef @.str.8)
%72 = icmp eq i64 0, %71
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load ptr, ptr %4, align 8
%75 = load double, ptr %74, align 8
%76 = fdiv double 0x41124C41D4FDF3B6, %75
%77 = load ptr, ptr %4, align 8
store double %76, ptr %77, align 8
br label %99
78: ; preds = %69
%79 = load ptr, ptr %5, align 8
%80 = call i64 @strcmp(ptr noundef %79, ptr noundef @.str.9)
%81 = icmp eq i64 0, %80
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load ptr, ptr %4, align 8
%84 = load double, ptr %83, align 8
%85 = fdiv double 0x42F10A8DEF726800, %84
%86 = load ptr, ptr %4, align 8
store double %85, ptr %86, align 8
br label %98
87: ; preds = %78
%88 = load ptr, ptr %5, align 8
%89 = call i64 @strcmp(ptr noundef %88, ptr noundef @.str.10)
%90 = icmp eq i64 0, %89
br i1 %90, label %91, label %96
91: ; preds = %87
%92 = load ptr, ptr %4, align 8
%93 = load double, ptr %92, align 8
%94 = fdiv double 0x431AC4AF3A3340D5, %93
%95 = load ptr, ptr %4, align 8
store double %94, ptr %95, align 8
br label %97
96: ; preds = %87
store i32 2, ptr %3, align 4
br label %108
97: ; preds = %91
br label %98
98: ; preds = %97, %82
br label %99
99: ; preds = %98, %73
br label %100
100: ; preds = %99, %64
br label %101
101: ; preds = %100, %55
br label %102
102: ; preds = %101, %46
br label %103
103: ; preds = %102, %38
br label %104
104: ; preds = %103, %30
br label %105
105: ; preds = %104, %22
br label %106
106: ; preds = %105, %14
br label %107
107: ; preds = %106
store i32 0, ptr %3, align 4
br label %108
108: ; preds = %107, %96, %9
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphud42xvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"um\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"nm\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"m\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"cm\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"mm\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"eV\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"J\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"THz\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"GHz\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"Hz\00", align 1
@.str.10 = private unnamed_addr constant [6 x i8] c"rad/s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @convert_units_from_um(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = call i64 @strcmp(ptr noundef %6, ptr noundef @.str)
%8 = icmp eq i64 0, %7
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %108
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str.1)
%13 = icmp eq i64 0, %12
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load double, ptr %15, align 8
%17 = fmul double %16, 1.000000e+03
store double %17, ptr %15, align 8
br label %106
18: ; preds = %10
%19 = load ptr, ptr %5, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str.2)
%21 = icmp eq i64 0, %20
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load double, ptr %23, align 8
%25 = fmul double %24, 0x3EB0C6F7A0B5ED8D
store double %25, ptr %23, align 8
br label %105
26: ; preds = %18
%27 = load ptr, ptr %5, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.3)
%29 = icmp eq i64 0, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load ptr, ptr %4, align 8
%32 = load double, ptr %31, align 8
%33 = fmul double %32, 1.000000e-04
store double %33, ptr %31, align 8
br label %104
34: ; preds = %26
%35 = load ptr, ptr %5, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str.4)
%37 = icmp eq i64 0, %36
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load double, ptr %39, align 8
%41 = fmul double %40, 1.000000e-03
store double %41, ptr %39, align 8
br label %103
42: ; preds = %34
%43 = load ptr, ptr %5, align 8
%44 = call i64 @strcmp(ptr noundef %43, ptr noundef @.str.5)
%45 = icmp eq i64 0, %44
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load ptr, ptr %4, align 8
%48 = load double, ptr %47, align 8
%49 = fdiv double 0x3FF3D663C014D249, %48
%50 = load ptr, ptr %4, align 8
store double %49, ptr %50, align 8
br label %102
51: ; preds = %42
%52 = load ptr, ptr %5, align 8
%53 = call i64 @strcmp(ptr noundef %52, ptr noundef @.str.6)
%54 = icmp eq i64 0, %53
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = load ptr, ptr %4, align 8
%57 = load double, ptr %56, align 8
%58 = fdiv double 0x3C0D50943428E06B, %57
%59 = load ptr, ptr %4, align 8
store double %58, ptr %59, align 8
br label %101
60: ; preds = %51
%61 = load ptr, ptr %5, align 8
%62 = call i64 @strcmp(ptr noundef %61, ptr noundef @.str.7)
%63 = icmp eq i64 0, %62
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load ptr, ptr %4, align 8
%66 = load double, ptr %65, align 8
%67 = fdiv double 0x4072BCADE8709742, %66
%68 = load ptr, ptr %4, align 8
store double %67, ptr %68, align 8
br label %100
69: ; preds = %60
%70 = load ptr, ptr %5, align 8
%71 = call i64 @strcmp(ptr noundef %70, ptr noundef @.str.8)
%72 = icmp eq i64 0, %71
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load ptr, ptr %4, align 8
%75 = load double, ptr %74, align 8
%76 = fdiv double 0x41124C41D4FDF3B6, %75
%77 = load ptr, ptr %4, align 8
store double %76, ptr %77, align 8
br label %99
78: ; preds = %69
%79 = load ptr, ptr %5, align 8
%80 = call i64 @strcmp(ptr noundef %79, ptr noundef @.str.9)
%81 = icmp eq i64 0, %80
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load ptr, ptr %4, align 8
%84 = load double, ptr %83, align 8
%85 = fdiv double 0x42F10A8DEF726800, %84
%86 = load ptr, ptr %4, align 8
store double %85, ptr %86, align 8
br label %98
87: ; preds = %78
%88 = load ptr, ptr %5, align 8
%89 = call i64 @strcmp(ptr noundef %88, ptr noundef @.str.10)
%90 = icmp eq i64 0, %89
br i1 %90, label %91, label %96
91: ; preds = %87
%92 = load ptr, ptr %4, align 8
%93 = load double, ptr %92, align 8
%94 = fdiv double 0x431AC4AF3A3340D5, %93
%95 = load ptr, ptr %4, align 8
store double %94, ptr %95, align 8
br label %97
96: ; preds = %87
store i32 2, ptr %3, align 4
br label %108
97: ; preds = %91
br label %98
98: ; preds = %97, %82
br label %99
99: ; preds = %98, %73
br label %100
100: ; preds = %99, %64
br label %101
101: ; preds = %100, %55
br label %102
102: ; preds = %101, %46
br label %103
103: ; preds = %102, %38
br label %104
104: ; preds = %103, %30
br label %105
105: ; preds = %104, %22
br label %106
106: ; preds = %105, %14
br label %107
107: ; preds = %106
store i32 0, ptr %3, align 4
br label %108
108: ; preds = %107, %96, %9
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2aceq3yq.c'
source_filename = "/tmp/tmp2aceq3yq.c"
target datalayout = "e-m:e-p270: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/tmp2aceq3yq.c"
target datalayout = "e-m:e-p270: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/tmpbvtk72ye.c'
source_filename = "/tmp/tmpbvtk72ye.c"
target datalayout = "e-m:e-p270: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/tmpbvtk72ye.c"
target datalayout = "e-m:e-p270: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/tmp0c98_r1q.c'
source_filename = "/tmp/tmp0c98_r1q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Value out of bounds, precision probably too low\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @dichotomy_inv_decfunc(float noundef %0, float noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #0 {
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca float, align 4
%13 = alloca float, align 4
store float %0, ptr %7, align 4
store float %1, ptr %8, align 4
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%14 = load float, ptr %7, align 4
%15 = load float, ptr %8, align 4
%16 = fadd float %14, %15
%17 = fdiv float %16, 2.000000e+00
store float %17, ptr %12, align 4
%18 = load ptr, ptr %11, align 8
%19 = load float, ptr %12, align 4
%20 = call float %18(float noundef %19)
store float %20, ptr %13, align 4
%21 = load float, ptr %9, align 4
%22 = call float @llvm.fabs.f32(float %21)
%23 = load float, ptr %10, align 4
%24 = fcmp olt float %22, %23
br i1 %24, label %25, label %32
25: ; preds = %5
%26 = load float, ptr %9, align 4
%27 = load float, ptr %13, align 4
%28 = fsub float %26, %27
%29 = call float @llvm.fabs.f32(float %28)
%30 = load float, ptr %10, align 4
%31 = fcmp olt float %29, %30
br i1 %31, label %41, label %32
32: ; preds = %25, %5
%33 = load float, ptr %9, align 4
%34 = load float, ptr %13, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %9, align 4
%37 = fdiv float %35, %36
%38 = call float @llvm.fabs.f32(float %37)
%39 = load float, ptr %10, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %32, %25
%42 = load float, ptr %12, align 4
store float %42, ptr %6, align 4
br label %76
43: ; preds = %32
%44 = load float, ptr %9, align 4
%45 = load ptr, ptr %11, align 8
%46 = load float, ptr %8, align 4
%47 = call float %45(float noundef %46)
%48 = fcmp olt float %44, %47
br i1 %48, label %55, label %49
49: ; preds = %43
%50 = load float, ptr %9, align 4
%51 = load ptr, ptr %11, align 8
%52 = load float, ptr %7, align 4
%53 = call float %51(float noundef %52)
%54 = fcmp ogt float %50, %53
br i1 %54, label %55, label %58
55: ; preds = %49, %43
%56 = call i32 @sarprintf_error(ptr noundef @.str)
%57 = load float, ptr %12, align 4
store float %57, ptr %6, align 4
br label %76
58: ; preds = %49
%59 = load float, ptr %9, align 4
%60 = load float, ptr %13, align 4
%61 = fcmp ogt float %59, %60
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = load float, ptr %7, align 4
%64 = load float, ptr %12, align 4
%65 = load float, ptr %9, align 4
%66 = load float, ptr %10, align 4
%67 = load ptr, ptr %11, align 8
%68 = call float @dichotomy_inv_decfunc(float noundef %63, float noundef %64, float noundef %65, float noundef %66, ptr noundef %67)
store float %68, ptr %6, align 4
br label %76
69: ; preds = %58
%70 = load float, ptr %12, align 4
%71 = load float, ptr %8, align 4
%72 = load float, ptr %9, align 4
%73 = load float, ptr %10, align 4
%74 = load ptr, ptr %11, align 8
%75 = call float @dichotomy_inv_decfunc(float noundef %70, float noundef %71, float noundef %72, float noundef %73, ptr noundef %74)
store float %75, ptr %6, align 4
br label %76
76: ; preds = %69, %62, %55, %41
%77 = load float, ptr %6, align 4
ret float %77
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare i32 @sarprintf_error(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0c98_r1q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"Value out of bounds, precision probably too low\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @dichotomy_inv_decfunc(float noundef %0, float noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #0 {
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca ptr, align 8
%12 = alloca float, align 4
%13 = alloca float, align 4
store float %0, ptr %7, align 4
store float %1, ptr %8, align 4
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
%14 = load float, ptr %7, align 4
%15 = load float, ptr %8, align 4
%16 = fadd float %14, %15
%17 = fdiv float %16, 2.000000e+00
store float %17, ptr %12, align 4
%18 = load ptr, ptr %11, align 8
%19 = load float, ptr %12, align 4
%20 = call float %18(float noundef %19)
store float %20, ptr %13, align 4
%21 = load float, ptr %9, align 4
%22 = call float @llvm.fabs.f32(float %21)
%23 = load float, ptr %10, align 4
%24 = fcmp olt float %22, %23
br i1 %24, label %25, label %32
25: ; preds = %5
%26 = load float, ptr %9, align 4
%27 = load float, ptr %13, align 4
%28 = fsub float %26, %27
%29 = call float @llvm.fabs.f32(float %28)
%30 = load float, ptr %10, align 4
%31 = fcmp olt float %29, %30
br i1 %31, label %41, label %32
32: ; preds = %25, %5
%33 = load float, ptr %9, align 4
%34 = load float, ptr %13, align 4
%35 = fsub float %33, %34
%36 = load float, ptr %9, align 4
%37 = fdiv float %35, %36
%38 = call float @llvm.fabs.f32(float %37)
%39 = load float, ptr %10, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %32, %25
%42 = load float, ptr %12, align 4
store float %42, ptr %6, align 4
br label %76
43: ; preds = %32
%44 = load float, ptr %9, align 4
%45 = load ptr, ptr %11, align 8
%46 = load float, ptr %8, align 4
%47 = call float %45(float noundef %46)
%48 = fcmp olt float %44, %47
br i1 %48, label %55, label %49
49: ; preds = %43
%50 = load float, ptr %9, align 4
%51 = load ptr, ptr %11, align 8
%52 = load float, ptr %7, align 4
%53 = call float %51(float noundef %52)
%54 = fcmp ogt float %50, %53
br i1 %54, label %55, label %58
55: ; preds = %49, %43
%56 = call i32 @sarprintf_error(ptr noundef @.str)
%57 = load float, ptr %12, align 4
store float %57, ptr %6, align 4
br label %76
58: ; preds = %49
%59 = load float, ptr %9, align 4
%60 = load float, ptr %13, align 4
%61 = fcmp ogt float %59, %60
br i1 %61, label %62, label %69
62: ; preds = %58
%63 = load float, ptr %7, align 4
%64 = load float, ptr %12, align 4
%65 = load float, ptr %9, align 4
%66 = load float, ptr %10, align 4
%67 = load ptr, ptr %11, align 8
%68 = call float @dichotomy_inv_decfunc(float noundef %63, float noundef %64, float noundef %65, float noundef %66, ptr noundef %67)
store float %68, ptr %6, align 4
br label %76
69: ; preds = %58
%70 = load float, ptr %12, align 4
%71 = load float, ptr %8, align 4
%72 = load float, ptr %9, align 4
%73 = load float, ptr %10, align 4
%74 = load ptr, ptr %11, align 8
%75 = call float @dichotomy_inv_decfunc(float noundef %70, float noundef %71, float noundef %72, float noundef %73, ptr noundef %74)
store float %75, ptr %6, align 4
br label %76
76: ; preds = %69, %62, %55, %41
%77 = load float, ptr %6, align 4
ret float %77
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare i32 @sarprintf_error(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgyp3s4ag.c'
source_filename = "/tmp/tmpgyp3s4ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plugin_api_config_get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @config_file_search_with_string(ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef %3, ptr noundef null)
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare i32 @config_file_search_with_string(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/tmpgyp3s4ag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plugin_api_config_get(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @config_file_search_with_string(ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef %3, ptr noundef null)
%6 = load ptr, ptr %3, align 8
ret ptr %6
}
declare i32 @config_file_search_with_string(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/tmpyvl73kuw.c'
source_filename = "/tmp/tmpyvl73kuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"RETURNED %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 @fun(i32 noundef 1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyvl73kuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"RETURNED %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 @fun(i32 noundef 1)
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i32 @fun(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpugc7p4gl.c'
source_filename = "/tmp/tmpugc7p4gl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msock_close_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpugc7p4gl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msock_close_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvkgqxcl5.c'
source_filename = "/tmp/tmpvkgqxcl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A \22%s\22 expected, but got \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @expect_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = call i32 (...) @printfail()
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printfail(...) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvkgqxcl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A \22%s\22 expected, but got \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @expect_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = call i32 (...) @printfail()
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printfail(...) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe5hvy63d.c'
source_filename = "/tmp/tmpe5hvy63d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"40000\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_start() #0 {
%1 = alloca [64 x i8], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @getmyaddr(ptr noundef %3)
%5 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @client_connect(ptr noundef %5, ptr noundef @.str)
store i32 %6, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %24
8: ; preds = %0
%9 = call i64 (...) @fork()
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = call i32 (...) @upload_daemon()
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %8
br label %15
15: ; preds = %19, %14
%16 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%17 = call i32 @client_connect(ptr noundef %16, ptr noundef @.str)
store i32 %17, ptr %2, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
br label %15, !llvm.loop !6
20: ; preds = %15
%21 = load i32, ptr %2, align 4
%22 = call i32 @close(i32 noundef %21)
%23 = call i32 @client_cmd(i32 noundef 1, ptr noundef null, ptr noundef null)
br label %27
24: ; preds = %0
%25 = load i32, ptr %2, align 4
%26 = call i32 @close(i32 noundef %25)
br label %27
27: ; preds = %24, %20
ret void
}
declare i32 @getmyaddr(ptr noundef) #1
declare i32 @client_connect(ptr noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @upload_daemon(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @client_cmd(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" }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe5hvy63d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"40000\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @client_start() #0 {
%1 = alloca [64 x i8], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @getmyaddr(ptr noundef %3)
%5 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @client_connect(ptr noundef %5, ptr noundef @.str)
store i32 %6, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %23
8: ; preds = %0
%9 = call i64 (...) @fork()
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = call i32 (...) @upload_daemon()
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %8
br label %15
15: ; preds = %15, %14
%16 = getelementptr inbounds [64 x i8], ptr %1, i64 0, i64 0
%17 = call i32 @client_connect(ptr noundef %16, ptr noundef @.str)
store i32 %17, ptr %2, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %15, label %19, !llvm.loop !6
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = call i32 @close(i32 noundef %20)
%22 = call i32 @client_cmd(i32 noundef 1, ptr noundef null, ptr noundef null)
br label %26
23: ; preds = %0
%24 = load i32, ptr %2, align 4
%25 = call i32 @close(i32 noundef %24)
br label %26
26: ; preds = %23, %19
ret void
}
declare i32 @getmyaddr(ptr noundef) #1
declare i32 @client_connect(ptr noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @upload_daemon(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @close(i32 noundef) #1
declare i32 @client_cmd(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" }
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"}
|
; ModuleID = '/tmp/tmpide6fj0q.c'
source_filename = "/tmp/tmpide6fj0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example10() #0 {
%1 = alloca [20 x i32], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 5
store i32 3, ptr %3, align 4
store i32 5, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 %5
store i32 7, ptr %6, align 4
%7 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 5
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 7
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpide6fj0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example10() #0 {
%1 = alloca [20 x i32], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 5
store i32 3, ptr %3, align 4
store i32 5, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 %5
store i32 7, ptr %6, align 4
%7 = getelementptr inbounds [20 x i32], ptr %1, i64 0, i64 5
%8 = load i32, ptr %7, align 4
%9 = icmp eq i32 %8, 7
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplupi7kf9.c'
source_filename = "/tmp/tmplupi7kf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"./check_smartmon.py\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @geteuid()
%7 = call i32 (...) @geteuid()
%8 = call i32 @setreuid(i32 noundef %6, i32 noundef %7)
%9 = call i32 (...) @getegid()
%10 = call i32 (...) @getegid()
%11 = call i32 @setregid(i32 noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @execv(ptr noundef @.str, ptr noundef %12)
ret i32 %13
}
declare i32 @setreuid(i32 noundef, i32 noundef) #1
declare i32 @geteuid(...) #1
declare i32 @setregid(i32 noundef, i32 noundef) #1
declare i32 @getegid(...) #1
declare i32 @execv(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/tmplupi7kf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"./check_smartmon.py\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @geteuid()
%7 = call i32 (...) @geteuid()
%8 = call i32 @setreuid(i32 noundef %6, i32 noundef %7)
%9 = call i32 (...) @getegid()
%10 = call i32 (...) @getegid()
%11 = call i32 @setregid(i32 noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @execv(ptr noundef @.str, ptr noundef %12)
ret i32 %13
}
declare i32 @setreuid(i32 noundef, i32 noundef) #1
declare i32 @geteuid(...) #1
declare i32 @setregid(i32 noundef, i32 noundef) #1
declare i32 @getegid(...) #1
declare i32 @execv(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/tmpeacwumr_.c'
source_filename = "/tmp/tmpeacwumr_.c"
target datalayout = "e-m:e-p270: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/tmpeacwumr_.c"
target datalayout = "e-m:e-p270: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/tmpm3sr8i1g.c'
source_filename = "/tmp/tmpm3sr8i1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @letterEquals(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
%6 = load i8, ptr %4, align 1
%7 = call i64 @isLetter(i8 noundef signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %46
9: ; preds = %2
%10 = load i8, ptr %5, align 1
%11 = call i64 @isLetter(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %46
13: ; preds = %9
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %5, align 1
%17 = sext i8 %16 to i32
%18 = icmp slt i32 %15, %17
br i1 %18, label %19, label %29
19: ; preds = %13
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = call signext i8 (...) @getUppercaseLowercaseOffset()
%23 = sext i8 %22 to i32
%24 = add nsw i32 %21, %23
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %24, %26
%28 = zext i1 %27 to i32
store i32 %28, ptr %3, align 4
br label %53
29: ; preds = %13
%30 = load i8, ptr %5, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %4, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %45
35: ; preds = %29
%36 = load i8, ptr %5, align 1
%37 = sext i8 %36 to i32
%38 = call signext i8 (...) @getUppercaseLowercaseOffset()
%39 = sext i8 %38 to i32
%40 = add nsw i32 %37, %39
%41 = load i8, ptr %4, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %40, %42
%44 = zext i1 %43 to i32
store i32 %44, ptr %3, align 4
br label %53
45: ; preds = %29
store i32 1, ptr %3, align 4
br label %53
46: ; preds = %9, %2
%47 = load i8, ptr %4, align 1
%48 = sext i8 %47 to i32
%49 = load i8, ptr %5, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %48, %50
%52 = zext i1 %51 to i32
store i32 %52, ptr %3, align 4
br label %53
53: ; preds = %46, %45, %35, %19
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @isLetter(i8 noundef signext) #1
declare signext i8 @getUppercaseLowercaseOffset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm3sr8i1g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @letterEquals(i8 noundef signext %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store i8 %0, ptr %4, align 1
store i8 %1, ptr %5, align 1
%6 = load i8, ptr %4, align 1
%7 = call i64 @isLetter(i8 noundef signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %46
9: ; preds = %2
%10 = load i8, ptr %5, align 1
%11 = call i64 @isLetter(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %46
13: ; preds = %9
%14 = load i8, ptr %4, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %5, align 1
%17 = sext i8 %16 to i32
%18 = icmp slt i32 %15, %17
br i1 %18, label %19, label %29
19: ; preds = %13
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = call signext i8 (...) @getUppercaseLowercaseOffset()
%23 = sext i8 %22 to i32
%24 = add nsw i32 %21, %23
%25 = load i8, ptr %5, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %24, %26
%28 = zext i1 %27 to i32
store i32 %28, ptr %3, align 4
br label %53
29: ; preds = %13
%30 = load i8, ptr %5, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr %4, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %45
35: ; preds = %29
%36 = load i8, ptr %5, align 1
%37 = sext i8 %36 to i32
%38 = call signext i8 (...) @getUppercaseLowercaseOffset()
%39 = sext i8 %38 to i32
%40 = add nsw i32 %37, %39
%41 = load i8, ptr %4, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %40, %42
%44 = zext i1 %43 to i32
store i32 %44, ptr %3, align 4
br label %53
45: ; preds = %29
store i32 1, ptr %3, align 4
br label %53
46: ; preds = %9, %2
%47 = load i8, ptr %4, align 1
%48 = sext i8 %47 to i32
%49 = load i8, ptr %5, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %48, %50
%52 = zext i1 %51 to i32
store i32 %52, ptr %3, align 4
br label %53
53: ; preds = %46, %45, %35, %19
%54 = load i32, ptr %3, align 4
ret i32 %54
}
declare i64 @isLetter(i8 noundef signext) #1
declare signext i8 @getUppercaseLowercaseOffset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy1aztros.c'
source_filename = "/tmp/tmpy1aztros.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Goodbye\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"World\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"fork error\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
%5 = call i64 (...) @fork()
store i64 %5, ptr %2, align 8
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @err_sys(ptr noundef @.str.2)
br label %18
9: ; preds = %0
%10 = load i64, ptr %2, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call i32 @print_message_function(ptr noundef %13)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %9
br label %18
18: ; preds = %17, %7
%19 = call i64 (...) @fork()
store i64 %19, ptr %2, align 8
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @err_sys(ptr noundef @.str.2)
br label %33
23: ; preds = %18
%24 = load i64, ptr %2, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
%28 = call i32 @print_message_function(ptr noundef %27)
%29 = call i32 @printf(ptr noundef @.str.3)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %23
br label %33
33: ; preds = %32, %21
%34 = load i32, ptr @EXIT_SUCCESS, align 4
%35 = call i32 @exit(i32 noundef %34) #3
unreachable
}
declare i64 @fork(...) #1
declare i32 @err_sys(ptr noundef) #1
declare i32 @print_message_function(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpy1aztros.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Goodbye\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"World\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"fork error\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
%5 = call i64 (...) @fork()
store i64 %5, ptr %2, align 8
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @err_sys(ptr noundef @.str.2)
br label %18
9: ; preds = %0
%10 = load i64, ptr %2, align 8
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call i32 @print_message_function(ptr noundef %13)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %9
br label %18
18: ; preds = %17, %7
%19 = call i64 (...) @fork()
store i64 %19, ptr %2, align 8
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @err_sys(ptr noundef @.str.2)
br label %33
23: ; preds = %18
%24 = load i64, ptr %2, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
%28 = call i32 @print_message_function(ptr noundef %27)
%29 = call i32 @printf(ptr noundef @.str.3)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %23
br label %33
33: ; preds = %32, %21
%34 = load i32, ptr @EXIT_SUCCESS, align 4
%35 = call i32 @exit(i32 noundef %34) #3
unreachable
}
declare i64 @fork(...) #1
declare i32 @err_sys(ptr noundef) #1
declare i32 @print_message_function(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpxcqqwapo.c'
source_filename = "/tmp/tmpxcqqwapo.c"
target datalayout = "e-m:e-p270: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/tmpxcqqwapo.c"
target datalayout = "e-m:e-p270: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/tmpb5sbwlh_.c'
source_filename = "/tmp/tmpb5sbwlh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb5sbwlh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpteru37yh.c'
source_filename = "/tmp/tmpteru37yh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_last_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %4, align 1
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call ptr @find_last_char_count(ptr noundef %5, i8 noundef signext %6, i32 noundef %8)
ret ptr %9
}
declare ptr @find_last_char_count(ptr noundef, i8 noundef signext, 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/tmpteru37yh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_last_char(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %4, align 1
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call ptr @find_last_char_count(ptr noundef %5, i8 noundef signext %6, i32 noundef %8)
ret ptr %9
}
declare ptr @find_last_char_count(ptr noundef, i8 noundef signext, 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/tmpub6el1g3.c'
source_filename = "/tmp/tmpub6el1g3.c"
target datalayout = "e-m:e-p270: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/tmpub6el1g3.c"
target datalayout = "e-m:e-p270: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/tmpubtliosr.c'
source_filename = "/tmp/tmpubtliosr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"client message\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @AF_INET, align 4
%9 = load i32, ptr @SOCK_DGRAM, align 4
%10 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef 0)
store i32 %10, ptr %6, align 4
%11 = call i32 @bzero(ptr noundef %7, i32 noundef 8)
%12 = load i32, ptr @AF_INET, align 4
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = call i32 @htons(i32 noundef 7779)
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %14, ptr %15, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @connect(i32 noundef %16, ptr noundef %7, i32 noundef 8)
%18 = load i32, ptr %6, align 4
%19 = call i32 @write(i32 noundef %18, ptr noundef @.str, i32 noundef 14)
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpubtliosr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"client message\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @AF_INET, align 4
%9 = load i32, ptr @SOCK_DGRAM, align 4
%10 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef 0)
store i32 %10, ptr %6, align 4
%11 = call i32 @bzero(ptr noundef %7, i32 noundef 8)
%12 = load i32, ptr @AF_INET, align 4
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %12, ptr %13, align 4
%14 = call i32 @htons(i32 noundef 7779)
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %14, ptr %15, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 @connect(i32 noundef %16, ptr noundef %7, i32 noundef 8)
%18 = load i32, ptr %6, align 4
%19 = call i32 @write(i32 noundef %18, ptr noundef @.str, i32 noundef 14)
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzreaedmt.c'
source_filename = "/tmp/tmpzreaedmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_q_makeword(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %30, %2
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %5, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br i1 %18, label %19, label %27
19: ; preds = %9
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br label %27
27: ; preds = %19, %9
%28 = phi i1 [ false, %9 ], [ %26, %19 ]
br i1 %28, label %29, label %33
29: ; preds = %27
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 %9, !llvm.loop !6
33: ; preds = %27
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = mul i64 1, %36
%38 = trunc i64 %37 to i32
%39 = call i64 @malloc(i32 noundef %38)
%40 = inttoptr i64 %39 to ptr
store ptr %40, ptr %6, align 8
%41 = load ptr, ptr %6, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %44
43: ; preds = %33
store ptr null, ptr %3, align 8
br label %108
44: ; preds = %33
store i32 0, ptr %8, align 4
br label %45
45: ; preds = %59, %44
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %62
49: ; preds = %45
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
store i8 %54, ptr %58, align 1
br label %59
59: ; preds = %49
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
br label %45, !llvm.loop !8
62: ; preds = %45
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %8, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %7, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
%71 = load i8, ptr %70, align 1
%72 = icmp ne i8 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %62
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %7, align 4
br label %76
76: ; preds = %73, %62
%77 = load i32, ptr %7, align 4
store i32 %77, ptr %8, align 4
br label %78
78: ; preds = %97, %76
%79 = load ptr, ptr %4, align 8
%80 = load i32, ptr %8, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = icmp ne i8 %83, 0
br i1 %84, label %85, label %100
85: ; preds = %78
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %8, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = load i8, ptr %89, align 1
%91 = load ptr, ptr %4, align 8
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr %7, align 4
%94 = sub nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %91, i64 %95
store i8 %90, ptr %96, align 1
br label %97
97: ; preds = %85
%98 = load i32, ptr %8, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %8, align 4
br label %78, !llvm.loop !9
100: ; preds = %78
%101 = load ptr, ptr %4, align 8
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %7, align 4
%104 = sub nsw i32 %102, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, ptr %101, i64 %105
store i8 0, ptr %106, align 1
%107 = load ptr, ptr %6, align 8
store ptr %107, ptr %3, align 8
br label %108
108: ; preds = %100, %43
%109 = load ptr, ptr %3, align 8
ret ptr %109
}
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/tmpzreaedmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_q_makeword(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %30, %2
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr %5, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br i1 %18, label %19, label %27
19: ; preds = %9
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br label %27
27: ; preds = %19, %9
%28 = phi i1 [ false, %9 ], [ %26, %19 ]
br i1 %28, label %29, label %33
29: ; preds = %27
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 %9, !llvm.loop !6
33: ; preds = %27
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = mul i64 1, %36
%38 = trunc i64 %37 to i32
%39 = call i64 @malloc(i32 noundef %38)
%40 = inttoptr i64 %39 to ptr
store ptr %40, ptr %6, align 8
%41 = load ptr, ptr %6, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %44
43: ; preds = %33
store ptr null, ptr %3, align 8
br label %115
44: ; preds = %33
store i32 0, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %64
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %58
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
%53 = load i8, ptr %52, align 1
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
store i8 %53, ptr %57, align 1
br label %58
58: ; preds = %48
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %8, align 4
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %48, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %44
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
store i8 0, ptr %68, align 1
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %7, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = icmp ne i8 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %64
%76 = load i32, ptr %7, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %7, align 4
br label %78
78: ; preds = %75, %64
%79 = load i32, ptr %7, align 4
store i32 %79, ptr %8, align 4
%80 = load ptr, ptr %4, align 8
%81 = load i32, ptr %8, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = icmp ne i8 %84, 0
br i1 %85, label %.lr.ph2, label %107
.lr.ph2: ; preds = %78
br label %86
86: ; preds = %.lr.ph2, %98
%87 = load ptr, ptr %4, align 8
%88 = load i32, ptr %8, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = load ptr, ptr %4, align 8
%93 = load i32, ptr %8, align 4
%94 = load i32, ptr %7, align 4
%95 = sub nsw i32 %93, %94
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %92, i64 %96
store i8 %91, ptr %97, align 1
br label %98
98: ; preds = %86
%99 = load i32, ptr %8, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %8, align 4
%101 = load ptr, ptr %4, align 8
%102 = load i32, ptr %8, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = icmp ne i8 %105, 0
br i1 %106, label %86, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %98
br label %107
107: ; preds = %._crit_edge3, %78
%108 = load ptr, ptr %4, align 8
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr %7, align 4
%111 = sub nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %108, i64 %112
store i8 0, ptr %113, align 1
%114 = load ptr, ptr %6, align 8
store ptr %114, ptr %3, align 8
br label %115
115: ; preds = %107, %43
%116 = load ptr, ptr %3, align 8
ret ptr %116
}
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/tmpuvu1u7_w.c'
source_filename = "/tmp/tmpuvu1u7_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @j_sethgap(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @japi_sethgap(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @japi_sethgap(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuvu1u7_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @j_sethgap(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @japi_sethgap(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @japi_sethgap(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppd0eswn0.c'
source_filename = "/tmp/tmppd0eswn0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Unable to create listening socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Setting socket option\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_LOOPBACK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Unable to bind to local address\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Unable to set socket backlog\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Unable to accept socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %8, align 4
store i32 12, ptr %11, align 4
%12 = load i32, ptr @PF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr @SOL_SOCKET, align 4
%22 = load i32, ptr @SO_REUSEADDR, align 4
%23 = call i32 @setsockopt(i32 noundef %20, i32 noundef %21, i32 noundef %22, ptr noundef %8, i32 noundef 4)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = call i32 @htons(i32 noundef 80)
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
store i32 %31, ptr %32, align 4
%33 = load i32, ptr @INADDR_LOOPBACK, align 4
%34 = call i32 @htonl(i32 noundef %33)
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
%36 = getelementptr inbounds %struct.TYPE_2__, ptr %35, i32 0, i32 0
store i32 %34, ptr %36, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @bind(i32 noundef %37, ptr noundef %9, i32 noundef 12)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %43
40: ; preds = %28
%41 = call i32 @perror(ptr noundef @.str.2)
%42 = call i32 @exit(i32 noundef 0) #3
unreachable
43: ; preds = %28
%44 = load i32, ptr %6, align 4
%45 = call i32 @listen(i32 noundef %44, i32 noundef 5)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = call i32 @perror(ptr noundef @.str.3)
%49 = call i32 @exit(i32 noundef 0) #3
unreachable
50: ; preds = %43
br label %51
51: ; preds = %55, %50
%52 = load i32, ptr %6, align 4
%53 = call i32 @accept(i32 noundef %52, ptr noundef %10, ptr noundef %11)
store i32 %53, ptr %7, align 4
%54 = icmp ne i32 %53, -1
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = load i32, ptr %7, align 4
%57 = call i32 @process_http_request(i32 noundef %56)
br label %51, !llvm.loop !6
58: ; preds = %51
%59 = load i32, ptr %7, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 @perror(ptr noundef @.str.4)
br label %63
63: ; preds = %61, %58
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @process_http_request(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppd0eswn0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Unable to create listening socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Setting socket option\00", align 1
@AF_INET = dso_local global i32 0, align 4
@INADDR_LOOPBACK = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [32 x i8] c"Unable to bind to local address\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Unable to set socket backlog\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Unable to accept socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca %struct.sockaddr_in, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %8, align 4
store i32 12, ptr %11, align 4
%12 = load i32, ptr @PF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 0) #3
unreachable
19: ; preds = %2
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr @SOL_SOCKET, align 4
%22 = load i32, ptr @SO_REUSEADDR, align 4
%23 = call i32 @setsockopt(i32 noundef %20, i32 noundef %21, i32 noundef %22, ptr noundef %8, i32 noundef 4)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %19
%29 = load i32, ptr @AF_INET, align 4
%30 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 2
store i32 %29, ptr %30, align 4
%31 = call i32 @htons(i32 noundef 80)
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 1
store i32 %31, ptr %32, align 4
%33 = load i32, ptr @INADDR_LOOPBACK, align 4
%34 = call i32 @htonl(i32 noundef %33)
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %9, i32 0, i32 0
%36 = getelementptr inbounds %struct.TYPE_2__, ptr %35, i32 0, i32 0
store i32 %34, ptr %36, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 @bind(i32 noundef %37, ptr noundef %9, i32 noundef 12)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %43
40: ; preds = %28
%41 = call i32 @perror(ptr noundef @.str.2)
%42 = call i32 @exit(i32 noundef 0) #3
unreachable
43: ; preds = %28
%44 = load i32, ptr %6, align 4
%45 = call i32 @listen(i32 noundef %44, i32 noundef 5)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = call i32 @perror(ptr noundef @.str.3)
%49 = call i32 @exit(i32 noundef 0) #3
unreachable
50: ; preds = %43
%51 = load i32, ptr %6, align 4
%52 = call i32 @accept(i32 noundef %51, ptr noundef %10, ptr noundef %11)
store i32 %52, ptr %7, align 4
%53 = icmp ne i32 %52, -1
br i1 %53, label %.lr.ph, label %60
.lr.ph: ; preds = %50
br label %54
54: ; preds = %.lr.ph, %54
%55 = load i32, ptr %7, align 4
%56 = call i32 @process_http_request(i32 noundef %55)
%57 = load i32, ptr %6, align 4
%58 = call i32 @accept(i32 noundef %57, ptr noundef %10, ptr noundef %11)
store i32 %58, ptr %7, align 4
%59 = icmp ne i32 %58, -1
br i1 %59, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %50
%61 = load i32, ptr %7, align 4
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @perror(ptr noundef @.str.4)
br label %65
65: ; preds = %63, %60
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @process_http_request(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"}
|
; ModuleID = '/tmp/tmp_9bzwvua.c'
source_filename = "/tmp/tmp_9bzwvua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_IRQ() #0 {
%1 = call i32 (...) @local_irq_disable()
%2 = call i32 (...) @irq_enter()
%3 = call i32 @rcu_check_callbacks(i32 noundef 0)
%4 = call i32 (...) @local_irq_enable()
%5 = call i32 (...) @irq_exit()
ret void
}
declare i32 @local_irq_disable(...) #1
declare i32 @irq_enter(...) #1
declare i32 @rcu_check_callbacks(i32 noundef) #1
declare i32 @local_irq_enable(...) #1
declare i32 @irq_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_9bzwvua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_IRQ() #0 {
%1 = call i32 (...) @local_irq_disable()
%2 = call i32 (...) @irq_enter()
%3 = call i32 @rcu_check_callbacks(i32 noundef 0)
%4 = call i32 (...) @local_irq_enable()
%5 = call i32 (...) @irq_exit()
ret void
}
declare i32 @local_irq_disable(...) #1
declare i32 @irq_enter(...) #1
declare i32 @rcu_check_callbacks(i32 noundef) #1
declare i32 @local_irq_enable(...) #1
declare i32 @irq_exit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2sgsfr9y.c'
source_filename = "/tmp/tmp2sgsfr9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x99\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x99() #0 {
%1 = call i64 @isascii(i32 noundef 153)
%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 770, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmp2sgsfr9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x99\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x99() #0 {
%1 = call i64 @isascii(i32 noundef 153)
%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 770, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmpayhz9jj3.c'
source_filename = "/tmp/tmpayhz9jj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT16_MAX = dso_local global i32 0, align 4
@UINT32_MAX = dso_local global i32 0, align 4
@UINT8_MAX = 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/tmpayhz9jj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT16_MAX = dso_local global i32 0, align 4
@UINT32_MAX = dso_local global i32 0, align 4
@UINT8_MAX = 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/tmp81iwkttq.c'
source_filename = "/tmp/tmp81iwkttq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hughbien/assertive/refs/heads/master/test/fail_test.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_dbl_not_equal_fail() #0 {
%1 = call i32 @assert_dbl_not_equal_(ptr noundef @.str, i32 noundef 42, double noundef 1.000000e+00, double noundef 1.050000e+00, double noundef 1.000000e-01)
ret void
}
declare i32 @assert_dbl_not_equal_(ptr noundef, i32 noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp81iwkttq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/hughbien/assertive/refs/heads/master/test/fail_test.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_dbl_not_equal_fail() #0 {
%1 = call i32 @assert_dbl_not_equal_(ptr noundef @.str, i32 noundef 42, double noundef 1.000000e+00, double noundef 1.050000e+00, double noundef 1.000000e-01)
ret void
}
declare i32 @assert_dbl_not_equal_(ptr noundef, i32 noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps7ojoi83.c'
source_filename = "/tmp/tmps7ojoi83.c"
target datalayout = "e-m:e-p270: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_4__ = type { i64, i32, i32, i32, ptr, i64 }
@SHA_CBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SHA256_Final(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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %20, i32 0, i32 5
%22 = load i64, ptr %21, align 8
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 0
%26 = load i64, ptr %25, align 8
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i64, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
store i8 -128, ptr %29, align 1
%30 = load i64, ptr %7, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %7, align 8
%32 = load i64, ptr %7, align 8
%33 = load i32, ptr @SHA_CBLOCK, align 4
%34 = sub nsw i32 %33, 8
%35 = sext i32 %34 to i64
%36 = icmp ugt i64 %32, %35
br i1 %36, label %37, label %50
37: ; preds = %2
%38 = load ptr, ptr %6, align 8
%39 = load i64, ptr %7, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
%41 = load i32, ptr @SHA_CBLOCK, align 4
%42 = sext i32 %41 to i64
%43 = load i64, ptr %7, align 8
%44 = sub i64 %42, %43
%45 = trunc i64 %44 to i32
%46 = call i32 @memset(ptr noundef %40, i32 noundef 0, i32 noundef %45)
store i64 0, ptr %7, align 8
%47 = load ptr, ptr %5, align 8
%48 = load ptr, ptr %6, align 8
%49 = call i32 @sha256_block_data_order(ptr noundef %47, ptr noundef %48, i32 noundef 1)
br label %50
50: ; preds = %37, %2
%51 = load ptr, ptr %6, align 8
%52 = load i64, ptr %7, align 8
%53 = getelementptr inbounds i8, ptr %51, i64 %52
%54 = load i32, ptr @SHA_CBLOCK, align 4
%55 = sub nsw i32 %54, 8
%56 = sext i32 %55 to i64
%57 = load i64, ptr %7, align 8
%58 = sub i64 %56, %57
%59 = trunc i64 %58 to i32
%60 = call i32 @memset(ptr noundef %53, i32 noundef 0, i32 noundef %59)
%61 = load i32, ptr @SHA_CBLOCK, align 4
%62 = sub nsw i32 %61, 8
%63 = load ptr, ptr %6, align 8
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds i8, ptr %63, i64 %64
store ptr %65, ptr %6, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds %struct.TYPE_4__, ptr %66, i32 0, i32 1
%68 = load i32, ptr %67, align 8
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %69) #2, !srcloc !6
store i32 %70, ptr %8, align 4
%71 = load i32, ptr %8, align 4
%72 = load ptr, ptr %6, align 8
store i32 %71, ptr %72, align 4
%73 = load ptr, ptr %6, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 4
store ptr %74, ptr %6, align 8
%75 = load i32, ptr %8, align 4
store i32 %75, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds %struct.TYPE_4__, ptr %77, i32 0, i32 2
%79 = load i32, ptr %78, align 4
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %80) #2, !srcloc !7
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %10, align 4
%83 = load ptr, ptr %6, align 8
store i32 %82, ptr %83, align 4
%84 = load ptr, ptr %6, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 4
store ptr %85, ptr %6, align 8
%86 = load i32, ptr %10, align 4
store i32 %86, ptr %11, align 4
%87 = load i32, ptr %11, align 4
%88 = load i32, ptr @SHA_CBLOCK, align 4
%89 = load ptr, ptr %6, align 8
%90 = sext i32 %88 to i64
%91 = sub i64 0, %90
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store ptr %92, ptr %6, align 8
%93 = load ptr, ptr %5, align 8
%94 = load ptr, ptr %6, align 8
%95 = call i32 @sha256_block_data_order(ptr noundef %93, ptr noundef %94, i32 noundef 1)
%96 = load ptr, ptr %5, align 8
%97 = getelementptr inbounds %struct.TYPE_4__, ptr %96, i32 0, i32 0
store i64 0, ptr %97, align 8
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr @SHA_CBLOCK, align 4
%100 = call i32 @OPENSSL_cleanse(ptr noundef %98, i32 noundef %99)
br label %101
101: ; preds = %50
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds %struct.TYPE_4__, ptr %102, i32 0, i32 3
%104 = load i32, ptr %103, align 8
switch i32 %104, label %157 [
i32 129, label %105
i32 128, label %131
]
105: ; preds = %101
store i32 0, ptr %13, align 4
br label %106
106: ; preds = %127, %105
%107 = load i32, ptr %13, align 4
%108 = icmp ult i32 %107, 32
br i1 %108, label %109, label %130
109: ; preds = %106
%110 = load ptr, ptr %5, align 8
%111 = getelementptr inbounds %struct.TYPE_4__, ptr %110, i32 0, i32 4
%112 = load ptr, ptr %111, align 8
%113 = load i32, ptr %13, align 4
%114 = zext i32 %113 to i64
%115 = getelementptr inbounds i64, ptr %112, i64 %114
%116 = load i64, ptr %115, align 8
store i64 %116, ptr %12, align 8
%117 = load i64, ptr %12, align 8
%118 = trunc i64 %117 to i32
store i32 %118, ptr %14, align 4
%119 = load i32, ptr %14, align 4
%120 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %119) #2, !srcloc !8
store i32 %120, ptr %14, align 4
%121 = load i32, ptr %14, align 4
%122 = load ptr, ptr %4, align 8
store i32 %121, ptr %122, align 4
%123 = load ptr, ptr %4, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 4
store ptr %124, ptr %4, align 8
%125 = load i32, ptr %14, align 4
store i32 %125, ptr %15, align 4
%126 = load i32, ptr %15, align 4
br label %127
127: ; preds = %109
%128 = load i32, ptr %13, align 4
%129 = add i32 %128, 1
store i32 %129, ptr %13, align 4
br label %106, !llvm.loop !9
130: ; preds = %106
br label %193
131: ; preds = %101
store i32 0, ptr %13, align 4
br label %132
132: ; preds = %153, %131
%133 = load i32, ptr %13, align 4
%134 = icmp ult i32 %133, 32
br i1 %134, label %135, label %156
135: ; preds = %132
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds %struct.TYPE_4__, ptr %136, i32 0, i32 4
%138 = load ptr, ptr %137, align 8
%139 = load i32, ptr %13, align 4
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds i64, ptr %138, i64 %140
%142 = load i64, ptr %141, align 8
store i64 %142, ptr %12, align 8
%143 = load i64, ptr %12, align 8
%144 = trunc i64 %143 to i32
store i32 %144, ptr %16, align 4
%145 = load i32, ptr %16, align 4
%146 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %145) #2, !srcloc !11
store i32 %146, ptr %16, align 4
%147 = load i32, ptr %16, align 4
%148 = load ptr, ptr %4, align 8
store i32 %147, ptr %148, align 4
%149 = load ptr, ptr %4, align 8
%150 = getelementptr inbounds i8, ptr %149, i64 4
store ptr %150, ptr %4, align 8
%151 = load i32, ptr %16, align 4
store i32 %151, ptr %17, align 4
%152 = load i32, ptr %17, align 4
br label %153
153: ; preds = %135
%154 = load i32, ptr %13, align 4
%155 = add i32 %154, 1
store i32 %155, ptr %13, align 4
br label %132, !llvm.loop !12
156: ; preds = %132
br label %193
157: ; preds = %101
%158 = load ptr, ptr %5, align 8
%159 = getelementptr inbounds %struct.TYPE_4__, ptr %158, i32 0, i32 3
%160 = load i32, ptr %159, align 8
%161 = icmp sgt i32 %160, 128
br i1 %161, label %162, label %163
162: ; preds = %157
store i32 0, ptr %3, align 4
br label %195
163: ; preds = %157
store i32 0, ptr %13, align 4
br label %164
164: ; preds = %189, %163
%165 = load i32, ptr %13, align 4
%166 = load ptr, ptr %5, align 8
%167 = getelementptr inbounds %struct.TYPE_4__, ptr %166, i32 0, i32 3
%168 = load i32, ptr %167, align 8
%169 = sdiv i32 %168, 4
%170 = icmp ult i32 %165, %169
br i1 %170, label %171, label %192
171: ; preds = %164
%172 = load ptr, ptr %5, align 8
%173 = getelementptr inbounds %struct.TYPE_4__, ptr %172, i32 0, i32 4
%174 = load ptr, ptr %173, align 8
%175 = load i32, ptr %13, align 4
%176 = zext i32 %175 to i64
%177 = getelementptr inbounds i64, ptr %174, i64 %176
%178 = load i64, ptr %177, align 8
store i64 %178, ptr %12, align 8
%179 = load i64, ptr %12, align 8
%180 = trunc i64 %179 to i32
store i32 %180, ptr %18, align 4
%181 = load i32, ptr %18, align 4
%182 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %181) #2, !srcloc !13
store i32 %182, ptr %18, align 4
%183 = load i32, ptr %18, align 4
%184 = load ptr, ptr %4, align 8
store i32 %183, ptr %184, align 4
%185 = load ptr, ptr %4, align 8
%186 = getelementptr inbounds i8, ptr %185, i64 4
store ptr %186, ptr %4, align 8
%187 = load i32, ptr %18, align 4
store i32 %187, ptr %19, align 4
%188 = load i32, ptr %19, align 4
br label %189
189: ; preds = %171
%190 = load i32, ptr %13, align 4
%191 = add i32 %190, 1
store i32 %191, ptr %13, align 4
br label %164, !llvm.loop !14
192: ; preds = %164
br label %193
193: ; preds = %192, %156, %130
br label %194
194: ; preds = %193
store i32 1, ptr %3, align 4
br label %195
195: ; preds = %194, %162
%196 = load i32, ptr %3, align 4
ret i32 %196
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sha256_block_data_order(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @OPENSSL_cleanse(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 1279}
!7 = !{i64 1391}
!8 = !{i64 1768}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 1974}
!12 = distinct !{!12, !10}
!13 = !{i64 2203}
!14 = distinct !{!14, !10}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps7ojoi83.c"
target datalayout = "e-m:e-p270: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_4__ = type { i64, i32, i32, i32, ptr, i64 }
@SHA_CBLOCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @SHA256_Final(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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i64, align 8
%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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %20, i32 0, i32 5
%22 = load i64, ptr %21, align 8
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 0
%26 = load i64, ptr %25, align 8
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i64, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
store i8 -128, ptr %29, align 1
%30 = load i64, ptr %7, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %7, align 8
%32 = load i64, ptr %7, align 8
%33 = load i32, ptr @SHA_CBLOCK, align 4
%34 = sub nsw i32 %33, 8
%35 = sext i32 %34 to i64
%36 = icmp ugt i64 %32, %35
br i1 %36, label %37, label %50
37: ; preds = %2
%38 = load ptr, ptr %6, align 8
%39 = load i64, ptr %7, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
%41 = load i32, ptr @SHA_CBLOCK, align 4
%42 = sext i32 %41 to i64
%43 = load i64, ptr %7, align 8
%44 = sub i64 %42, %43
%45 = trunc i64 %44 to i32
%46 = call i32 @memset(ptr noundef %40, i32 noundef 0, i32 noundef %45)
store i64 0, ptr %7, align 8
%47 = load ptr, ptr %5, align 8
%48 = load ptr, ptr %6, align 8
%49 = call i32 @sha256_block_data_order(ptr noundef %47, ptr noundef %48, i32 noundef 1)
br label %50
50: ; preds = %37, %2
%51 = load ptr, ptr %6, align 8
%52 = load i64, ptr %7, align 8
%53 = getelementptr inbounds i8, ptr %51, i64 %52
%54 = load i32, ptr @SHA_CBLOCK, align 4
%55 = sub nsw i32 %54, 8
%56 = sext i32 %55 to i64
%57 = load i64, ptr %7, align 8
%58 = sub i64 %56, %57
%59 = trunc i64 %58 to i32
%60 = call i32 @memset(ptr noundef %53, i32 noundef 0, i32 noundef %59)
%61 = load i32, ptr @SHA_CBLOCK, align 4
%62 = sub nsw i32 %61, 8
%63 = load ptr, ptr %6, align 8
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds i8, ptr %63, i64 %64
store ptr %65, ptr %6, align 8
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds %struct.TYPE_4__, ptr %66, i32 0, i32 1
%68 = load i32, ptr %67, align 8
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %69) #2, !srcloc !6
store i32 %70, ptr %8, align 4
%71 = load i32, ptr %8, align 4
%72 = load ptr, ptr %6, align 8
store i32 %71, ptr %72, align 4
%73 = load ptr, ptr %6, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 4
store ptr %74, ptr %6, align 8
%75 = load i32, ptr %8, align 4
store i32 %75, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds %struct.TYPE_4__, ptr %77, i32 0, i32 2
%79 = load i32, ptr %78, align 4
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %80) #2, !srcloc !7
store i32 %81, ptr %10, align 4
%82 = load i32, ptr %10, align 4
%83 = load ptr, ptr %6, align 8
store i32 %82, ptr %83, align 4
%84 = load ptr, ptr %6, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 4
store ptr %85, ptr %6, align 8
%86 = load i32, ptr %10, align 4
store i32 %86, ptr %11, align 4
%87 = load i32, ptr %11, align 4
%88 = load i32, ptr @SHA_CBLOCK, align 4
%89 = load ptr, ptr %6, align 8
%90 = sext i32 %88 to i64
%91 = sub i64 0, %90
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store ptr %92, ptr %6, align 8
%93 = load ptr, ptr %5, align 8
%94 = load ptr, ptr %6, align 8
%95 = call i32 @sha256_block_data_order(ptr noundef %93, ptr noundef %94, i32 noundef 1)
%96 = load ptr, ptr %5, align 8
%97 = getelementptr inbounds %struct.TYPE_4__, ptr %96, i32 0, i32 0
store i64 0, ptr %97, align 8
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr @SHA_CBLOCK, align 4
%100 = call i32 @OPENSSL_cleanse(ptr noundef %98, i32 noundef %99)
br label %101
101: ; preds = %50
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds %struct.TYPE_4__, ptr %102, i32 0, i32 3
%104 = load i32, ptr %103, align 8
switch i32 %104, label %159 [
i32 129, label %105
i32 128, label %132
]
105: ; preds = %101
store i32 0, ptr %13, align 4
%106 = load i32, ptr %13, align 4
%107 = icmp ult i32 %106, 32
br i1 %107, label %.lr.ph2, label %131
.lr.ph2: ; preds = %105
br label %108
108: ; preds = %.lr.ph2, %126
%109 = load ptr, ptr %5, align 8
%110 = getelementptr inbounds %struct.TYPE_4__, ptr %109, i32 0, i32 4
%111 = load ptr, ptr %110, align 8
%112 = load i32, ptr %13, align 4
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds i64, ptr %111, i64 %113
%115 = load i64, ptr %114, align 8
store i64 %115, ptr %12, align 8
%116 = load i64, ptr %12, align 8
%117 = trunc i64 %116 to i32
store i32 %117, ptr %14, align 4
%118 = load i32, ptr %14, align 4
%119 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %118) #2, !srcloc !8
store i32 %119, ptr %14, align 4
%120 = load i32, ptr %14, align 4
%121 = load ptr, ptr %4, align 8
store i32 %120, ptr %121, align 4
%122 = load ptr, ptr %4, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 4
store ptr %123, ptr %4, align 8
%124 = load i32, ptr %14, align 4
store i32 %124, ptr %15, align 4
%125 = load i32, ptr %15, align 4
br label %126
126: ; preds = %108
%127 = load i32, ptr %13, align 4
%128 = add i32 %127, 1
store i32 %128, ptr %13, align 4
%129 = load i32, ptr %13, align 4
%130 = icmp ult i32 %129, 32
br i1 %130, label %108, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %126
br label %131
131: ; preds = %._crit_edge3, %105
br label %200
132: ; preds = %101
store i32 0, ptr %13, align 4
%133 = load i32, ptr %13, align 4
%134 = icmp ult i32 %133, 32
br i1 %134, label %.lr.ph, label %158
.lr.ph: ; preds = %132
br label %135
135: ; preds = %.lr.ph, %153
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds %struct.TYPE_4__, ptr %136, i32 0, i32 4
%138 = load ptr, ptr %137, align 8
%139 = load i32, ptr %13, align 4
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds i64, ptr %138, i64 %140
%142 = load i64, ptr %141, align 8
store i64 %142, ptr %12, align 8
%143 = load i64, ptr %12, align 8
%144 = trunc i64 %143 to i32
store i32 %144, ptr %16, align 4
%145 = load i32, ptr %16, align 4
%146 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %145) #2, !srcloc !11
store i32 %146, ptr %16, align 4
%147 = load i32, ptr %16, align 4
%148 = load ptr, ptr %4, align 8
store i32 %147, ptr %148, align 4
%149 = load ptr, ptr %4, align 8
%150 = getelementptr inbounds i8, ptr %149, i64 4
store ptr %150, ptr %4, align 8
%151 = load i32, ptr %16, align 4
store i32 %151, ptr %17, align 4
%152 = load i32, ptr %17, align 4
br label %153
153: ; preds = %135
%154 = load i32, ptr %13, align 4
%155 = add i32 %154, 1
store i32 %155, ptr %13, align 4
%156 = load i32, ptr %13, align 4
%157 = icmp ult i32 %156, 32
br i1 %157, label %135, label %._crit_edge, !llvm.loop !12
._crit_edge: ; preds = %153
br label %158
158: ; preds = %._crit_edge, %132
br label %200
159: ; preds = %101
%160 = load ptr, ptr %5, align 8
%161 = getelementptr inbounds %struct.TYPE_4__, ptr %160, i32 0, i32 3
%162 = load i32, ptr %161, align 8
%163 = icmp sgt i32 %162, 128
br i1 %163, label %164, label %165
164: ; preds = %159
store i32 0, ptr %3, align 4
br label %202
165: ; preds = %159
store i32 0, ptr %13, align 4
%166 = load i32, ptr %13, align 4
%167 = load ptr, ptr %5, align 8
%168 = getelementptr inbounds %struct.TYPE_4__, ptr %167, i32 0, i32 3
%169 = load i32, ptr %168, align 8
%170 = sdiv i32 %169, 4
%171 = icmp ult i32 %166, %170
br i1 %171, label %.lr.ph5, label %199
.lr.ph5: ; preds = %165
br label %172
172: ; preds = %.lr.ph5, %190
%173 = load ptr, ptr %5, align 8
%174 = getelementptr inbounds %struct.TYPE_4__, ptr %173, i32 0, i32 4
%175 = load ptr, ptr %174, align 8
%176 = load i32, ptr %13, align 4
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds i64, ptr %175, i64 %177
%179 = load i64, ptr %178, align 8
store i64 %179, ptr %12, align 8
%180 = load i64, ptr %12, align 8
%181 = trunc i64 %180 to i32
store i32 %181, ptr %18, align 4
%182 = load i32, ptr %18, align 4
%183 = call i32 asm "bswapl $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %182) #2, !srcloc !13
store i32 %183, ptr %18, align 4
%184 = load i32, ptr %18, align 4
%185 = load ptr, ptr %4, align 8
store i32 %184, ptr %185, align 4
%186 = load ptr, ptr %4, align 8
%187 = getelementptr inbounds i8, ptr %186, i64 4
store ptr %187, ptr %4, align 8
%188 = load i32, ptr %18, align 4
store i32 %188, ptr %19, align 4
%189 = load i32, ptr %19, align 4
br label %190
190: ; preds = %172
%191 = load i32, ptr %13, align 4
%192 = add i32 %191, 1
store i32 %192, ptr %13, align 4
%193 = load i32, ptr %13, align 4
%194 = load ptr, ptr %5, align 8
%195 = getelementptr inbounds %struct.TYPE_4__, ptr %194, i32 0, i32 3
%196 = load i32, ptr %195, align 8
%197 = sdiv i32 %196, 4
%198 = icmp ult i32 %193, %197
br i1 %198, label %172, label %._crit_edge6, !llvm.loop !14
._crit_edge6: ; preds = %190
br label %199
199: ; preds = %._crit_edge6, %165
br label %200
200: ; preds = %199, %158, %131
br label %201
201: ; preds = %200
store i32 1, ptr %3, align 4
br label %202
202: ; preds = %201, %164
%203 = load i32, ptr %3, align 4
ret i32 %203
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sha256_block_data_order(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @OPENSSL_cleanse(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 1279}
!7 = !{i64 1391}
!8 = !{i64 1768}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 1974}
!12 = distinct !{!12, !10}
!13 = !{i64 2203}
!14 = distinct !{!14, !10}
|
; ModuleID = '/tmp/tmp7d8uychv.c'
source_filename = "/tmp/tmp7d8uychv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caller3() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @increment(i32 noundef 65259)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = call i32 @increment(i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @increment(i32 noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @callee0(i32 noundef %10)
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
%15 = call i32 @callee1(i32 noundef %14)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %16, %17
%19 = call i32 @callee2(i32 noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %20, %21
%23 = call i32 @callee3(i32 noundef %22)
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %24, %25
%27 = call i32 @callee4(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %28, %29
%31 = call i32 @callee5(i32 noundef %30)
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %1, align 4
%34 = add nsw i32 %32, %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %34, %35
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %36, %37
ret i32 %38
}
declare i32 @increment(i32 noundef) #1
declare i32 @callee0(i32 noundef) #1
declare i32 @callee1(i32 noundef) #1
declare i32 @callee2(i32 noundef) #1
declare i32 @callee3(i32 noundef) #1
declare i32 @callee4(i32 noundef) #1
declare i32 @callee5(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/tmp7d8uychv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @caller3() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @increment(i32 noundef 65259)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = call i32 @increment(i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @increment(i32 noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = call i32 @callee0(i32 noundef %10)
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
%15 = call i32 @callee1(i32 noundef %14)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %16, %17
%19 = call i32 @callee2(i32 noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %20, %21
%23 = call i32 @callee3(i32 noundef %22)
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %24, %25
%27 = call i32 @callee4(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %28, %29
%31 = call i32 @callee5(i32 noundef %30)
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %1, align 4
%34 = add nsw i32 %32, %33
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %34, %35
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %36, %37
ret i32 %38
}
declare i32 @increment(i32 noundef) #1
declare i32 @callee0(i32 noundef) #1
declare i32 @callee1(i32 noundef) #1
declare i32 @callee2(i32 noundef) #1
declare i32 @callee3(i32 noundef) #1
declare i32 @callee4(i32 noundef) #1
declare i32 @callee5(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/tmpmskkacoy.c'
source_filename = "/tmp/tmpmskkacoy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.e = private unnamed_addr constant [6 x i32] [i32 10, i32 3, i32 2, i32 4, i32 5, i32 88], align 16
@.str = private unnamed_addr constant [10 x i8] c"a[%d]=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.e, i64 24, i1 false)
%4 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @insert(ptr noundef %4, i32 noundef 6)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %16, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 6
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %10, i32 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
br label %6, !llvm.loop !6
19: ; preds = %6
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmskkacoy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.e = private unnamed_addr constant [6 x i32] [i32 10, i32 3, i32 2, i32 4, i32 5, i32 88], align 16
@.str = private unnamed_addr constant [10 x i8] c"a[%d]=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.e, i64 24, i1 false)
%4 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @insert(ptr noundef %4, i32 noundef 6)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 6
br i1 %7, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %15
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %13)
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 6
br i1 %19, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @insert(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpa1jubpwz.c'
source_filename = "/tmp/tmpa1jubpwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"mcu num\C3\A9ro %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mcu8(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %34, %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %8, align 4
%15 = mul nsw i32 64, %14
%16 = load i32, ptr %7, align 4
%17 = mul nsw i32 %15, %16
%18 = icmp slt i32 %13, %17
br i1 %18, label %19, label %37
19: ; preds = %12
%20 = load i32, ptr %9, align 4
%21 = load i32, ptr %7, align 4
%22 = mul nsw i32 %21, 8
%23 = srem i32 %20, %22
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %19
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25, %19
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %9, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
br label %34
34: ; preds = %27
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
br label %12, !llvm.loop !6
37: ; preds = %12
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa1jubpwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"mcu num\C3\A9ro %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mcu8(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %8, align 4
%14 = mul nsw i32 64, %13
%15 = load i32, ptr %7, align 4
%16 = mul nsw i32 %14, %15
%17 = icmp slt i32 %12, %16
br i1 %17, label %.lr.ph, label %42
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %33
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 %20, 8
%22 = srem i32 %19, %21
%23 = icmp ne i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %18
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %26
26: ; preds = %24, %18
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %26
%34 = load i32, ptr %9, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %8, align 4
%38 = mul nsw i32 64, %37
%39 = load i32, ptr %7, align 4
%40 = mul nsw i32 %38, %39
%41 = icmp slt i32 %36, %40
br i1 %41, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %42
42: ; preds = %._crit_edge, %4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphlw4pot0.c'
source_filename = "/tmp/tmphlw4pot0.c"
target datalayout = "e-m:e-p270: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/tmphlw4pot0.c"
target datalayout = "e-m:e-p270: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/tmp5hgyq06r.c'
source_filename = "/tmp/tmp5hgyq06r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getSexComponents(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store double %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load double, ptr %5, align 8
%10 = call i32 @fabs(double noundef %9)
%11 = load ptr, ptr %6, align 8
store i32 %10, ptr %11, align 4
%12 = load double, ptr %5, align 8
%13 = call i32 @fabs(double noundef %12)
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = sub nsw i32 %13, %15
%17 = sitofp i32 %16 to double
%18 = fmul double %17, 6.000000e+01
%19 = fptosi double %18 to i32
%20 = load ptr, ptr %7, align 8
store i32 %19, ptr %20, align 4
%21 = load double, ptr %5, align 8
%22 = call i32 @fabs(double noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %23, align 4
%25 = sub nsw i32 %22, %24
%26 = sitofp i32 %25 to double
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %27, align 4
%29 = sitofp i32 %28 to double
%30 = fneg double %29
%31 = call double @llvm.fmuladd.f64(double %26, double 6.000000e+01, double %30)
%32 = fmul double %31, 6.000000e+01
%33 = fptosi double %32 to i32
%34 = call i64 @rint(i32 noundef %33)
%35 = trunc i64 %34 to i32
%36 = load ptr, ptr %8, align 8
store i32 %35, ptr %36, align 4
%37 = load double, ptr %5, align 8
%38 = fcmp olt double %37, 0.000000e+00
br i1 %38, label %39, label %43
39: ; preds = %4
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %40, align 4
%42 = mul nsw i32 %41, -1
store i32 %42, ptr %40, align 4
br label %43
43: ; preds = %39, %4
ret void
}
declare i32 @fabs(double noundef) #1
declare i64 @rint(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hgyq06r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getSexComponents(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store double %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load double, ptr %5, align 8
%10 = call i32 @fabs(double noundef %9)
%11 = load ptr, ptr %6, align 8
store i32 %10, ptr %11, align 4
%12 = load double, ptr %5, align 8
%13 = call i32 @fabs(double noundef %12)
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = sub nsw i32 %13, %15
%17 = sitofp i32 %16 to double
%18 = fmul double %17, 6.000000e+01
%19 = fptosi double %18 to i32
%20 = load ptr, ptr %7, align 8
store i32 %19, ptr %20, align 4
%21 = load double, ptr %5, align 8
%22 = call i32 @fabs(double noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %23, align 4
%25 = sub nsw i32 %22, %24
%26 = sitofp i32 %25 to double
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %27, align 4
%29 = sitofp i32 %28 to double
%30 = fneg double %29
%31 = call double @llvm.fmuladd.f64(double %26, double 6.000000e+01, double %30)
%32 = fmul double %31, 6.000000e+01
%33 = fptosi double %32 to i32
%34 = call i64 @rint(i32 noundef %33)
%35 = trunc i64 %34 to i32
%36 = load ptr, ptr %8, align 8
store i32 %35, ptr %36, align 4
%37 = load double, ptr %5, align 8
%38 = fcmp olt double %37, 0.000000e+00
br i1 %38, label %39, label %43
39: ; preds = %4
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %40, align 4
%42 = mul nsw i32 %41, -1
store i32 %42, ptr %40, align 4
br label %43
43: ; preds = %39, %4
ret void
}
declare i32 @fabs(double noundef) #1
declare i64 @rint(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiyu7fu9g.c'
source_filename = "/tmp/tmpiyu7fu9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PauseTimer(i16 noundef zeroext %0, i16 noundef zeroext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i16 %0, ptr %3, align 2
store i16 %1, ptr %4, align 2
%5 = call i32 @SendChar(i32 noundef 238)
%6 = call i32 @SendChar(i32 noundef 177)
%7 = call i32 @SendChar(i32 noundef 68)
%8 = load i16, ptr %3, align 2
%9 = zext i16 %8 to i32
%10 = ashr i32 %9, 8
%11 = and i32 %10, 255
%12 = call i32 @SendChar(i32 noundef %11)
%13 = load i16, ptr %3, align 2
%14 = zext i16 %13 to i32
%15 = and i32 %14, 255
%16 = call i32 @SendChar(i32 noundef %15)
%17 = load i16, ptr %4, align 2
%18 = zext i16 %17 to i32
%19 = ashr i32 %18, 8
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 noundef %20)
%22 = load i16, ptr %4, align 2
%23 = zext i16 %22 to i32
%24 = and i32 %23, 255
%25 = call i32 @SendChar(i32 noundef %24)
%26 = call i32 @SendChar(i32 noundef 255)
%27 = call i32 @SendChar(i32 noundef 252)
%28 = call i32 @SendChar(i32 noundef 255)
%29 = call i32 @SendChar(i32 noundef 255)
ret void
}
declare i32 @SendChar(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/tmpiyu7fu9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PauseTimer(i16 noundef zeroext %0, i16 noundef zeroext %1) #0 {
%3 = alloca i16, align 2
%4 = alloca i16, align 2
store i16 %0, ptr %3, align 2
store i16 %1, ptr %4, align 2
%5 = call i32 @SendChar(i32 noundef 238)
%6 = call i32 @SendChar(i32 noundef 177)
%7 = call i32 @SendChar(i32 noundef 68)
%8 = load i16, ptr %3, align 2
%9 = zext i16 %8 to i32
%10 = ashr i32 %9, 8
%11 = and i32 %10, 255
%12 = call i32 @SendChar(i32 noundef %11)
%13 = load i16, ptr %3, align 2
%14 = zext i16 %13 to i32
%15 = and i32 %14, 255
%16 = call i32 @SendChar(i32 noundef %15)
%17 = load i16, ptr %4, align 2
%18 = zext i16 %17 to i32
%19 = ashr i32 %18, 8
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 noundef %20)
%22 = load i16, ptr %4, align 2
%23 = zext i16 %22 to i32
%24 = and i32 %23, 255
%25 = call i32 @SendChar(i32 noundef %24)
%26 = call i32 @SendChar(i32 noundef 255)
%27 = call i32 @SendChar(i32 noundef 252)
%28 = call i32 @SendChar(i32 noundef 255)
%29 = call i32 @SendChar(i32 noundef 255)
ret void
}
declare i32 @SendChar(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/tmpw289jwgb.c'
source_filename = "/tmp/tmpw289jwgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"This is first function, should be executed second.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw289jwgb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"This is first function, should be executed second.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func1() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpznlnpqwr.c'
source_filename = "/tmp/tmpznlnpqwr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Pbracket(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %20
13: ; preds = %4
%14 = load i32, ptr %8, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = call i32 @P(i32 noundef %17, i32 noundef %18)
br label %89
20: ; preds = %13, %4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %34
23: ; preds = %20
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %34
26: ; preds = %23
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
%30 = call i32 @P(i32 noundef %27, i32 noundef %29)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %7, align 4
%33 = call i32 @P(i32 noundef %31, i32 noundef %32)
br label %88
34: ; preds = %23, %20
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 2
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %7, align 4
%43 = call i32 @P(i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %7, align 4
%47 = call i32 @P(i32 noundef %45, i32 noundef %46)
br label %87
48: ; preds = %37, %34
%49 = load i32, ptr %6, align 4
%50 = sdiv i32 %49, 2
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %6, align 4
%52 = and i32 %51, 1
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %48
%55 = load i32, ptr %8, align 4
%56 = sdiv i32 %55, 2
br label %61
57: ; preds = %48
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %58, 1
%60 = sdiv i32 %59, 2
br label %61
61: ; preds = %57, %54
%62 = phi i32 [ %56, %54 ], [ %60, %57 ]
store i32 %62, ptr %10, align 4
%63 = load i32, ptr %5, align 4
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %10, align 4
call void @Pbracket(i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66)
%67 = load i32, ptr %5, align 4
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %67, %68
%70 = load i32, ptr %6, align 4
%71 = load i32, ptr %9, align 4
%72 = sub nsw i32 %70, %71
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %73, %74
%76 = load i32, ptr %8, align 4
%77 = load i32, ptr %10, align 4
%78 = sub nsw i32 %76, %77
call void @Pbracket(i32 noundef %69, i32 noundef %72, i32 noundef %75, i32 noundef %78)
%79 = load i32, ptr %5, align 4
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %79, %80
%82 = load i32, ptr %6, align 4
%83 = load i32, ptr %9, align 4
%84 = sub nsw i32 %82, %83
%85 = load i32, ptr %7, align 4
%86 = load i32, ptr %10, align 4
call void @Pbracket(i32 noundef %81, i32 noundef %84, i32 noundef %85, i32 noundef %86)
br label %87
87: ; preds = %61, %40
br label %88
88: ; preds = %87, %26
br label %89
89: ; preds = %88, %16
ret void
}
declare i32 @P(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpznlnpqwr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Pbracket(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %20
13: ; preds = %4
%14 = load i32, ptr %8, align 4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = call i32 @P(i32 noundef %17, i32 noundef %18)
br label %89
20: ; preds = %13, %4
%21 = load i32, ptr %6, align 4
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %34
23: ; preds = %20
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %34
26: ; preds = %23
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
%30 = call i32 @P(i32 noundef %27, i32 noundef %29)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %7, align 4
%33 = call i32 @P(i32 noundef %31, i32 noundef %32)
br label %88
34: ; preds = %23, %20
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 2
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %7, align 4
%43 = call i32 @P(i32 noundef %41, i32 noundef %42)
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %7, align 4
%47 = call i32 @P(i32 noundef %45, i32 noundef %46)
br label %87
48: ; preds = %37, %34
%49 = load i32, ptr %6, align 4
%50 = sdiv i32 %49, 2
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %6, align 4
%52 = and i32 %51, 1
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %48
%55 = load i32, ptr %8, align 4
%56 = sdiv i32 %55, 2
br label %61
57: ; preds = %48
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %58, 1
%60 = sdiv i32 %59, 2
br label %61
61: ; preds = %57, %54
%62 = phi i32 [ %56, %54 ], [ %60, %57 ]
store i32 %62, ptr %10, align 4
%63 = load i32, ptr %5, align 4
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %10, align 4
call void @Pbracket(i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66)
%67 = load i32, ptr %5, align 4
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %67, %68
%70 = load i32, ptr %6, align 4
%71 = load i32, ptr %9, align 4
%72 = sub nsw i32 %70, %71
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %73, %74
%76 = load i32, ptr %8, align 4
%77 = load i32, ptr %10, align 4
%78 = sub nsw i32 %76, %77
call void @Pbracket(i32 noundef %69, i32 noundef %72, i32 noundef %75, i32 noundef %78)
%79 = load i32, ptr %5, align 4
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %79, %80
%82 = load i32, ptr %6, align 4
%83 = load i32, ptr %9, align 4
%84 = sub nsw i32 %82, %83
%85 = load i32, ptr %7, align 4
%86 = load i32, ptr %10, align 4
call void @Pbracket(i32 noundef %81, i32 noundef %84, i32 noundef %85, i32 noundef %86)
br label %87
87: ; preds = %61, %40
br label %88
88: ; preds = %87, %26
br label %89
89: ; preds = %88, %16
ret void
}
declare i32 @P(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm1sh5n2y.c'
source_filename = "/tmp/tmpm1sh5n2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Locale_tolower(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @tolower(i32 noundef %5) #2
ret i32 %6
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm1sh5n2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_Locale_tolower(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = call i32 @tolower(i32 noundef %5) #2
ret i32 %6
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz5ja6ntj.c'
source_filename = "/tmp/tmpz5ja6ntj.c"
target datalayout = "e-m:e-p270: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/tmpz5ja6ntj.c"
target datalayout = "e-m:e-p270: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/tmpq_7gxhzl.c'
source_filename = "/tmp/tmpq_7gxhzl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGHUP = dso_local global i32 0, align 4
@SIGKILL = dso_local global i32 0, align 4
@WNOHANG = 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/tmpq_7gxhzl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGHUP = dso_local global i32 0, align 4
@SIGKILL = dso_local global i32 0, align 4
@WNOHANG = 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/tmpvf4iw0k_.c'
source_filename = "/tmp/tmpvf4iw0k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"\1B[1mInstructions:\1B[0m\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\1B[1m\1B[31m%c\1B[0m\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_instructions(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @ftell(ptr noundef %5)
store i64 %6, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @SEEK_SET, align 4
%9 = call i32 @fseek(ptr noundef %7, i64 noundef 0, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %11
11: ; preds = %32, %1
%12 = load ptr, ptr %2, align 8
%13 = call signext i8 @getc(ptr noundef %12)
store i8 %13, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr @EOF, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %14, %16
br i1 %17, label %18, label %33
18: ; preds = %11
%19 = load ptr, ptr %2, align 8
%20 = call i64 @ftell(ptr noundef %19)
%21 = load i64, ptr %4, align 8
%22 = add nsw i64 %21, 1
%23 = icmp eq i64 %20, %22
br i1 %23, label %24, label %28
24: ; preds = %18
%25 = load i8, ptr %3, align 1
%26 = sext i8 %25 to i32
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
br label %32
28: ; preds = %18
%29 = load i8, ptr %3, align 1
%30 = sext i8 %29 to i32
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %30)
br label %32
32: ; preds = %28, %24
br label %11, !llvm.loop !6
33: ; preds = %11
%34 = load ptr, ptr %2, align 8
%35 = load i64, ptr %4, align 8
%36 = load i32, ptr @SEEK_SET, align 4
%37 = call i32 @fseek(ptr noundef %34, i64 noundef %35, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret void
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvf4iw0k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"\1B[1mInstructions:\1B[0m\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"\1B[1m\1B[31m%c\1B[0m\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_instructions(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @ftell(ptr noundef %5)
store i64 %6, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @SEEK_SET, align 4
%9 = call i32 @fseek(ptr noundef %7, i64 noundef 0, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %2, align 8
%12 = call signext i8 @getc(ptr noundef %11)
store i8 %12, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr @EOF, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %13, %15
br i1 %16, label %.lr.ph, label %38
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %31
%18 = load ptr, ptr %2, align 8
%19 = call i64 @ftell(ptr noundef %18)
%20 = load i64, ptr %4, align 8
%21 = add nsw i64 %20, 1
%22 = icmp eq i64 %19, %21
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i8, ptr %3, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
br label %31
27: ; preds = %17
%28 = load i8, ptr %3, align 1
%29 = sext i8 %28 to i32
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
br label %31
31: ; preds = %27, %23
%32 = load ptr, ptr %2, align 8
%33 = call signext i8 @getc(ptr noundef %32)
store i8 %33, ptr %3, align 1
%34 = sext i8 %33 to i32
%35 = load i8, ptr @EOF, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %34, %36
br i1 %37, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %38
38: ; preds = %._crit_edge, %1
%39 = load ptr, ptr %2, align 8
%40 = load i64, ptr %4, align 8
%41 = load i32, ptr @SEEK_SET, align 4
%42 = call i32 @fseek(ptr noundef %39, i64 noundef %40, i32 noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret void
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptn3v3115.c'
source_filename = "/tmp/tmptn3v3115.c"
target datalayout = "e-m:e-p270: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/tmptn3v3115.c"
target datalayout = "e-m:e-p270: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/tmp1_wjnpkw.c'
source_filename = "/tmp/tmp1_wjnpkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isOneOf(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %26, %2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %20, %22
br i1 %23, label %24, label %25
24: ; preds = %14
store i32 1, ptr %3, align 4
br label %30
25: ; preds = %14
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
br label %10, !llvm.loop !6
29: ; preds = %10
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %24
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1_wjnpkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isOneOf(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %25
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load i8, ptr %4, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %19, %21
br i1 %22, label %23, label %24
23: ; preds = %13
store i32 1, ptr %3, align 4
br label %32
24: ; preds = %13
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %31, %23
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqaucktx4.c'
source_filename = "/tmp/tmpqaucktx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stop() #0 {
%1 = call i32 @geschwindigkeitsetzen(i32 noundef 0)
ret void
}
declare i32 @geschwindigkeitsetzen(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/tmpqaucktx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stop() #0 {
%1 = call i32 @geschwindigkeitsetzen(i32 noundef 0)
ret void
}
declare i32 @geschwindigkeitsetzen(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/tmp2nffbzg5.c'
source_filename = "/tmp/tmp2nffbzg5.c"
target datalayout = "e-m:e-p270: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.i2c_rdwr_ioctl_data = type { i32, ptr }
%struct.i2c_msg = type { i32, i32, ptr, i32 }
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Error on opening the device file\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Memory alloc error\0A\00", align 1
@I2C_TIMEOUT = dso_local global i32 0, align 4
@I2C_RETRIES = dso_local global i32 0, align 4
@I2C_M_RD = dso_local global i32 0, align 4
@I2C_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2c_read_reg(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %struct.i2c_rdwr_ioctl_data, align 8
%13 = alloca i8, align 1
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%16 = load i32, ptr %10, align 4
%17 = trunc i32 %16 to i8
store i8 %17, ptr %13, align 1
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr @O_RDWR, align 4
%20 = call i32 @open(ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %15, align 4
%21 = load i32, ptr %15, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %5
%24 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %6, align 4
br label %101
25: ; preds = %5
%26 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 0
store i32 2, ptr %26, align 8
%27 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 0
%28 = load i32, ptr %27, align 8
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 24
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
%34 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
store ptr %33, ptr %34, align 8
%35 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%36 = load ptr, ptr %35, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %42, label %38
38: ; preds = %25
%39 = call i32 @printf(ptr noundef @.str.1)
%40 = load i32, ptr %15, align 4
%41 = call i32 @close(i32 noundef %40)
store i32 0, ptr %6, align 4
br label %101
42: ; preds = %25
%43 = load i32, ptr %15, align 4
%44 = load i32, ptr @I2C_TIMEOUT, align 4
%45 = call i32 @ioctl(i32 noundef %43, i32 noundef %44, i64 noundef 2)
%46 = load i32, ptr %15, align 4
%47 = load i32, ptr @I2C_RETRIES, align 4
%48 = call i32 @ioctl(i32 noundef %46, i32 noundef %47, i64 noundef 1)
%49 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds %struct.i2c_msg, ptr %50, i64 0
%52 = getelementptr inbounds %struct.i2c_msg, ptr %51, i32 0, i32 0
store i32 1, ptr %52, align 8
%53 = load i32, ptr %9, align 4
%54 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds %struct.i2c_msg, ptr %55, i64 0
%57 = getelementptr inbounds %struct.i2c_msg, ptr %56, i32 0, i32 1
store i32 %53, ptr %57, align 4
%58 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds %struct.i2c_msg, ptr %59, i64 0
%61 = getelementptr inbounds %struct.i2c_msg, ptr %60, i32 0, i32 2
store ptr %13, ptr %61, align 8
%62 = load i32, ptr %11, align 4
%63 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.i2c_msg, ptr %64, i64 1
%66 = getelementptr inbounds %struct.i2c_msg, ptr %65, i32 0, i32 0
store i32 %62, ptr %66, align 8
%67 = load i32, ptr @I2C_M_RD, align 4
%68 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds %struct.i2c_msg, ptr %69, i64 1
%71 = getelementptr inbounds %struct.i2c_msg, ptr %70, i32 0, i32 3
store i32 %67, ptr %71, align 8
%72 = load i32, ptr %9, align 4
%73 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.i2c_msg, ptr %74, i64 1
%76 = getelementptr inbounds %struct.i2c_msg, ptr %75, i32 0, i32 1
store i32 %72, ptr %76, align 4
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%79 = load ptr, ptr %78, align 8
%80 = getelementptr inbounds %struct.i2c_msg, ptr %79, i64 1
%81 = getelementptr inbounds %struct.i2c_msg, ptr %80, i32 0, i32 2
store ptr %77, ptr %81, align 8
%82 = load i32, ptr %15, align 4
%83 = load i32, ptr @I2C_RDWR, align 4
%84 = ptrtoint ptr %12 to i64
%85 = call i32 @ioctl(i32 noundef %82, i32 noundef %83, i64 noundef %84)
store i32 %85, ptr %14, align 4
%86 = load i32, ptr %14, align 4
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %94
88: ; preds = %42
%89 = load i32, ptr %15, align 4
%90 = call i32 @close(i32 noundef %89)
%91 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%92 = load ptr, ptr %91, align 8
%93 = call i32 @free(ptr noundef %92)
store i32 0, ptr %6, align 4
br label %101
94: ; preds = %42
%95 = load i32, ptr %15, align 4
%96 = call i32 @close(i32 noundef %95)
%97 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%98 = load ptr, ptr %97, align 8
%99 = call i32 @free(ptr noundef %98)
%100 = load i32, ptr %11, align 4
store i32 %100, ptr %6, align 4
br label %101
101: ; preds = %94, %88, %38, %23
%102 = load i32, ptr %6, align 4
ret i32 %102
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i64 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/tmp2nffbzg5.c"
target datalayout = "e-m:e-p270: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.i2c_rdwr_ioctl_data = type { i32, ptr }
%struct.i2c_msg = type { i32, i32, ptr, i32 }
@O_RDWR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"Error on opening the device file\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Memory alloc error\0A\00", align 1
@I2C_TIMEOUT = dso_local global i32 0, align 4
@I2C_RETRIES = dso_local global i32 0, align 4
@I2C_M_RD = dso_local global i32 0, align 4
@I2C_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2c_read_reg(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca %struct.i2c_rdwr_ioctl_data, align 8
%13 = alloca i8, align 1
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%16 = load i32, ptr %10, align 4
%17 = trunc i32 %16 to i8
store i8 %17, ptr %13, align 1
%18 = load ptr, ptr %7, align 8
%19 = load i32, ptr @O_RDWR, align 4
%20 = call i32 @open(ptr noundef %18, i32 noundef %19)
store i32 %20, ptr %15, align 4
%21 = load i32, ptr %15, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %5
%24 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %6, align 4
br label %101
25: ; preds = %5
%26 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 0
store i32 2, ptr %26, align 8
%27 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 0
%28 = load i32, ptr %27, align 8
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 24
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 noundef %31)
%33 = inttoptr i64 %32 to ptr
%34 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
store ptr %33, ptr %34, align 8
%35 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%36 = load ptr, ptr %35, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %42, label %38
38: ; preds = %25
%39 = call i32 @printf(ptr noundef @.str.1)
%40 = load i32, ptr %15, align 4
%41 = call i32 @close(i32 noundef %40)
store i32 0, ptr %6, align 4
br label %101
42: ; preds = %25
%43 = load i32, ptr %15, align 4
%44 = load i32, ptr @I2C_TIMEOUT, align 4
%45 = call i32 @ioctl(i32 noundef %43, i32 noundef %44, i64 noundef 2)
%46 = load i32, ptr %15, align 4
%47 = load i32, ptr @I2C_RETRIES, align 4
%48 = call i32 @ioctl(i32 noundef %46, i32 noundef %47, i64 noundef 1)
%49 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds %struct.i2c_msg, ptr %50, i64 0
%52 = getelementptr inbounds %struct.i2c_msg, ptr %51, i32 0, i32 0
store i32 1, ptr %52, align 8
%53 = load i32, ptr %9, align 4
%54 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds %struct.i2c_msg, ptr %55, i64 0
%57 = getelementptr inbounds %struct.i2c_msg, ptr %56, i32 0, i32 1
store i32 %53, ptr %57, align 4
%58 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds %struct.i2c_msg, ptr %59, i64 0
%61 = getelementptr inbounds %struct.i2c_msg, ptr %60, i32 0, i32 2
store ptr %13, ptr %61, align 8
%62 = load i32, ptr %11, align 4
%63 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.i2c_msg, ptr %64, i64 1
%66 = getelementptr inbounds %struct.i2c_msg, ptr %65, i32 0, i32 0
store i32 %62, ptr %66, align 8
%67 = load i32, ptr @I2C_M_RD, align 4
%68 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds %struct.i2c_msg, ptr %69, i64 1
%71 = getelementptr inbounds %struct.i2c_msg, ptr %70, i32 0, i32 3
store i32 %67, ptr %71, align 8
%72 = load i32, ptr %9, align 4
%73 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.i2c_msg, ptr %74, i64 1
%76 = getelementptr inbounds %struct.i2c_msg, ptr %75, i32 0, i32 1
store i32 %72, ptr %76, align 4
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%79 = load ptr, ptr %78, align 8
%80 = getelementptr inbounds %struct.i2c_msg, ptr %79, i64 1
%81 = getelementptr inbounds %struct.i2c_msg, ptr %80, i32 0, i32 2
store ptr %77, ptr %81, align 8
%82 = load i32, ptr %15, align 4
%83 = load i32, ptr @I2C_RDWR, align 4
%84 = ptrtoint ptr %12 to i64
%85 = call i32 @ioctl(i32 noundef %82, i32 noundef %83, i64 noundef %84)
store i32 %85, ptr %14, align 4
%86 = load i32, ptr %14, align 4
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %94
88: ; preds = %42
%89 = load i32, ptr %15, align 4
%90 = call i32 @close(i32 noundef %89)
%91 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%92 = load ptr, ptr %91, align 8
%93 = call i32 @free(ptr noundef %92)
store i32 0, ptr %6, align 4
br label %101
94: ; preds = %42
%95 = load i32, ptr %15, align 4
%96 = call i32 @close(i32 noundef %95)
%97 = getelementptr inbounds %struct.i2c_rdwr_ioctl_data, ptr %12, i32 0, i32 1
%98 = load ptr, ptr %97, align 8
%99 = call i32 @free(ptr noundef %98)
%100 = load i32, ptr %11, align 4
store i32 %100, ptr %6, align 4
br label %101
101: ; preds = %94, %88, %38, %23
%102 = load i32, ptr %6, align 4
ret i32 %102
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i64 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/tmpq5_m6e5w.c'
source_filename = "/tmp/tmpq5_m6e5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_sigdelset_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
%10 = call i32 @sigdelset(ptr noundef %7, i32 noundef %9)
ret void
}
declare i32 @sigdelset(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/tmpq5_m6e5w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_sigdelset_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %8, align 4
%10 = call i32 @sigdelset(ptr noundef %7, i32 noundef %9)
ret void
}
declare i32 @sigdelset(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/tmpfr16vs0s.c'
source_filename = "/tmp/tmpfr16vs0s.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"MB_CUR_MAX = %lu\0A\00", align 1
@MB_CUR_MAX = dso_local global i32 0, align 4
; 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 = load i32, ptr @LC_ALL, align 4
%3 = call i32 @setlocale(i32 noundef %2, ptr noundef @.str)
%4 = load i32, ptr @MB_CUR_MAX, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret i32 0
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfr16vs0s.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"MB_CUR_MAX = %lu\0A\00", align 1
@MB_CUR_MAX = dso_local global i32 0, align 4
; 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 = load i32, ptr @LC_ALL, align 4
%3 = call i32 @setlocale(i32 noundef %2, ptr noundef @.str)
%4 = load i32, ptr @MB_CUR_MAX, align 4
%5 = call i32 @printf(ptr noundef @.str.1, i32 noundef %4)
ret i32 0
}
declare i32 @setlocale(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp02jeo5qg.c'
source_filename = "/tmp/tmp02jeo5qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld%lld%lld%lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\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 double, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %133, %0
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%12 = icmp eq i32 %11, 4
br i1 %12, label %13, label %139
13: ; preds = %10
store double 0.000000e+00, ptr %8, align 8
%14 = load i32, ptr %5, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %76
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %5, align 4
%19 = sub nsw i32 %17, %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
%22 = sdiv i32 %19, %21
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 %23, %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
%28 = srem i32 %25, %27
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %3, align 4
%31 = sitofp i32 %30 to double
%32 = fmul double %31, 1.000000e+00
%33 = fptosi double %32 to i32
%34 = call double @pow(i32 noundef %29, i32 noundef %33)
%35 = load i32, ptr %5, align 4
%36 = sitofp i32 %35 to double
%37 = load i32, ptr %6, align 4
%38 = sitofp i32 %37 to double
%39 = load i32, ptr %4, align 4
%40 = sitofp i32 %39 to double
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr %3, align 4
%43 = sitofp i32 %42 to double
%44 = fmul double %43, 1.000000e+00
%45 = fptosi double %44 to i32
%46 = call double @pow(i32 noundef %41, i32 noundef %45)
%47 = fadd double %40, %46
%48 = fmul double %38, %47
%49 = call double @llvm.fmuladd.f64(double %34, double %36, double %48)
store double %49, ptr %8, align 8
%50 = load i32, ptr %7, align 4
%51 = icmp sgt i32 %50, 1
br i1 %51, label %52, label %66
52: ; preds = %16
%53 = load i32, ptr %7, align 4
%54 = sub nsw i32 %53, 1
%55 = sitofp i32 %54 to double
%56 = load i32, ptr %7, align 4
%57 = sub nsw i32 %56, 1
%58 = load i32, ptr %3, align 4
%59 = sitofp i32 %58 to double
%60 = fmul double %59, 1.000000e+00
%61 = fptosi double %60 to i32
%62 = call double @pow(i32 noundef %57, i32 noundef %61)
%63 = fadd double %55, %62
%64 = load double, ptr %8, align 8
%65 = fadd double %64, %63
store double %65, ptr %8, align 8
br label %66
66: ; preds = %52, %16
%67 = load i32, ptr %4, align 4
%68 = call i32 @sqrt(i32 noundef %67)
%69 = load i32, ptr %3, align 4
%70 = sitofp i32 %69 to double
%71 = fmul double %70, 1.000000e+00
%72 = fptosi double %71 to i32
%73 = call double @pow(i32 noundef %68, i32 noundef %72)
%74 = load double, ptr %8, align 8
%75 = fdiv double %74, %73
store double %75, ptr %8, align 8
br label %133
76: ; preds = %13
%77 = load i32, ptr %2, align 4
%78 = load i32, ptr %4, align 4
%79 = load i32, ptr %5, align 4
%80 = mul nsw i32 %78, %79
%81 = add nsw i32 %77, %80
store i32 %81, ptr %9, align 4
%82 = load i32, ptr %9, align 4
%83 = load i32, ptr %4, align 4
%84 = add nsw i32 %83, 1
%85 = sdiv i32 %82, %84
store i32 %85, ptr %6, align 4
%86 = load i32, ptr %9, align 4
%87 = load i32, ptr %4, align 4
%88 = add nsw i32 %87, 1
%89 = srem i32 %86, %88
store i32 %89, ptr %7, align 4
%90 = load i32, ptr %5, align 4
%91 = sub nsw i32 0, %90
%92 = load i32, ptr %4, align 4
%93 = mul nsw i32 %91, %92
%94 = sitofp i32 %93 to double
%95 = load i32, ptr %6, align 4
%96 = sitofp i32 %95 to double
%97 = load i32, ptr %4, align 4
%98 = sitofp i32 %97 to double
%99 = load i32, ptr %4, align 4
%100 = load i32, ptr %3, align 4
%101 = sitofp i32 %100 to double
%102 = fmul double %101, 1.000000e+00
%103 = fptosi double %102 to i32
%104 = call double @pow(i32 noundef %99, i32 noundef %103)
%105 = fadd double %98, %104
%106 = call double @llvm.fmuladd.f64(double %96, double %105, double %94)
store double %106, ptr %8, align 8
%107 = load i32, ptr %7, align 4
%108 = icmp sgt i32 %107, 1
br i1 %108, label %109, label %123
109: ; preds = %76
%110 = load i32, ptr %7, align 4
%111 = sub nsw i32 %110, 1
%112 = sitofp i32 %111 to double
%113 = load i32, ptr %7, align 4
%114 = sub nsw i32 %113, 1
%115 = load i32, ptr %3, align 4
%116 = sitofp i32 %115 to double
%117 = fmul double %116, 1.000000e+00
%118 = fptosi double %117 to i32
%119 = call double @pow(i32 noundef %114, i32 noundef %118)
%120 = fadd double %112, %119
%121 = load double, ptr %8, align 8
%122 = fadd double %121, %120
store double %122, ptr %8, align 8
br label %123
123: ; preds = %109, %76
%124 = load i32, ptr %4, align 4
%125 = call i32 @sqrt(i32 noundef %124)
%126 = load i32, ptr %3, align 4
%127 = sitofp i32 %126 to double
%128 = fmul double %127, 1.000000e+00
%129 = fptosi double %128 to i32
%130 = call double @pow(i32 noundef %125, i32 noundef %129)
%131 = load double, ptr %8, align 8
%132 = fdiv double %131, %130
store double %132, ptr %8, align 8
br label %133
133: ; preds = %123, %66
%134 = load double, ptr %8, align 8
%135 = fadd double %134, 5.000000e-01
%136 = fadd double %135, 0x3EB0C6F7A0B5ED8D
%137 = fptosi double %136 to i32
%138 = call i32 @printf(ptr noundef @.str.1, i32 noundef %137)
br label %10, !llvm.loop !6
139: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare double @pow(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @sqrt(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp02jeo5qg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld%lld%lld%lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\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 double, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%11 = icmp eq i32 %10, 4
br i1 %11, label %.lr.ph, label %140
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %132
store double 0.000000e+00, ptr %8, align 8
%13 = load i32, ptr %5, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %75
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %5, align 4
%18 = sub nsw i32 %16, %17
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
%21 = sdiv i32 %18, %20
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %22, %23
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
%27 = srem i32 %24, %26
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = sitofp i32 %29 to double
%31 = fmul double %30, 1.000000e+00
%32 = fptosi double %31 to i32
%33 = call double @pow(i32 noundef %28, i32 noundef %32)
%34 = load i32, ptr %5, align 4
%35 = sitofp i32 %34 to double
%36 = load i32, ptr %6, align 4
%37 = sitofp i32 %36 to double
%38 = load i32, ptr %4, align 4
%39 = sitofp i32 %38 to double
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %3, align 4
%42 = sitofp i32 %41 to double
%43 = fmul double %42, 1.000000e+00
%44 = fptosi double %43 to i32
%45 = call double @pow(i32 noundef %40, i32 noundef %44)
%46 = fadd double %39, %45
%47 = fmul double %37, %46
%48 = call double @llvm.fmuladd.f64(double %33, double %35, double %47)
store double %48, ptr %8, align 8
%49 = load i32, ptr %7, align 4
%50 = icmp sgt i32 %49, 1
br i1 %50, label %51, label %65
51: ; preds = %15
%52 = load i32, ptr %7, align 4
%53 = sub nsw i32 %52, 1
%54 = sitofp i32 %53 to double
%55 = load i32, ptr %7, align 4
%56 = sub nsw i32 %55, 1
%57 = load i32, ptr %3, align 4
%58 = sitofp i32 %57 to double
%59 = fmul double %58, 1.000000e+00
%60 = fptosi double %59 to i32
%61 = call double @pow(i32 noundef %56, i32 noundef %60)
%62 = fadd double %54, %61
%63 = load double, ptr %8, align 8
%64 = fadd double %63, %62
store double %64, ptr %8, align 8
br label %65
65: ; preds = %51, %15
%66 = load i32, ptr %4, align 4
%67 = call i32 @sqrt(i32 noundef %66)
%68 = load i32, ptr %3, align 4
%69 = sitofp i32 %68 to double
%70 = fmul double %69, 1.000000e+00
%71 = fptosi double %70 to i32
%72 = call double @pow(i32 noundef %67, i32 noundef %71)
%73 = load double, ptr %8, align 8
%74 = fdiv double %73, %72
store double %74, ptr %8, align 8
br label %132
75: ; preds = %12
%76 = load i32, ptr %2, align 4
%77 = load i32, ptr %4, align 4
%78 = load i32, ptr %5, align 4
%79 = mul nsw i32 %77, %78
%80 = add nsw i32 %76, %79
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %4, align 4
%83 = add nsw i32 %82, 1
%84 = sdiv i32 %81, %83
store i32 %84, ptr %6, align 4
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %4, align 4
%87 = add nsw i32 %86, 1
%88 = srem i32 %85, %87
store i32 %88, ptr %7, align 4
%89 = load i32, ptr %5, align 4
%90 = sub nsw i32 0, %89
%91 = load i32, ptr %4, align 4
%92 = mul nsw i32 %90, %91
%93 = sitofp i32 %92 to double
%94 = load i32, ptr %6, align 4
%95 = sitofp i32 %94 to double
%96 = load i32, ptr %4, align 4
%97 = sitofp i32 %96 to double
%98 = load i32, ptr %4, align 4
%99 = load i32, ptr %3, align 4
%100 = sitofp i32 %99 to double
%101 = fmul double %100, 1.000000e+00
%102 = fptosi double %101 to i32
%103 = call double @pow(i32 noundef %98, i32 noundef %102)
%104 = fadd double %97, %103
%105 = call double @llvm.fmuladd.f64(double %95, double %104, double %93)
store double %105, ptr %8, align 8
%106 = load i32, ptr %7, align 4
%107 = icmp sgt i32 %106, 1
br i1 %107, label %108, label %122
108: ; preds = %75
%109 = load i32, ptr %7, align 4
%110 = sub nsw i32 %109, 1
%111 = sitofp i32 %110 to double
%112 = load i32, ptr %7, align 4
%113 = sub nsw i32 %112, 1
%114 = load i32, ptr %3, align 4
%115 = sitofp i32 %114 to double
%116 = fmul double %115, 1.000000e+00
%117 = fptosi double %116 to i32
%118 = call double @pow(i32 noundef %113, i32 noundef %117)
%119 = fadd double %111, %118
%120 = load double, ptr %8, align 8
%121 = fadd double %120, %119
store double %121, ptr %8, align 8
br label %122
122: ; preds = %108, %75
%123 = load i32, ptr %4, align 4
%124 = call i32 @sqrt(i32 noundef %123)
%125 = load i32, ptr %3, align 4
%126 = sitofp i32 %125 to double
%127 = fmul double %126, 1.000000e+00
%128 = fptosi double %127 to i32
%129 = call double @pow(i32 noundef %124, i32 noundef %128)
%130 = load double, ptr %8, align 8
%131 = fdiv double %130, %129
store double %131, ptr %8, align 8
br label %132
132: ; preds = %122, %65
%133 = load double, ptr %8, align 8
%134 = fadd double %133, 5.000000e-01
%135 = fadd double %134, 0x3EB0C6F7A0B5ED8D
%136 = fptosi double %135 to i32
%137 = call i32 @printf(ptr noundef @.str.1, i32 noundef %136)
%138 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%139 = icmp eq i32 %138, 4
br i1 %139, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %132
br label %140
140: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare double @pow(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @sqrt(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ms7e4g7.c'
source_filename = "/tmp/tmp7ms7e4g7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Can't open listener socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_listener_socket() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @PF_INET, align 4
%3 = load i32, ptr @SOCK_STREAM, align 4
%4 = call i32 @socket(i32 noundef %2, i32 noundef %3, i32 noundef 0)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @error(ptr noundef @.str)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ms7e4g7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Can't open listener socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_listener_socket() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @PF_INET, align 4
%3 = load i32, ptr @SOCK_STREAM, align 4
%4 = call i32 @socket(i32 noundef %2, i32 noundef %3, i32 noundef 0)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @error(ptr noundef @.str)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd3oo9slq.c'
source_filename = "/tmp/tmpd3oo9slq.c"
target datalayout = "e-m:e-p270: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/tmpd3oo9slq.c"
target datalayout = "e-m:e-p270: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/tmpks7hf618.c'
source_filename = "/tmp/tmpks7hf618.c"
target datalayout = "e-m:e-p270: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/tmpks7hf618.c"
target datalayout = "e-m:e-p270: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/tmpn8s458jl.c'
source_filename = "/tmp/tmpn8s458jl.c"
target datalayout = "e-m:e-p270: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/tmpn8s458jl.c"
target datalayout = "e-m:e-p270: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/tmpnka06tw4.c'
source_filename = "/tmp/tmpnka06tw4.c"
target datalayout = "e-m:e-p270: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/tmpnka06tw4.c"
target datalayout = "e-m:e-p270: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/tmpj12_p9l9.c'
source_filename = "/tmp/tmpj12_p9l9.c"
target datalayout = "e-m:e-p270: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/tmpj12_p9l9.c"
target datalayout = "e-m:e-p270: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/tmp5n4tw79_.c'
source_filename = "/tmp/tmp5n4tw79_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HibernateIntClear(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, -32
%5 = icmp ne i64 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %2, align 8
%10 = load volatile i64, ptr inttoptr (i64 1074774048 to ptr), align 8
%11 = or i64 %10, %9
store volatile i64 %11, ptr inttoptr (i64 1074774048 to ptr), align 8
%12 = call i32 (...) @HibernateWriteComplete()
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @HibernateWriteComplete(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5n4tw79_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HibernateIntClear(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = and i64 %3, -32
%5 = icmp ne i64 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %2, align 8
%10 = load volatile i64, ptr inttoptr (i64 1074774048 to ptr), align 8
%11 = or i64 %10, %9
store volatile i64 %11, ptr inttoptr (i64 1074774048 to ptr), align 8
%12 = call i32 (...) @HibernateWriteComplete()
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @HibernateWriteComplete(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ahb5d4_.c'
source_filename = "/tmp/tmp3ahb5d4_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\\'\22<>();~$^&*|{}[]?\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @princhar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @strchr(ptr noundef @.str, i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fputc(i8 noundef signext 92, i32 noundef %7)
br label %9
9: ; preds = %6, %1
%10 = load i32, ptr %2, align 4
%11 = call i32 @putchar(i32 noundef %10)
ret void
}
declare i64 @strchr(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @putchar(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/tmp3ahb5d4_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\\'\22<>();~$^&*|{}[]?\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @princhar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @strchr(ptr noundef @.str, i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fputc(i8 noundef signext 92, i32 noundef %7)
br label %9
9: ; preds = %6, %1
%10 = load i32, ptr %2, align 4
%11 = call i32 @putchar(i32 noundef %10)
ret void
}
declare i64 @strchr(ptr noundef, i32 noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @putchar(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/tmphq2v_cbv.c'
source_filename = "/tmp/tmphq2v_cbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nms_c_unsorted_src(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, float noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca float, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca float, align 4
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store float %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
store i32 0, ptr %19, align 4
br label %22
22: ; preds = %88, %9
%23 = load i32, ptr %19, align 4
%24 = load i32, ptr %17, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %91
26: ; preds = %22
%27 = load ptr, ptr %15, align 8
%28 = load i32, ptr %19, 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 eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
br label %88
34: ; preds = %26
%35 = load i32, ptr %19, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %20, align 4
br label %37
37: ; preds = %84, %34
%38 = load i32, ptr %20, align 4
%39 = load i32, ptr %17, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %87
41: ; preds = %37
%42 = load ptr, ptr %15, align 8
%43 = load i32, ptr %20, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %41
br label %84
49: ; preds = %41
%50 = load ptr, ptr %10, align 8
%51 = load ptr, ptr %11, align 8
%52 = load ptr, ptr %12, align 8
%53 = load ptr, ptr %13, align 8
%54 = load i32, ptr %19, align 4
%55 = load i32, ptr %20, align 4
%56 = call float @lowerleft_iou(ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, i32 noundef %54, i32 noundef %55)
store float %56, ptr %21, align 4
%57 = load float, ptr %21, align 4
%58 = load float, ptr %16, align 4
%59 = fcmp ogt float %57, %58
br i1 %59, label %60, label %83
60: ; preds = %49
%61 = load ptr, ptr %18, align 8
%62 = load i32, ptr %19, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, ptr %61, i64 %63
%65 = load float, ptr %64, align 4
%66 = load ptr, ptr %18, align 8
%67 = load i32, ptr %20, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
%70 = load float, ptr %69, align 4
%71 = fcmp ogt float %65, %70
br i1 %71, label %72, label %77
72: ; preds = %60
%73 = load ptr, ptr %15, align 8
%74 = load i32, ptr %20, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
store i32 0, ptr %76, align 4
br label %82
77: ; preds = %60
%78 = load ptr, ptr %15, align 8
%79 = load i32, ptr %19, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
store i32 0, ptr %81, align 4
br label %87
82: ; preds = %72
br label %83
83: ; preds = %82, %49
br label %84
84: ; preds = %83, %48
%85 = load i32, ptr %20, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %20, align 4
br label %37, !llvm.loop !6
87: ; preds = %77, %37
br label %88
88: ; preds = %87, %33
%89 = load i32, ptr %19, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %19, align 4
br label %22, !llvm.loop !8
91: ; preds = %22
ret void
}
declare float @lowerleft_iou(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphq2v_cbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nms_c_unsorted_src(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, float noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca float, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca float, align 4
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store float %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
store i32 0, ptr %19, align 4
%22 = load i32, ptr %19, align 4
%23 = load i32, ptr %17, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph1, label %95
.lr.ph1: ; preds = %9
br label %25
25: ; preds = %.lr.ph1, %89
%26 = load ptr, ptr %15, align 8
%27 = load i32, ptr %19, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %25
br label %89
33: ; preds = %25
%34 = load i32, ptr %19, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %20, align 4
%36 = load i32, ptr %20, align 4
%37 = load i32, ptr %17, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %33
br label %39
39: ; preds = %.lr.ph, %82
%40 = load ptr, ptr %15, align 8
%41 = load i32, ptr %20, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %39
br label %82
47: ; preds = %39
%48 = load ptr, ptr %10, align 8
%49 = load ptr, ptr %11, align 8
%50 = load ptr, ptr %12, align 8
%51 = load ptr, ptr %13, align 8
%52 = load i32, ptr %19, align 4
%53 = load i32, ptr %20, align 4
%54 = call float @lowerleft_iou(ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51, i32 noundef %52, i32 noundef %53)
store float %54, ptr %21, align 4
%55 = load float, ptr %21, align 4
%56 = load float, ptr %16, align 4
%57 = fcmp ogt float %55, %56
br i1 %57, label %58, label %81
58: ; preds = %47
%59 = load ptr, ptr %18, align 8
%60 = load i32, ptr %19, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, ptr %59, i64 %61
%63 = load float, ptr %62, align 4
%64 = load ptr, ptr %18, align 8
%65 = load i32, ptr %20, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, ptr %64, i64 %66
%68 = load float, ptr %67, align 4
%69 = fcmp ogt float %63, %68
br i1 %69, label %70, label %75
70: ; preds = %58
%71 = load ptr, ptr %15, align 8
%72 = load i32, ptr %20, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
store i32 0, ptr %74, align 4
br label %80
75: ; preds = %58
%76 = load ptr, ptr %15, align 8
%77 = load i32, ptr %19, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
store i32 0, ptr %79, align 4
br label %88
80: ; preds = %70
br label %81
81: ; preds = %80, %47
br label %82
82: ; preds = %81, %46
%83 = load i32, ptr %20, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %20, align 4
%85 = load i32, ptr %20, align 4
%86 = load i32, ptr %17, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %39, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %82
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %33
br label %88
88: ; preds = %.loopexit, %75
br label %89
89: ; preds = %88, %32
%90 = load i32, ptr %19, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %19, align 4
%92 = load i32, ptr %19, align 4
%93 = load i32, ptr %17, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %25, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %9
ret void
}
declare float @lowerleft_iou(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjos92ygb.c'
source_filename = "/tmp/tmpjos92ygb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @robber_left(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @robber_erase(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 2
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 20
br i1 %11, label %12, label %15
12: ; preds = %9, %1
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %12, %9
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 21, ptr %2, align 4
br label %19
19: ; preds = %18, %15
%20 = load i32, ptr %2, align 4
%21 = call i32 @robber_place(i32 noundef %20)
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @robber_erase(i32 noundef) #1
declare i32 @robber_place(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/tmpjos92ygb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @robber_left(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @robber_erase(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 2
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 20
br i1 %11, label %12, label %15
12: ; preds = %9, %1
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %12, %9
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 21, ptr %2, align 4
br label %19
19: ; preds = %18, %15
%20 = load i32, ptr %2, align 4
%21 = call i32 @robber_place(i32 noundef %20)
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @robber_erase(i32 noundef) #1
declare i32 @robber_place(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/tmpsms3d6uw.c'
source_filename = "/tmp/tmpsms3d6uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SuperNET_broadcast(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsms3d6uw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SuperNET_broadcast(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
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5pietf6m.c'
source_filename = "/tmp/tmp5pietf6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"swag is king\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"error is king\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fflush(i32 noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.1)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fflush(i32 noundef %9)
br label %11
11: ; preds = %0, %17
%12 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @read(i32 noundef 0, ptr noundef %12, i32 noundef 256)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
br label %21
17: ; preds = %11
%18 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%19 = load i32, ptr %3, align 4
%20 = call i32 @write(i32 noundef 1, ptr noundef %18, i32 noundef %19)
br label %11
21: ; preds = %16
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5pietf6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"swag is king\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"error is king\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fflush(i32 noundef %5)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.1)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fflush(i32 noundef %9)
%11 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @read(i32 noundef 0, ptr noundef %11, i32 noundef 256)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 0
br i1 %14, label %15, label %.lr.ph
.lr.ph: ; preds = %0
br label %16
._crit_edge: ; preds = %16
br label %15
15: ; preds = %._crit_edge, %0
br label %23
16: ; preds = %.lr.ph, %16
%17 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%18 = load i32, ptr %3, align 4
%19 = call i32 @write(i32 noundef 1, ptr noundef %17, i32 noundef %18)
%20 = call i32 @read(i32 noundef 0, ptr noundef %11, i32 noundef 256)
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sle i32 %21, 0
br i1 %22, label %._crit_edge, label %16
23: ; preds = %15
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0ejvyvtk.c'
source_filename = "/tmp/tmp0ejvyvtk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dct(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %95, %2
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 8
br i1 %13, label %14, label %98
14: ; preds = %11
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %91, %14
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 8
br i1 %17, label %18, label %94
18: ; preds = %15
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %75, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 8
br i1 %21, label %22, label %78
22: ; preds = %19
store i32 0, ptr %9, align 4
br label %23
23: ; preds = %71, %22
%24 = load i32, ptr %9, align 4
%25 = icmp slt i32 %24, 8
br i1 %25, label %26, label %74
26: ; preds = %23
%27 = load i32, ptr %5, align 4
%28 = call i32 @C(i32 noundef %27)
%29 = load i32, ptr %6, align 4
%30 = call i32 @C(i32 noundef %29)
%31 = mul nsw i32 %28, %30
%32 = load i32, ptr %8, align 4
%33 = sitofp i32 %32 to double
%34 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %33, double 1.000000e+00)
%35 = load i32, ptr %5, align 4
%36 = sitofp i32 %35 to double
%37 = fmul double %34, %36
%38 = call i32 @acos(i32 noundef -1)
%39 = sitofp i32 %38 to double
%40 = fmul double %37, %39
%41 = fdiv double %40, 1.600000e+01
%42 = fptosi double %41 to i32
%43 = call i32 @cos(i32 noundef %42)
%44 = mul nsw i32 %31, %43
%45 = load i32, ptr %9, align 4
%46 = sitofp i32 %45 to double
%47 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %46, double 1.000000e+00)
%48 = load i32, ptr %6, align 4
%49 = sitofp i32 %48 to double
%50 = fmul double %47, %49
%51 = call i32 @acos(i32 noundef -1)
%52 = sitofp i32 %51 to double
%53 = fmul double %50, %52
%54 = fdiv double %53, 1.600000e+01
%55 = fptosi double %54 to i32
%56 = call i32 @cos(i32 noundef %55)
%57 = mul nsw i32 %44, %56
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %8, align 4
%60 = mul nsw i32 8, %59
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %58, i64 %63
%65 = load i32, ptr %64, align 4
%66 = sub nsw i32 %65, 128
%67 = mul nsw i32 %57, %66
%68 = sitofp i32 %67 to double
%69 = load double, ptr %7, align 8
%70 = fadd double %69, %68
store double %70, ptr %7, align 8
br label %71
71: ; preds = %26
%72 = load i32, ptr %9, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %9, align 4
br label %23, !llvm.loop !6
74: ; preds = %23
br label %75
75: ; preds = %74
%76 = load i32, ptr %8, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %8, align 4
br label %19, !llvm.loop !8
78: ; preds = %19
%79 = load double, ptr %7, align 8
%80 = fmul double %79, 2.500000e-01
store double %80, ptr %7, align 8
%81 = load double, ptr %7, align 8
%82 = fptosi double %81 to i32
store i32 %82, ptr %10, align 4
%83 = load i32, ptr %10, align 4
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %5, align 4
%86 = mul nsw i32 8, %85
%87 = load i32, ptr %6, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %84, i64 %89
store i32 %83, ptr %90, align 4
br label %91
91: ; preds = %78
%92 = load i32, ptr %6, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %6, align 4
br label %15, !llvm.loop !9
94: ; preds = %15
br label %95
95: ; preds = %94
%96 = load i32, ptr %5, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %5, align 4
br label %11, !llvm.loop !10
98: ; preds = %11
ret void
}
declare i32 @C(i32 noundef) #1
declare i32 @cos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @acos(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ejvyvtk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dct(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %.lr.ph8, label %102
.lr.ph8: ; preds = %2
br label %13
13: ; preds = %.lr.ph8, %97
store i32 0, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 8
br i1 %15, label %.lr.ph5, label %96
.lr.ph5: ; preds = %13
br label %16
16: ; preds = %.lr.ph5, %91
store double 0.000000e+00, ptr %7, align 8
store i32 0, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 8
br i1 %18, label %.lr.ph2, label %78
.lr.ph2: ; preds = %16
br label %19
19: ; preds = %.lr.ph2, %73
store i32 0, ptr %9, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %20, 8
br i1 %21, label %.lr.ph, label %72
.lr.ph: ; preds = %19
br label %22
22: ; preds = %.lr.ph, %67
%23 = load i32, ptr %5, align 4
%24 = call i32 @C(i32 noundef %23)
%25 = load i32, ptr %6, align 4
%26 = call i32 @C(i32 noundef %25)
%27 = mul nsw i32 %24, %26
%28 = load i32, ptr %8, align 4
%29 = sitofp i32 %28 to double
%30 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %29, double 1.000000e+00)
%31 = load i32, ptr %5, align 4
%32 = sitofp i32 %31 to double
%33 = fmul double %30, %32
%34 = call i32 @acos(i32 noundef -1)
%35 = sitofp i32 %34 to double
%36 = fmul double %33, %35
%37 = fdiv double %36, 1.600000e+01
%38 = fptosi double %37 to i32
%39 = call i32 @cos(i32 noundef %38)
%40 = mul nsw i32 %27, %39
%41 = load i32, ptr %9, align 4
%42 = sitofp i32 %41 to double
%43 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %42, double 1.000000e+00)
%44 = load i32, ptr %6, align 4
%45 = sitofp i32 %44 to double
%46 = fmul double %43, %45
%47 = call i32 @acos(i32 noundef -1)
%48 = sitofp i32 %47 to double
%49 = fmul double %46, %48
%50 = fdiv double %49, 1.600000e+01
%51 = fptosi double %50 to i32
%52 = call i32 @cos(i32 noundef %51)
%53 = mul nsw i32 %40, %52
%54 = load ptr, ptr %3, align 8
%55 = load i32, ptr %8, align 4
%56 = mul nsw i32 8, %55
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %54, i64 %59
%61 = load i32, ptr %60, align 4
%62 = sub nsw i32 %61, 128
%63 = mul nsw i32 %53, %62
%64 = sitofp i32 %63 to double
%65 = load double, ptr %7, align 8
%66 = fadd double %65, %64
store double %66, ptr %7, align 8
br label %67
67: ; preds = %22
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %70, 8
br i1 %71, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %72
72: ; preds = %._crit_edge, %19
br label %73
73: ; preds = %72
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %8, align 4
%77 = icmp slt i32 %76, 8
br i1 %77, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %78
78: ; preds = %._crit_edge3, %16
%79 = load double, ptr %7, align 8
%80 = fmul double %79, 2.500000e-01
store double %80, ptr %7, align 8
%81 = load double, ptr %7, align 8
%82 = fptosi double %81 to i32
store i32 %82, ptr %10, align 4
%83 = load i32, ptr %10, align 4
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %5, align 4
%86 = mul nsw i32 8, %85
%87 = load i32, ptr %6, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %84, i64 %89
store i32 %83, ptr %90, align 4
br label %91
91: ; preds = %78
%92 = load i32, ptr %6, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %6, align 4
%95 = icmp slt i32 %94, 8
br i1 %95, label %16, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %91
br label %96
96: ; preds = %._crit_edge6, %13
br label %97
97: ; preds = %96
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
%100 = load i32, ptr %5, align 4
%101 = icmp slt i32 %100, 8
br i1 %101, label %13, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %97
br label %102
102: ; preds = %._crit_edge9, %2
ret void
}
declare i32 @C(i32 noundef) #1
declare i32 @cos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @acos(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpa4tf7ual.c'
source_filename = "/tmp/tmpa4tf7ual.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2118Jx9w3e\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [11 x i8], align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %16, %0
%5 = load i32, ptr %3, align 4
%6 = call i32 @srand(i32 noundef %5)
%7 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @gen(i32 noundef 10, ptr noundef %7)
%9 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 0, ptr %1, align 4
br label %22
15: ; preds = %4
br label %16
16: ; preds = %15
%17 = load i32, ptr %3, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %4, label %20, !llvm.loop !6
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %20, %12
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @gen(i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa4tf7ual.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2118Jx9w3e\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [11 x i8], align 1
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %16, %0
%5 = load i32, ptr %3, align 4
%6 = call i32 @srand(i32 noundef %5)
%7 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @gen(i32 noundef 10, ptr noundef %7)
%9 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strcmp(ptr noundef %9, ptr noundef @.str)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 0, ptr %1, align 4
br label %22
15: ; preds = %4
br label %16
16: ; preds = %15
%17 = load i32, ptr %3, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %4, label %20, !llvm.loop !6
20: ; preds = %16
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %20, %12
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @gen(i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpemsi6zjd.c'
source_filename = "/tmp/tmpemsi6zjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Solo5: ABORT: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_abort(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = call i32 @puts(ptr noundef @.str)
%10 = load ptr, ptr %5, align 8
%11 = call i32 @puts(ptr noundef %10)
%12 = call i32 @puts(ptr noundef @.str.1)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @puts(ptr noundef %13)
%15 = call i32 @puts(ptr noundef @.str.2)
%16 = load ptr, ptr %7, align 8
%17 = call i32 @puts(ptr noundef %16)
%18 = call i32 @puts(ptr noundef @.str.3)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @platform_exit(i32 noundef 255, ptr noundef %19)
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @platform_exit(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/tmpemsi6zjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Solo5: ABORT: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_abort(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = call i32 @puts(ptr noundef @.str)
%10 = load ptr, ptr %5, align 8
%11 = call i32 @puts(ptr noundef %10)
%12 = call i32 @puts(ptr noundef @.str.1)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @puts(ptr noundef %13)
%15 = call i32 @puts(ptr noundef @.str.2)
%16 = load ptr, ptr %7, align 8
%17 = call i32 @puts(ptr noundef %16)
%18 = call i32 @puts(ptr noundef @.str.3)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @platform_exit(i32 noundef 255, ptr noundef %19)
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @platform_exit(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/tmprc0syf27.c'
source_filename = "/tmp/tmprc0syf27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"GetDateTime4:\09\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%Y-%m-%d %H:%M:%S\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GetDateTime4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [20 x i8], align 16
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 20, i1 false)
%6 = call i32 @time(ptr noundef null)
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @localtime(ptr noundef %2)
%9 = call i32 @strftime(ptr noundef %7, i32 noundef 20, ptr noundef @.str.1, i32 noundef %8)
%10 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @time(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprc0syf27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"GetDateTime4:\09\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%Y-%m-%d %H:%M:%S\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GetDateTime4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [20 x i8], align 16
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 20, i1 false)
%6 = call i32 @time(ptr noundef null)
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @localtime(ptr noundef %2)
%9 = call i32 @strftime(ptr noundef %7, i32 noundef 20, ptr noundef @.str.1, i32 noundef %8)
%10 = getelementptr inbounds [20 x i8], ptr %3, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %10)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @time(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8yc7x65t.c'
source_filename = "/tmp/tmp8yc7x65t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @luinv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %11, align 4
%26 = mul nsw i32 %24, %25
%27 = zext i32 %26 to i64
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %12, align 8
%29 = alloca float, i64 %27, align 16
store i64 %27, ptr %13, align 8
%30 = load i32, ptr %11, align 4
%31 = zext i32 %30 to i64
%32 = alloca float, i64 %31, align 16
store i64 %31, ptr %14, align 8
%33 = load i32, ptr %11, align 4
%34 = zext i32 %33 to i64
%35 = alloca float, i64 %34, align 16
store i64 %34, ptr %15, align 8
%36 = load i32, ptr %11, align 4
%37 = zext i32 %36 to i64
%38 = alloca float, i64 %37, align 16
store i64 %37, ptr %16, align 8
%39 = load i32, ptr %11, align 4
%40 = zext i32 %39 to i64
%41 = alloca float, i64 %40, align 16
store i64 %40, ptr %17, align 8
%42 = load i32, ptr %11, align 4
%43 = zext i32 %42 to i64
%44 = alloca float, i64 %43, align 16
store i64 %43, ptr %18, align 8
%45 = load ptr, ptr %5, align 8
%46 = mul nuw i64 4, %27
%47 = trunc i64 %46 to i32
%48 = call i32 @memcpy(ptr noundef %29, ptr noundef %45, i32 noundef %47)
%49 = load i32, ptr %7, align 4
%50 = call i32 @ludecomp(ptr noundef %29, ptr noundef %29, ptr noundef %32, i32 noundef %49)
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %8, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %54, label %53
53: ; preds = %3
store i32 0, ptr %4, align 4
store i32 1, ptr %19, align 4
br label %102
54: ; preds = %3
store i32 0, ptr %10, align 4
br label %55
55: ; preds = %98, %54
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %7, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %101
59: ; preds = %55
store i32 0, ptr %9, align 4
br label %60
60: ; preds = %68, %59
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, ptr %44, i64 %66
store float 0.000000e+00, ptr %67, align 4
br label %68
68: ; preds = %64
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
br label %60, !llvm.loop !6
71: ; preds = %60
%72 = load i32, ptr %10, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds float, ptr %44, i64 %73
store float 1.000000e+00, ptr %74, align 4
%75 = load i32, ptr %7, align 4
%76 = call i32 @lubacksub(ptr noundef %29, ptr noundef %35, ptr noundef %38, ptr noundef %44, ptr noundef %41, ptr noundef %32, i32 noundef %75)
store i32 0, ptr %9, align 4
br label %77
77: ; preds = %94, %71
%78 = load i32, ptr %9, align 4
%79 = load i32, ptr %7, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %97
81: ; preds = %77
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, ptr %35, i64 %83
%85 = load float, ptr %84, align 4
%86 = load ptr, ptr %6, align 8
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %7, align 4
%89 = mul nsw i32 %87, %88
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %86, i64 %92
store float %85, ptr %93, align 4
br label %94
94: ; preds = %81
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %9, align 4
br label %77, !llvm.loop !8
97: ; preds = %77
br label %98
98: ; preds = %97
%99 = load i32, ptr %10, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %10, align 4
br label %55, !llvm.loop !9
101: ; preds = %55
store i32 1, ptr %4, align 4
store i32 1, ptr %19, align 4
br label %102
102: ; preds = %101, %53
%103 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %103)
%104 = load i32, ptr %4, align 4
ret i32 %104
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ludecomp(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @lubacksub(ptr noundef, ptr noundef, ptr 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8yc7x65t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @luinv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %11, align 4
%26 = mul nsw i32 %24, %25
%27 = zext i32 %26 to i64
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %12, align 8
%29 = alloca float, i64 %27, align 16
store i64 %27, ptr %13, align 8
%30 = load i32, ptr %11, align 4
%31 = zext i32 %30 to i64
%32 = alloca float, i64 %31, align 16
store i64 %31, ptr %14, align 8
%33 = load i32, ptr %11, align 4
%34 = zext i32 %33 to i64
%35 = alloca float, i64 %34, align 16
store i64 %34, ptr %15, align 8
%36 = load i32, ptr %11, align 4
%37 = zext i32 %36 to i64
%38 = alloca float, i64 %37, align 16
store i64 %37, ptr %16, align 8
%39 = load i32, ptr %11, align 4
%40 = zext i32 %39 to i64
%41 = alloca float, i64 %40, align 16
store i64 %40, ptr %17, align 8
%42 = load i32, ptr %11, align 4
%43 = zext i32 %42 to i64
%44 = alloca float, i64 %43, align 16
store i64 %43, ptr %18, align 8
%45 = load ptr, ptr %5, align 8
%46 = mul nuw i64 4, %27
%47 = trunc i64 %46 to i32
%48 = call i32 @memcpy(ptr noundef %29, ptr noundef %45, i32 noundef %47)
%49 = load i32, ptr %7, align 4
%50 = call i32 @ludecomp(ptr noundef %29, ptr noundef %29, ptr noundef %32, i32 noundef %49)
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %8, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %54, label %53
53: ; preds = %3
store i32 0, ptr %4, align 4
store i32 1, ptr %19, align 4
br label %108
54: ; preds = %3
store i32 0, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %7, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %.lr.ph5, label %107
.lr.ph5: ; preds = %54
br label %58
58: ; preds = %.lr.ph5, %101
store i32 0, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph, label %72
.lr.ph: ; preds = %58
br label %62
62: ; preds = %.lr.ph, %66
%63 = load i32, ptr %9, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds float, ptr %44, i64 %64
store float 0.000000e+00, ptr %65, align 4
br label %66
66: ; preds = %62
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %9, align 4
%69 = load i32, ptr %9, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %72
72: ; preds = %._crit_edge, %58
%73 = load i32, ptr %10, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %44, i64 %74
store float 1.000000e+00, ptr %75, align 4
%76 = load i32, ptr %7, align 4
%77 = call i32 @lubacksub(ptr noundef %29, ptr noundef %35, ptr noundef %38, ptr noundef %44, ptr noundef %41, ptr noundef %32, i32 noundef %76)
store i32 0, ptr %9, align 4
%78 = load i32, ptr %9, align 4
%79 = load i32, ptr %7, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %.lr.ph2, label %100
.lr.ph2: ; preds = %72
br label %81
81: ; preds = %.lr.ph2, %94
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, ptr %35, i64 %83
%85 = load float, ptr %84, align 4
%86 = load ptr, ptr %6, align 8
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %7, align 4
%89 = mul nsw i32 %87, %88
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %86, i64 %92
store float %85, ptr %93, align 4
br label %94
94: ; preds = %81
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %9, align 4
%97 = load i32, ptr %9, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %81, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %94
br label %100
100: ; preds = %._crit_edge3, %72
br label %101
101: ; preds = %100
%102 = load i32, ptr %10, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %10, align 4
%104 = load i32, ptr %10, align 4
%105 = load i32, ptr %7, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %58, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %101
br label %107
107: ; preds = %._crit_edge6, %54
store i32 1, ptr %4, align 4
store i32 1, ptr %19, align 4
br label %108
108: ; preds = %107, %53
%109 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %109)
%110 = load i32, ptr %4, align 4
ret i32 %110
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @ludecomp(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @lubacksub(ptr noundef, ptr noundef, ptr 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpeaucqg23.c'
source_filename = "/tmp/tmpeaucqg23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0xe2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xe2() #0 {
%1 = call i64 @isupper(i32 noundef 226)
%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 1135, 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/tmpeaucqg23.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0xe2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xe2() #0 {
%1 = call i64 @isupper(i32 noundef 226)
%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 1135, 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/tmpt5q65lpp.c'
source_filename = "/tmp/tmpt5q65lpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @foo()
%3 = call i32 (...) @bar()
%4 = add nsw i32 %2, %3
%5 = icmp eq i32 %4, 5
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt5q65lpp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @foo()
%3 = call i32 (...) @bar()
%4 = add nsw i32 %2, %3
%5 = icmp eq i32 %4, 5
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps99tc470.c'
source_filename = "/tmp/tmps99tc470.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arreglo = private unnamed_addr constant [10 x double] [double 0.000000e+00, double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 9.000000e+00], align 16
@.str = private unnamed_addr constant [17 x i8] c"n arreglo = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Fila %d y Columna %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x double], align 16
%2 = alloca [2 x [3 x double]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.arreglo, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 48, i1 false)
%7 = getelementptr inbounds [2 x [3 x double]], ptr %2, i32 0, i32 0
%8 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 0
store double 1.100000e+01, ptr %8, align 16
%9 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 1
store double 1.200000e+01, ptr %9, align 8
%10 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 2
store double 1.300000e+01, ptr %10, align 16
%11 = getelementptr inbounds [2 x [3 x double]], ptr %2, i32 0, i32 1
%12 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 0
store double 2.100000e+01, ptr %12, align 8
%13 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 1
store double 2.200000e+01, ptr %13, align 8
%14 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 2
store double 2.300000e+01, ptr %14, align 8
store i32 10, ptr %3, align 4
store i32 2, ptr %5, align 4
store i32 3, ptr %6, align 4
store i32 6, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %3, align 4
%18 = getelementptr inbounds [10 x double], ptr %1, i64 0, i64 0
%19 = call i32 @print_value(i32 noundef %17, ptr noundef %18)
%20 = load i32, ptr %3, align 4
%21 = getelementptr inbounds [10 x double], ptr %1, i64 0, i64 0
%22 = call i32 @print_address(i32 noundef %20, ptr noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = getelementptr inbounds [2 x [3 x double]], ptr %2, i64 0, i64 0
%29 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
%30 = call i32 @print_value(i32 noundef %27, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = getelementptr inbounds [2 x [3 x double]], ptr %2, i64 0, i64 0
%33 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 0
%34 = call i32 @print_address(i32 noundef %31, ptr noundef %33)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare i32 @print_value(i32 noundef, ptr noundef) #3
declare i32 @print_address(i32 noundef, ptr noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps99tc470.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arreglo = private unnamed_addr constant [10 x double] [double 0.000000e+00, double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 9.000000e+00], align 16
@.str = private unnamed_addr constant [17 x i8] c"n arreglo = %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Fila %d y Columna %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [10 x double], align 16
%2 = alloca [2 x [3 x double]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.arreglo, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 48, i1 false)
%7 = getelementptr inbounds [2 x [3 x double]], ptr %2, i32 0, i32 0
%8 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 0
store double 1.100000e+01, ptr %8, align 16
%9 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 1
store double 1.200000e+01, ptr %9, align 8
%10 = getelementptr inbounds [3 x double], ptr %7, i32 0, i32 2
store double 1.300000e+01, ptr %10, align 16
%11 = getelementptr inbounds [2 x [3 x double]], ptr %2, i32 0, i32 1
%12 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 0
store double 2.100000e+01, ptr %12, align 8
%13 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 1
store double 2.200000e+01, ptr %13, align 8
%14 = getelementptr inbounds [3 x double], ptr %11, i32 0, i32 2
store double 2.300000e+01, ptr %14, align 8
store i32 10, ptr %3, align 4
store i32 2, ptr %5, align 4
store i32 3, ptr %6, align 4
store i32 6, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %3, align 4
%18 = getelementptr inbounds [10 x double], ptr %1, i64 0, i64 0
%19 = call i32 @print_value(i32 noundef %17, ptr noundef %18)
%20 = load i32, ptr %3, align 4
%21 = getelementptr inbounds [10 x double], ptr %1, i64 0, i64 0
%22 = call i32 @print_address(i32 noundef %20, ptr noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = getelementptr inbounds [2 x [3 x double]], ptr %2, i64 0, i64 0
%29 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
%30 = call i32 @print_value(i32 noundef %27, ptr noundef %29)
%31 = load i32, ptr %4, align 4
%32 = getelementptr inbounds [2 x [3 x double]], ptr %2, i64 0, i64 0
%33 = getelementptr inbounds [3 x double], ptr %32, i64 0, i64 0
%34 = call i32 @print_address(i32 noundef %31, ptr noundef %33)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
declare i32 @print_value(i32 noundef, ptr noundef) #3
declare i32 @print_address(i32 noundef, ptr noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb4qtu_gp.c'
source_filename = "/tmp/tmpb4qtu_gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0x92\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x92() #0 {
%1 = call i64 @isxdigit(i32 noundef 146)
%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 735, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpb4qtu_gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0x92\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x92() #0 {
%1 = call i64 @isxdigit(i32 noundef 146)
%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 735, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpyrk5j7eu.c'
source_filename = "/tmp/tmpyrk5j7eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789\00", align 1
@__const.test_strcat_range.buf2 = private unnamed_addr constant [5 x i8] c"12\00\00\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_strcat_range() #0 {
%1 = alloca [5 x i8], align 1
%2 = alloca [5 x i8], align 1
call void @llvm.memset.p0.i64(ptr align 1 %1, i8 0, i64 5, i1 false)
%3 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%4 = call i32 (...) @random_unsigned_value()
%5 = icmp eq i32 0, %4
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr getelementptr inbounds (i8, ptr @.str, i64 10), ptr @.str
%8 = call i32 @strcat(ptr noundef %3, ptr noundef %7)
%9 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%10 = call i32 @sink(ptr noundef %9)
%11 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%12 = call i32 (...) @random_unsigned_value()
%13 = icmp eq i32 1, %12
%14 = zext i1 %13 to i64
%15 = select i1 %13, ptr getelementptr inbounds (i8, ptr @.str, i64 9), ptr @.str
%16 = call i32 @strcat(ptr noundef %11, ptr noundef %15)
%17 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%18 = call i32 @sink(ptr noundef %17)
%19 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%20 = call i32 (...) @random_unsigned_value()
%21 = icmp eq i32 2, %20
%22 = zext i1 %21 to i64
%23 = select i1 %21, ptr getelementptr inbounds (i8, ptr @.str, i64 8), ptr @.str
%24 = call i32 @strcat(ptr noundef %19, ptr noundef %23)
%25 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%26 = call i32 @sink(ptr noundef %25)
%27 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%28 = call i32 (...) @random_unsigned_value()
%29 = icmp eq i32 3, %28
%30 = zext i1 %29 to i64
%31 = select i1 %29, ptr getelementptr inbounds (i8, ptr @.str, i64 7), ptr @.str
%32 = call i32 @strcat(ptr noundef %27, ptr noundef %31)
%33 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @sink(ptr noundef %33)
%35 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%36 = call i32 (...) @random_unsigned_value()
%37 = icmp eq i32 4, %36
%38 = zext i1 %37 to i64
%39 = select i1 %37, ptr getelementptr inbounds (i8, ptr @.str, i64 6), ptr @.str
%40 = call i32 @strcat(ptr noundef %35, ptr noundef %39)
%41 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%42 = call i32 @sink(ptr noundef %41)
%43 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%44 = call i32 (...) @random_unsigned_value()
%45 = icmp eq i32 5, %44
%46 = zext i1 %45 to i64
%47 = select i1 %45, ptr getelementptr inbounds (i8, ptr @.str, i64 5), ptr @.str
%48 = call i32 @strcat(ptr noundef %43, ptr noundef %47)
%49 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%50 = call i32 @sink(ptr noundef %49)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.test_strcat_range.buf2, i64 5, i1 false)
%51 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%52 = call i32 (...) @random_unsigned_value()
%53 = icmp eq i32 4, %52
%54 = zext i1 %53 to i64
%55 = select i1 %53, ptr getelementptr inbounds (i8, ptr @.str, i64 6), ptr @.str
%56 = call i32 @strcat(ptr noundef %51, ptr noundef %55)
%57 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%58 = call i32 @sink(ptr noundef %57)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @random_unsigned_value(...) #2
declare i32 @sink(ptr noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyrk5j7eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0123456789\00", align 1
@__const.test_strcat_range.buf2 = private unnamed_addr constant [5 x i8] c"12\00\00\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_strcat_range() #0 {
%1 = alloca [5 x i8], align 1
%2 = alloca [5 x i8], align 1
call void @llvm.memset.p0.i64(ptr align 1 %1, i8 0, i64 5, i1 false)
%3 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%4 = call i32 (...) @random_unsigned_value()
%5 = icmp eq i32 0, %4
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr getelementptr inbounds (i8, ptr @.str, i64 10), ptr @.str
%8 = call i32 @strcat(ptr noundef %3, ptr noundef %7)
%9 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%10 = call i32 @sink(ptr noundef %9)
%11 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%12 = call i32 (...) @random_unsigned_value()
%13 = icmp eq i32 1, %12
%14 = zext i1 %13 to i64
%15 = select i1 %13, ptr getelementptr inbounds (i8, ptr @.str, i64 9), ptr @.str
%16 = call i32 @strcat(ptr noundef %11, ptr noundef %15)
%17 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%18 = call i32 @sink(ptr noundef %17)
%19 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%20 = call i32 (...) @random_unsigned_value()
%21 = icmp eq i32 2, %20
%22 = zext i1 %21 to i64
%23 = select i1 %21, ptr getelementptr inbounds (i8, ptr @.str, i64 8), ptr @.str
%24 = call i32 @strcat(ptr noundef %19, ptr noundef %23)
%25 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%26 = call i32 @sink(ptr noundef %25)
%27 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%28 = call i32 (...) @random_unsigned_value()
%29 = icmp eq i32 3, %28
%30 = zext i1 %29 to i64
%31 = select i1 %29, ptr getelementptr inbounds (i8, ptr @.str, i64 7), ptr @.str
%32 = call i32 @strcat(ptr noundef %27, ptr noundef %31)
%33 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @sink(ptr noundef %33)
%35 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%36 = call i32 (...) @random_unsigned_value()
%37 = icmp eq i32 4, %36
%38 = zext i1 %37 to i64
%39 = select i1 %37, ptr getelementptr inbounds (i8, ptr @.str, i64 6), ptr @.str
%40 = call i32 @strcat(ptr noundef %35, ptr noundef %39)
%41 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%42 = call i32 @sink(ptr noundef %41)
%43 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%44 = call i32 (...) @random_unsigned_value()
%45 = icmp eq i32 5, %44
%46 = zext i1 %45 to i64
%47 = select i1 %45, ptr getelementptr inbounds (i8, ptr @.str, i64 5), ptr @.str
%48 = call i32 @strcat(ptr noundef %43, ptr noundef %47)
%49 = getelementptr inbounds [5 x i8], ptr %1, i64 0, i64 0
%50 = call i32 @sink(ptr noundef %49)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.test_strcat_range.buf2, i64 5, i1 false)
%51 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%52 = call i32 (...) @random_unsigned_value()
%53 = icmp eq i32 4, %52
%54 = zext i1 %53 to i64
%55 = select i1 %53, ptr getelementptr inbounds (i8, ptr @.str, i64 6), ptr @.str
%56 = call i32 @strcat(ptr noundef %51, ptr noundef %55)
%57 = getelementptr inbounds [5 x i8], ptr %2, i64 0, i64 0
%58 = call i32 @sink(ptr noundef %57)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @random_unsigned_value(...) #2
declare i32 @sink(ptr noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmj088iuv.c'
source_filename = "/tmp/tmpmj088iuv.c"
target datalayout = "e-m:e-p270: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/tmpmj088iuv.c"
target datalayout = "e-m:e-p270: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/tmpoh1918vd.c'
source_filename = "/tmp/tmpoh1918vd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INTMAX_MAX = dso_local global i32 0, align 4
@INTMAX_MIN = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strtoimax(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %18, %3
%13 = load ptr, ptr %8, align 8
%14 = load i8, ptr %13, align 1
%15 = call i64 @isspace(i8 noundef zeroext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %12
br label %18
18: ; preds = %17
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %8, align 8
br label %12, !llvm.loop !6
21: ; preds = %12
%22 = load ptr, ptr %8, align 8
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = icmp eq i32 %24, 45
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
%29 = load i8, ptr %27, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %9, align 4
br label %40
31: ; preds = %21
%32 = load ptr, ptr %8, align 8
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = icmp eq i32 %34, 43
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = load ptr, ptr %8, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %8, align 8
br label %39
39: ; preds = %36, %31
br label %40
40: ; preds = %39, %26
%41 = load ptr, ptr %8, align 8
%42 = load ptr, ptr %6, align 8
%43 = load i32, ptr %7, align 4
%44 = call i32 @strtoumax(ptr noundef %41, ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = load i32, ptr @INTMAX_MAX, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %67
48: ; preds = %40
%49 = load i32, ptr %9, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sub nsw i32 0, %52
%54 = load i32, ptr @INTMAX_MIN, align 4
%55 = icmp ne i32 %53, %54
br i1 %55, label %56, label %58
56: ; preds = %51, %48
%57 = load i32, ptr @ERANGE, align 4
store i32 %57, ptr @errno, align 4
br label %58
58: ; preds = %56, %51
%59 = load i32, ptr %9, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = load i32, ptr @INTMAX_MIN, align 4
br label %65
63: ; preds = %58
%64 = load i32, ptr @INTMAX_MAX, align 4
br label %65
65: ; preds = %63, %61
%66 = phi i32 [ %62, %61 ], [ %64, %63 ]
store i32 %66, ptr %4, align 4
br label %77
67: ; preds = %40
%68 = load i32, ptr %9, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load i32, ptr %10, align 4
%72 = sub nsw i32 0, %71
br label %75
73: ; preds = %67
%74 = load i32, ptr %10, align 4
br label %75
75: ; preds = %73, %70
%76 = phi i32 [ %72, %70 ], [ %74, %73 ]
store i32 %76, ptr %4, align 4
br label %77
77: ; preds = %75, %65
%78 = load i32, ptr %4, align 4
ret i32 %78
}
declare i64 @isspace(i8 noundef zeroext) #1
declare i32 @strtoumax(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/tmpoh1918vd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INTMAX_MAX = dso_local global i32 0, align 4
@INTMAX_MIN = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strtoimax(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
store i32 0, ptr %9, align 4
%12 = load ptr, ptr %8, align 8
%13 = load i8, ptr %12, align 1
%14 = call i64 @isspace(i8 noundef zeroext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %.lr.ph, label %24
.lr.ph: ; preds = %3
br label %16
16: ; preds = %.lr.ph, %17
br label %17
17: ; preds = %16
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = call i64 @isspace(i8 noundef zeroext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %3
%25 = load ptr, ptr %8, align 8
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %8, align 8
%32 = load i8, ptr %30, align 1
%33 = zext i8 %32 to i32
store i32 %33, ptr %9, align 4
br label %43
34: ; preds = %24
%35 = load ptr, ptr %8, align 8
%36 = load i8, ptr %35, align 1
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 43
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %8, align 8
br label %42
42: ; preds = %39, %34
br label %43
43: ; preds = %42, %29
%44 = load ptr, ptr %8, align 8
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %7, align 4
%47 = call i32 @strtoumax(ptr noundef %44, ptr noundef %45, i32 noundef %46)
store i32 %47, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr @INTMAX_MAX, align 4
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %70
51: ; preds = %43
%52 = load i32, ptr %9, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 0, %55
%57 = load i32, ptr @INTMAX_MIN, align 4
%58 = icmp ne i32 %56, %57
br i1 %58, label %59, label %61
59: ; preds = %54, %51
%60 = load i32, ptr @ERANGE, align 4
store i32 %60, ptr @errno, align 4
br label %61
61: ; preds = %59, %54
%62 = load i32, ptr %9, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = load i32, ptr @INTMAX_MIN, align 4
br label %68
66: ; preds = %61
%67 = load i32, ptr @INTMAX_MAX, align 4
br label %68
68: ; preds = %66, %64
%69 = phi i32 [ %65, %64 ], [ %67, %66 ]
store i32 %69, ptr %4, align 4
br label %80
70: ; preds = %43
%71 = load i32, ptr %9, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i32, ptr %10, align 4
%75 = sub nsw i32 0, %74
br label %78
76: ; preds = %70
%77 = load i32, ptr %10, align 4
br label %78
78: ; preds = %76, %73
%79 = phi i32 [ %75, %73 ], [ %77, %76 ]
store i32 %79, ptr %4, align 4
br label %80
80: ; preds = %78, %68
%81 = load i32, ptr %4, align 4
ret i32 %81
}
declare i64 @isspace(i8 noundef zeroext) #1
declare i32 @strtoumax(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/tmp5t7fcmk_.c'
source_filename = "/tmp/tmp5t7fcmk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"allocation failure in convert_matrix()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_matrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%16 = load i64, ptr %8, align 8
%17 = load i64, ptr %7, align 8
%18 = sub nsw i64 %16, %17
%19 = add nsw i64 %18, 1
store i64 %19, ptr %13, align 8
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %9, align 8
%22 = sub nsw i64 %20, %21
%23 = add nsw i64 %22, 1
store i64 %23, ptr %14, align 8
%24 = load i64, ptr %13, align 8
%25 = add nsw i64 %24, 1
%26 = mul i64 %25, 8
%27 = call i64 @malloc(i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %15, align 8
%29 = load ptr, ptr %15, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %33, label %31
31: ; preds = %5
%32 = call i32 @nrerror(ptr noundef @.str)
br label %33
33: ; preds = %31, %5
%34 = load ptr, ptr %15, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
store ptr %35, ptr %15, align 8
%36 = load i64, ptr %7, align 8
%37 = load ptr, ptr %15, align 8
%38 = sub i64 0, %36
%39 = getelementptr inbounds ptr, ptr %37, i64 %38
store ptr %39, ptr %15, align 8
%40 = load ptr, ptr %6, align 8
%41 = load i64, ptr %9, align 8
%42 = sub i64 0, %41
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load ptr, ptr %15, align 8
%45 = load i64, ptr %7, align 8
%46 = getelementptr inbounds ptr, ptr %44, i64 %45
store ptr %43, ptr %46, align 8
store i64 1, ptr %11, align 8
%47 = load i64, ptr %7, align 8
%48 = add nsw i64 %47, 1
store i64 %48, ptr %12, align 8
br label %49
49: ; preds = %64, %33
%50 = load i64, ptr %11, align 8
%51 = load i64, ptr %13, align 8
%52 = icmp slt i64 %50, %51
br i1 %52, label %53, label %69
53: ; preds = %49
%54 = load ptr, ptr %15, align 8
%55 = load i64, ptr %12, align 8
%56 = sub nsw i64 %55, 1
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i64, ptr %14, align 8
%60 = getelementptr inbounds double, ptr %58, i64 %59
%61 = load ptr, ptr %15, align 8
%62 = load i64, ptr %12, align 8
%63 = getelementptr inbounds ptr, ptr %61, i64 %62
store ptr %60, ptr %63, align 8
br label %64
64: ; preds = %53
%65 = load i64, ptr %11, align 8
%66 = add nsw i64 %65, 1
store i64 %66, ptr %11, align 8
%67 = load i64, ptr %12, align 8
%68 = add nsw i64 %67, 1
store i64 %68, ptr %12, align 8
br label %49, !llvm.loop !6
69: ; preds = %49
%70 = load ptr, ptr %15, align 8
ret ptr %70
}
declare i64 @malloc(i64 noundef) #1
declare i32 @nrerror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5t7fcmk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"allocation failure in convert_matrix()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_matrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%16 = load i64, ptr %8, align 8
%17 = load i64, ptr %7, align 8
%18 = sub nsw i64 %16, %17
%19 = add nsw i64 %18, 1
store i64 %19, ptr %13, align 8
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %9, align 8
%22 = sub nsw i64 %20, %21
%23 = add nsw i64 %22, 1
store i64 %23, ptr %14, align 8
%24 = load i64, ptr %13, align 8
%25 = add nsw i64 %24, 1
%26 = mul i64 %25, 8
%27 = call i64 @malloc(i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %15, align 8
%29 = load ptr, ptr %15, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %33, label %31
31: ; preds = %5
%32 = call i32 @nrerror(ptr noundef @.str)
br label %33
33: ; preds = %31, %5
%34 = load ptr, ptr %15, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
store ptr %35, ptr %15, align 8
%36 = load i64, ptr %7, align 8
%37 = load ptr, ptr %15, align 8
%38 = sub i64 0, %36
%39 = getelementptr inbounds ptr, ptr %37, i64 %38
store ptr %39, ptr %15, align 8
%40 = load ptr, ptr %6, align 8
%41 = load i64, ptr %9, align 8
%42 = sub i64 0, %41
%43 = getelementptr inbounds double, ptr %40, i64 %42
%44 = load ptr, ptr %15, align 8
%45 = load i64, ptr %7, align 8
%46 = getelementptr inbounds ptr, ptr %44, i64 %45
store ptr %43, ptr %46, align 8
store i64 1, ptr %11, align 8
%47 = load i64, ptr %7, align 8
%48 = add nsw i64 %47, 1
store i64 %48, ptr %12, align 8
%49 = load i64, ptr %11, align 8
%50 = load i64, ptr %13, align 8
%51 = icmp slt i64 %49, %50
br i1 %51, label %.lr.ph, label %71
.lr.ph: ; preds = %33
br label %52
52: ; preds = %.lr.ph, %63
%53 = load ptr, ptr %15, align 8
%54 = load i64, ptr %12, align 8
%55 = sub nsw i64 %54, 1
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = load i64, ptr %14, align 8
%59 = getelementptr inbounds double, ptr %57, i64 %58
%60 = load ptr, ptr %15, align 8
%61 = load i64, ptr %12, align 8
%62 = getelementptr inbounds ptr, ptr %60, i64 %61
store ptr %59, ptr %62, align 8
br label %63
63: ; preds = %52
%64 = load i64, ptr %11, align 8
%65 = add nsw i64 %64, 1
store i64 %65, ptr %11, align 8
%66 = load i64, ptr %12, align 8
%67 = add nsw i64 %66, 1
store i64 %67, ptr %12, align 8
%68 = load i64, ptr %11, align 8
%69 = load i64, ptr %13, align 8
%70 = icmp slt i64 %68, %69
br i1 %70, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %71
71: ; preds = %._crit_edge, %33
%72 = load ptr, ptr %15, align 8
ret ptr %72
}
declare i64 @malloc(i64 noundef) #1
declare i32 @nrerror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpq317mktw.c'
source_filename = "/tmp/tmpq317mktw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [8 x i8] c"%d %c%c\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Caso %d:\0APares Iguais: %d\0AF: %d\0AM: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"\0ACaso %d:\0APares Iguais: %d\0AF: %d\0AM: %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 i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %63, %0
%10 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%11 = load i64, ptr @EOF, align 8
%12 = icmp ne i64 %10, %11
br i1 %12, label %13, label %66
13: ; preds = %9
br label %14
14: ; preds = %13, %43
%15 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %7, ptr noundef %8)
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %26
19: ; preds = %14
%20 = load i8, ptr %7, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 77
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %38
26: ; preds = %19, %14
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i8, ptr %7, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 70
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %37
37: ; preds = %34, %30, %26
br label %38
38: ; preds = %37, %23
%39 = load i8, ptr %8, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br i1 %41, label %42, label %43
42: ; preds = %38
br label %44
43: ; preds = %38
br label %14
44: ; preds = %42
%45 = load i32, ptr %4, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %5, align 4
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %49, %50
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %5, align 4
%54 = call i32 @printf(ptr noundef @.str.2, i32 noundef %48, i32 noundef %51, i32 noundef %52, i32 noundef %53)
br label %63
55: ; preds = %44
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %5, align 4
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %57, %58
%60 = load i32, ptr %6, align 4
%61 = load i32, ptr %5, align 4
%62 = call i32 @printf(ptr noundef @.str.3, i32 noundef %56, i32 noundef %59, i32 noundef %60, i32 noundef %61)
br label %63
63: ; preds = %55, %47
%64 = load i32, ptr %4, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %9, !llvm.loop !6
66: ; preds = %9
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq317mktw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [8 x i8] c"%d %c%c\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"Caso %d:\0APares Iguais: %d\0AF: %d\0AM: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"\0ACaso %d:\0APares Iguais: %d\0AF: %d\0AM: %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 i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%10 = load i64, ptr @EOF, align 8
%11 = icmp ne i64 %9, %10
br i1 %11, label %.lr.ph, label %67
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %61
br label %13
13: ; preds = %37, %12
%14 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %7, ptr noundef %8)
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %13
%19 = load i8, ptr %7, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 77
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %37
25: ; preds = %18, %13
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load i8, ptr %7, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 70
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %36
36: ; preds = %33, %29, %25
br label %37
37: ; preds = %36, %22
%38 = load i8, ptr %8, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 10
br i1 %40, label %41, label %13
41: ; preds = %37
br label %42
42: ; preds = %41
%43 = load i32, ptr %4, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %53
45: ; preds = %42
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %47, %48
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr %5, align 4
%52 = call i32 @printf(ptr noundef @.str.2, i32 noundef %46, i32 noundef %49, i32 noundef %50, i32 noundef %51)
br label %61
53: ; preds = %42
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %5, align 4
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %55, %56
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %5, align 4
%60 = call i32 @printf(ptr noundef @.str.3, i32 noundef %54, i32 noundef %57, i32 noundef %58, i32 noundef %59)
br label %61
61: ; preds = %53, %45
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%64 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%65 = load i64, ptr @EOF, align 8
%66 = icmp ne i64 %64, %65
br i1 %66, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7bchm0lo.c'
source_filename = "/tmp/tmp7bchm0lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"``\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"''\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [100000 x i8], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
br label %6
6: ; preds = %44, %0
%7 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%8 = call i64 @gets(ptr noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %46
10: ; preds = %6
%11 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %4, align 8
store i64 0, ptr %2, align 8
br label %13
13: ; preds = %41, %10
%14 = load i64, ptr %2, align 8
%15 = load i64, ptr %4, align 8
%16 = icmp slt i64 %14, %15
br i1 %16, label %17, label %44
17: ; preds = %13
%18 = load i64, ptr %2, align 8
%19 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 34
br i1 %22, label %23, label %34
23: ; preds = %17
%24 = load i64, ptr %3, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %3, align 8
%26 = load i64, ptr %3, align 8
%27 = srem i64 %26, 2
%28 = icmp eq i64 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %33
31: ; preds = %23
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %33
33: ; preds = %31, %29
br label %40
34: ; preds = %17
%35 = load i64, ptr %2, align 8
%36 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %38)
br label %40
40: ; preds = %34, %33
br label %41
41: ; preds = %40
%42 = load i64, ptr %2, align 8
%43 = add nsw i64 %42, 1
store i64 %43, ptr %2, align 8
br label %13, !llvm.loop !6
44: ; preds = %13
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %6, !llvm.loop !8
46: ; preds = %6
ret i32 0
}
declare i64 @gets(ptr noundef) #1
declare i64 @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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bchm0lo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"``\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"''\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [100000 x i8], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
%6 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%7 = call i64 @gets(ptr noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %.lr.ph2, label %49
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %45
%10 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %4, align 8
store i64 0, ptr %2, align 8
%12 = load i64, ptr %2, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp slt i64 %12, %13
br i1 %14, label %.lr.ph, label %45
.lr.ph: ; preds = %9
br label %15
15: ; preds = %.lr.ph, %39
%16 = load i64, ptr %2, align 8
%17 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 34
br i1 %20, label %21, label %32
21: ; preds = %15
%22 = load i64, ptr %3, align 8
%23 = add nsw i64 %22, 1
store i64 %23, ptr %3, align 8
%24 = load i64, ptr %3, align 8
%25 = srem i64 %24, 2
%26 = icmp eq i64 %25, 1
br i1 %26, label %27, label %29
27: ; preds = %21
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %31
29: ; preds = %21
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %31
31: ; preds = %29, %27
br label %38
32: ; preds = %15
%33 = load i64, ptr %2, align 8
%34 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %36)
br label %38
38: ; preds = %32, %31
br label %39
39: ; preds = %38
%40 = load i64, ptr %2, align 8
%41 = add nsw i64 %40, 1
store i64 %41, ptr %2, align 8
%42 = load i64, ptr %2, align 8
%43 = load i64, ptr %4, align 8
%44 = icmp slt i64 %42, %43
br i1 %44, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %9
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%47 = call i64 @gets(ptr noundef %6)
%48 = icmp ne i64 %47, 0
br i1 %48, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %49
49: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i64 @gets(ptr noundef) #1
declare i64 @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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbyrm4yq1.c'
source_filename = "/tmp/tmpbyrm4yq1.c"
target datalayout = "e-m:e-p270: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/tmpbyrm4yq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_aa9x6_w.c'
source_filename = "/tmp/tmp_aa9x6_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoul(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i64 0, ptr %7, align 8
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %35, label %11
11: ; preds = %3
store i32 10, ptr %6, align 4
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 48
br i1 %15, label %16, label %34
16: ; preds = %11
store i32 8, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call signext i8 @toupper(i8 noundef signext %20)
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 88
br i1 %23, label %24, label %33
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
%27 = load i8, ptr %26, align 1
%28 = call i64 @isxdigit(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
store i32 16, ptr %6, align 4
br label %33
33: ; preds = %30, %24, %16
br label %34
34: ; preds = %33, %11
br label %56
35: ; preds = %3
%36 = load i32, ptr %6, align 4
%37 = icmp eq i32 %36, 16
br i1 %37, label %38, label %55
38: ; preds = %35
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 48
br i1 %43, label %44, label %54
44: ; preds = %38
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 1
%47 = load i8, ptr %46, align 1
%48 = call signext i8 @toupper(i8 noundef signext %47)
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 88
br i1 %50, label %51, label %54
51: ; preds = %44
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 2
store ptr %53, ptr %4, align 8
br label %54
54: ; preds = %51, %44, %38
br label %55
55: ; preds = %54, %35
br label %56
56: ; preds = %55, %34
br label %57
57: ; preds = %87, %56
%58 = load ptr, ptr %4, align 8
%59 = load i8, ptr %58, align 1
%60 = call i64 @isxdigit(i8 noundef signext %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %85
62: ; preds = %57
%63 = load ptr, ptr %4, align 8
%64 = load i8, ptr %63, align 1
%65 = call i64 @isdigit(i8 noundef signext %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %62
%68 = load ptr, ptr %4, align 8
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = sub nsw i32 %70, 48
br label %79
72: ; preds = %62
%73 = load ptr, ptr %4, align 8
%74 = load i8, ptr %73, align 1
%75 = call signext i8 @toupper(i8 noundef signext %74)
%76 = sext i8 %75 to i32
%77 = sub nsw i32 %76, 65
%78 = add nsw i32 %77, 10
br label %79
79: ; preds = %72, %67
%80 = phi i32 [ %71, %67 ], [ %78, %72 ]
%81 = sext i32 %80 to i64
store i64 %81, ptr %8, align 8
%82 = load i32, ptr %6, align 4
%83 = sext i32 %82 to i64
%84 = icmp ult i64 %81, %83
br label %85
85: ; preds = %79, %57
%86 = phi i1 [ false, %57 ], [ %84, %79 ]
br i1 %86, label %87, label %96
87: ; preds = %85
%88 = load i64, ptr %7, align 8
%89 = load i32, ptr %6, align 4
%90 = sext i32 %89 to i64
%91 = mul i64 %88, %90
%92 = load i64, ptr %8, align 8
%93 = add i64 %91, %92
store i64 %93, ptr %7, align 8
%94 = load ptr, ptr %4, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %4, align 8
br label %57, !llvm.loop !6
96: ; preds = %85
%97 = load ptr, ptr %5, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load ptr, ptr %4, align 8
%101 = load ptr, ptr %5, align 8
store ptr %100, ptr %101, align 8
br label %102
102: ; preds = %99, %96
%103 = load i64, ptr %7, align 8
ret i64 %103
}
declare signext i8 @toupper(i8 noundef signext) #1
declare i64 @isxdigit(i8 noundef signext) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_aa9x6_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoul(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i64 0, ptr %7, align 8
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %35, label %11
11: ; preds = %3
store i32 10, ptr %6, align 4
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 48
br i1 %15, label %16, label %34
16: ; preds = %11
store i32 8, ptr %6, align 4
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call signext i8 @toupper(i8 noundef signext %20)
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 88
br i1 %23, label %24, label %33
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
%27 = load i8, ptr %26, align 1
%28 = call i64 @isxdigit(i8 noundef signext %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %4, align 8
store i32 16, ptr %6, align 4
br label %33
33: ; preds = %30, %24, %16
br label %34
34: ; preds = %33, %11
br label %56
35: ; preds = %3
%36 = load i32, ptr %6, align 4
%37 = icmp eq i32 %36, 16
br i1 %37, label %38, label %55
38: ; preds = %35
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 0
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 48
br i1 %43, label %44, label %54
44: ; preds = %38
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 1
%47 = load i8, ptr %46, align 1
%48 = call signext i8 @toupper(i8 noundef signext %47)
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 88
br i1 %50, label %51, label %54
51: ; preds = %44
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 2
store ptr %53, ptr %4, align 8
br label %54
54: ; preds = %51, %44, %38
br label %55
55: ; preds = %54, %35
br label %56
56: ; preds = %55, %34
br label %57
57: ; preds = %87, %56
%58 = load ptr, ptr %4, align 8
%59 = load i8, ptr %58, align 1
%60 = call i64 @isxdigit(i8 noundef signext %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %85
62: ; preds = %57
%63 = load ptr, ptr %4, align 8
%64 = load i8, ptr %63, align 1
%65 = call i64 @isdigit(i8 noundef signext %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %62
%68 = load ptr, ptr %4, align 8
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = sub nsw i32 %70, 48
br label %79
72: ; preds = %62
%73 = load ptr, ptr %4, align 8
%74 = load i8, ptr %73, align 1
%75 = call signext i8 @toupper(i8 noundef signext %74)
%76 = sext i8 %75 to i32
%77 = sub nsw i32 %76, 65
%78 = add nsw i32 %77, 10
br label %79
79: ; preds = %72, %67
%80 = phi i32 [ %71, %67 ], [ %78, %72 ]
%81 = sext i32 %80 to i64
store i64 %81, ptr %8, align 8
%82 = load i32, ptr %6, align 4
%83 = sext i32 %82 to i64
%84 = icmp ult i64 %81, %83
br label %85
85: ; preds = %79, %57
%86 = phi i1 [ false, %57 ], [ %84, %79 ]
br i1 %86, label %87, label %96
87: ; preds = %85
%88 = load i64, ptr %7, align 8
%89 = load i32, ptr %6, align 4
%90 = sext i32 %89 to i64
%91 = mul i64 %88, %90
%92 = load i64, ptr %8, align 8
%93 = add i64 %91, %92
store i64 %93, ptr %7, align 8
%94 = load ptr, ptr %4, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %4, align 8
br label %57, !llvm.loop !6
96: ; preds = %85
%97 = load ptr, ptr %5, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load ptr, ptr %4, align 8
%101 = load ptr, ptr %5, align 8
store ptr %100, ptr %101, align 8
br label %102
102: ; preds = %99, %96
%103 = load i64, ptr %7, align 8
ret i64 %103
}
declare signext i8 @toupper(i8 noundef signext) #1
declare i64 @isxdigit(i8 noundef signext) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi6bhaqax.c'
source_filename = "/tmp/tmpi6bhaqax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 2
br i1 %15, label %16, label %282
16: ; preds = %1
store i32 1, ptr %3, align 4
br label %17
17: ; preds = %278, %16
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 4
%25 = sub nsw i32 0, %24
%26 = add nsw i32 %25, 2
%27 = sub nsw i32 %26, 1
%28 = sdiv i32 %27, 2
%29 = sub nsw i32 0, %28
br label %34
30: ; preds = %17
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 4
%33 = sdiv i32 %32, 2
br label %34
34: ; preds = %30, %22
%35 = phi i32 [ %29, %22 ], [ %33, %30 ]
%36 = icmp sle i32 %18, %35
br i1 %36, label %37, label %281
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
%44 = sub nsw i32 0, %43
%45 = sdiv i32 %44, 2
%46 = sub nsw i32 0, %45
br label %53
47: ; preds = %37
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
%50 = add nsw i32 %49, 2
%51 = sub nsw i32 %50, 1
%52 = sdiv i32 %51, 2
br label %53
53: ; preds = %47, %41
%54 = phi i32 [ %46, %41 ], [ %52, %47 ]
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 1
%57 = icmp sgt i32 %54, %56
br i1 %57, label %58, label %76
58: ; preds = %53
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
%65 = sub nsw i32 0, %64
%66 = sdiv i32 %65, 2
%67 = sub nsw i32 0, %66
br label %74
68: ; preds = %58
%69 = load i32, ptr %3, align 4
%70 = add nsw i32 %69, 1
%71 = add nsw i32 %70, 2
%72 = sub nsw i32 %71, 1
%73 = sdiv i32 %72, 2
br label %74
74: ; preds = %68, %62
%75 = phi i32 [ %67, %62 ], [ %73, %68 ]
br label %79
76: ; preds = %53
%77 = load i32, ptr %3, align 4
%78 = sub nsw i32 %77, 1
br label %79
79: ; preds = %76, %74
%80 = phi i32 [ %75, %74 ], [ %78, %76 ]
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %274, %79
%82 = load i32, ptr %4, align 4
%83 = load i32, ptr %3, align 4
%84 = mul nsw i32 2, %83
%85 = load i32, ptr %2, align 4
%86 = add nsw i32 %84, %85
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %98
88: ; preds = %81
%89 = load i32, ptr %3, align 4
%90 = mul nsw i32 2, %89
%91 = load i32, ptr %2, align 4
%92 = add nsw i32 %90, %91
%93 = sub nsw i32 0, %92
%94 = add nsw i32 %93, 4
%95 = sub nsw i32 %94, 1
%96 = sdiv i32 %95, 4
%97 = sub nsw i32 0, %96
br label %104
98: ; preds = %81
%99 = load i32, ptr %3, align 4
%100 = mul nsw i32 2, %99
%101 = load i32, ptr %2, align 4
%102 = add nsw i32 %100, %101
%103 = sdiv i32 %102, 4
br label %104
104: ; preds = %98, %88
%105 = phi i32 [ %97, %88 ], [ %103, %98 ]
%106 = load i32, ptr %3, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %132
108: ; preds = %104
%109 = load i32, ptr %3, align 4
%110 = mul nsw i32 2, %109
%111 = load i32, ptr %2, align 4
%112 = add nsw i32 %110, %111
%113 = icmp slt i32 %112, 0
br i1 %113, label %114, label %124
114: ; preds = %108
%115 = load i32, ptr %3, align 4
%116 = mul nsw i32 2, %115
%117 = load i32, ptr %2, align 4
%118 = add nsw i32 %116, %117
%119 = sub nsw i32 0, %118
%120 = add nsw i32 %119, 4
%121 = sub nsw i32 %120, 1
%122 = sdiv i32 %121, 4
%123 = sub nsw i32 0, %122
br label %130
124: ; preds = %108
%125 = load i32, ptr %3, align 4
%126 = mul nsw i32 2, %125
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %126, %127
%129 = sdiv i32 %128, 4
br label %130
130: ; preds = %124, %114
%131 = phi i32 [ %123, %114 ], [ %129, %124 ]
br label %134
132: ; preds = %104
%133 = load i32, ptr %3, align 4
br label %134
134: ; preds = %132, %130
%135 = phi i32 [ %131, %130 ], [ %133, %132 ]
%136 = icmp sle i32 %82, %135
br i1 %136, label %137, label %277
137: ; preds = %134
%138 = load i32, ptr %3, align 4
%139 = load i32, ptr %4, align 4
%140 = mul nsw i32 4, %139
%141 = load i32, ptr %2, align 4
%142 = sub nsw i32 %140, %141
%143 = add nsw i32 %142, 1
%144 = icmp slt i32 %143, 0
br i1 %144, label %145, label %154
145: ; preds = %137
%146 = load i32, ptr %4, align 4
%147 = mul nsw i32 4, %146
%148 = load i32, ptr %2, align 4
%149 = sub nsw i32 %147, %148
%150 = add nsw i32 %149, 1
%151 = sub nsw i32 0, %150
%152 = sdiv i32 %151, 2
%153 = sub nsw i32 0, %152
br label %163
154: ; preds = %137
%155 = load i32, ptr %4, align 4
%156 = mul nsw i32 4, %155
%157 = load i32, ptr %2, align 4
%158 = sub nsw i32 %156, %157
%159 = add nsw i32 %158, 1
%160 = add nsw i32 %159, 2
%161 = sub nsw i32 %160, 1
%162 = sdiv i32 %161, 2
br label %163
163: ; preds = %154, %145
%164 = phi i32 [ %153, %145 ], [ %162, %154 ]
%165 = icmp sge i32 %138, %164
br i1 %165, label %166, label %218
166: ; preds = %163
store i32 1, ptr %5, align 4
br label %167
167: ; preds = %214, %166
%168 = load i32, ptr %5, align 4
%169 = icmp sle i32 %168, 2
br i1 %169, label %170, label %217
170: ; preds = %167
%171 = call i32 @hash(i32 noundef 1)
%172 = load i32, ptr %3, align 4
%173 = load i32, ptr %4, align 4
%174 = sub nsw i32 %172, %173
%175 = call i32 @hash(i32 noundef %174)
%176 = load i32, ptr %4, align 4
%177 = call i32 @hash(i32 noundef %176)
%178 = load i32, ptr %3, align 4
%179 = mul nsw i32 2, %178
%180 = load i32, ptr %4, align 4
%181 = mul nsw i32 2, %180
%182 = sub nsw i32 %179, %181
%183 = call i32 @hash(i32 noundef %182)
%184 = load i32, ptr %3, align 4
%185 = mul nsw i32 -2, %184
%186 = load i32, ptr %4, align 4
%187 = mul nsw i32 4, %186
%188 = add nsw i32 %185, %187
%189 = call i32 @hash(i32 noundef %188)
%190 = load i32, ptr %5, align 4
%191 = call i32 @hash(i32 noundef %190)
%192 = call i32 @hash(i32 noundef 2)
%193 = load i32, ptr %3, align 4
%194 = load i32, ptr %4, align 4
%195 = sub nsw i32 %193, %194
%196 = call i32 @hash(i32 noundef %195)
%197 = load i32, ptr %4, align 4
%198 = call i32 @hash(i32 noundef %197)
%199 = load i32, ptr %3, align 4
%200 = mul nsw i32 2, %199
%201 = load i32, ptr %4, align 4
%202 = mul nsw i32 2, %201
%203 = sub nsw i32 %200, %202
%204 = call i32 @hash(i32 noundef %203)
%205 = load i32, ptr %3, align 4
%206 = mul nsw i32 -2, %205
%207 = load i32, ptr %4, align 4
%208 = mul nsw i32 4, %207
%209 = add nsw i32 %206, %208
%210 = sub nsw i32 %209, 1
%211 = call i32 @hash(i32 noundef %210)
%212 = load i32, ptr %5, align 4
%213 = call i32 @hash(i32 noundef %212)
br label %214
214: ; preds = %170
%215 = load i32, ptr %5, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %5, align 4
br label %167, !llvm.loop !6
217: ; preds = %167
br label %218
218: ; preds = %217, %163
%219 = load i32, ptr %3, align 4
%220 = mul nsw i32 2, %219
%221 = load i32, ptr %4, align 4
%222 = mul nsw i32 4, %221
%223 = load i32, ptr %2, align 4
%224 = sub nsw i32 %222, %223
%225 = icmp eq i32 %220, %224
br i1 %225, label %226, label %273
226: ; preds = %218
store i32 1, ptr %5, align 4
br label %227
227: ; preds = %269, %226
%228 = load i32, ptr %5, align 4
%229 = icmp sle i32 %228, 2
br i1 %229, label %230, label %272
230: ; preds = %227
%231 = load i32, ptr %2, align 4
%232 = srem i32 %231, 2
%233 = icmp eq i32 %232, 0
br i1 %233, label %234, label %268
234: ; preds = %230
%235 = load i32, ptr %3, align 4
%236 = mul nsw i32 2, %235
%237 = load i32, ptr %2, align 4
%238 = mul nsw i32 3, %237
%239 = add nsw i32 %236, %238
%240 = srem i32 %239, 4
%241 = icmp eq i32 %240, 0
br i1 %241, label %242, label %267
242: ; preds = %234
%243 = call i32 @hash(i32 noundef 2)
%244 = load i32, ptr %3, align 4
%245 = mul nsw i32 2, %244
%246 = load i32, ptr %2, align 4
%247 = sub nsw i32 %245, %246
%248 = sdiv i32 %247, 4
%249 = call i32 @hash(i32 noundef %248)
%250 = load i32, ptr %3, align 4
%251 = mul nsw i32 2, %250
%252 = load i32, ptr %2, align 4
%253 = add nsw i32 %251, %252
%254 = sdiv i32 %253, 4
%255 = call i32 @hash(i32 noundef %254)
%256 = load i32, ptr %3, align 4
%257 = mul nsw i32 2, %256
%258 = load i32, ptr %2, align 4
%259 = sub nsw i32 %257, %258
%260 = sdiv i32 %259, 2
%261 = call i32 @hash(i32 noundef %260)
%262 = load i32, ptr %2, align 4
%263 = sub nsw i32 %262, 1
%264 = call i32 @hash(i32 noundef %263)
%265 = load i32, ptr %5, align 4
%266 = call i32 @hash(i32 noundef %265)
br label %267
267: ; preds = %242, %234
br label %268
268: ; preds = %267, %230
br label %269
269: ; preds = %268
%270 = load i32, ptr %5, align 4
%271 = add nsw i32 %270, 1
store i32 %271, ptr %5, align 4
br label %227, !llvm.loop !8
272: ; preds = %227
br label %273
273: ; preds = %272, %218
br label %274
274: ; preds = %273
%275 = load i32, ptr %4, align 4
%276 = add nsw i32 %275, 1
store i32 %276, ptr %4, align 4
br label %81, !llvm.loop !9
277: ; preds = %134
br label %278
278: ; preds = %277
%279 = load i32, ptr %3, align 4
%280 = add nsw i32 %279, 1
store i32 %280, ptr %3, align 4
br label %17, !llvm.loop !10
281: ; preds = %34
br label %282
282: ; preds = %281, %1
ret void
}
declare i32 @hash(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}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi6bhaqax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sge i32 %14, 2
br i1 %15, label %16, label %284
16: ; preds = %1
store i32 1, ptr %3, align 4
br label %17
17: ; preds = %280, %16
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %30
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 4
%25 = sub nsw i32 0, %24
%26 = add nsw i32 %25, 2
%27 = sub nsw i32 %26, 1
%28 = sdiv i32 %27, 2
%29 = sub nsw i32 0, %28
br label %34
30: ; preds = %17
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 4
%33 = sdiv i32 %32, 2
br label %34
34: ; preds = %30, %22
%35 = phi i32 [ %29, %22 ], [ %33, %30 ]
%36 = icmp sle i32 %18, %35
br i1 %36, label %37, label %283
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load i32, ptr %3, align 4
%43 = add nsw i32 %42, 1
%44 = sub nsw i32 0, %43
%45 = sdiv i32 %44, 2
%46 = sub nsw i32 0, %45
br label %53
47: ; preds = %37
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
%50 = add nsw i32 %49, 2
%51 = sub nsw i32 %50, 1
%52 = sdiv i32 %51, 2
br label %53
53: ; preds = %47, %41
%54 = phi i32 [ %46, %41 ], [ %52, %47 ]
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 1
%57 = icmp sgt i32 %54, %56
br i1 %57, label %58, label %76
58: ; preds = %53
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
%65 = sub nsw i32 0, %64
%66 = sdiv i32 %65, 2
%67 = sub nsw i32 0, %66
br label %74
68: ; preds = %58
%69 = load i32, ptr %3, align 4
%70 = add nsw i32 %69, 1
%71 = add nsw i32 %70, 2
%72 = sub nsw i32 %71, 1
%73 = sdiv i32 %72, 2
br label %74
74: ; preds = %68, %62
%75 = phi i32 [ %67, %62 ], [ %73, %68 ]
br label %79
76: ; preds = %53
%77 = load i32, ptr %3, align 4
%78 = sub nsw i32 %77, 1
br label %79
79: ; preds = %76, %74
%80 = phi i32 [ %75, %74 ], [ %78, %76 ]
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %276, %79
%82 = load i32, ptr %4, align 4
%83 = load i32, ptr %3, align 4
%84 = mul nsw i32 2, %83
%85 = load i32, ptr %2, align 4
%86 = add nsw i32 %84, %85
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %98
88: ; preds = %81
%89 = load i32, ptr %3, align 4
%90 = mul nsw i32 2, %89
%91 = load i32, ptr %2, align 4
%92 = add nsw i32 %90, %91
%93 = sub nsw i32 0, %92
%94 = add nsw i32 %93, 4
%95 = sub nsw i32 %94, 1
%96 = sdiv i32 %95, 4
%97 = sub nsw i32 0, %96
br label %104
98: ; preds = %81
%99 = load i32, ptr %3, align 4
%100 = mul nsw i32 2, %99
%101 = load i32, ptr %2, align 4
%102 = add nsw i32 %100, %101
%103 = sdiv i32 %102, 4
br label %104
104: ; preds = %98, %88
%105 = phi i32 [ %97, %88 ], [ %103, %98 ]
%106 = load i32, ptr %3, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %132
108: ; preds = %104
%109 = load i32, ptr %3, align 4
%110 = mul nsw i32 2, %109
%111 = load i32, ptr %2, align 4
%112 = add nsw i32 %110, %111
%113 = icmp slt i32 %112, 0
br i1 %113, label %114, label %124
114: ; preds = %108
%115 = load i32, ptr %3, align 4
%116 = mul nsw i32 2, %115
%117 = load i32, ptr %2, align 4
%118 = add nsw i32 %116, %117
%119 = sub nsw i32 0, %118
%120 = add nsw i32 %119, 4
%121 = sub nsw i32 %120, 1
%122 = sdiv i32 %121, 4
%123 = sub nsw i32 0, %122
br label %130
124: ; preds = %108
%125 = load i32, ptr %3, align 4
%126 = mul nsw i32 2, %125
%127 = load i32, ptr %2, align 4
%128 = add nsw i32 %126, %127
%129 = sdiv i32 %128, 4
br label %130
130: ; preds = %124, %114
%131 = phi i32 [ %123, %114 ], [ %129, %124 ]
br label %134
132: ; preds = %104
%133 = load i32, ptr %3, align 4
br label %134
134: ; preds = %132, %130
%135 = phi i32 [ %131, %130 ], [ %133, %132 ]
%136 = icmp sle i32 %82, %135
br i1 %136, label %137, label %279
137: ; preds = %134
%138 = load i32, ptr %3, align 4
%139 = load i32, ptr %4, align 4
%140 = mul nsw i32 4, %139
%141 = load i32, ptr %2, align 4
%142 = sub nsw i32 %140, %141
%143 = add nsw i32 %142, 1
%144 = icmp slt i32 %143, 0
br i1 %144, label %145, label %154
145: ; preds = %137
%146 = load i32, ptr %4, align 4
%147 = mul nsw i32 4, %146
%148 = load i32, ptr %2, align 4
%149 = sub nsw i32 %147, %148
%150 = add nsw i32 %149, 1
%151 = sub nsw i32 0, %150
%152 = sdiv i32 %151, 2
%153 = sub nsw i32 0, %152
br label %163
154: ; preds = %137
%155 = load i32, ptr %4, align 4
%156 = mul nsw i32 4, %155
%157 = load i32, ptr %2, align 4
%158 = sub nsw i32 %156, %157
%159 = add nsw i32 %158, 1
%160 = add nsw i32 %159, 2
%161 = sub nsw i32 %160, 1
%162 = sdiv i32 %161, 2
br label %163
163: ; preds = %154, %145
%164 = phi i32 [ %153, %145 ], [ %162, %154 ]
%165 = icmp sge i32 %138, %164
br i1 %165, label %166, label %219
166: ; preds = %163
store i32 1, ptr %5, align 4
%167 = load i32, ptr %5, align 4
%168 = icmp sle i32 %167, 2
br i1 %168, label %.lr.ph, label %218
.lr.ph: ; preds = %166
br label %169
169: ; preds = %.lr.ph, %213
%170 = call i32 @hash(i32 noundef 1)
%171 = load i32, ptr %3, align 4
%172 = load i32, ptr %4, align 4
%173 = sub nsw i32 %171, %172
%174 = call i32 @hash(i32 noundef %173)
%175 = load i32, ptr %4, align 4
%176 = call i32 @hash(i32 noundef %175)
%177 = load i32, ptr %3, align 4
%178 = mul nsw i32 2, %177
%179 = load i32, ptr %4, align 4
%180 = mul nsw i32 2, %179
%181 = sub nsw i32 %178, %180
%182 = call i32 @hash(i32 noundef %181)
%183 = load i32, ptr %3, align 4
%184 = mul nsw i32 -2, %183
%185 = load i32, ptr %4, align 4
%186 = mul nsw i32 4, %185
%187 = add nsw i32 %184, %186
%188 = call i32 @hash(i32 noundef %187)
%189 = load i32, ptr %5, align 4
%190 = call i32 @hash(i32 noundef %189)
%191 = call i32 @hash(i32 noundef 2)
%192 = load i32, ptr %3, align 4
%193 = load i32, ptr %4, align 4
%194 = sub nsw i32 %192, %193
%195 = call i32 @hash(i32 noundef %194)
%196 = load i32, ptr %4, align 4
%197 = call i32 @hash(i32 noundef %196)
%198 = load i32, ptr %3, align 4
%199 = mul nsw i32 2, %198
%200 = load i32, ptr %4, align 4
%201 = mul nsw i32 2, %200
%202 = sub nsw i32 %199, %201
%203 = call i32 @hash(i32 noundef %202)
%204 = load i32, ptr %3, align 4
%205 = mul nsw i32 -2, %204
%206 = load i32, ptr %4, align 4
%207 = mul nsw i32 4, %206
%208 = add nsw i32 %205, %207
%209 = sub nsw i32 %208, 1
%210 = call i32 @hash(i32 noundef %209)
%211 = load i32, ptr %5, align 4
%212 = call i32 @hash(i32 noundef %211)
br label %213
213: ; preds = %169
%214 = load i32, ptr %5, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %5, align 4
%216 = load i32, ptr %5, align 4
%217 = icmp sle i32 %216, 2
br i1 %217, label %169, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %213
br label %218
218: ; preds = %._crit_edge, %166
br label %219
219: ; preds = %218, %163
%220 = load i32, ptr %3, align 4
%221 = mul nsw i32 2, %220
%222 = load i32, ptr %4, align 4
%223 = mul nsw i32 4, %222
%224 = load i32, ptr %2, align 4
%225 = sub nsw i32 %223, %224
%226 = icmp eq i32 %221, %225
br i1 %226, label %227, label %275
227: ; preds = %219
store i32 1, ptr %5, align 4
%228 = load i32, ptr %5, align 4
%229 = icmp sle i32 %228, 2
br i1 %229, label %.lr.ph2, label %274
.lr.ph2: ; preds = %227
br label %230
230: ; preds = %.lr.ph2, %269
%231 = load i32, ptr %2, align 4
%232 = srem i32 %231, 2
%233 = icmp eq i32 %232, 0
br i1 %233, label %234, label %268
234: ; preds = %230
%235 = load i32, ptr %3, align 4
%236 = mul nsw i32 2, %235
%237 = load i32, ptr %2, align 4
%238 = mul nsw i32 3, %237
%239 = add nsw i32 %236, %238
%240 = srem i32 %239, 4
%241 = icmp eq i32 %240, 0
br i1 %241, label %242, label %267
242: ; preds = %234
%243 = call i32 @hash(i32 noundef 2)
%244 = load i32, ptr %3, align 4
%245 = mul nsw i32 2, %244
%246 = load i32, ptr %2, align 4
%247 = sub nsw i32 %245, %246
%248 = sdiv i32 %247, 4
%249 = call i32 @hash(i32 noundef %248)
%250 = load i32, ptr %3, align 4
%251 = mul nsw i32 2, %250
%252 = load i32, ptr %2, align 4
%253 = add nsw i32 %251, %252
%254 = sdiv i32 %253, 4
%255 = call i32 @hash(i32 noundef %254)
%256 = load i32, ptr %3, align 4
%257 = mul nsw i32 2, %256
%258 = load i32, ptr %2, align 4
%259 = sub nsw i32 %257, %258
%260 = sdiv i32 %259, 2
%261 = call i32 @hash(i32 noundef %260)
%262 = load i32, ptr %2, align 4
%263 = sub nsw i32 %262, 1
%264 = call i32 @hash(i32 noundef %263)
%265 = load i32, ptr %5, align 4
%266 = call i32 @hash(i32 noundef %265)
br label %267
267: ; preds = %242, %234
br label %268
268: ; preds = %267, %230
br label %269
269: ; preds = %268
%270 = load i32, ptr %5, align 4
%271 = add nsw i32 %270, 1
store i32 %271, ptr %5, align 4
%272 = load i32, ptr %5, align 4
%273 = icmp sle i32 %272, 2
br i1 %273, label %230, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %269
br label %274
274: ; preds = %._crit_edge3, %227
br label %275
275: ; preds = %274, %219
br label %276
276: ; preds = %275
%277 = load i32, ptr %4, align 4
%278 = add nsw i32 %277, 1
store i32 %278, ptr %4, align 4
br label %81, !llvm.loop !9
279: ; preds = %134
br label %280
280: ; preds = %279
%281 = load i32, ptr %3, align 4
%282 = add nsw i32 %281, 1
store i32 %282, ptr %3, align 4
br label %17, !llvm.loop !10
283: ; preds = %34
br label %284
284: ; preds = %283, %1
ret void
}
declare i32 @hash(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}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpd991fhey.c'
source_filename = "/tmp/tmpd991fhey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_num() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 27
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
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/tmpd991fhey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_num() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @rand()
%3 = srem i32 %2, 27
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
ret i32 %4
}
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/tmp9mkkgo9n.c'
source_filename = "/tmp/tmp9mkkgo9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i, \00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"stringLength test\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"complete\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @stringLength(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @stringLength(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @stringLength(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.3, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @stringLength(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9mkkgo9n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i, \00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"stringLength test\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"complete\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @stringLength(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @stringLength(ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @stringLength(ptr noundef @.str.4)
%7 = call i32 @printf(ptr noundef @.str.3, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @stringLength(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu4f339o4.c'
source_filename = "/tmp/tmpu4f339o4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@malloc.pmalloc = internal global ptr null, align 8
@.str = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"malloc(%d) is called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong allocsize(0) uwtable
define dso_local ptr @malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%5 = load ptr, ptr @malloc.pmalloc, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %17, label %7
7: ; preds = %1
%8 = call ptr @dlsym(ptr noundef inttoptr (i64 -1 to ptr), ptr noundef @.str)
store ptr %8, ptr @malloc.pmalloc, align 8
%9 = call ptr (...) @dlerror()
store ptr %9, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %7
br label %17
17: ; preds = %16, %1
%18 = load i64, ptr %2, align 8
%19 = call i32 @printf(ptr noundef @.str.2, i64 noundef %18)
%20 = load ptr, ptr @malloc.pmalloc, align 8
%21 = load i64, ptr %2, align 8
%22 = call ptr (i64, ...) %20(i64 noundef %21)
ret ptr %22
}
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong allocsize(0) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpu4f339o4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@malloc.pmalloc = internal global ptr null, align 8
@.str = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"malloc(%d) is called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong allocsize(0) uwtable
define dso_local ptr @malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%5 = load ptr, ptr @malloc.pmalloc, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %17, label %7
7: ; preds = %1
%8 = call ptr @dlsym(ptr noundef inttoptr (i64 -1 to ptr), ptr noundef @.str)
store ptr %8, ptr @malloc.pmalloc, align 8
%9 = call ptr (...) @dlerror()
store ptr %9, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %7
br label %17
17: ; preds = %16, %1
%18 = load i64, ptr %2, align 8
%19 = call i32 @printf(ptr noundef @.str.2, i64 noundef %18)
%20 = load ptr, ptr @malloc.pmalloc, align 8
%21 = load i64, ptr %2, align 8
%22 = call ptr (i64, ...) %20(i64 noundef %21)
ret ptr %22
}
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare ptr @dlerror(...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong allocsize(0) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp8n8ex8bx.c'
source_filename = "/tmp/tmp8n8ex8bx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
br label %7
7: ; preds = %40, %0
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, -1
store i64 %9, ptr %3, align 8
%10 = icmp ne i64 %8, 0
br i1 %10, label %11, label %43
11: ; preds = %7
store i8 0, ptr %2, align 1
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %5)
br label %13
13: ; preds = %11, %39
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%15 = load i8, ptr %2, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 61
br i1 %17, label %18, label %19
18: ; preds = %13
br label %40
19: ; preds = %13
%20 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%21 = load i8, ptr %2, align 1
%22 = sext i8 %21 to i32
switch i32 %22, label %39 [
i32 43, label %23
i32 45, label %27
i32 42, label %31
i32 47, label %35
]
23: ; preds = %19
%24 = load i64, ptr %4, align 8
%25 = load i64, ptr %5, align 8
%26 = add nsw i64 %25, %24
store i64 %26, ptr %5, align 8
br label %39
27: ; preds = %19
%28 = load i64, ptr %4, align 8
%29 = load i64, ptr %5, align 8
%30 = sub nsw i64 %29, %28
store i64 %30, ptr %5, align 8
br label %39
31: ; preds = %19
%32 = load i64, ptr %4, align 8
%33 = load i64, ptr %5, align 8
%34 = mul nsw i64 %33, %32
store i64 %34, ptr %5, align 8
br label %39
35: ; preds = %19
%36 = load i64, ptr %4, align 8
%37 = load i64, ptr %5, align 8
%38 = sdiv i64 %37, %36
store i64 %38, ptr %5, align 8
br label %39
39: ; preds = %19, %35, %31, %27, %23
br label %13
40: ; preds = %18
%41 = load i64, ptr %5, align 8
%42 = call i32 @printf(ptr noundef @.str.2, i64 noundef %41)
br label %7, !llvm.loop !6
43: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8n8ex8bx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%7 = load i64, ptr %3, align 8
%8 = add nsw i64 %7, -1
store i64 %8, ptr %3, align 8
%9 = icmp ne i64 %7, 0
br i1 %9, label %.lr.ph2, label %48
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %42
store i8 0, ptr %2, align 1
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %5)
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%13 = load i8, ptr %2, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 61
br i1 %15, label %16, label %.lr.ph
.lr.ph: ; preds = %10
br label %17
._crit_edge: ; preds = %37
br label %16
16: ; preds = %._crit_edge, %10
br label %42
17: ; preds = %.lr.ph, %37
%18 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%19 = load i8, ptr %2, align 1
%20 = sext i8 %19 to i32
switch i32 %20, label %37 [
i32 43, label %21
i32 45, label %25
i32 42, label %29
i32 47, label %33
]
21: ; preds = %17
%22 = load i64, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = add nsw i64 %23, %22
store i64 %24, ptr %5, align 8
br label %37
25: ; preds = %17
%26 = load i64, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = sub nsw i64 %27, %26
store i64 %28, ptr %5, align 8
br label %37
29: ; preds = %17
%30 = load i64, ptr %4, align 8
%31 = load i64, ptr %5, align 8
%32 = mul nsw i64 %31, %30
store i64 %32, ptr %5, align 8
br label %37
33: ; preds = %17
%34 = load i64, ptr %4, align 8
%35 = load i64, ptr %5, align 8
%36 = sdiv i64 %35, %34
store i64 %36, ptr %5, align 8
br label %37
37: ; preds = %33, %29, %25, %21, %17
%38 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%39 = load i8, ptr %2, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 61
br i1 %41, label %._crit_edge, label %17
42: ; preds = %16
%43 = load i64, ptr %5, align 8
%44 = call i32 @printf(ptr noundef @.str.2, i64 noundef %43)
%45 = load i64, ptr %3, align 8
%46 = add nsw i64 %45, -1
store i64 %46, ptr %3, align 8
%47 = icmp ne i64 %45, 0
br i1 %47, label %10, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %42
br label %48
48: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpebikrc2r.c'
source_filename = "/tmp/tmpebikrc2r.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XEvent_xcrossing_y(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_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpebikrc2r.c"
target datalayout = "e-m:e-p270: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_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XEvent_xcrossing_y(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_4__, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i32
ret i32 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqpjxc_ub.c'
source_filename = "/tmp/tmpqpjxc_ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%d%d%d%d%d%d%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [13 x i8] c"vspeed = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"0 4\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"0 0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %20, %0
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
br label %20
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
br label %14, !llvm.loop !6
23: ; preds = %14
br label %24
24: ; preds = %23, %35
%25 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%26 = load i32, ptr @stderr, align 4
%27 = load i32, ptr %9, align 4
%28 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.3, i32 noundef %27)
%29 = load i32, ptr %9, align 4
%30 = icmp slt i32 %29, -20
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str.4)
br label %35
33: ; preds = %24
%34 = call i32 @printf(ptr noundef @.str.5)
br label %35
35: ; preds = %33, %31
br label %24
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqpjxc_ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%d%d%d%d%d%d%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [13 x i8] c"vspeed = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"0 4\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"0 0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %19
%18 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
br label %19
19: ; preds = %17
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
br label %26
26: ; preds = %37, %25
%27 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%28 = load i32, ptr @stderr, align 4
%29 = load i32, ptr %9, align 4
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.3, i32 noundef %29)
%31 = load i32, ptr %9, align 4
%32 = icmp slt i32 %31, -20
br i1 %32, label %33, label %35
33: ; preds = %26
%34 = call i32 @printf(ptr noundef @.str.4)
br label %37
35: ; preds = %26
%36 = call i32 @printf(ptr noundef @.str.5)
br label %37
37: ; preds = %35, %33
br label %26
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpla6ji6em.c'
source_filename = "/tmp/tmpla6ji6em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0xa3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xa3() #0 {
%1 = call i64 @isupper(i32 noundef 163)
%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 820, 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/tmpla6ji6em.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0xa3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xa3() #0 {
%1 = call i64 @isupper(i32 noundef 163)
%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 820, 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/tmp6tgyor7h.c'
source_filename = "/tmp/tmp6tgyor7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FlashErase(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store volatile i32 2561, ptr inttoptr (i64 1074778132 to ptr), align 4
%4 = load i32, ptr %3, align 4
store volatile i32 %4, ptr inttoptr (i64 1074778112 to ptr), align 4
store volatile i32 -1539178494, ptr inttoptr (i64 1074778120 to ptr), align 4
br label %5
5: ; preds = %9, %1
%6 = load volatile i32, ptr inttoptr (i64 1074778120 to ptr), align 4
%7 = and i32 %6, 2
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %5
br label %5, !llvm.loop !6
10: ; preds = %5
%11 = load volatile i32, ptr inttoptr (i64 1074778124 to ptr), align 4
%12 = and i32 %11, 2561
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 -1, ptr %2, align 4
br label %16
15: ; preds = %10
store i32 0, ptr %2, align 4
br label %16
16: ; preds = %15, %14
%17 = load i32, ptr %2, align 4
ret i32 %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6tgyor7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FlashErase(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store volatile i32 2561, ptr inttoptr (i64 1074778132 to ptr), align 4
%4 = load i32, ptr %3, align 4
store volatile i32 %4, ptr inttoptr (i64 1074778112 to ptr), align 4
store volatile i32 -1539178494, ptr inttoptr (i64 1074778120 to ptr), align 4
br label %5
5: ; preds = %5, %1
%6 = load volatile i32, ptr inttoptr (i64 1074778120 to ptr), align 4
%7 = and i32 %6, 2
%8 = icmp ne i32 %7, 0
br i1 %8, label %5, label %9, !llvm.loop !6
9: ; preds = %5
%10 = load volatile i32, ptr inttoptr (i64 1074778124 to ptr), align 4
%11 = and i32 %10, 2561
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 -1, ptr %2, align 4
br label %15
14: ; preds = %9
store i32 0, ptr %2, align 4
br label %15
15: ; preds = %14, %13
%16 = load i32, ptr %2, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3xbuc6sn.c'
source_filename = "/tmp/tmp3xbuc6sn.c"
target datalayout = "e-m:e-p270: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/tmp3xbuc6sn.c"
target datalayout = "e-m:e-p270: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/tmpjz66tkc2.c'
source_filename = "/tmp/tmpjz66tkc2.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32, ptr, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"bind: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"unable to bind socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @anetUdpServer(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [6 x i8], align 1
%11 = alloca %struct.addrinfo, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%15 = load i32, ptr %6, align 4
%16 = call i32 @snprintf(ptr noundef %14, i32 noundef 6, ptr noundef @.str, i32 noundef %15)
%17 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 40)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 4
store i32 %18, ptr %19, align 8
%20 = load i32, ptr @SOCK_DGRAM, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 3
store i32 %20, ptr %21, align 4
%22 = load i32, ptr @AI_PASSIVE, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 6
store i32 %22, ptr %23, align 8
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%26 = call i32 @getaddrinfo(ptr noundef %24, ptr noundef %25, ptr noundef %11, ptr noundef %12)
store i32 %26, ptr %9, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %3
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = call i32 @gai_strerror(i32 noundef %30)
%32 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %29, ptr noundef @.str.1, i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %91
33: ; preds = %3
%34 = load ptr, ptr %12, align 8
store ptr %34, ptr %13, align 8
br label %35
35: ; preds = %75, %33
%36 = load ptr, ptr %13, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %38, label %79
38: ; preds = %35
%39 = load ptr, ptr %13, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 4
%41 = load i32, ptr %40, align 8
%42 = load ptr, ptr %13, align 8
%43 = getelementptr inbounds %struct.addrinfo, ptr %42, i32 0, i32 3
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %13, align 8
%46 = getelementptr inbounds %struct.addrinfo, ptr %45, i32 0, i32 2
%47 = load i32, ptr %46, align 8
%48 = call i32 @socket(i32 noundef %41, i32 noundef %44, i32 noundef %47)
store i32 %48, ptr %8, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %51
50: ; preds = %38
br label %75
51: ; preds = %38
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %8, align 4
%54 = call i32 @anetSetReuseAddr(ptr noundef %52, i32 noundef %53)
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %57
56: ; preds = %51
br label %86
57: ; preds = %51
%58 = load i32, ptr %8, align 4
%59 = load ptr, ptr %13, align 8
%60 = getelementptr inbounds %struct.addrinfo, ptr %59, i32 0, i32 1
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %13, align 8
%63 = getelementptr inbounds %struct.addrinfo, ptr %62, i32 0, i32 0
%64 = load i32, ptr %63, align 8
%65 = call i32 @bind(i32 noundef %58, i32 noundef %61, i32 noundef %64)
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %74
67: ; preds = %57
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr @errno, align 4
%70 = call i32 @strerror(i32 noundef %69)
%71 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %68, ptr noundef @.str.2, i32 noundef %70)
%72 = load i32, ptr %8, align 4
%73 = call i32 @close(i32 noundef %72)
store i32 -1, ptr %4, align 4
br label %91
74: ; preds = %57
br label %87
75: ; preds = %50
%76 = load ptr, ptr %13, align 8
%77 = getelementptr inbounds %struct.addrinfo, ptr %76, i32 0, i32 5
%78 = load ptr, ptr %77, align 8
store ptr %78, ptr %13, align 8
br label %35, !llvm.loop !6
79: ; preds = %35
%80 = load ptr, ptr %13, align 8
%81 = icmp eq ptr %80, null
br i1 %81, label %82, label %85
82: ; preds = %79
%83 = load ptr, ptr %5, align 8
%84 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %83, ptr noundef @.str.3)
br label %86
85: ; preds = %79
br label %86
86: ; preds = %85, %82, %56
store i32 -1, ptr %8, align 4
br label %87
87: ; preds = %86, %74
%88 = load ptr, ptr %12, align 8
%89 = call i32 @freeaddrinfo(ptr noundef %88)
%90 = load i32, ptr %8, align 4
store i32 %90, ptr %4, align 4
br label %91
91: ; preds = %87, %67, %28
%92 = load i32, ptr %4, align 4
ret i32 %92
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @anetSetError(ptr noundef, ptr noundef, ...) #1
declare i32 @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @anetSetReuseAddr(ptr noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpjz66tkc2.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i32, i32, i32, i32, i32, ptr, i32 }
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@AI_PASSIVE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"bind: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"unable to bind socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @anetUdpServer(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca [6 x i8], align 1
%11 = alloca %struct.addrinfo, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%14 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%15 = load i32, ptr %6, align 4
%16 = call i32 @snprintf(ptr noundef %14, i32 noundef 6, ptr noundef @.str, i32 noundef %15)
%17 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 40)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 4
store i32 %18, ptr %19, align 8
%20 = load i32, ptr @SOCK_DGRAM, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 3
store i32 %20, ptr %21, align 4
%22 = load i32, ptr @AI_PASSIVE, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 6
store i32 %22, ptr %23, align 8
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds [6 x i8], ptr %10, i64 0, i64 0
%26 = call i32 @getaddrinfo(ptr noundef %24, ptr noundef %25, ptr noundef %11, ptr noundef %12)
store i32 %26, ptr %9, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %3
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = call i32 @gai_strerror(i32 noundef %30)
%32 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %29, ptr noundef @.str.1, i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %92
33: ; preds = %3
%34 = load ptr, ptr %12, align 8
store ptr %34, ptr %13, align 8
%35 = load ptr, ptr %13, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %.lr.ph, label %80
.lr.ph: ; preds = %33
br label %37
37: ; preds = %.lr.ph, %74
%38 = load ptr, ptr %13, align 8
%39 = getelementptr inbounds %struct.addrinfo, ptr %38, i32 0, i32 4
%40 = load i32, ptr %39, align 8
%41 = load ptr, ptr %13, align 8
%42 = getelementptr inbounds %struct.addrinfo, ptr %41, i32 0, i32 3
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %13, align 8
%45 = getelementptr inbounds %struct.addrinfo, ptr %44, i32 0, i32 2
%46 = load i32, ptr %45, align 8
%47 = call i32 @socket(i32 noundef %40, i32 noundef %43, i32 noundef %46)
store i32 %47, ptr %8, align 4
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %50
49: ; preds = %37
br label %74
50: ; preds = %37
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %8, align 4
%53 = call i32 @anetSetReuseAddr(ptr noundef %51, i32 noundef %52)
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %56
55: ; preds = %50
br label %87
56: ; preds = %50
%57 = load i32, ptr %8, align 4
%58 = load ptr, ptr %13, align 8
%59 = getelementptr inbounds %struct.addrinfo, ptr %58, i32 0, i32 1
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %13, align 8
%62 = getelementptr inbounds %struct.addrinfo, ptr %61, i32 0, i32 0
%63 = load i32, ptr %62, align 8
%64 = call i32 @bind(i32 noundef %57, i32 noundef %60, i32 noundef %63)
%65 = icmp eq i32 %64, -1
br i1 %65, label %66, label %73
66: ; preds = %56
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr @errno, align 4
%69 = call i32 @strerror(i32 noundef %68)
%70 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %67, ptr noundef @.str.2, i32 noundef %69)
%71 = load i32, ptr %8, align 4
%72 = call i32 @close(i32 noundef %71)
store i32 -1, ptr %4, align 4
br label %92
73: ; preds = %56
br label %88
74: ; preds = %49
%75 = load ptr, ptr %13, align 8
%76 = getelementptr inbounds %struct.addrinfo, ptr %75, i32 0, i32 5
%77 = load ptr, ptr %76, align 8
store ptr %77, ptr %13, align 8
%78 = load ptr, ptr %13, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %80
80: ; preds = %._crit_edge, %33
%81 = load ptr, ptr %13, align 8
%82 = icmp eq ptr %81, null
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load ptr, ptr %5, align 8
%85 = call i32 (ptr, ptr, ...) @anetSetError(ptr noundef %84, ptr noundef @.str.3)
br label %87
86: ; preds = %80
br label %87
87: ; preds = %86, %83, %55
store i32 -1, ptr %8, align 4
br label %88
88: ; preds = %87, %73
%89 = load ptr, ptr %12, align 8
%90 = call i32 @freeaddrinfo(ptr noundef %89)
%91 = load i32, ptr %8, align 4
store i32 %91, ptr %4, align 4
br label %92
92: ; preds = %88, %66, %28
%93 = load i32, ptr %4, align 4
ret i32 %93
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @anetSetError(ptr noundef, ptr noundef, ...) #1
declare i32 @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @anetSetReuseAddr(ptr noundef, i32 noundef) #1
declare i32 @bind(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppmwfx8hc.c'
source_filename = "/tmp/tmppmwfx8hc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"u8\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 @outXGM(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %12, align 8
%17 = load ptr, ptr %13, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 @declArray(ptr noundef %15, ptr noundef %16, ptr noundef @.str, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef 1)
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %9, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @outS(ptr noundef %21, i32 noundef 0, i32 noundef %22, ptr noundef %23, i32 noundef 1)
%25 = load ptr, ptr %11, align 8
%26 = call i32 @fprintf(ptr noundef %25, ptr noundef @.str.1)
ret void
}
declare i32 @declArray(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @outS(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppmwfx8hc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"u8\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 @outXGM(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load ptr, ptr %11, align 8
%16 = load ptr, ptr %12, align 8
%17 = load ptr, ptr %13, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 @declArray(ptr noundef %15, ptr noundef %16, ptr noundef @.str, ptr noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef 1)
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %9, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @outS(ptr noundef %21, i32 noundef 0, i32 noundef %22, ptr noundef %23, i32 noundef 1)
%25 = load ptr, ptr %11, align 8
%26 = call i32 @fprintf(ptr noundef %25, ptr noundef @.str.1)
ret void
}
declare i32 @declArray(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @outS(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbn7472aa.c'
source_filename = "/tmp/tmpbn7472aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"Shift\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Lock\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Ctrl\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Alt\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"Mod2\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"Mod3\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"Mod4\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Mod5\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"Button1\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Button2\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Button3\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Button4\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Button5\00", align 1
@__const.print_modifiers.MODIFIERS = private unnamed_addr constant [13 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12], align 16
@.str.13 = private unnamed_addr constant [16 x i8] c"modifier mask: \00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_modifiers(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [13 x ptr], align 16
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.print_modifiers.MODIFIERS, i64 104, i1 false)
%5 = call i32 @printf(ptr noundef @.str.13)
%6 = getelementptr inbounds [13 x ptr], ptr %3, i64 0, i64 0
store ptr %6, ptr %4, align 8
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = and i32 %11, 1
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef %16)
br label %18
18: ; preds = %14, %10
br label %19
19: ; preds = %18
%20 = load i32, ptr %2, align 4
%21 = ashr i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds ptr, ptr %22, i32 1
store ptr %23, ptr %4, align 8
br label %7, !llvm.loop !6
24: ; preds = %7
%25 = call i32 @printf(ptr noundef @.str.14)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbn7472aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"Shift\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Lock\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Ctrl\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Alt\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"Mod2\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"Mod3\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"Mod4\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Mod5\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"Button1\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Button2\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Button3\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Button4\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"Button5\00", align 1
@__const.print_modifiers.MODIFIERS = private unnamed_addr constant [13 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4, ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12], align 16
@.str.13 = private unnamed_addr constant [16 x i8] c"modifier mask: \00", align 1
@.str.14 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_modifiers(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [13 x ptr], align 16
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.print_modifiers.MODIFIERS, i64 104, i1 false)
%5 = call i32 @printf(ptr noundef @.str.13)
%6 = getelementptr inbounds [13 x ptr], ptr %3, i64 0, i64 0
store ptr %6, ptr %4, align 8
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %18
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 1
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef %15)
br label %17
17: ; preds = %13, %9
br label %18
18: ; preds = %17
%19 = load i32, ptr %2, align 4
%20 = ashr i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %25
25: ; preds = %._crit_edge, %1
%26 = call i32 @printf(ptr noundef @.str.14)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwd2zahpz.c'
source_filename = "/tmp/tmpwd2zahpz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@_SC_PAGESIZE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Unable to get pagesize\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Pagesize is: %ld bytes.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Unable to stat '%s'\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [19 x i8] c"Unable to map '%s'\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Unable to allocate pages[%lu]\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Unable to get core info for '%s'\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"'%s':\0A\00", align 1
@.str.7 = private unnamed_addr constant [48 x i8] c"\09%lu pages in slices appear to be in pagecache\0A\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"\09%lu pages out of %lu appear to be in pagecache\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Unable to unmap '%s'\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c"Problem closing '%s'\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"Unable to open '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
%20 = load i32, ptr @_SC_PAGESIZE, align 4
%21 = call i64 @sysconf(i32 noundef %20)
store i64 %21, ptr %13, align 8
%22 = load i64, ptr %13, align 8
%23 = icmp eq i64 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %2
%25 = load i32, ptr @errno, align 4
%26 = call i32 (i32, i32, ptr, ...) @error(i32 noundef 1, i32 noundef %25, ptr noundef @.str)
br label %30
27: ; preds = %2
%28 = load i64, ptr %13, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %28)
br label %30
30: ; preds = %27, %24
store i32 1, ptr %16, align 4
br label %31
31: ; preds = %215, %30
%32 = load i32, ptr %16, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %218
35: ; preds = %31
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %16, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr @O_RDONLY, align 4
%42 = call i32 @open(ptr noundef %40, i32 noundef %41)
store i32 %42, ptr %17, align 4
%43 = load i32, ptr %17, align 4
%44 = icmp ne i32 %43, -1
br i1 %44, label %45, label %206
45: ; preds = %35
%46 = load i32, ptr %17, align 4
%47 = call i32 @fstat(i32 noundef %46, ptr noundef %6)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %57
49: ; preds = %45
%50 = load i32, ptr @errno, align 4
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %16, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %51, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = call i32 @warning(i32 noundef %50, ptr noundef @.str.2, ptr noundef %55)
br label %215
57: ; preds = %45
%58 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%59 = load i64, ptr %58, align 8
%60 = load i32, ptr @PROT_READ, align 4
%61 = load i32, ptr @MAP_SHARED, align 4
%62 = load i32, ptr %17, align 4
%63 = call ptr @mmap(ptr noundef null, i64 noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef 0)
store ptr %63, ptr %7, align 8
%64 = load ptr, ptr %7, align 8
%65 = load ptr, ptr @MAP_FAILED, align 8
%66 = icmp eq ptr %64, %65
br i1 %66, label %67, label %75
67: ; preds = %57
%68 = load i32, ptr @errno, align 4
%69 = load ptr, ptr %5, align 8
%70 = load i32, ptr %16, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds ptr, ptr %69, i64 %71
%73 = load ptr, ptr %72, align 8
%74 = call i32 @warning(i32 noundef %68, ptr noundef @.str.3, ptr noundef %73)
br label %215
75: ; preds = %57
%76 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%77 = load i64, ptr %76, align 8
%78 = load i64, ptr %13, align 8
%79 = add nsw i64 %77, %78
%80 = sub nsw i64 %79, 1
%81 = load i64, ptr %13, align 8
%82 = sdiv i64 %80, %81
store i64 %82, ptr %9, align 8
%83 = load i64, ptr %9, align 8
%84 = call ptr @malloc(i64 noundef %83)
store ptr %84, ptr %8, align 8
%85 = load ptr, ptr %8, align 8
%86 = icmp eq ptr %85, null
br i1 %86, label %87, label %91
87: ; preds = %75
%88 = load i32, ptr @errno, align 4
%89 = load i64, ptr %9, align 8
%90 = call i32 (i32, i32, ptr, ...) @error(i32 noundef 2, i32 noundef %88, ptr noundef @.str.4, i64 noundef %89)
br label %91
91: ; preds = %87, %75
%92 = load ptr, ptr %7, align 8
%93 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%94 = load i64, ptr %93, align 8
%95 = load ptr, ptr %8, align 8
%96 = call i32 @mincore(ptr noundef %92, i64 noundef %94, ptr noundef %95)
%97 = icmp eq i32 %96, -1
br i1 %97, label %98, label %106
98: ; preds = %91
%99 = load i32, ptr @errno, align 4
%100 = load ptr, ptr %5, align 8
%101 = load i32, ptr %16, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds ptr, ptr %100, i64 %102
%104 = load ptr, ptr %103, align 8
%105 = call i32 @warning(i32 noundef %99, ptr noundef @.str.5, ptr noundef %104)
br label %215
106: ; preds = %91
store i64 0, ptr %12, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %18, align 4
store i64 0, ptr %15, align 8
store i64 0, ptr %14, align 8
store i32 0, ptr %19, align 4
%107 = load ptr, ptr %5, align 8
%108 = load i32, ptr %16, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds ptr, ptr %107, i64 %109
%111 = load ptr, ptr %110, align 8
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %111)
store i64 0, ptr %11, align 8
br label %113
113: ; preds = %156, %106
%114 = load i64, ptr %11, align 8
%115 = load i64, ptr %9, align 8
%116 = icmp ult i64 %114, %115
br i1 %116, label %117, label %159
117: ; preds = %113
%118 = load ptr, ptr %8, align 8
%119 = load i64, ptr %11, align 8
%120 = getelementptr inbounds i8, ptr %118, i64 %119
%121 = load i8, ptr %120, align 1
%122 = zext i8 %121 to i32
%123 = and i32 %122, 1
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %143
125: ; preds = %117
%126 = load i32, ptr %18, align 4
%127 = icmp ne i32 %126, 0
br i1 %127, label %136, label %128
128: ; preds = %125
store i32 1, ptr %18, align 4
%129 = load i64, ptr %13, align 8
%130 = load i64, ptr %11, align 8
%131 = mul i64 %129, %130
store i64 %131, ptr %14, align 8
%132 = load i64, ptr %14, align 8
%133 = load i64, ptr %13, align 8
%134 = add nsw i64 %132, %133
%135 = sub nsw i64 %134, 1
store i64 %135, ptr %15, align 8
br label %140
136: ; preds = %125
%137 = load i64, ptr %13, align 8
%138 = load i64, ptr %15, align 8
%139 = add nsw i64 %138, %137
store i64 %139, ptr %15, align 8
br label %140
140: ; preds = %136, %128
%141 = load i64, ptr %10, align 8
%142 = add i64 %141, 1
store i64 %142, ptr %10, align 8
br label %155
143: ; preds = %117
%144 = load i32, ptr %18, align 4
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %154
146: ; preds = %143
store i32 0, ptr %18, align 4
%147 = load i32, ptr %19, align 4
%148 = load i64, ptr %13, align 8
%149 = load i64, ptr %14, align 8
%150 = load i64, ptr %15, align 8
%151 = call i32 @print_slice(i32 noundef %147, i64 noundef %148, i64 noundef %149, i64 noundef %150, ptr noundef %12)
%152 = load i32, ptr %19, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %19, align 4
br label %154
154: ; preds = %146, %143
br label %155
155: ; preds = %154, %140
br label %156
156: ; preds = %155
%157 = load i64, ptr %11, align 8
%158 = add i64 %157, 1
store i64 %158, ptr %11, align 8
br label %113, !llvm.loop !6
159: ; preds = %113
%160 = load i32, ptr %18, align 4
%161 = icmp ne i32 %160, 0
br i1 %161, label %162, label %168
162: ; preds = %159
%163 = load i32, ptr %19, align 4
%164 = load i64, ptr %13, align 8
%165 = load i64, ptr %14, align 8
%166 = load i64, ptr %15, align 8
%167 = call i32 @print_slice(i32 noundef %163, i64 noundef %164, i64 noundef %165, i64 noundef %166, ptr noundef %12)
br label %168
168: ; preds = %162, %159
%169 = load i64, ptr %12, align 8
%170 = icmp ne i64 %169, 0
br i1 %170, label %171, label %174
171: ; preds = %168
%172 = load i64, ptr %12, align 8
%173 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %172)
br label %174
174: ; preds = %171, %168
%175 = load i64, ptr %10, align 8
%176 = load i64, ptr %9, align 8
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %175, i64 noundef %176)
%178 = load ptr, ptr %8, align 8
%179 = call i32 @free(ptr noundef %178)
store ptr null, ptr %8, align 8
%180 = load ptr, ptr %7, align 8
%181 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%182 = load i64, ptr %181, align 8
%183 = call i32 @munmap(ptr noundef %180, i64 noundef %182)
%184 = icmp eq i32 %183, -1
br i1 %184, label %185, label %193
185: ; preds = %174
%186 = load i32, ptr @errno, align 4
%187 = load ptr, ptr %5, align 8
%188 = load i32, ptr %16, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds ptr, ptr %187, i64 %189
%191 = load ptr, ptr %190, align 8
%192 = call i32 @warning(i32 noundef %186, ptr noundef @.str.9, ptr noundef %191)
br label %215
193: ; preds = %174
%194 = load i32, ptr %17, align 4
%195 = call i32 @close(i32 noundef %194)
%196 = icmp eq i32 %195, -1
br i1 %196, label %197, label %205
197: ; preds = %193
%198 = load i32, ptr @errno, align 4
%199 = load ptr, ptr %5, align 8
%200 = load i32, ptr %16, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds ptr, ptr %199, i64 %201
%203 = load ptr, ptr %202, align 8
%204 = call i32 @warning(i32 noundef %198, ptr noundef @.str.10, ptr noundef %203)
br label %205
205: ; preds = %197, %193
br label %214
206: ; preds = %35
%207 = load i32, ptr @errno, align 4
%208 = load ptr, ptr %5, align 8
%209 = load i32, ptr %16, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds ptr, ptr %208, i64 %210
%212 = load ptr, ptr %211, align 8
%213 = call i32 @warning(i32 noundef %207, ptr noundef @.str.11, ptr noundef %212)
br label %214
214: ; preds = %206, %205
br label %215
215: ; preds = %214, %185, %98, %67, %49
%216 = load i32, ptr %16, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %16, align 4
br label %31, !llvm.loop !8
218: ; preds = %31
ret i32 0
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @error(i32 noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @warning(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @mincore(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @print_slice(i32 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @munmap(ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwd2zahpz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@_SC_PAGESIZE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Unable to get pagesize\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Pagesize is: %ld bytes.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Unable to stat '%s'\00", align 1
@PROT_READ = dso_local global i32 0, align 4
@MAP_SHARED = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@.str.3 = private unnamed_addr constant [19 x i8] c"Unable to map '%s'\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Unable to allocate pages[%lu]\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Unable to get core info for '%s'\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"'%s':\0A\00", align 1
@.str.7 = private unnamed_addr constant [48 x i8] c"\09%lu pages in slices appear to be in pagecache\0A\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"\09%lu pages out of %lu appear to be in pagecache\0A\00", align 1
@.str.9 = private unnamed_addr constant [21 x i8] c"Unable to unmap '%s'\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c"Problem closing '%s'\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"Unable to open '%s'\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
%20 = load i32, ptr @_SC_PAGESIZE, align 4
%21 = call i64 @sysconf(i32 noundef %20)
store i64 %21, ptr %13, align 8
%22 = load i64, ptr %13, align 8
%23 = icmp eq i64 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %2
%25 = load i32, ptr @errno, align 4
%26 = call i32 (i32, i32, ptr, ...) @error(i32 noundef 1, i32 noundef %25, ptr noundef @.str)
br label %30
27: ; preds = %2
%28 = load i64, ptr %13, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %28)
br label %30
30: ; preds = %27, %24
store i32 1, ptr %16, align 4
%31 = load i32, ptr %16, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %222
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %216
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %16, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr @O_RDONLY, align 4
%41 = call i32 @open(ptr noundef %39, i32 noundef %40)
store i32 %41, ptr %17, align 4
%42 = load i32, ptr %17, align 4
%43 = icmp ne i32 %42, -1
br i1 %43, label %44, label %207
44: ; preds = %34
%45 = load i32, ptr %17, align 4
%46 = call i32 @fstat(i32 noundef %45, ptr noundef %6)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %56
48: ; preds = %44
%49 = load i32, ptr @errno, align 4
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %16, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = call i32 @warning(i32 noundef %49, ptr noundef @.str.2, ptr noundef %54)
br label %216
56: ; preds = %44
%57 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%58 = load i64, ptr %57, align 8
%59 = load i32, ptr @PROT_READ, align 4
%60 = load i32, ptr @MAP_SHARED, align 4
%61 = load i32, ptr %17, align 4
%62 = call ptr @mmap(ptr noundef null, i64 noundef %58, i32 noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef 0)
store ptr %62, ptr %7, align 8
%63 = load ptr, ptr %7, align 8
%64 = load ptr, ptr @MAP_FAILED, align 8
%65 = icmp eq ptr %63, %64
br i1 %65, label %66, label %74
66: ; preds = %56
%67 = load i32, ptr @errno, align 4
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %16, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds ptr, ptr %68, i64 %70
%72 = load ptr, ptr %71, align 8
%73 = call i32 @warning(i32 noundef %67, ptr noundef @.str.3, ptr noundef %72)
br label %216
74: ; preds = %56
%75 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%76 = load i64, ptr %75, align 8
%77 = load i64, ptr %13, align 8
%78 = add nsw i64 %76, %77
%79 = sub nsw i64 %78, 1
%80 = load i64, ptr %13, align 8
%81 = sdiv i64 %79, %80
store i64 %81, ptr %9, align 8
%82 = load i64, ptr %9, align 8
%83 = call ptr @malloc(i64 noundef %82)
store ptr %83, ptr %8, align 8
%84 = load ptr, ptr %8, align 8
%85 = icmp eq ptr %84, null
br i1 %85, label %86, label %90
86: ; preds = %74
%87 = load i32, ptr @errno, align 4
%88 = load i64, ptr %9, align 8
%89 = call i32 (i32, i32, ptr, ...) @error(i32 noundef 2, i32 noundef %87, ptr noundef @.str.4, i64 noundef %88)
br label %90
90: ; preds = %86, %74
%91 = load ptr, ptr %7, align 8
%92 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%93 = load i64, ptr %92, align 8
%94 = load ptr, ptr %8, align 8
%95 = call i32 @mincore(ptr noundef %91, i64 noundef %93, ptr noundef %94)
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %105
97: ; preds = %90
%98 = load i32, ptr @errno, align 4
%99 = load ptr, ptr %5, align 8
%100 = load i32, ptr %16, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds ptr, ptr %99, i64 %101
%103 = load ptr, ptr %102, align 8
%104 = call i32 @warning(i32 noundef %98, ptr noundef @.str.5, ptr noundef %103)
br label %216
105: ; preds = %90
store i64 0, ptr %12, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %18, align 4
store i64 0, ptr %15, align 8
store i64 0, ptr %14, align 8
store i32 0, ptr %19, align 4
%106 = load ptr, ptr %5, align 8
%107 = load i32, ptr %16, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds ptr, ptr %106, i64 %108
%110 = load ptr, ptr %109, align 8
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %110)
store i64 0, ptr %11, align 8
%112 = load i64, ptr %11, align 8
%113 = load i64, ptr %9, align 8
%114 = icmp ult i64 %112, %113
br i1 %114, label %.lr.ph, label %160
.lr.ph: ; preds = %105
br label %115
115: ; preds = %.lr.ph, %154
%116 = load ptr, ptr %8, align 8
%117 = load i64, ptr %11, align 8
%118 = getelementptr inbounds i8, ptr %116, i64 %117
%119 = load i8, ptr %118, align 1
%120 = zext i8 %119 to i32
%121 = and i32 %120, 1
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %141
123: ; preds = %115
%124 = load i32, ptr %18, align 4
%125 = icmp ne i32 %124, 0
br i1 %125, label %134, label %126
126: ; preds = %123
store i32 1, ptr %18, align 4
%127 = load i64, ptr %13, align 8
%128 = load i64, ptr %11, align 8
%129 = mul i64 %127, %128
store i64 %129, ptr %14, align 8
%130 = load i64, ptr %14, align 8
%131 = load i64, ptr %13, align 8
%132 = add nsw i64 %130, %131
%133 = sub nsw i64 %132, 1
store i64 %133, ptr %15, align 8
br label %138
134: ; preds = %123
%135 = load i64, ptr %13, align 8
%136 = load i64, ptr %15, align 8
%137 = add nsw i64 %136, %135
store i64 %137, ptr %15, align 8
br label %138
138: ; preds = %134, %126
%139 = load i64, ptr %10, align 8
%140 = add i64 %139, 1
store i64 %140, ptr %10, align 8
br label %153
141: ; preds = %115
%142 = load i32, ptr %18, align 4
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %152
144: ; preds = %141
store i32 0, ptr %18, align 4
%145 = load i32, ptr %19, align 4
%146 = load i64, ptr %13, align 8
%147 = load i64, ptr %14, align 8
%148 = load i64, ptr %15, align 8
%149 = call i32 @print_slice(i32 noundef %145, i64 noundef %146, i64 noundef %147, i64 noundef %148, ptr noundef %12)
%150 = load i32, ptr %19, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %19, align 4
br label %152
152: ; preds = %144, %141
br label %153
153: ; preds = %152, %138
br label %154
154: ; preds = %153
%155 = load i64, ptr %11, align 8
%156 = add i64 %155, 1
store i64 %156, ptr %11, align 8
%157 = load i64, ptr %11, align 8
%158 = load i64, ptr %9, align 8
%159 = icmp ult i64 %157, %158
br i1 %159, label %115, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %154
br label %160
160: ; preds = %._crit_edge, %105
%161 = load i32, ptr %18, align 4
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %169
163: ; preds = %160
%164 = load i32, ptr %19, align 4
%165 = load i64, ptr %13, align 8
%166 = load i64, ptr %14, align 8
%167 = load i64, ptr %15, align 8
%168 = call i32 @print_slice(i32 noundef %164, i64 noundef %165, i64 noundef %166, i64 noundef %167, ptr noundef %12)
br label %169
169: ; preds = %163, %160
%170 = load i64, ptr %12, align 8
%171 = icmp ne i64 %170, 0
br i1 %171, label %172, label %175
172: ; preds = %169
%173 = load i64, ptr %12, align 8
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %173)
br label %175
175: ; preds = %172, %169
%176 = load i64, ptr %10, align 8
%177 = load i64, ptr %9, align 8
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %176, i64 noundef %177)
%179 = load ptr, ptr %8, align 8
%180 = call i32 @free(ptr noundef %179)
store ptr null, ptr %8, align 8
%181 = load ptr, ptr %7, align 8
%182 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%183 = load i64, ptr %182, align 8
%184 = call i32 @munmap(ptr noundef %181, i64 noundef %183)
%185 = icmp eq i32 %184, -1
br i1 %185, label %186, label %194
186: ; preds = %175
%187 = load i32, ptr @errno, align 4
%188 = load ptr, ptr %5, align 8
%189 = load i32, ptr %16, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds ptr, ptr %188, i64 %190
%192 = load ptr, ptr %191, align 8
%193 = call i32 @warning(i32 noundef %187, ptr noundef @.str.9, ptr noundef %192)
br label %216
194: ; preds = %175
%195 = load i32, ptr %17, align 4
%196 = call i32 @close(i32 noundef %195)
%197 = icmp eq i32 %196, -1
br i1 %197, label %198, label %206
198: ; preds = %194
%199 = load i32, ptr @errno, align 4
%200 = load ptr, ptr %5, align 8
%201 = load i32, ptr %16, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds ptr, ptr %200, i64 %202
%204 = load ptr, ptr %203, align 8
%205 = call i32 @warning(i32 noundef %199, ptr noundef @.str.10, ptr noundef %204)
br label %206
206: ; preds = %198, %194
br label %215
207: ; preds = %34
%208 = load i32, ptr @errno, align 4
%209 = load ptr, ptr %5, align 8
%210 = load i32, ptr %16, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds ptr, ptr %209, i64 %211
%213 = load ptr, ptr %212, align 8
%214 = call i32 @warning(i32 noundef %208, ptr noundef @.str.11, ptr noundef %213)
br label %215
215: ; preds = %207, %206
br label %216
216: ; preds = %215, %186, %97, %66, %48
%217 = load i32, ptr %16, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %16, align 4
%219 = load i32, ptr %16, align 4
%220 = load i32, ptr %4, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %216
br label %222
222: ; preds = %._crit_edge3, %30
ret i32 0
}
declare i64 @sysconf(i32 noundef) #1
declare i32 @error(i32 noundef, i32 noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @warning(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @mincore(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @print_slice(i32 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @munmap(ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.