llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpictabpbk.c'
source_filename = "/tmp/tmpictabpbk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@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/tmpictabpbk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@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/tmpugo4_kr_.c'
source_filename = "/tmp/tmpugo4_kr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @e_mail_check(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ult i64 %9, 3
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load i64, ptr %6, align 8
%13 = icmp ugt i64 %12, 39
br i1 %13, label %14, label %15
14: ; preds = %11, %1
store i32 0, ptr %2, align 4
br label %73
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call ptr @strchr(ptr noundef %16, i8 noundef signext 64)
%18 = icmp eq ptr %17, null
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %6, align 8
%22 = sub i64 %21, 1
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 64
br i1 %26, label %27, label %28
27: ; preds = %19, %15
store i32 0, ptr %2, align 4
br label %73
28: ; preds = %19
%29 = load ptr, ptr %3, align 8
%30 = load i64, ptr %6, align 8
%31 = sub i64 %30, 1
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 46
br i1 %35, label %36, label %37
36: ; preds = %28
store i32 0, ptr %2, align 4
br label %73
37: ; preds = %28
%38 = load ptr, ptr %3, align 8
%39 = call ptr @strrchr(ptr noundef %38, i8 noundef signext 64)
store ptr %39, ptr %5, align 8
%40 = load ptr, ptr %5, align 8
%41 = call ptr @strstr(ptr noundef %40, ptr noundef @.str)
%42 = icmp ne ptr %41, null
br i1 %42, label %47, label %43
43: ; preds = %37
%44 = load ptr, ptr %5, align 8
%45 = call ptr @strstr(ptr noundef %44, ptr noundef @.str.1)
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %48
47: ; preds = %43, %37
store i32 0, ptr %2, align 4
br label %73
48: ; preds = %43
store i8 1, ptr %4, align 1
br label %49
49: ; preds = %60, %48
%50 = load i8, ptr %4, align 1
%51 = sext i8 %50 to i32
%52 = icmp slt i32 %51, 32
br i1 %52, label %53, label %63
53: ; preds = %49
%54 = load ptr, ptr %5, align 8
%55 = load i8, ptr %4, align 1
%56 = call ptr @strchr(ptr noundef %54, i8 noundef signext %55)
%57 = icmp ne ptr %56, null
br i1 %57, label %58, label %59
58: ; preds = %53
store i32 0, ptr %2, align 4
br label %73
59: ; preds = %53
br label %60
60: ; preds = %59
%61 = load i8, ptr %4, align 1
%62 = add i8 %61, 1
store i8 %62, ptr %4, align 1
br label %49, !llvm.loop !6
63: ; preds = %49
%64 = load ptr, ptr %5, align 8
%65 = call ptr @strchr(ptr noundef %64, i8 noundef signext 32)
%66 = icmp ne ptr %65, null
br i1 %66, label %71, label %67
67: ; preds = %63
%68 = load ptr, ptr %5, align 8
%69 = call ptr @strchr(ptr noundef %68, i8 noundef signext 59)
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %72
71: ; preds = %67, %63
store i32 0, ptr %2, align 4
br label %73
72: ; preds = %67
store i32 1, ptr %2, align 4
br label %73
73: ; preds = %72, %71, %58, %47, %36, %27, %14
%74 = load i32, ptr %2, align 4
ret i32 %74
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @strstr(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/tmpugo4_kr_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @e_mail_check(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ult i64 %9, 3
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load i64, ptr %6, align 8
%13 = icmp ugt i64 %12, 39
br i1 %13, label %14, label %15
14: ; preds = %11, %1
store i32 0, ptr %2, align 4
br label %75
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call ptr @strchr(ptr noundef %16, i8 noundef signext 64)
%18 = icmp eq ptr %17, null
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %6, align 8
%22 = sub i64 %21, 1
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 64
br i1 %26, label %27, label %28
27: ; preds = %19, %15
store i32 0, ptr %2, align 4
br label %75
28: ; preds = %19
%29 = load ptr, ptr %3, align 8
%30 = load i64, ptr %6, align 8
%31 = sub i64 %30, 1
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 46
br i1 %35, label %36, label %37
36: ; preds = %28
store i32 0, ptr %2, align 4
br label %75
37: ; preds = %28
%38 = load ptr, ptr %3, align 8
%39 = call ptr @strrchr(ptr noundef %38, i8 noundef signext 64)
store ptr %39, ptr %5, align 8
%40 = load ptr, ptr %5, align 8
%41 = call ptr @strstr(ptr noundef %40, ptr noundef @.str)
%42 = icmp ne ptr %41, null
br i1 %42, label %47, label %43
43: ; preds = %37
%44 = load ptr, ptr %5, align 8
%45 = call ptr @strstr(ptr noundef %44, ptr noundef @.str.1)
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %48
47: ; preds = %43, %37
store i32 0, ptr %2, align 4
br label %75
48: ; preds = %43
store i8 1, ptr %4, align 1
%49 = load i8, ptr %4, align 1
%50 = sext i8 %49 to i32
%51 = icmp slt i32 %50, 32
br i1 %51, label %.lr.ph, label %65
.lr.ph: ; preds = %48
br label %52
52: ; preds = %.lr.ph, %59
%53 = load ptr, ptr %5, align 8
%54 = load i8, ptr %4, align 1
%55 = call ptr @strchr(ptr noundef %53, i8 noundef signext %54)
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %58
57: ; preds = %52
store i32 0, ptr %2, align 4
br label %75
58: ; preds = %52
br label %59
59: ; preds = %58
%60 = load i8, ptr %4, align 1
%61 = add i8 %60, 1
store i8 %61, ptr %4, align 1
%62 = load i8, ptr %4, align 1
%63 = sext i8 %62 to i32
%64 = icmp slt i32 %63, 32
br i1 %64, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %48
%66 = load ptr, ptr %5, align 8
%67 = call ptr @strchr(ptr noundef %66, i8 noundef signext 32)
%68 = icmp ne ptr %67, null
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load ptr, ptr %5, align 8
%71 = call ptr @strchr(ptr noundef %70, i8 noundef signext 59)
%72 = icmp ne ptr %71, null
br i1 %72, label %73, label %74
73: ; preds = %69, %65
store i32 0, ptr %2, align 4
br label %75
74: ; preds = %69
store i32 1, ptr %2, align 4
br label %75
75: ; preds = %74, %73, %57, %47, %36, %27, %14
%76 = load i32, ptr %2, align 4
ret i32 %76
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @strstr(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/tmptemf0kly.c'
source_filename = "/tmp/tmptemf0kly.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [5 x i32] [i32 5, i32 3, i32 2, i32 4, i32 1], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 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.arr, i64 20, i1 false)
%4 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @InserSort(ptr noundef %4, i32 noundef 5)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %15, %0
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @InserSort(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptemf0kly.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [5 x i32] [i32 5, i32 3, i32 2, i32 4, i32 1], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 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.arr, i64 20, i1 false)
%4 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @InserSort(ptr noundef %4, i32 noundef 5)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %14
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 5
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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 @InserSort(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4_rlb2ox.c'
source_filename = "/tmp/tmp4_rlb2ox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0xd5() #0 {
%1 = call i64 @isalnum(i32 noundef 213)
%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 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmp4_rlb2ox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0xd5() #0 {
%1 = call i64 @isalnum(i32 noundef 213)
%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 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmpvwyiflk_.c'
source_filename = "/tmp/tmpvwyiflk_.c"
target datalayout = "e-m:e-p270: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.g3_is3WinDirection.DX = private unnamed_addr constant [8 x i32] [i32 -1, i32 -1, i32 -1, i32 0, i32 0, i32 1, i32 1, i32 1], align 16
@__const.g3_is3WinDirection.DY = private unnamed_addr constant [8 x i32] [i32 -1, i32 1, i32 0, i32 -1, i32 1, i32 0, i32 -1, i32 1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @g3_is3WinDirection(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca [8 x i32], align 16
%12 = alloca [8 x i32], align 16
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.g3_is3WinDirection.DX, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.g3_is3WinDirection.DY, i64 32, i1 false)
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i8, ptr %10, align 1
%26 = call i32 @g3_countOutwards(ptr noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %20, i32 noundef %24, i8 noundef signext %25)
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = sub nsw i32 0, %33
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = sub nsw i32 0, %38
%40 = load i8, ptr %10, align 1
%41 = call i32 @g3_countOutwards(ptr noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %34, i32 noundef %39, i8 noundef signext %40)
%42 = add nsw i32 %26, %41
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %13, align 4
%44 = icmp sge i32 %43, 3
%45 = zext i1 %44 to i32
ret i32 %45
}
; 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 @g3_countOutwards(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvwyiflk_.c"
target datalayout = "e-m:e-p270: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.g3_is3WinDirection.DX = private unnamed_addr constant [8 x i32] [i32 -1, i32 -1, i32 -1, i32 0, i32 0, i32 1, i32 1, i32 1], align 16
@__const.g3_is3WinDirection.DY = private unnamed_addr constant [8 x i32] [i32 -1, i32 1, i32 0, i32 -1, i32 1, i32 0, i32 -1, i32 1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @g3_is3WinDirection(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca [8 x i32], align 16
%12 = alloca [8 x i32], align 16
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.g3_is3WinDirection.DX, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.g3_is3WinDirection.DY, i64 32, i1 false)
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i8, ptr %10, align 1
%26 = call i32 @g3_countOutwards(ptr noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %20, i32 noundef %24, i8 noundef signext %25)
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i32], ptr %11, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = sub nsw i32 0, %33
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [8 x i32], ptr %12, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = sub nsw i32 0, %38
%40 = load i8, ptr %10, align 1
%41 = call i32 @g3_countOutwards(ptr noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %34, i32 noundef %39, i8 noundef signext %40)
%42 = add nsw i32 %26, %41
store i32 %42, ptr %13, align 4
%43 = load i32, ptr %13, align 4
%44 = icmp sge i32 %43, 3
%45 = zext i1 %44 to i32
ret i32 %45
}
; 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 @g3_countOutwards(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt_dg1wry.c'
source_filename = "/tmp/tmpt_dg1wry.c"
target datalayout = "e-m:e-p270: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/tmpt_dg1wry.c"
target datalayout = "e-m:e-p270: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/tmp2l8ikrq9.c'
source_filename = "/tmp/tmp2l8ikrq9.c"
target datalayout = "e-m:e-p270: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/tmp2l8ikrq9.c"
target datalayout = "e-m:e-p270: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/tmpvvp7kui6.c'
source_filename = "/tmp/tmpvvp7kui6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_BOOTTIME = dso_local global i64 0, align 8
@CLOCK_BOOTTIME_ALARM = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvvp7kui6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_BOOTTIME = dso_local global i64 0, align 8
@CLOCK_BOOTTIME_ALARM = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdomlq9d9.c'
source_filename = "/tmp/tmpdomlq9d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tinf_gzip_uncompress(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = icmp ne i32 %24, 31
br i1 %25, label %32, label %26
26: ; preds = %4
%27 = load ptr, ptr %10, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ne i32 %30, 139
br i1 %31, label %32, label %33
32: ; preds = %26, %4
store i32 -3, ptr %5, align 4
br label %243
33: ; preds = %26
%34 = load ptr, ptr %10, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
%36 = load i8, ptr %35, align 1
%37 = zext i8 %36 to i32
%38 = icmp ne i32 %37, 8
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 -3, ptr %5, align 4
br label %243
40: ; preds = %33
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 3
%43 = load i8, ptr %42, align 1
store i8 %43, ptr %16, align 1
%44 = load i8, ptr %16, align 1
%45 = zext i8 %44 to i32
%46 = and i32 %45, 224
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %40
store i32 -3, ptr %5, align 4
br label %243
49: ; preds = %40
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 10
store ptr %51, ptr %12, align 8
%52 = load i8, ptr %16, align 1
%53 = zext i8 %52 to i32
%54 = and i32 %53, 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %73
56: ; preds = %49
%57 = load ptr, ptr %12, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 1
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
store i32 %60, ptr %17, align 4
%61 = load i32, ptr %17, align 4
%62 = mul i32 256, %61
%63 = load ptr, ptr %12, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
%65 = load i8, ptr %64, align 1
%66 = zext i8 %65 to i32
%67 = add i32 %62, %66
store i32 %67, ptr %17, align 4
%68 = load i32, ptr %17, align 4
%69 = add i32 %68, 2
%70 = load ptr, ptr %12, align 8
%71 = zext i32 %69 to i64
%72 = getelementptr inbounds i8, ptr %70, i64 %71
store ptr %72, ptr %12, align 8
br label %73
73: ; preds = %56, %49
%74 = load i8, ptr %16, align 1
%75 = zext i8 %74 to i32
%76 = and i32 %75, 8
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %89
78: ; preds = %73
br label %79
79: ; preds = %83, %78
%80 = load ptr, ptr %12, align 8
%81 = load i8, ptr %80, align 1
%82 = icmp ne i8 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %79
%84 = load ptr, ptr %12, align 8
%85 = getelementptr inbounds i8, ptr %84, i32 1
store ptr %85, ptr %12, align 8
br label %79, !llvm.loop !6
86: ; preds = %79
%87 = load ptr, ptr %12, align 8
%88 = getelementptr inbounds i8, ptr %87, i32 1
store ptr %88, ptr %12, align 8
br label %89
89: ; preds = %86, %73
%90 = load i8, ptr %16, align 1
%91 = zext i8 %90 to i32
%92 = and i32 %91, 16
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %105
94: ; preds = %89
br label %95
95: ; preds = %99, %94
%96 = load ptr, ptr %12, align 8
%97 = load i8, ptr %96, align 1
%98 = icmp ne i8 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %95
%100 = load ptr, ptr %12, align 8
%101 = getelementptr inbounds i8, ptr %100, i32 1
store ptr %101, ptr %12, align 8
br label %95, !llvm.loop !8
102: ; preds = %95
%103 = load ptr, ptr %12, align 8
%104 = getelementptr inbounds i8, ptr %103, i32 1
store ptr %104, ptr %12, align 8
br label %105
105: ; preds = %102, %89
%106 = load i8, ptr %16, align 1
%107 = zext i8 %106 to i32
%108 = and i32 %107, 2
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %137
110: ; preds = %105
%111 = load ptr, ptr %12, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 1
%113 = load i8, ptr %112, align 1
%114 = zext i8 %113 to i32
store i32 %114, ptr %18, align 4
%115 = load i32, ptr %18, align 4
%116 = mul i32 256, %115
%117 = load ptr, ptr %12, align 8
%118 = getelementptr inbounds i8, ptr %117, i64 0
%119 = load i8, ptr %118, align 1
%120 = zext i8 %119 to i32
%121 = add i32 %116, %120
store i32 %121, ptr %18, align 4
%122 = load i32, ptr %18, align 4
%123 = load ptr, ptr %10, align 8
%124 = load ptr, ptr %12, align 8
%125 = load ptr, ptr %10, align 8
%126 = ptrtoint ptr %124 to i64
%127 = ptrtoint ptr %125 to i64
%128 = sub i64 %126, %127
%129 = trunc i64 %128 to i32
%130 = call i32 @tinf_crc32(ptr noundef %123, i32 noundef %129)
%131 = and i32 %130, 65535
%132 = icmp ne i32 %122, %131
br i1 %132, label %133, label %134
133: ; preds = %110
store i32 -3, ptr %5, align 4
br label %243
134: ; preds = %110
%135 = load ptr, ptr %12, align 8
%136 = getelementptr inbounds i8, ptr %135, i64 2
store ptr %136, ptr %12, align 8
br label %137
137: ; preds = %134, %105
%138 = load ptr, ptr %10, align 8
%139 = load i32, ptr %9, align 4
%140 = sub i32 %139, 1
%141 = zext i32 %140 to i64
%142 = getelementptr inbounds i8, ptr %138, i64 %141
%143 = load i8, ptr %142, align 1
%144 = zext i8 %143 to i32
store i32 %144, ptr %13, align 4
%145 = load i32, ptr %13, align 4
%146 = mul i32 256, %145
%147 = load ptr, ptr %10, align 8
%148 = load i32, ptr %9, align 4
%149 = sub i32 %148, 2
%150 = zext i32 %149 to i64
%151 = getelementptr inbounds i8, ptr %147, i64 %150
%152 = load i8, ptr %151, align 1
%153 = zext i8 %152 to i32
%154 = add i32 %146, %153
store i32 %154, ptr %13, align 4
%155 = load i32, ptr %13, align 4
%156 = mul i32 256, %155
%157 = load ptr, ptr %10, align 8
%158 = load i32, ptr %9, align 4
%159 = sub i32 %158, 3
%160 = zext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %157, i64 %160
%162 = load i8, ptr %161, align 1
%163 = zext i8 %162 to i32
%164 = add i32 %156, %163
store i32 %164, ptr %13, align 4
%165 = load i32, ptr %13, align 4
%166 = mul i32 256, %165
%167 = load ptr, ptr %10, align 8
%168 = load i32, ptr %9, align 4
%169 = sub i32 %168, 4
%170 = zext i32 %169 to i64
%171 = getelementptr inbounds i8, ptr %167, i64 %170
%172 = load i8, ptr %171, align 1
%173 = zext i8 %172 to i32
%174 = add i32 %166, %173
store i32 %174, ptr %13, align 4
%175 = load ptr, ptr %10, align 8
%176 = load i32, ptr %9, align 4
%177 = sub i32 %176, 5
%178 = zext i32 %177 to i64
%179 = getelementptr inbounds i8, ptr %175, i64 %178
%180 = load i8, ptr %179, align 1
%181 = zext i8 %180 to i32
store i32 %181, ptr %14, align 4
%182 = load i32, ptr %14, align 4
%183 = mul i32 256, %182
%184 = load ptr, ptr %10, align 8
%185 = load i32, ptr %9, align 4
%186 = sub i32 %185, 6
%187 = zext i32 %186 to i64
%188 = getelementptr inbounds i8, ptr %184, i64 %187
%189 = load i8, ptr %188, align 1
%190 = zext i8 %189 to i32
%191 = add i32 %183, %190
store i32 %191, ptr %14, align 4
%192 = load i32, ptr %14, align 4
%193 = mul i32 256, %192
%194 = load ptr, ptr %10, align 8
%195 = load i32, ptr %9, align 4
%196 = sub i32 %195, 7
%197 = zext i32 %196 to i64
%198 = getelementptr inbounds i8, ptr %194, i64 %197
%199 = load i8, ptr %198, align 1
%200 = zext i8 %199 to i32
%201 = add i32 %193, %200
store i32 %201, ptr %14, align 4
%202 = load i32, ptr %14, align 4
%203 = mul i32 256, %202
%204 = load ptr, ptr %10, align 8
%205 = load i32, ptr %9, align 4
%206 = sub i32 %205, 8
%207 = zext i32 %206 to i64
%208 = getelementptr inbounds i8, ptr %204, i64 %207
%209 = load i8, ptr %208, align 1
%210 = zext i8 %209 to i32
%211 = add i32 %203, %210
store i32 %211, ptr %14, align 4
%212 = load ptr, ptr %11, align 8
%213 = load ptr, ptr %7, align 8
%214 = load ptr, ptr %12, align 8
%215 = load ptr, ptr %10, align 8
%216 = load i32, ptr %9, align 4
%217 = zext i32 %216 to i64
%218 = getelementptr inbounds i8, ptr %215, i64 %217
%219 = load ptr, ptr %12, align 8
%220 = ptrtoint ptr %218 to i64
%221 = ptrtoint ptr %219 to i64
%222 = sub i64 %220, %221
%223 = sub nsw i64 %222, 8
%224 = trunc i64 %223 to i32
%225 = call i32 @tinf_uncompress(ptr noundef %212, ptr noundef %213, ptr noundef %214, i32 noundef %224)
store i32 %225, ptr %15, align 4
%226 = load i32, ptr %15, align 4
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %229
228: ; preds = %137
store i32 -3, ptr %5, align 4
br label %243
229: ; preds = %137
%230 = load ptr, ptr %7, align 8
%231 = load i32, ptr %230, align 4
%232 = load i32, ptr %13, align 4
%233 = icmp ne i32 %231, %232
br i1 %233, label %234, label %235
234: ; preds = %229
store i32 -3, ptr %5, align 4
br label %243
235: ; preds = %229
%236 = load i32, ptr %14, align 4
%237 = load ptr, ptr %11, align 8
%238 = load i32, ptr %13, align 4
%239 = call i32 @tinf_crc32(ptr noundef %237, i32 noundef %238)
%240 = icmp ne i32 %236, %239
br i1 %240, label %241, label %242
241: ; preds = %235
store i32 -3, ptr %5, align 4
br label %243
242: ; preds = %235
store i32 0, ptr %5, align 4
br label %243
243: ; preds = %242, %241, %234, %228, %133, %48, %39, %32
%244 = load i32, ptr %5, align 4
ret i32 %244
}
declare i32 @tinf_crc32(ptr noundef, i32 noundef) #1
declare i32 @tinf_uncompress(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdomlq9d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tinf_gzip_uncompress(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i8, align 1
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %10, align 8
%20 = load ptr, ptr %6, align 8
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %10, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = icmp ne i32 %24, 31
br i1 %25, label %32, label %26
26: ; preds = %4
%27 = load ptr, ptr %10, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ne i32 %30, 139
br i1 %31, label %32, label %33
32: ; preds = %26, %4
store i32 -3, ptr %5, align 4
br label %247
33: ; preds = %26
%34 = load ptr, ptr %10, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
%36 = load i8, ptr %35, align 1
%37 = zext i8 %36 to i32
%38 = icmp ne i32 %37, 8
br i1 %38, label %39, label %40
39: ; preds = %33
store i32 -3, ptr %5, align 4
br label %247
40: ; preds = %33
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 3
%43 = load i8, ptr %42, align 1
store i8 %43, ptr %16, align 1
%44 = load i8, ptr %16, align 1
%45 = zext i8 %44 to i32
%46 = and i32 %45, 224
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %40
store i32 -3, ptr %5, align 4
br label %247
49: ; preds = %40
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 10
store ptr %51, ptr %12, align 8
%52 = load i8, ptr %16, align 1
%53 = zext i8 %52 to i32
%54 = and i32 %53, 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %73
56: ; preds = %49
%57 = load ptr, ptr %12, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 1
%59 = load i8, ptr %58, align 1
%60 = zext i8 %59 to i32
store i32 %60, ptr %17, align 4
%61 = load i32, ptr %17, align 4
%62 = mul i32 256, %61
%63 = load ptr, ptr %12, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
%65 = load i8, ptr %64, align 1
%66 = zext i8 %65 to i32
%67 = add i32 %62, %66
store i32 %67, ptr %17, align 4
%68 = load i32, ptr %17, align 4
%69 = add i32 %68, 2
%70 = load ptr, ptr %12, align 8
%71 = zext i32 %69 to i64
%72 = getelementptr inbounds i8, ptr %70, i64 %71
store ptr %72, ptr %12, align 8
br label %73
73: ; preds = %56, %49
%74 = load i8, ptr %16, align 1
%75 = zext i8 %74 to i32
%76 = and i32 %75, 8
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %91
78: ; preds = %73
%79 = load ptr, ptr %12, align 8
%80 = load i8, ptr %79, align 1
%81 = icmp ne i8 %80, 0
br i1 %81, label %.lr.ph, label %88
.lr.ph: ; preds = %78
br label %82
82: ; preds = %.lr.ph, %82
%83 = load ptr, ptr %12, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %12, align 8
%85 = load ptr, ptr %12, align 8
%86 = load i8, ptr %85, align 1
%87 = icmp ne i8 %86, 0
br i1 %87, label %82, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %82
br label %88
88: ; preds = %._crit_edge, %78
%89 = load ptr, ptr %12, align 8
%90 = getelementptr inbounds i8, ptr %89, i32 1
store ptr %90, ptr %12, align 8
br label %91
91: ; preds = %88, %73
%92 = load i8, ptr %16, align 1
%93 = zext i8 %92 to i32
%94 = and i32 %93, 16
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %109
96: ; preds = %91
%97 = load ptr, ptr %12, align 8
%98 = load i8, ptr %97, align 1
%99 = icmp ne i8 %98, 0
br i1 %99, label %.lr.ph2, label %106
.lr.ph2: ; preds = %96
br label %100
100: ; preds = %.lr.ph2, %100
%101 = load ptr, ptr %12, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %12, align 8
%103 = load ptr, ptr %12, align 8
%104 = load i8, ptr %103, align 1
%105 = icmp ne i8 %104, 0
br i1 %105, label %100, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %100
br label %106
106: ; preds = %._crit_edge3, %96
%107 = load ptr, ptr %12, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %12, align 8
br label %109
109: ; preds = %106, %91
%110 = load i8, ptr %16, align 1
%111 = zext i8 %110 to i32
%112 = and i32 %111, 2
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %141
114: ; preds = %109
%115 = load ptr, ptr %12, align 8
%116 = getelementptr inbounds i8, ptr %115, i64 1
%117 = load i8, ptr %116, align 1
%118 = zext i8 %117 to i32
store i32 %118, ptr %18, align 4
%119 = load i32, ptr %18, align 4
%120 = mul i32 256, %119
%121 = load ptr, ptr %12, align 8
%122 = getelementptr inbounds i8, ptr %121, i64 0
%123 = load i8, ptr %122, align 1
%124 = zext i8 %123 to i32
%125 = add i32 %120, %124
store i32 %125, ptr %18, align 4
%126 = load i32, ptr %18, align 4
%127 = load ptr, ptr %10, align 8
%128 = load ptr, ptr %12, align 8
%129 = load ptr, ptr %10, align 8
%130 = ptrtoint ptr %128 to i64
%131 = ptrtoint ptr %129 to i64
%132 = sub i64 %130, %131
%133 = trunc i64 %132 to i32
%134 = call i32 @tinf_crc32(ptr noundef %127, i32 noundef %133)
%135 = and i32 %134, 65535
%136 = icmp ne i32 %126, %135
br i1 %136, label %137, label %138
137: ; preds = %114
store i32 -3, ptr %5, align 4
br label %247
138: ; preds = %114
%139 = load ptr, ptr %12, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 2
store ptr %140, ptr %12, align 8
br label %141
141: ; preds = %138, %109
%142 = load ptr, ptr %10, align 8
%143 = load i32, ptr %9, align 4
%144 = sub i32 %143, 1
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %142, i64 %145
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
store i32 %148, ptr %13, align 4
%149 = load i32, ptr %13, align 4
%150 = mul i32 256, %149
%151 = load ptr, ptr %10, align 8
%152 = load i32, ptr %9, align 4
%153 = sub i32 %152, 2
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds i8, ptr %151, i64 %154
%156 = load i8, ptr %155, align 1
%157 = zext i8 %156 to i32
%158 = add i32 %150, %157
store i32 %158, ptr %13, align 4
%159 = load i32, ptr %13, align 4
%160 = mul i32 256, %159
%161 = load ptr, ptr %10, align 8
%162 = load i32, ptr %9, align 4
%163 = sub i32 %162, 3
%164 = zext i32 %163 to i64
%165 = getelementptr inbounds i8, ptr %161, i64 %164
%166 = load i8, ptr %165, align 1
%167 = zext i8 %166 to i32
%168 = add i32 %160, %167
store i32 %168, ptr %13, align 4
%169 = load i32, ptr %13, align 4
%170 = mul i32 256, %169
%171 = load ptr, ptr %10, align 8
%172 = load i32, ptr %9, align 4
%173 = sub i32 %172, 4
%174 = zext i32 %173 to i64
%175 = getelementptr inbounds i8, ptr %171, i64 %174
%176 = load i8, ptr %175, align 1
%177 = zext i8 %176 to i32
%178 = add i32 %170, %177
store i32 %178, ptr %13, align 4
%179 = load ptr, ptr %10, align 8
%180 = load i32, ptr %9, align 4
%181 = sub i32 %180, 5
%182 = zext i32 %181 to i64
%183 = getelementptr inbounds i8, ptr %179, i64 %182
%184 = load i8, ptr %183, align 1
%185 = zext i8 %184 to i32
store i32 %185, ptr %14, align 4
%186 = load i32, ptr %14, align 4
%187 = mul i32 256, %186
%188 = load ptr, ptr %10, align 8
%189 = load i32, ptr %9, align 4
%190 = sub i32 %189, 6
%191 = zext i32 %190 to i64
%192 = getelementptr inbounds i8, ptr %188, i64 %191
%193 = load i8, ptr %192, align 1
%194 = zext i8 %193 to i32
%195 = add i32 %187, %194
store i32 %195, ptr %14, align 4
%196 = load i32, ptr %14, align 4
%197 = mul i32 256, %196
%198 = load ptr, ptr %10, align 8
%199 = load i32, ptr %9, align 4
%200 = sub i32 %199, 7
%201 = zext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %198, i64 %201
%203 = load i8, ptr %202, align 1
%204 = zext i8 %203 to i32
%205 = add i32 %197, %204
store i32 %205, ptr %14, align 4
%206 = load i32, ptr %14, align 4
%207 = mul i32 256, %206
%208 = load ptr, ptr %10, align 8
%209 = load i32, ptr %9, align 4
%210 = sub i32 %209, 8
%211 = zext i32 %210 to i64
%212 = getelementptr inbounds i8, ptr %208, i64 %211
%213 = load i8, ptr %212, align 1
%214 = zext i8 %213 to i32
%215 = add i32 %207, %214
store i32 %215, ptr %14, align 4
%216 = load ptr, ptr %11, align 8
%217 = load ptr, ptr %7, align 8
%218 = load ptr, ptr %12, align 8
%219 = load ptr, ptr %10, align 8
%220 = load i32, ptr %9, align 4
%221 = zext i32 %220 to i64
%222 = getelementptr inbounds i8, ptr %219, i64 %221
%223 = load ptr, ptr %12, align 8
%224 = ptrtoint ptr %222 to i64
%225 = ptrtoint ptr %223 to i64
%226 = sub i64 %224, %225
%227 = sub nsw i64 %226, 8
%228 = trunc i64 %227 to i32
%229 = call i32 @tinf_uncompress(ptr noundef %216, ptr noundef %217, ptr noundef %218, i32 noundef %228)
store i32 %229, ptr %15, align 4
%230 = load i32, ptr %15, align 4
%231 = icmp ne i32 %230, 0
br i1 %231, label %232, label %233
232: ; preds = %141
store i32 -3, ptr %5, align 4
br label %247
233: ; preds = %141
%234 = load ptr, ptr %7, align 8
%235 = load i32, ptr %234, align 4
%236 = load i32, ptr %13, align 4
%237 = icmp ne i32 %235, %236
br i1 %237, label %238, label %239
238: ; preds = %233
store i32 -3, ptr %5, align 4
br label %247
239: ; preds = %233
%240 = load i32, ptr %14, align 4
%241 = load ptr, ptr %11, align 8
%242 = load i32, ptr %13, align 4
%243 = call i32 @tinf_crc32(ptr noundef %241, i32 noundef %242)
%244 = icmp ne i32 %240, %243
br i1 %244, label %245, label %246
245: ; preds = %239
store i32 -3, ptr %5, align 4
br label %247
246: ; preds = %239
store i32 0, ptr %5, align 4
br label %247
247: ; preds = %246, %245, %238, %232, %137, %48, %39, %32
%248 = load i32, ptr %5, align 4
ret i32 %248
}
declare i32 @tinf_crc32(ptr noundef, i32 noundef) #1
declare i32 @tinf_uncompress(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxh8jpw72.c'
source_filename = "/tmp/tmpxh8jpw72.c"
target datalayout = "e-m:e-p270: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/tmpxh8jpw72.c"
target datalayout = "e-m:e-p270: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/tmp8rt5yok4.c'
source_filename = "/tmp/tmp8rt5yok4.c"
target datalayout = "e-m:e-p270: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/tmp8rt5yok4.c"
target datalayout = "e-m:e-p270: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/tmpzs0b6rla.c'
source_filename = "/tmp/tmpzs0b6rla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @curve25519(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @curve25519_donna(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @curve25519_donna(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/tmpzs0b6rla.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @curve25519(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @curve25519_donna(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @curve25519_donna(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/tmpkkhp3iik.c'
source_filename = "/tmp/tmpkkhp3iik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @httplib_remove(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @remove(ptr noundef %3)
ret i32 %4
}
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkkhp3iik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @httplib_remove(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @remove(ptr noundef %3)
ret i32 %4
}
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd_j60gp2.c'
source_filename = "/tmp/tmpd_j60gp2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bottom_up_cut_rod(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 0
store i32 0, ptr %18, align 4
store i32 1, ptr %6, align 4
br label %19
19: ; preds = %58, %2
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %61
23: ; preds = %19
%24 = load i32, ptr @INT_MIN, align 4
store i32 %24, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %25
25: ; preds = %49, %23
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %52
29: ; preds = %25
%30 = load ptr, ptr %3, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %8, align 4
%38 = sub nsw i32 %36, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %35, i64 %39
%41 = load i32, ptr %40, align 4
%42 = add nsw i32 %34, %41
store i32 %42, ptr %9, align 4
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %7, align 4
%45 = icmp sgt i32 %43, %44
br i1 %45, label %46, label %48
46: ; preds = %29
%47 = load i32, ptr %9, align 4
store i32 %47, ptr %7, align 4
br label %48
48: ; preds = %46, %29
br label %49
49: ; preds = %48
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %25, !llvm.loop !6
52: ; preds = %25
%53 = load i32, ptr %7, align 4
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %53, ptr %57, align 4
br label %58
58: ; preds = %52
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %19, !llvm.loop !8
61: ; preds = %19
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %4, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %10, align 4
%67 = load ptr, ptr %5, align 8
%68 = call i32 @free(ptr noundef %67)
%69 = load i32, ptr %10, align 4
ret i32 %69
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd_j60gp2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bottom_up_cut_rod(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 0
store i32 0, ptr %18, align 4
store i32 1, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph2, label %65
.lr.ph2: ; preds = %2
br label %22
22: ; preds = %.lr.ph2, %59
%23 = load i32, ptr @INT_MIN, align 4
store i32 %23, ptr %7, align 4
store i32 1, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %.lr.ph, label %53
.lr.ph: ; preds = %22
br label %27
27: ; preds = %.lr.ph, %47
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %8, align 4
%36 = sub nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %33, i64 %37
%39 = load i32, ptr %38, align 4
%40 = add nsw i32 %32, %39
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %27
%45 = load i32, ptr %9, align 4
store i32 %45, ptr %7, align 4
br label %46
46: ; preds = %44, %27
br label %47
47: ; preds = %46
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %22
%54 = load i32, ptr %7, align 4
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 %54, ptr %58, align 4
br label %59
59: ; preds = %53
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %4, align 4
%64 = icmp sle i32 %62, %63
br i1 %64, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %2
%66 = load ptr, ptr %5, align 8
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
store i32 %70, ptr %10, align 4
%71 = load ptr, ptr %5, align 8
%72 = call i32 @free(ptr noundef %71)
%73 = load i32, ptr %10, align 4
ret i32 %73
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcnxmsvcn.c'
source_filename = "/tmp/tmpcnxmsvcn.c"
target datalayout = "e-m:e-p270: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/tmpcnxmsvcn.c"
target datalayout = "e-m:e-p270: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/tmpc2kd2ovl.c'
source_filename = "/tmp/tmpc2kd2ovl.c"
target datalayout = "e-m:e-p270: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.usage = private unnamed_addr constant [32 x i8] c"Usage: %s -ade <filename> | -h\0A\00", align 16
@opterr = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [8 x i8] c"a:d:e:h\00", align 1
@optarg = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c" -a assemble 8080 assembly\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c" -d disassmble 8080 assembly\0A\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c" -e emulate an 8080 processer with a given binary file\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c" -h print this message\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 [32 x i8], align 16
%7 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.usage, i64 32, i1 false)
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef %11, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %2
store i64 0, ptr @opterr, align 8
br label %18
18: ; preds = %45, %17
%19 = load i32, ptr %4, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @getopt(i32 noundef %19, ptr noundef %20, ptr noundef @.str)
store i32 %21, ptr %7, align 4
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %46
23: ; preds = %18
%24 = load i32, ptr %7, align 4
switch i32 %24, label %44 [
i32 97, label %25
i32 100, label %28
i32 101, label %31
i32 104, label %34
]
25: ; preds = %23
%26 = load i32, ptr @optarg, align 4
%27 = call i32 @assemble(i32 noundef %26)
br label %45
28: ; preds = %23
%29 = load i32, ptr @optarg, align 4
%30 = call i32 @disassemble(i32 noundef %29)
br label %45
31: ; preds = %23
%32 = load i32, ptr @optarg, align 4
%33 = call i32 @emulate(i32 noundef %32)
br label %45
34: ; preds = %23
%35 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 0
%38 = load ptr, ptr %37, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef %35, ptr noundef %38)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
44: ; preds = %23
br label %45
45: ; preds = %44, %34, %31, %28, %25
br label %18, !llvm.loop !6
46: ; preds = %18
%47 = call i32 @exit(i32 noundef 0) #4
unreachable
}
; 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
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @assemble(i32 noundef) #2
declare i32 @disassemble(i32 noundef) #2
declare i32 @emulate(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" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc2kd2ovl.c"
target datalayout = "e-m:e-p270: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.usage = private unnamed_addr constant [32 x i8] c"Usage: %s -ade <filename> | -h\0A\00", align 16
@opterr = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [8 x i8] c"a:d:e:h\00", align 1
@optarg = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c" -a assemble 8080 assembly\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c" -d disassmble 8080 assembly\0A\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c" -e emulate an 8080 processer with a given binary file\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c" -h print this message\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 [32 x i8], align 16
%7 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.usage, i64 32, i1 false)
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef %11, ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #4
unreachable
17: ; preds = %2
store i64 0, ptr @opterr, align 8
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @getopt(i32 noundef %18, ptr noundef %19, ptr noundef @.str)
store i32 %20, ptr %7, align 4
%21 = icmp ne i32 %20, -1
br i1 %21, label %.lr.ph, label %49
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %44
%23 = load i32, ptr %7, align 4
switch i32 %23, label %43 [
i32 97, label %24
i32 100, label %27
i32 101, label %30
i32 104, label %33
]
24: ; preds = %22
%25 = load i32, ptr @optarg, align 4
%26 = call i32 @assemble(i32 noundef %25)
br label %44
27: ; preds = %22
%28 = load i32, ptr @optarg, align 4
%29 = call i32 @disassemble(i32 noundef %28)
br label %44
30: ; preds = %22
%31 = load i32, ptr @optarg, align 4
%32 = call i32 @emulate(i32 noundef %31)
br label %44
33: ; preds = %22
%34 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = call i32 (ptr, ...) @printf(ptr noundef %34, ptr noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %44
43: ; preds = %22
br label %44
44: ; preds = %43, %33, %30, %27, %24
%45 = load i32, ptr %4, align 4
%46 = load ptr, ptr %5, align 8
%47 = call i32 @getopt(i32 noundef %45, ptr noundef %46, ptr noundef @.str)
store i32 %47, ptr %7, align 4
%48 = icmp ne i32 %47, -1
br i1 %48, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %49
49: ; preds = %._crit_edge, %17
%50 = call i32 @exit(i32 noundef 0) #4
unreachable
}
; 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
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @assemble(i32 noundef) #2
declare i32 @disassemble(i32 noundef) #2
declare i32 @emulate(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" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbnpmnb0n.c'
source_filename = "/tmp/tmpbnpmnb0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_FLAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%2 = load i32, ptr @GL_FLAT, align 4
%3 = call i32 @glShadeModel(i32 noundef %2)
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glShadeModel(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/tmpbnpmnb0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_FLAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%2 = load i32, ptr @GL_FLAT, align 4
%3 = call i32 @glShadeModel(i32 noundef %2)
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glShadeModel(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/tmpol8inwos.c'
source_filename = "/tmp/tmpol8inwos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fh_cli_exit() #0 {
%1 = call i32 (...) @fh_cli_quit()
ret void
}
declare i32 @fh_cli_quit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpol8inwos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fh_cli_exit() #0 {
%1 = call i32 (...) @fh_cli_quit()
ret void
}
declare i32 @fh_cli_quit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9f3809rq.c'
source_filename = "/tmp/tmp9f3809rq.c"
target datalayout = "e-m:e-p270: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/tmp9f3809rq.c"
target datalayout = "e-m:e-p270: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/tmpyqa67mwk.c'
source_filename = "/tmp/tmpyqa67mwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"this is int\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handler_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyqa67mwk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"this is int\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @handler_int(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwgle2wf2.c'
source_filename = "/tmp/tmpwgle2wf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_str_endswith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @my_strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @my_strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %31
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = sub i64 0, %22
%24 = getelementptr inbounds i8, ptr %20, i64 %23
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %7, align 4
%27 = call i64 @my_strncmp(ptr noundef %24, ptr noundef %25, i32 noundef %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %16
store i32 1, ptr %3, align 4
br label %31
30: ; preds = %16
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %29, %15
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @my_strlen(ptr noundef) #1
declare i64 @my_strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwgle2wf2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_str_endswith(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @my_strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @my_strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %31
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = sub i64 0, %22
%24 = getelementptr inbounds i8, ptr %20, i64 %23
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %7, align 4
%27 = call i64 @my_strncmp(ptr noundef %24, ptr noundef %25, i32 noundef %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %16
store i32 1, ptr %3, align 4
br label %31
30: ; preds = %16
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %30, %29, %15
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @my_strlen(ptr noundef) #1
declare i64 @my_strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptq170wqf.c'
source_filename = "/tmp/tmptq170wqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @dhtry(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, float noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store float %6, ptr %14, align 4
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %19, align 8
%26 = load float, ptr %14, align 4
%27 = fpext float %26 to double
%28 = fsub double 1.000000e+00, %27
%29 = load i32, ptr %11, align 4
%30 = sitofp i32 %29 to double
%31 = fdiv double %28, %30
%32 = fptrunc double %31 to float
store float %32, ptr %16, align 4
%33 = load float, ptr %16, align 4
%34 = load float, ptr %14, align 4
%35 = fsub float %33, %34
store float %35, ptr %17, align 4
store i32 0, ptr %15, align 4
br label %36
36: ; preds = %64, %7
%37 = load i32, ptr %15, align 4
%38 = load i32, ptr %11, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %67
40: ; preds = %36
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %15, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds float, ptr %41, i64 %43
%45 = load float, ptr %44, align 4
%46 = load float, ptr %16, align 4
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = load i32, ptr %15, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds float, ptr %51, i64 %53
%55 = load float, ptr %54, align 4
%56 = load float, ptr %17, align 4
%57 = fmul float %55, %56
%58 = fneg float %57
%59 = call float @llvm.fmuladd.f32(float %45, float %46, float %58)
%60 = load ptr, ptr %19, align 8
%61 = load i32, ptr %15, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %60, i64 %62
store float %59, ptr %63, align 4
br label %64
64: ; preds = %40
%65 = load i32, ptr %15, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %15, align 4
br label %36, !llvm.loop !6
67: ; preds = %36
%68 = load ptr, ptr %12, align 8
%69 = load ptr, ptr %19, align 8
%70 = call float %68(ptr noundef %69)
store float %70, ptr %18, align 4
%71 = load float, ptr %18, align 4
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %13, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %72, i64 %74
%76 = load float, ptr %75, align 4
%77 = fcmp olt float %71, %76
br i1 %77, label %78, label %127
78: ; preds = %67
%79 = load float, ptr %18, align 4
%80 = load ptr, ptr %9, align 8
%81 = load i32, ptr %13, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds float, ptr %80, i64 %82
store float %79, ptr %83, align 4
store i32 0, ptr %15, align 4
br label %84
84: ; preds = %123, %78
%85 = load i32, ptr %15, align 4
%86 = load i32, ptr %11, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %126
88: ; preds = %84
%89 = load ptr, ptr %19, align 8
%90 = load i32, ptr %15, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, ptr %89, i64 %91
%93 = load float, ptr %92, align 4
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr %13, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %94, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %15, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %98, i64 %100
%102 = load float, ptr %101, align 4
%103 = fsub float %93, %102
%104 = load ptr, ptr %10, align 8
%105 = load i32, ptr %15, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds float, ptr %104, i64 %106
%108 = load float, ptr %107, align 4
%109 = fadd float %108, %103
store float %109, ptr %107, align 4
%110 = load ptr, ptr %19, align 8
%111 = load i32, ptr %15, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds float, ptr %110, i64 %112
%114 = load float, ptr %113, align 4
%115 = load ptr, ptr %8, align 8
%116 = load i32, ptr %13, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds ptr, ptr %115, i64 %117
%119 = load ptr, ptr %118, align 8
%120 = load i32, ptr %15, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, ptr %119, i64 %121
store float %114, ptr %122, align 4
br label %123
123: ; preds = %88
%124 = load i32, ptr %15, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %15, align 4
br label %84, !llvm.loop !8
126: ; preds = %84
br label %127
127: ; preds = %126, %67
%128 = load ptr, ptr %19, align 8
%129 = call i32 @free(ptr noundef %128)
%130 = load float, ptr %18, align 4
ret float %130
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptq170wqf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @dhtry(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, float noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store float %6, ptr %14, align 4
%20 = load i32, ptr %11, align 4
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 4
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %19, align 8
%26 = load float, ptr %14, align 4
%27 = fpext float %26 to double
%28 = fsub double 1.000000e+00, %27
%29 = load i32, ptr %11, align 4
%30 = sitofp i32 %29 to double
%31 = fdiv double %28, %30
%32 = fptrunc double %31 to float
store float %32, ptr %16, align 4
%33 = load float, ptr %16, align 4
%34 = load float, ptr %14, align 4
%35 = fsub float %33, %34
store float %35, ptr %17, align 4
store i32 0, ptr %15, align 4
%36 = load i32, ptr %15, align 4
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph, label %69
.lr.ph: ; preds = %7
br label %39
39: ; preds = %.lr.ph, %63
%40 = load ptr, ptr %10, align 8
%41 = load i32, ptr %15, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds float, ptr %40, i64 %42
%44 = load float, ptr %43, align 4
%45 = load float, ptr %16, align 4
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %15, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %50, i64 %52
%54 = load float, ptr %53, align 4
%55 = load float, ptr %17, align 4
%56 = fmul float %54, %55
%57 = fneg float %56
%58 = call float @llvm.fmuladd.f32(float %44, float %45, float %57)
%59 = load ptr, ptr %19, align 8
%60 = load i32, ptr %15, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, ptr %59, i64 %61
store float %58, ptr %62, align 4
br label %63
63: ; preds = %39
%64 = load i32, ptr %15, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %15, align 4
%66 = load i32, ptr %15, align 4
%67 = load i32, ptr %11, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %69
69: ; preds = %._crit_edge, %7
%70 = load ptr, ptr %12, align 8
%71 = load ptr, ptr %19, align 8
%72 = call float %70(ptr noundef %71)
store float %72, ptr %18, align 4
%73 = load float, ptr %18, align 4
%74 = load ptr, ptr %9, align 8
%75 = load i32, ptr %13, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, ptr %74, i64 %76
%78 = load float, ptr %77, align 4
%79 = fcmp olt float %73, %78
br i1 %79, label %80, label %131
80: ; preds = %69
%81 = load float, ptr %18, align 4
%82 = load ptr, ptr %9, align 8
%83 = load i32, ptr %13, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds float, ptr %82, i64 %84
store float %81, ptr %85, align 4
store i32 0, ptr %15, align 4
%86 = load i32, ptr %15, align 4
%87 = load i32, ptr %11, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %.lr.ph2, label %130
.lr.ph2: ; preds = %80
br label %89
89: ; preds = %.lr.ph2, %124
%90 = load ptr, ptr %19, align 8
%91 = load i32, ptr %15, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %90, i64 %92
%94 = load float, ptr %93, align 4
%95 = load ptr, ptr %8, align 8
%96 = load i32, ptr %13, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %95, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = load i32, ptr %15, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = fsub float %94, %103
%105 = load ptr, ptr %10, align 8
%106 = load i32, ptr %15, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, ptr %105, i64 %107
%109 = load float, ptr %108, align 4
%110 = fadd float %109, %104
store float %110, ptr %108, align 4
%111 = load ptr, ptr %19, align 8
%112 = load i32, ptr %15, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, ptr %111, i64 %113
%115 = load float, ptr %114, align 4
%116 = load ptr, ptr %8, align 8
%117 = load i32, ptr %13, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds ptr, ptr %116, i64 %118
%120 = load ptr, ptr %119, align 8
%121 = load i32, ptr %15, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds float, ptr %120, i64 %122
store float %115, ptr %123, align 4
br label %124
124: ; preds = %89
%125 = load i32, ptr %15, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %15, align 4
%127 = load i32, ptr %15, align 4
%128 = load i32, ptr %11, align 4
%129 = icmp slt i32 %127, %128
br i1 %129, label %89, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %124
br label %130
130: ; preds = %._crit_edge3, %80
br label %131
131: ; preds = %130, %69
%132 = load ptr, ptr %19, align 8
%133 = call i32 @free(ptr noundef %132)
%134 = load float, ptr %18, align 4
ret float %134
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5s3o8eyh.c'
source_filename = "/tmp/tmp5s3o8eyh.c"
target datalayout = "e-m:e-p270: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, %struct.TYPE_2__, ptr }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
@AF_INET = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"sock_open: host information for %s not found: %s\0A\00", align 1
@h_errno = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"sock_open: (err) socket\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"sock_open: (err) connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_open(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %32
13: ; preds = %2
%14 = load ptr, ptr @AF_INET, align 8
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store ptr %14, ptr %15, align 8
%16 = call i32 @bzero(ptr noundef %7, i32 noundef 16)
%17 = load ptr, ptr @AF_INET, align 8
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store ptr %17, ptr %18, align 8
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds %struct.hostent, ptr %19, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = inttoptr i64 %21 to ptr
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds %struct.hostent, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = call i32 @bcopy(ptr noundef %22, ptr noundef %24, i32 noundef %27)
%29 = load i32, ptr %5, align 4
%30 = call i32 @htons(i32 noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %30, ptr %31, align 8
br label %32
32: ; preds = %13, %2
%33 = load ptr, ptr %6, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load i32, ptr @stderr, align 4
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr @h_errno, align 4
%39 = call ptr @sock_herrstr(i32 noundef %38)
%40 = call i32 @fprintf(i32 noundef %36, ptr noundef @.str, ptr noundef %37, ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %58
41: ; preds = %32
%42 = load ptr, ptr @AF_INET, align 8
%43 = load i32, ptr @SOCK_STREAM, align 4
%44 = call i32 @socket(ptr noundef %42, i32 noundef %43, i32 noundef 0)
store i32 %44, ptr %8, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %58
48: ; preds = %41
%49 = load i32, ptr %8, align 4
%50 = call i64 @connect(i32 noundef %49, ptr noundef %7, i32 noundef 4)
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = call i32 @perror(ptr noundef @.str.2)
%54 = load i32, ptr %8, align 4
%55 = call i32 @close(i32 noundef %54)
store i32 -1, ptr %3, align 4
br label %58
56: ; preds = %48
%57 = load i32, ptr %8, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %56, %52, %46, %35
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @sock_herrstr(i32 noundef) #1
declare i32 @socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5s3o8eyh.c"
target datalayout = "e-m:e-p270: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, %struct.TYPE_2__, ptr }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
@AF_INET = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [50 x i8] c"sock_open: host information for %s not found: %s\0A\00", align 1
@h_errno = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"sock_open: (err) socket\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"sock_open: (err) connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_open(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.sockaddr_in, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = call ptr @gethostbyname(ptr noundef %9)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %32
13: ; preds = %2
%14 = load ptr, ptr @AF_INET, align 8
%15 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store ptr %14, ptr %15, align 8
%16 = call i32 @bzero(ptr noundef %7, i32 noundef 16)
%17 = load ptr, ptr @AF_INET, align 8
%18 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store ptr %17, ptr %18, align 8
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds %struct.hostent, ptr %19, i32 0, i32 1
%21 = load i64, ptr %20, align 8
%22 = inttoptr i64 %21 to ptr
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds %struct.hostent, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 8
%28 = call i32 @bcopy(ptr noundef %22, ptr noundef %24, i32 noundef %27)
%29 = load i32, ptr %5, align 4
%30 = call i32 @htons(i32 noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %30, ptr %31, align 8
br label %32
32: ; preds = %13, %2
%33 = load ptr, ptr %6, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %41
35: ; preds = %32
%36 = load i32, ptr @stderr, align 4
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr @h_errno, align 4
%39 = call ptr @sock_herrstr(i32 noundef %38)
%40 = call i32 @fprintf(i32 noundef %36, ptr noundef @.str, ptr noundef %37, ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %58
41: ; preds = %32
%42 = load ptr, ptr @AF_INET, align 8
%43 = load i32, ptr @SOCK_STREAM, align 4
%44 = call i32 @socket(ptr noundef %42, i32 noundef %43, i32 noundef 0)
store i32 %44, ptr %8, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %58
48: ; preds = %41
%49 = load i32, ptr %8, align 4
%50 = call i64 @connect(i32 noundef %49, ptr noundef %7, i32 noundef 4)
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = call i32 @perror(ptr noundef @.str.2)
%54 = load i32, ptr %8, align 4
%55 = call i32 @close(i32 noundef %54)
store i32 -1, ptr %3, align 4
br label %58
56: ; preds = %48
%57 = load i32, ptr %8, align 4
store i32 %57, ptr %3, align 4
br label %58
58: ; preds = %56, %52, %46, %35
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @sock_herrstr(i32 noundef) #1
declare i32 @socket(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp064s75kw.c'
source_filename = "/tmp/tmp064s75kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp064s75kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfosma2aw.c'
source_filename = "/tmp/tmpfosma2aw.c"
target datalayout = "e-m:e-p270: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/tmpfosma2aw.c"
target datalayout = "e-m:e-p270: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/tmpr0vglqjy.c'
source_filename = "/tmp/tmpr0vglqjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp_to_null(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 i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr %6, align 4
br label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
br label %19
19: ; preds = %17, %15
%20 = phi i32 [ %16, %15 ], [ %18, %17 ]
store i32 %20, ptr %5, align 4
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = call i32 @strncmp(ptr noundef %21, ptr noundef %22, i32 noundef %23)
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr0vglqjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcmp_to_null(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 i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr %6, align 4
br label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
br label %19
19: ; preds = %17, %15
%20 = phi i32 [ %16, %15 ], [ %18, %17 ]
store i32 %20, ptr %5, align 4
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = call i32 @strncmp(ptr noundef %21, ptr noundef %22, i32 noundef %23)
ret i32 %24
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp515lg_56.c'
source_filename = "/tmp/tmp515lg_56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gui_set_menu_subtitle(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @gui_set_status_text(i32 noundef 1, ptr noundef %3)
ret void
}
declare i32 @gui_set_status_text(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/tmp515lg_56.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gui_set_menu_subtitle(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @gui_set_status_text(i32 noundef 1, ptr noundef %3)
ret void
}
declare i32 @gui_set_status_text(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/tmp3g7kzg01.c'
source_filename = "/tmp/tmp3g7kzg01.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XPointerMovedEvent_send_event(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 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3g7kzg01.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XPointerMovedEvent_send_event(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 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplll6duvh.c'
source_filename = "/tmp/tmplll6duvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @orgfx_cliprect(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
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
%9 = call i32 @orgfx_wait(i32 noundef 4)
%10 = load i32, ptr %5, align 4
store volatile i32 %10, ptr inttoptr (i64 3087007860 to ptr), align 4
%11 = load i32, ptr %6, align 4
store volatile i32 %11, ptr inttoptr (i64 3087007864 to ptr), align 4
%12 = load i32, ptr %7, align 4
store volatile i32 %12, ptr inttoptr (i64 3087007868 to ptr), align 4
%13 = load i32, ptr %8, align 4
store volatile i32 %13, ptr inttoptr (i64 3087007872 to ptr), align 4
ret void
}
declare i32 @orgfx_wait(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/tmplll6duvh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @orgfx_cliprect(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
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
%9 = call i32 @orgfx_wait(i32 noundef 4)
%10 = load i32, ptr %5, align 4
store volatile i32 %10, ptr inttoptr (i64 3087007860 to ptr), align 4
%11 = load i32, ptr %6, align 4
store volatile i32 %11, ptr inttoptr (i64 3087007864 to ptr), align 4
%12 = load i32, ptr %7, align 4
store volatile i32 %12, ptr inttoptr (i64 3087007868 to ptr), align 4
%13 = load i32, ptr %8, align 4
store volatile i32 %13, ptr inttoptr (i64 3087007872 to ptr), align 4
ret void
}
declare i32 @orgfx_wait(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/tmptg3u6xdn.c'
source_filename = "/tmp/tmptg3u6xdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XYtoIndex(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i32 (...) @GetPindex()
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = mul nsw i32 19, %9
%11 = add nsw i32 %8, %10
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
%14 = sub nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %6, align 4
ret i32 %22
}
declare i32 @GetPindex(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptg3u6xdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @XYtoIndex(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call i32 (...) @GetPindex()
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = mul nsw i32 19, %9
%11 = add nsw i32 %8, %10
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %11, %12
%14 = sub nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %6, align 4
ret i32 %22
}
declare i32 @GetPindex(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbouh9jax.c'
source_filename = "/tmp/tmpbouh9jax.c"
target datalayout = "e-m:e-p270: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/tmpbouh9jax.c"
target datalayout = "e-m:e-p270: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/tmpijjt_ers.c'
source_filename = "/tmp/tmpijjt_ers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @relat() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @shift()
store i32 %4, ptr %1, align 4
br label %5
5: ; preds = %31, %0
%6 = call i32 (...) @getrel()
store i32 %6, ptr %3, align 4
%7 = icmp ne i32 %6, -1
br i1 %7, label %8, label %32
8: ; preds = %5
%9 = call i32 (...) @shift()
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %3, align 4
switch i32 %10, label %31 [
i32 3, label %11
i32 2, label %16
i32 4, label %21
i32 5, label %26
]
11: ; preds = %8
%12 = load i32, ptr %1, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %12, %13
%15 = zext i1 %14 to i32
store i32 %15, ptr %1, align 4
br label %31
16: ; preds = %8
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %17, %18
%20 = zext i1 %19 to i32
store i32 %20, ptr %1, align 4
br label %31
21: ; preds = %8
%22 = load i32, ptr %1, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %22, %23
%25 = zext i1 %24 to i32
store i32 %25, ptr %1, align 4
br label %31
26: ; preds = %8
%27 = load i32, ptr %1, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp sge i32 %27, %28
%30 = zext i1 %29 to i32
store i32 %30, ptr %1, align 4
br label %31
31: ; preds = %8, %26, %21, %16, %11
br label %5, !llvm.loop !6
32: ; preds = %5
%33 = load i32, ptr %1, align 4
ret i32 %33
}
declare i32 @shift(...) #1
declare i32 @getrel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpijjt_ers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @relat() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @shift()
store i32 %4, ptr %1, align 4
%5 = call i32 (...) @getrel()
store i32 %5, ptr %3, align 4
%6 = icmp ne i32 %5, -1
br i1 %6, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %30
%8 = call i32 (...) @shift()
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %3, align 4
switch i32 %9, label %30 [
i32 3, label %10
i32 2, label %15
i32 4, label %20
i32 5, label %25
]
10: ; preds = %7
%11 = load i32, ptr %1, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %11, %12
%14 = zext i1 %13 to i32
store i32 %14, ptr %1, align 4
br label %30
15: ; preds = %7
%16 = load i32, ptr %1, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
%19 = zext i1 %18 to i32
store i32 %19, ptr %1, align 4
br label %30
20: ; preds = %7
%21 = load i32, ptr %1, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %21, %22
%24 = zext i1 %23 to i32
store i32 %24, ptr %1, align 4
br label %30
25: ; preds = %7
%26 = load i32, ptr %1, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sge i32 %26, %27
%29 = zext i1 %28 to i32
store i32 %29, ptr %1, align 4
br label %30
30: ; preds = %25, %20, %15, %10, %7
%31 = call i32 (...) @getrel()
store i32 %31, ptr %3, align 4
%32 = icmp ne i32 %31, -1
br i1 %32, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %33
33: ; preds = %._crit_edge, %0
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @shift(...) #1
declare i32 @getrel(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyd_73hbq.c'
source_filename = "/tmp/tmpyd_73hbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehrpwm_pwm_start(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, 1
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %2, align 4
%10 = call zeroext i16 @ehrpwm_read(i32 noundef %9, i32 noundef 0)
store i16 %10, ptr %3, align 2
%11 = load i16, ptr %3, align 2
%12 = zext i16 %11 to i32
%13 = and i32 %12, -4
%14 = or i32 %13, 32768
%15 = trunc i32 %14 to i16
store i16 %15, ptr %3, align 2
%16 = load i32, ptr %2, align 4
%17 = load i16, ptr %3, align 2
%18 = call i32 @ehrpwm_write(i32 noundef %16, i32 noundef 0, i16 noundef zeroext %17)
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @ehrpwm_tz_set_action(i32 noundef %19, i32 noundef %20, i32 noundef 3)
%22 = load i32, ptr %2, align 4
%23 = call zeroext i16 @ehrpwm_read(i32 noundef %22, i32 noundef 44)
store i16 %23, ptr %4, align 2
%24 = load i32, ptr %2, align 4
%25 = call zeroext i16 @ehrpwm_read(i32 noundef %24, i32 noundef 40)
store i16 %25, ptr %5, align 2
%26 = load i16, ptr %5, align 2
%27 = zext i16 %26 to i32
%28 = load i32, ptr %6, align 4
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 3, i32 12
%32 = and i32 %27, %31
%33 = trunc i32 %32 to i16
store i16 %33, ptr %5, align 2
%34 = load i32, ptr %6, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %1
%37 = load i16, ptr %5, align 2
%38 = zext i16 %37 to i32
br label %43
39: ; preds = %1
%40 = load i16, ptr %5, align 2
%41 = zext i16 %40 to i32
%42 = ashr i32 %41, 2
br label %43
43: ; preds = %39, %36
%44 = phi i32 [ %38, %36 ], [ %42, %39 ]
%45 = trunc i32 %44 to i16
store i16 %45, ptr %5, align 2
%46 = load i16, ptr %4, align 2
%47 = zext i16 %46 to i32
%48 = and i32 %47, 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %43
%51 = load i16, ptr %5, align 2
%52 = zext i16 %51 to i32
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %57
54: ; preds = %50, %43
%55 = load i32, ptr %2, align 4
%56 = call i32 @ehrpwm_tz_clr_evt_status(i32 noundef %55)
br label %57
57: ; preds = %54, %50
ret i32 0
}
declare zeroext i16 @ehrpwm_read(i32 noundef, i32 noundef) #1
declare i32 @ehrpwm_write(i32 noundef, i32 noundef, i16 noundef zeroext) #1
declare i32 @ehrpwm_tz_set_action(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ehrpwm_tz_clr_evt_status(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/tmpyd_73hbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehrpwm_pwm_start(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i16, align 2
%4 = alloca i16, align 2
%5 = alloca i16, align 2
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = and i32 %7, 1
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %2, align 4
%10 = call zeroext i16 @ehrpwm_read(i32 noundef %9, i32 noundef 0)
store i16 %10, ptr %3, align 2
%11 = load i16, ptr %3, align 2
%12 = zext i16 %11 to i32
%13 = and i32 %12, -4
%14 = or i32 %13, 32768
%15 = trunc i32 %14 to i16
store i16 %15, ptr %3, align 2
%16 = load i32, ptr %2, align 4
%17 = load i16, ptr %3, align 2
%18 = call i32 @ehrpwm_write(i32 noundef %16, i32 noundef 0, i16 noundef zeroext %17)
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @ehrpwm_tz_set_action(i32 noundef %19, i32 noundef %20, i32 noundef 3)
%22 = load i32, ptr %2, align 4
%23 = call zeroext i16 @ehrpwm_read(i32 noundef %22, i32 noundef 44)
store i16 %23, ptr %4, align 2
%24 = load i32, ptr %2, align 4
%25 = call zeroext i16 @ehrpwm_read(i32 noundef %24, i32 noundef 40)
store i16 %25, ptr %5, align 2
%26 = load i16, ptr %5, align 2
%27 = zext i16 %26 to i32
%28 = load i32, ptr %6, align 4
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i64
%31 = select i1 %29, i32 3, i32 12
%32 = and i32 %27, %31
%33 = trunc i32 %32 to i16
store i16 %33, ptr %5, align 2
%34 = load i32, ptr %6, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %1
%37 = load i16, ptr %5, align 2
%38 = zext i16 %37 to i32
br label %43
39: ; preds = %1
%40 = load i16, ptr %5, align 2
%41 = zext i16 %40 to i32
%42 = ashr i32 %41, 2
br label %43
43: ; preds = %39, %36
%44 = phi i32 [ %38, %36 ], [ %42, %39 ]
%45 = trunc i32 %44 to i16
store i16 %45, ptr %5, align 2
%46 = load i16, ptr %4, align 2
%47 = zext i16 %46 to i32
%48 = and i32 %47, 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %43
%51 = load i16, ptr %5, align 2
%52 = zext i16 %51 to i32
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %57
54: ; preds = %50, %43
%55 = load i32, ptr %2, align 4
%56 = call i32 @ehrpwm_tz_clr_evt_status(i32 noundef %55)
br label %57
57: ; preds = %54, %50
ret i32 0
}
declare zeroext i16 @ehrpwm_read(i32 noundef, i32 noundef) #1
declare i32 @ehrpwm_write(i32 noundef, i32 noundef, i16 noundef zeroext) #1
declare i32 @ehrpwm_tz_set_action(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @ehrpwm_tz_clr_evt_status(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/tmpixjt0v0f.c'
source_filename = "/tmp/tmpixjt0v0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x6e() #0 {
%1 = call i64 @iscntrl(i32 noundef 110)
%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 555, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpixjt0v0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x6e() #0 {
%1 = call i64 @iscntrl(i32 noundef 110)
%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 555, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp3ixaugdc.c'
source_filename = "/tmp/tmp3ixaugdc.c"
target datalayout = "e-m:e-p270: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/tmp3ixaugdc.c"
target datalayout = "e-m:e-p270: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/tmpid0vl9cq.c'
source_filename = "/tmp/tmpid0vl9cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TexParameterfv(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glTexParameterfv(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret void
}
declare i32 @glTexParameterfv(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpid0vl9cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TexParameterfv(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @glTexParameterfv(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret void
}
declare i32 @glTexParameterfv(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwaf48p9a.c'
source_filename = "/tmp/tmpwaf48p9a.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i32, i32 }
@Redraw.roygbiv_image = internal global [8 x [3 x %struct.TYPE_3__]] [[3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 63, i32 0, i32 63 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 127, i32 0, i32 127 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 191, i32 0, i32 191 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 0, i32 0, i32 255 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 0, i32 255, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 255, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 127, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 0, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer]], 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_TEXTURE_1D = dso_local global i32 0, align 4
@GL_TEXTURE_MAG_FILTER = dso_local global i32 0, align 4
@GL_LINEAR = dso_local global i32 0, align 4
@GL_TEXTURE_MIN_FILTER = dso_local global i32 0, align 4
@GL_RGB = dso_local global i32 0, align 4
@GL_UNSIGNED_BYTE = dso_local global i32 0, align 4
@GL_TEXTURE_ENV = dso_local global i32 0, align 4
@GL_TEXTURE_ENV_MODE = dso_local global i32 0, align 4
@GL_DECAL = dso_local global i32 0, align 4
@GL_DEPTH_TEST = dso_local global i32 0, align 4
@GL_LEQUAL = dso_local global i32 0, align 4
@GL_POLYGON = dso_local global i32 0, align 4
@GL_QUAD_STRIP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Redraw() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = call i32 @glClearColor(double noundef 5.000000e-01, double noundef 5.000000e-01, double noundef 1.000000e+00, double noundef 1.000000e+00)
%6 = load i32, ptr @GL_COLOR_BUFFER_BIT, align 4
%7 = load i32, ptr @GL_DEPTH_BUFFER_BIT, align 4
%8 = or i32 %6, %7
%9 = call i32 @glClear(i32 noundef %8)
%10 = load i32, ptr @GL_TEXTURE_1D, align 4
%11 = load i32, ptr @GL_TEXTURE_MAG_FILTER, align 4
%12 = load i32, ptr @GL_LINEAR, align 4
%13 = call i32 @glTexParameteri(i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @GL_TEXTURE_1D, align 4
%15 = load i32, ptr @GL_TEXTURE_MIN_FILTER, align 4
%16 = load i32, ptr @GL_LINEAR, align 4
%17 = call i32 @glTexParameteri(i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr @GL_TEXTURE_1D, align 4
%19 = load i32, ptr @GL_RGB, align 4
%20 = load i32, ptr @GL_UNSIGNED_BYTE, align 4
%21 = call i32 @glTexImage1D(i32 noundef %18, i32 noundef 0, i32 noundef 3, i32 noundef 8, i32 noundef 0, i32 noundef %19, i32 noundef %20, ptr noundef @Redraw.roygbiv_image)
%22 = load i32, ptr @GL_TEXTURE_ENV, align 4
%23 = load i32, ptr @GL_TEXTURE_ENV_MODE, align 4
%24 = load i32, ptr @GL_DECAL, align 4
%25 = call i32 @glTexEnvi(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr @GL_TEXTURE_1D, align 4
%27 = call i32 @glDisable(i32 noundef %26)
%28 = load i32, ptr @GL_DEPTH_TEST, align 4
%29 = call i32 @glEnable(i32 noundef %28)
%30 = load i32, ptr @GL_LEQUAL, align 4
%31 = call i32 @glDepthFunc(i32 noundef %30)
%32 = call i32 (...) @glPushMatrix()
%33 = call i32 @glRotatef(double noundef 1.000000e+01, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
%34 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef -4.000000e+01, double noundef -1.000000e+02)
%35 = call i32 @glColor3f(double noundef 0.000000e+00, double noundef 8.000000e-01, double noundef 0.000000e+00)
%36 = load i32, ptr @GL_POLYGON, align 4
%37 = call i32 @glBegin(i32 noundef %36)
store double 0.000000e+00, ptr %4, align 8
br label %38
38: ; preds = %51, %0
%39 = load double, ptr %4, align 8
%40 = fcmp olt double %39, 0x401921FB53A678D9
br i1 %40, label %41, label %54
41: ; preds = %38
%42 = load double, ptr %4, align 8
%43 = call double @cos(double noundef %42) #3
%44 = fmul double %43, 2.000000e+02
store double %44, ptr %1, align 8
%45 = load double, ptr %4, align 8
%46 = call double @sin(double noundef %45) #3
%47 = fmul double %46, 2.000000e+02
store double %47, ptr %3, align 8
%48 = load double, ptr %1, align 8
%49 = load double, ptr %3, align 8
%50 = call i32 @glVertex3f(double noundef %48, double noundef 0.000000e+00, double noundef %49)
br label %51
51: ; preds = %41
%52 = load double, ptr %4, align 8
%53 = fadd double %52, 0x3FB921FB53A678D9
store double %53, ptr %4, align 8
br label %38, !llvm.loop !6
54: ; preds = %38
%55 = call i32 (...) @glEnd()
%56 = load i32, ptr @GL_TEXTURE_1D, align 4
%57 = call i32 @glEnable(i32 noundef %56)
%58 = load i32, ptr @GL_QUAD_STRIP, align 4
%59 = call i32 @glBegin(i32 noundef %58)
store double 0.000000e+00, ptr %4, align 8
br label %60
60: ; preds = %86, %54
%61 = load double, ptr %4, align 8
%62 = fcmp ole double %61, 0x400921FB53A678D9
br i1 %62, label %63, label %89
63: ; preds = %60
%64 = load double, ptr %4, align 8
%65 = call double @cos(double noundef %64) #3
%66 = fmul double %65, 5.000000e+01
store double %66, ptr %1, align 8
%67 = load double, ptr %4, align 8
%68 = call double @sin(double noundef %67) #3
%69 = fmul double %68, 5.000000e+01
store double %69, ptr %2, align 8
store double -5.000000e+01, ptr %3, align 8
%70 = call i32 @glTexCoord1f(double noundef 0.000000e+00)
%71 = load double, ptr %1, align 8
%72 = load double, ptr %2, align 8
%73 = load double, ptr %3, align 8
%74 = call i32 @glVertex3f(double noundef %71, double noundef %72, double noundef %73)
%75 = load double, ptr %4, align 8
%76 = call double @cos(double noundef %75) #3
%77 = fmul double %76, 5.500000e+01
store double %77, ptr %1, align 8
%78 = load double, ptr %4, align 8
%79 = call double @sin(double noundef %78) #3
%80 = fmul double %79, 5.500000e+01
store double %80, ptr %2, align 8
store double -5.000000e+01, ptr %3, align 8
%81 = call i32 @glTexCoord1f(double noundef 1.000000e+00)
%82 = load double, ptr %1, align 8
%83 = load double, ptr %2, align 8
%84 = load double, ptr %3, align 8
%85 = call i32 @glVertex3f(double noundef %82, double noundef %83, double noundef %84)
br label %86
86: ; preds = %63
%87 = load double, ptr %4, align 8
%88 = fadd double %87, 0x3FB921FB53A678D9
store double %88, ptr %4, align 8
br label %60, !llvm.loop !8
89: ; preds = %60
%90 = call i32 (...) @glEnd()
%91 = call i32 (...) @glPopMatrix()
%92 = call i32 (...) @glFinish()
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glClear(i32 noundef) #1
declare i32 @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glTexImage1D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glDisable(i32 noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glDepthFunc(i32 noundef) #1
declare i32 @glPushMatrix(...) #1
declare i32 @glRotatef(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
declare i32 @glColor3f(double noundef, double noundef, double noundef) #1
declare i32 @glBegin(i32 noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
declare i32 @glVertex3f(double noundef, double noundef, double noundef) #1
declare i32 @glEnd(...) #1
declare i32 @glTexCoord1f(double noundef) #1
declare i32 @glPopMatrix(...) #1
declare i32 @glFinish(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwaf48p9a.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i32, i32 }
@Redraw.roygbiv_image = internal global [8 x [3 x %struct.TYPE_3__]] [[3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 63, i32 0, i32 63 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 127, i32 0, i32 127 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 191, i32 0, i32 191 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 0, i32 0, i32 255 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 0, i32 255, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 255, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 127, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer], [3 x %struct.TYPE_3__] [%struct.TYPE_3__ { i32 255, i32 0, i32 0 }, %struct.TYPE_3__ zeroinitializer, %struct.TYPE_3__ zeroinitializer]], 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_TEXTURE_1D = dso_local global i32 0, align 4
@GL_TEXTURE_MAG_FILTER = dso_local global i32 0, align 4
@GL_LINEAR = dso_local global i32 0, align 4
@GL_TEXTURE_MIN_FILTER = dso_local global i32 0, align 4
@GL_RGB = dso_local global i32 0, align 4
@GL_UNSIGNED_BYTE = dso_local global i32 0, align 4
@GL_TEXTURE_ENV = dso_local global i32 0, align 4
@GL_TEXTURE_ENV_MODE = dso_local global i32 0, align 4
@GL_DECAL = dso_local global i32 0, align 4
@GL_DEPTH_TEST = dso_local global i32 0, align 4
@GL_LEQUAL = dso_local global i32 0, align 4
@GL_POLYGON = dso_local global i32 0, align 4
@GL_QUAD_STRIP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Redraw() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = call i32 @glClearColor(double noundef 5.000000e-01, double noundef 5.000000e-01, double noundef 1.000000e+00, double noundef 1.000000e+00)
%6 = load i32, ptr @GL_COLOR_BUFFER_BIT, align 4
%7 = load i32, ptr @GL_DEPTH_BUFFER_BIT, align 4
%8 = or i32 %6, %7
%9 = call i32 @glClear(i32 noundef %8)
%10 = load i32, ptr @GL_TEXTURE_1D, align 4
%11 = load i32, ptr @GL_TEXTURE_MAG_FILTER, align 4
%12 = load i32, ptr @GL_LINEAR, align 4
%13 = call i32 @glTexParameteri(i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr @GL_TEXTURE_1D, align 4
%15 = load i32, ptr @GL_TEXTURE_MIN_FILTER, align 4
%16 = load i32, ptr @GL_LINEAR, align 4
%17 = call i32 @glTexParameteri(i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr @GL_TEXTURE_1D, align 4
%19 = load i32, ptr @GL_RGB, align 4
%20 = load i32, ptr @GL_UNSIGNED_BYTE, align 4
%21 = call i32 @glTexImage1D(i32 noundef %18, i32 noundef 0, i32 noundef 3, i32 noundef 8, i32 noundef 0, i32 noundef %19, i32 noundef %20, ptr noundef @Redraw.roygbiv_image)
%22 = load i32, ptr @GL_TEXTURE_ENV, align 4
%23 = load i32, ptr @GL_TEXTURE_ENV_MODE, align 4
%24 = load i32, ptr @GL_DECAL, align 4
%25 = call i32 @glTexEnvi(i32 noundef %22, i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr @GL_TEXTURE_1D, align 4
%27 = call i32 @glDisable(i32 noundef %26)
%28 = load i32, ptr @GL_DEPTH_TEST, align 4
%29 = call i32 @glEnable(i32 noundef %28)
%30 = load i32, ptr @GL_LEQUAL, align 4
%31 = call i32 @glDepthFunc(i32 noundef %30)
%32 = call i32 (...) @glPushMatrix()
%33 = call i32 @glRotatef(double noundef 1.000000e+01, double noundef 0.000000e+00, double noundef 1.000000e+00, double noundef 0.000000e+00)
%34 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef -4.000000e+01, double noundef -1.000000e+02)
%35 = call i32 @glColor3f(double noundef 0.000000e+00, double noundef 8.000000e-01, double noundef 0.000000e+00)
%36 = load i32, ptr @GL_POLYGON, align 4
%37 = call i32 @glBegin(i32 noundef %36)
store double 0.000000e+00, ptr %4, align 8
%38 = load double, ptr %4, align 8
%39 = fcmp olt double %38, 0x401921FB53A678D9
br i1 %39, label %.lr.ph, label %55
.lr.ph: ; preds = %0
br label %40
40: ; preds = %.lr.ph, %50
%41 = load double, ptr %4, align 8
%42 = call double @cos(double noundef %41) #3
%43 = fmul double %42, 2.000000e+02
store double %43, ptr %1, align 8
%44 = load double, ptr %4, align 8
%45 = call double @sin(double noundef %44) #3
%46 = fmul double %45, 2.000000e+02
store double %46, ptr %3, align 8
%47 = load double, ptr %1, align 8
%48 = load double, ptr %3, align 8
%49 = call i32 @glVertex3f(double noundef %47, double noundef 0.000000e+00, double noundef %48)
br label %50
50: ; preds = %40
%51 = load double, ptr %4, align 8
%52 = fadd double %51, 0x3FB921FB53A678D9
store double %52, ptr %4, align 8
%53 = load double, ptr %4, align 8
%54 = fcmp olt double %53, 0x401921FB53A678D9
br i1 %54, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %0
%56 = call i32 (...) @glEnd()
%57 = load i32, ptr @GL_TEXTURE_1D, align 4
%58 = call i32 @glEnable(i32 noundef %57)
%59 = load i32, ptr @GL_QUAD_STRIP, align 4
%60 = call i32 @glBegin(i32 noundef %59)
store double 0.000000e+00, ptr %4, align 8
%61 = load double, ptr %4, align 8
%62 = fcmp ole double %61, 0x400921FB53A678D9
br i1 %62, label %.lr.ph2, label %91
.lr.ph2: ; preds = %55
br label %63
63: ; preds = %.lr.ph2, %86
%64 = load double, ptr %4, align 8
%65 = call double @cos(double noundef %64) #3
%66 = fmul double %65, 5.000000e+01
store double %66, ptr %1, align 8
%67 = load double, ptr %4, align 8
%68 = call double @sin(double noundef %67) #3
%69 = fmul double %68, 5.000000e+01
store double %69, ptr %2, align 8
store double -5.000000e+01, ptr %3, align 8
%70 = call i32 @glTexCoord1f(double noundef 0.000000e+00)
%71 = load double, ptr %1, align 8
%72 = load double, ptr %2, align 8
%73 = load double, ptr %3, align 8
%74 = call i32 @glVertex3f(double noundef %71, double noundef %72, double noundef %73)
%75 = load double, ptr %4, align 8
%76 = call double @cos(double noundef %75) #3
%77 = fmul double %76, 5.500000e+01
store double %77, ptr %1, align 8
%78 = load double, ptr %4, align 8
%79 = call double @sin(double noundef %78) #3
%80 = fmul double %79, 5.500000e+01
store double %80, ptr %2, align 8
store double -5.000000e+01, ptr %3, align 8
%81 = call i32 @glTexCoord1f(double noundef 1.000000e+00)
%82 = load double, ptr %1, align 8
%83 = load double, ptr %2, align 8
%84 = load double, ptr %3, align 8
%85 = call i32 @glVertex3f(double noundef %82, double noundef %83, double noundef %84)
br label %86
86: ; preds = %63
%87 = load double, ptr %4, align 8
%88 = fadd double %87, 0x3FB921FB53A678D9
store double %88, ptr %4, align 8
%89 = load double, ptr %4, align 8
%90 = fcmp ole double %89, 0x400921FB53A678D9
br i1 %90, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %91
91: ; preds = %._crit_edge3, %55
%92 = call i32 (...) @glEnd()
%93 = call i32 (...) @glPopMatrix()
%94 = call i32 (...) @glFinish()
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glClear(i32 noundef) #1
declare i32 @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glTexImage1D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glDisable(i32 noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glDepthFunc(i32 noundef) #1
declare i32 @glPushMatrix(...) #1
declare i32 @glRotatef(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
declare i32 @glColor3f(double noundef, double noundef, double noundef) #1
declare i32 @glBegin(i32 noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #2
declare i32 @glVertex3f(double noundef, double noundef, double noundef) #1
declare i32 @glEnd(...) #1
declare i32 @glTexCoord1f(double noundef) #1
declare i32 @glPopMatrix(...) #1
declare i32 @glFinish(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5j77pl7w.c'
source_filename = "/tmp/tmp5j77pl7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brev_store_elimination_test2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 100, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @__builtin_brev_ldw(ptr noundef %6, ptr noundef %5, i32 noundef %7)
%9 = load i32, ptr %5, align 4
%10 = call i32 @add(i32 noundef %9)
ret i32 %10
}
declare i32 @__builtin_brev_ldw(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @add(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/tmp5j77pl7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brev_store_elimination_test2(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 100, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @__builtin_brev_ldw(ptr noundef %6, ptr noundef %5, i32 noundef %7)
%9 = load i32, ptr %5, align 4
%10 = call i32 @add(i32 noundef %9)
ret i32 %10
}
declare i32 @__builtin_brev_ldw(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @add(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/tmp4vtgnyt8.c'
source_filename = "/tmp/tmp4vtgnyt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"%d %d %f %f %f %f %f\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"parse error.\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d %f (size,bw)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [256 x i8], align 16
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
store i32 0, ptr %7, align 4
store float 0.000000e+00, ptr %12, align 4
store i32 0, ptr %15, align 4
br label %17
17: ; preds = %2, %42
store float 0.000000e+00, ptr %13, align 4
store i32 0, ptr %14, align 4
br label %18
18: ; preds = %39, %17
%19 = load i32, ptr %14, align 4
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %42
21: ; preds = %18
%22 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%23 = load i32, ptr @stdin, align 4
%24 = call ptr @fgets(ptr noundef %22, i32 noundef 254, i32 noundef %23)
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %21
store i32 0, ptr %3, align 4
br label %50
27: ; preds = %21
%28 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%29 = call i32 @sscanf(ptr noundef %28, ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
store i32 %29, ptr %15, align 4
%30 = load float, ptr %12, align 4
%31 = load float, ptr %13, align 4
%32 = fadd float %31, %30
store float %32, ptr %13, align 4
%33 = load i32, ptr %15, align 4
%34 = icmp slt i32 %33, 7
br i1 %34, label %35, label %38
35: ; preds = %27
%36 = load i32, ptr @stderr, align 4
%37 = call i32 @fprintf(i32 noundef %36, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %50
38: ; preds = %27
br label %39
39: ; preds = %38
%40 = load i32, ptr %14, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %14, align 4
br label %18, !llvm.loop !6
42: ; preds = %18
%43 = load float, ptr %13, align 4
%44 = fpext float %43 to double
%45 = fdiv double %44, 5.000000e+00
%46 = fptrunc double %45 to float
store float %46, ptr %13, align 4
%47 = load i32, ptr %6, align 4
%48 = load float, ptr %13, align 4
%49 = call i32 @printf(ptr noundef @.str.2, i32 noundef %47, float noundef %48)
br label %17
50: ; preds = %35, %26
%51 = load i32, ptr %3, align 4
ret i32 %51
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4vtgnyt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"%d %d %f %f %f %f %f\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"parse error.\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d %f (size,bw)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [256 x i8], align 16
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
store i32 0, ptr %7, align 4
store float 0.000000e+00, ptr %12, align 4
store i32 0, ptr %15, align 4
br label %17
17: ; preds = %43, %2
store float 0.000000e+00, ptr %13, align 4
store i32 0, ptr %14, align 4
%18 = load i32, ptr %14, align 4
%19 = icmp slt i32 %18, 5
br i1 %19, label %.lr.ph, label %43
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %38
%21 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%22 = load i32, ptr @stdin, align 4
%23 = call ptr @fgets(ptr noundef %21, i32 noundef 254, i32 noundef %22)
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %26
25: ; preds = %20
store i32 0, ptr %3, align 4
br label %51
26: ; preds = %20
%27 = getelementptr inbounds [256 x i8], ptr %16, i64 0, i64 0
%28 = call i32 @sscanf(ptr noundef %27, ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
store i32 %28, ptr %15, align 4
%29 = load float, ptr %12, align 4
%30 = load float, ptr %13, align 4
%31 = fadd float %30, %29
store float %31, ptr %13, align 4
%32 = load i32, ptr %15, align 4
%33 = icmp slt i32 %32, 7
br i1 %33, label %34, label %37
34: ; preds = %26
%35 = load i32, ptr @stderr, align 4
%36 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %51
37: ; preds = %26
br label %38
38: ; preds = %37
%39 = load i32, ptr %14, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %14, align 4
%41 = load i32, ptr %14, align 4
%42 = icmp slt i32 %41, 5
br i1 %42, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %43
43: ; preds = %._crit_edge, %17
%44 = load float, ptr %13, align 4
%45 = fpext float %44 to double
%46 = fdiv double %45, 5.000000e+00
%47 = fptrunc double %46 to float
store float %47, ptr %13, align 4
%48 = load i32, ptr %6, align 4
%49 = load float, ptr %13, align 4
%50 = call i32 @printf(ptr noundef @.str.2, i32 noundef %48, float noundef %49)
br label %17
51: ; preds = %34, %25
%52 = load i32, ptr %3, align 4
ret i32 %52
}
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpipl73l0z.c'
source_filename = "/tmp/tmpipl73l0z.c"
target datalayout = "e-m:e-p270: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.send_keepalive.msg = private unnamed_addr constant [4 x i8] c"\FE\0B\00\FD", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_keepalive(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.send_keepalive.msg, i64 4, i1 false)
%4 = load i32, ptr %2, align 4
%5 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @write(i32 noundef %4, ptr noundef %5, i32 noundef 4)
%7 = icmp ne i32 %6, 4
%8 = zext i1 %7 to i32
ret i32 %8
}
; 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 @write(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpipl73l0z.c"
target datalayout = "e-m:e-p270: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.send_keepalive.msg = private unnamed_addr constant [4 x i8] c"\FE\0B\00\FD", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_keepalive(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [4 x i8], align 1
store i32 %0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.send_keepalive.msg, i64 4, i1 false)
%4 = load i32, ptr %2, align 4
%5 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @write(i32 noundef %4, ptr noundef %5, i32 noundef 4)
%7 = icmp ne i32 %6, 4
%8 = zext i1 %7 to i32
ret i32 %8
}
; 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 @write(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeh9hm1p0.c'
source_filename = "/tmp/tmpeh9hm1p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"cp %s %s\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Success Source: %s Destination: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Invalid Command\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 [50 x i8], align 16
%7 = 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
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %32
10: ; preds = %2
%11 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str, ptr noundef %14, ptr noundef %17)
%19 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @system(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %10
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26, ptr noundef %29)
br label %31
31: ; preds = %23, %10
br label %34
32: ; preds = %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %34
34: ; preds = %32, %31
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeh9hm1p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"cp %s %s\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Success Source: %s Destination: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Invalid Command\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 [50 x i8], align 16
%7 = 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
%8 = load i32, ptr %4, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %32
10: ; preds = %2
%11 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str, ptr noundef %14, ptr noundef %17)
%19 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @system(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %10
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %26, ptr noundef %29)
br label %31
31: ; preds = %23, %10
br label %34
32: ; preds = %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %34
34: ; preds = %32, %31
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @system(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"}
|
; ModuleID = '/tmp/tmpsbfh8w6v.c'
source_filename = "/tmp/tmpsbfh8w6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utest_adts_time() #0 {
%1 = call i32 (...) @utest_control()
ret void
}
declare i32 @utest_control(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsbfh8w6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utest_adts_time() #0 {
%1 = call i32 (...) @utest_control()
ret void
}
declare i32 @utest_control(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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__wuzcav.c'
source_filename = "/tmp/tmp__wuzcav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @compiletime_check_equals_1(ptr noundef %3, i32 noundef 5)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @compiletime_check_equals_2(ptr noundef %5, i32 noundef 10)
ret void
}
declare i32 @compiletime_check_equals_1(ptr noundef, i32 noundef) #1
declare i32 @compiletime_check_equals_2(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/tmp__wuzcav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @compiletime_check_equals_1(ptr noundef %3, i32 noundef 5)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @compiletime_check_equals_2(ptr noundef %5, i32 noundef 10)
ret void
}
declare i32 @compiletime_check_equals_1(ptr noundef, i32 noundef) #1
declare i32 @compiletime_check_equals_2(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/tmppusdxf00.c'
source_filename = "/tmp/tmppusdxf00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"usage: %s [flags] [-s server[,server]* -x command args*]*\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c"-i inhibit relaying of downstream inform messages\0A\00", align 1
@.str.3 = private unnamed_addr constant [54 x i8] c"-l label assign log messages a given label\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"-m munge replies into log messages\0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"-n suppress relaying of downstream version information\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"-q run quietly\0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c"-s server:port specify server:port\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"-t timeout set timeout (in ms)\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"-v increase verbosity\0A\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"return codes:\0A\00", align 1
@.str.11 = private unnamed_addr constant [38 x i8] c"0 command completed successfully\0A\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"1 command failed\0A\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"2 usage problems\0A\00", align 1
@.str.14 = private unnamed_addr constant [24 x i8] c"3 network problems\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"4 severe internal errors\0A\00", align 1
@.str.16 = private unnamed_addr constant [24 x i8] c"environment variables:\0A\00", align 1
@.str.17 = private unnamed_addr constant [61 x i8] c" KATCP_SERVER default server (overridden by -s option)\0A\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c"notes:\0A\00", align 1
@.str.19 = private unnamed_addr constant [65 x i8] c" command and parameters have to be given as separate arguments\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
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/tmppusdxf00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"usage: %s [flags] [-s server[,server]* -x command args*]*\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"-h this help\0A\00", align 1
@.str.2 = private unnamed_addr constant [67 x i8] c"-i inhibit relaying of downstream inform messages\0A\00", align 1
@.str.3 = private unnamed_addr constant [54 x i8] c"-l label assign log messages a given label\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"-m munge replies into log messages\0A\00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"-n suppress relaying of downstream version information\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"-q run quietly\0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c"-s server:port specify server:port\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"-t timeout set timeout (in ms)\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"-v increase verbosity\0A\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"return codes:\0A\00", align 1
@.str.11 = private unnamed_addr constant [38 x i8] c"0 command completed successfully\0A\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"1 command failed\0A\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"2 usage problems\0A\00", align 1
@.str.14 = private unnamed_addr constant [24 x i8] c"3 network problems\0A\00", align 1
@.str.15 = private unnamed_addr constant [30 x i8] c"4 severe internal errors\0A\00", align 1
@.str.16 = private unnamed_addr constant [24 x i8] c"environment variables:\0A\00", align 1
@.str.17 = private unnamed_addr constant [61 x i8] c" KATCP_SERVER default server (overridden by -s option)\0A\00", align 1
@.str.18 = private unnamed_addr constant [8 x i8] c"notes:\0A\00", align 1
@.str.19 = private unnamed_addr constant [65 x i8] c" command and parameters have to be given as separate arguments\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
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/tmp5k7g_5zp.c'
source_filename = "/tmp/tmp5k7g_5zp.c"
target datalayout = "e-m:e-p270: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/tmp5k7g_5zp.c"
target datalayout = "e-m:e-p270: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/tmpk23qe8b4.c'
source_filename = "/tmp/tmpk23qe8b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FFI_DEFAULT_ABI = dso_local global i32 0, align 4
@FFI_BAD_TYPEDEF = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"ffi_prep_cif returned FFI_BAD_TYPEDEF: %d\0A\00", align 1
@FFI_BAD_ABI = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [39 x i8] c"ffi_prep_cif returned FFI_BAD_ABI: %d\0A\00", align 1
@FFI_OK = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [34 x i8] c"ffi_prep_cif returned FFI_OK: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"ffi_prep_cif returned an error: %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [21 x i8] c"before the ffi call\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"after the ffi call\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ffi_callX(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %14, align 8
%22 = alloca ptr, i64 %20, align 16
store i64 %20, ptr %15, align 8
store i32 0, ptr %17, align 4
br label %23
23: ; preds = %46, %5
%24 = load i32, ptr %17, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %49
27: ; preds = %23
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %17, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call ptr @ffi_type_ctor(ptr noundef %32)
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %45
35: ; preds = %27
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %17, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call ptr @ffi_type_ctor(ptr noundef %40)
%42 = load i32, ptr %17, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %22, i64 %43
store ptr %41, ptr %44, align 8
br label %45
45: ; preds = %35, %27
br label %46
46: ; preds = %45
%47 = load i32, ptr %17, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %17, align 4
br label %23, !llvm.loop !6
49: ; preds = %23
%50 = load i32, ptr @FFI_DEFAULT_ABI, align 4
%51 = load i32, ptr %7, align 4
%52 = call i64 @ffi_prep_cif(ptr noundef %13, i32 noundef %50, i32 noundef %51, ptr noundef %9, ptr noundef %22)
store i64 %52, ptr %12, align 8
%53 = load i64, ptr %12, align 8
%54 = load i64, ptr @FFI_BAD_TYPEDEF, align 8
%55 = icmp eq i64 %53, %54
br i1 %55, label %56, label %60
56: ; preds = %49
%57 = load i32, ptr @stderr, align 4
%58 = load i64, ptr %12, align 8
%59 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %57, ptr noundef @.str, i64 noundef %58)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %92
60: ; preds = %49
%61 = load i64, ptr %12, align 8
%62 = load i64, ptr @FFI_BAD_ABI, align 8
%63 = icmp eq i64 %61, %62
br i1 %63, label %64, label %68
64: ; preds = %60
%65 = load i32, ptr @stderr, align 4
%66 = load i64, ptr %12, align 8
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %65, ptr noundef @.str.1, i64 noundef %66)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %92
68: ; preds = %60
%69 = load i64, ptr %12, align 8
%70 = load i64, ptr @FFI_OK, align 8
%71 = icmp eq i64 %69, %70
br i1 %71, label %72, label %76
72: ; preds = %68
%73 = load i32, ptr @stderr, align 4
%74 = load i64, ptr %12, align 8
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.2, i64 noundef %74)
br label %80
76: ; preds = %68
%77 = load i32, ptr @stderr, align 4
%78 = load i64, ptr %12, align 8
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.3, i64 noundef %78)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %92
80: ; preds = %72
br label %81
81: ; preds = %80
br label %82
82: ; preds = %81
%83 = load i32, ptr @stdout, align 4
%84 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %83, ptr noundef @.str.4)
%85 = load ptr, ptr %10, align 8
%86 = call i32 @FFI_FN(ptr noundef %85)
%87 = load ptr, ptr %11, align 8
%88 = call i32 @ffi_call(ptr noundef %13, i32 noundef %86, ptr noundef %16, ptr noundef %87)
%89 = load i32, ptr @stdout, align 4
%90 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef @.str.5)
%91 = load ptr, ptr %16, align 8
store ptr %91, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %92
92: ; preds = %82, %76, %64, %56
%93 = load ptr, ptr %14, align 8
call void @llvm.stackrestore(ptr %93)
%94 = load ptr, ptr %6, align 8
ret ptr %94
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @ffi_type_ctor(ptr noundef) #2
declare i64 @ffi_prep_cif(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @ffi_call(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @FFI_FN(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk23qe8b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FFI_DEFAULT_ABI = dso_local global i32 0, align 4
@FFI_BAD_TYPEDEF = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"ffi_prep_cif returned FFI_BAD_TYPEDEF: %d\0A\00", align 1
@FFI_BAD_ABI = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [39 x i8] c"ffi_prep_cif returned FFI_BAD_ABI: %d\0A\00", align 1
@FFI_OK = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [34 x i8] c"ffi_prep_cif returned FFI_OK: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"ffi_prep_cif returned an error: %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [21 x i8] c"before the ffi call\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"after the ffi call\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ffi_callX(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %14, align 8
%22 = alloca ptr, i64 %20, align 16
store i64 %20, ptr %15, align 8
store i32 0, ptr %17, align 4
%23 = load i32, ptr %17, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %51
.lr.ph: ; preds = %5
br label %26
26: ; preds = %.lr.ph, %45
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %17, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call ptr @ffi_type_ctor(ptr noundef %31)
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %44
34: ; preds = %26
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %17, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = call ptr @ffi_type_ctor(ptr noundef %39)
%41 = load i32, ptr %17, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds ptr, ptr %22, i64 %42
store ptr %40, ptr %43, align 8
br label %44
44: ; preds = %34, %26
br label %45
45: ; preds = %44
%46 = load i32, ptr %17, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %17, align 4
%48 = load i32, ptr %17, align 4
%49 = load i32, ptr %7, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %5
%52 = load i32, ptr @FFI_DEFAULT_ABI, align 4
%53 = load i32, ptr %7, align 4
%54 = call i64 @ffi_prep_cif(ptr noundef %13, i32 noundef %52, i32 noundef %53, ptr noundef %9, ptr noundef %22)
store i64 %54, ptr %12, align 8
%55 = load i64, ptr %12, align 8
%56 = load i64, ptr @FFI_BAD_TYPEDEF, align 8
%57 = icmp eq i64 %55, %56
br i1 %57, label %58, label %62
58: ; preds = %51
%59 = load i32, ptr @stderr, align 4
%60 = load i64, ptr %12, align 8
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str, i64 noundef %60)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %94
62: ; preds = %51
%63 = load i64, ptr %12, align 8
%64 = load i64, ptr @FFI_BAD_ABI, align 8
%65 = icmp eq i64 %63, %64
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = load i32, ptr @stderr, align 4
%68 = load i64, ptr %12, align 8
%69 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %67, ptr noundef @.str.1, i64 noundef %68)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %94
70: ; preds = %62
%71 = load i64, ptr %12, align 8
%72 = load i64, ptr @FFI_OK, align 8
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %78
74: ; preds = %70
%75 = load i32, ptr @stderr, align 4
%76 = load i64, ptr %12, align 8
%77 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %75, ptr noundef @.str.2, i64 noundef %76)
br label %82
78: ; preds = %70
%79 = load i32, ptr @stderr, align 4
%80 = load i64, ptr %12, align 8
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %79, ptr noundef @.str.3, i64 noundef %80)
store ptr null, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %94
82: ; preds = %74
br label %83
83: ; preds = %82
br label %84
84: ; preds = %83
%85 = load i32, ptr @stdout, align 4
%86 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %85, ptr noundef @.str.4)
%87 = load ptr, ptr %10, align 8
%88 = call i32 @FFI_FN(ptr noundef %87)
%89 = load ptr, ptr %11, align 8
%90 = call i32 @ffi_call(ptr noundef %13, i32 noundef %88, ptr noundef %16, ptr noundef %89)
%91 = load i32, ptr @stdout, align 4
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %91, ptr noundef @.str.5)
%93 = load ptr, ptr %16, align 8
store ptr %93, ptr %6, align 8
store i32 1, ptr %18, align 4
br label %94
94: ; preds = %84, %78, %66, %58
%95 = load ptr, ptr %14, align 8
call void @llvm.stackrestore(ptr %95)
%96 = load ptr, ptr %6, align 8
ret ptr %96
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare ptr @ffi_type_ctor(ptr noundef) #2
declare i64 @ffi_prep_cif(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @ffi_call(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @FFI_FN(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxtl4zksi.c'
source_filename = "/tmp/tmpxtl4zksi.c"
target datalayout = "e-m:e-p270: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/tmpxtl4zksi.c"
target datalayout = "e-m:e-p270: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/tmpvnj6urbz.c'
source_filename = "/tmp/tmpvnj6urbz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StructureTensor3D(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double %5, ptr %12, align 8
%21 = load ptr, ptr %11, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %11, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
%26 = load i32, ptr %25, align 4
%27 = mul nsw i32 %23, %26
%28 = load ptr, ptr %11, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 2
%30 = load i32, ptr %29, align 4
%31 = mul nsw i32 %27, %30
store i32 %31, ptr %13, align 4
%32 = load i32, ptr %13, align 4
%33 = call ptr @mallocf(i32 noundef %32)
store ptr %33, ptr %15, align 8
%34 = load i32, ptr %13, align 4
%35 = call ptr @mallocf(i32 noundef %34)
store ptr %35, ptr %18, align 8
%36 = load i32, ptr %13, align 4
%37 = call ptr @mallocf(i32 noundef %36)
store ptr %37, ptr %20, align 8
%38 = load i32, ptr %13, align 4
%39 = call ptr @mallocf(i32 noundef %38)
store ptr %39, ptr %16, align 8
%40 = load i32, ptr %13, align 4
%41 = call ptr @mallocf(i32 noundef %40)
store ptr %41, ptr %17, align 8
%42 = load i32, ptr %13, align 4
%43 = call ptr @mallocf(i32 noundef %42)
store ptr %43, ptr %19, align 8
store i32 0, ptr %14, align 4
br label %44
44: ; preds = %139, %6
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %13, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %142
48: ; preds = %44
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds float, ptr %49, i64 %51
%53 = load float, ptr %52, align 4
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %14, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
%58 = load float, ptr %57, align 4
%59 = fmul float %53, %58
%60 = load ptr, ptr %15, align 8
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %60, i64 %62
store float %59, ptr %63, align 4
%64 = load ptr, ptr %7, align 8
%65 = load i32, ptr %14, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds float, ptr %64, i64 %66
%68 = load float, ptr %67, align 4
%69 = load ptr, ptr %8, align 8
%70 = load i32, ptr %14, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, ptr %69, i64 %71
%73 = load float, ptr %72, align 4
%74 = fmul float %68, %73
%75 = load ptr, ptr %16, align 8
%76 = load i32, ptr %14, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %75, i64 %77
store float %74, ptr %78, align 4
%79 = load ptr, ptr %7, align 8
%80 = load i32, ptr %14, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
%83 = load float, ptr %82, align 4
%84 = load ptr, ptr %9, align 8
%85 = load i32, ptr %14, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, ptr %84, i64 %86
%88 = load float, ptr %87, align 4
%89 = fmul float %83, %88
%90 = load ptr, ptr %17, align 8
%91 = load i32, ptr %14, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %90, i64 %92
store float %89, ptr %93, align 4
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr %14, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds float, ptr %94, i64 %96
%98 = load float, ptr %97, align 4
%99 = load ptr, ptr %8, align 8
%100 = load i32, ptr %14, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = fmul float %98, %103
%105 = load ptr, ptr %18, align 8
%106 = load i32, ptr %14, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, ptr %105, i64 %107
store float %104, ptr %108, align 4
%109 = load ptr, ptr %8, align 8
%110 = load i32, ptr %14, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds float, ptr %109, i64 %111
%113 = load float, ptr %112, align 4
%114 = load ptr, ptr %9, align 8
%115 = load i32, ptr %14, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds float, ptr %114, i64 %116
%118 = load float, ptr %117, align 4
%119 = fmul float %113, %118
%120 = load ptr, ptr %19, align 8
%121 = load i32, ptr %14, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds float, ptr %120, i64 %122
store float %119, ptr %123, align 4
%124 = load ptr, ptr %9, align 8
%125 = load i32, ptr %14, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds float, ptr %124, i64 %126
%128 = load float, ptr %127, align 4
%129 = load ptr, ptr %9, align 8
%130 = load i32, ptr %14, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, ptr %129, i64 %131
%133 = load float, ptr %132, align 4
%134 = fmul float %128, %133
%135 = load ptr, ptr %20, align 8
%136 = load i32, ptr %14, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds float, ptr %135, i64 %137
store float %134, ptr %138, align 4
br label %139
139: ; preds = %48
%140 = load i32, ptr %14, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %14, align 4
br label %44, !llvm.loop !6
142: ; preds = %44
%143 = load i32, ptr %13, align 4
%144 = call ptr @mallocf(i32 noundef %143)
%145 = load ptr, ptr %10, align 8
%146 = getelementptr inbounds ptr, ptr %145, i64 0
store ptr %144, ptr %146, align 8
%147 = load ptr, ptr %15, align 8
%148 = load ptr, ptr %10, align 8
%149 = getelementptr inbounds ptr, ptr %148, i64 0
%150 = load ptr, ptr %149, align 8
%151 = load ptr, ptr %11, align 8
%152 = load double, ptr %12, align 8
%153 = load double, ptr %12, align 8
%154 = fmul double 4.000000e+00, %153
%155 = fptosi double %154 to i32
%156 = call i32 @GaussianFiltering3D_float(ptr noundef %147, ptr noundef %150, ptr noundef %151, double noundef %152, i32 noundef %155)
%157 = load ptr, ptr %15, align 8
%158 = call i32 @free(ptr noundef %157)
%159 = load i32, ptr %13, align 4
%160 = call ptr @mallocf(i32 noundef %159)
%161 = load ptr, ptr %10, align 8
%162 = getelementptr inbounds ptr, ptr %161, i64 1
store ptr %160, ptr %162, align 8
%163 = load ptr, ptr %18, align 8
%164 = load ptr, ptr %10, align 8
%165 = getelementptr inbounds ptr, ptr %164, i64 1
%166 = load ptr, ptr %165, align 8
%167 = load ptr, ptr %11, align 8
%168 = load double, ptr %12, align 8
%169 = load double, ptr %12, align 8
%170 = fmul double 4.000000e+00, %169
%171 = fptosi double %170 to i32
%172 = call i32 @GaussianFiltering3D_float(ptr noundef %163, ptr noundef %166, ptr noundef %167, double noundef %168, i32 noundef %171)
%173 = load ptr, ptr %18, align 8
%174 = call i32 @free(ptr noundef %173)
%175 = load i32, ptr %13, align 4
%176 = call ptr @mallocf(i32 noundef %175)
%177 = load ptr, ptr %10, align 8
%178 = getelementptr inbounds ptr, ptr %177, i64 2
store ptr %176, ptr %178, align 8
%179 = load ptr, ptr %20, align 8
%180 = load ptr, ptr %10, align 8
%181 = getelementptr inbounds ptr, ptr %180, i64 2
%182 = load ptr, ptr %181, align 8
%183 = load ptr, ptr %11, align 8
%184 = load double, ptr %12, align 8
%185 = load double, ptr %12, align 8
%186 = fmul double 4.000000e+00, %185
%187 = fptosi double %186 to i32
%188 = call i32 @GaussianFiltering3D_float(ptr noundef %179, ptr noundef %182, ptr noundef %183, double noundef %184, i32 noundef %187)
%189 = load ptr, ptr %20, align 8
%190 = call i32 @free(ptr noundef %189)
%191 = load i32, ptr %13, align 4
%192 = call ptr @mallocf(i32 noundef %191)
%193 = load ptr, ptr %10, align 8
%194 = getelementptr inbounds ptr, ptr %193, i64 3
store ptr %192, ptr %194, align 8
%195 = load ptr, ptr %16, align 8
%196 = load ptr, ptr %10, align 8
%197 = getelementptr inbounds ptr, ptr %196, i64 3
%198 = load ptr, ptr %197, align 8
%199 = load ptr, ptr %11, align 8
%200 = load double, ptr %12, align 8
%201 = load double, ptr %12, align 8
%202 = fmul double 4.000000e+00, %201
%203 = fptosi double %202 to i32
%204 = call i32 @GaussianFiltering3D_float(ptr noundef %195, ptr noundef %198, ptr noundef %199, double noundef %200, i32 noundef %203)
%205 = load ptr, ptr %16, align 8
%206 = call i32 @free(ptr noundef %205)
%207 = load i32, ptr %13, align 4
%208 = call ptr @mallocf(i32 noundef %207)
%209 = load ptr, ptr %10, align 8
%210 = getelementptr inbounds ptr, ptr %209, i64 4
store ptr %208, ptr %210, align 8
%211 = load ptr, ptr %17, align 8
%212 = load ptr, ptr %10, align 8
%213 = getelementptr inbounds ptr, ptr %212, i64 4
%214 = load ptr, ptr %213, align 8
%215 = load ptr, ptr %11, align 8
%216 = load double, ptr %12, align 8
%217 = load double, ptr %12, align 8
%218 = fmul double 4.000000e+00, %217
%219 = fptosi double %218 to i32
%220 = call i32 @GaussianFiltering3D_float(ptr noundef %211, ptr noundef %214, ptr noundef %215, double noundef %216, i32 noundef %219)
%221 = load ptr, ptr %17, align 8
%222 = call i32 @free(ptr noundef %221)
%223 = load i32, ptr %13, align 4
%224 = call ptr @mallocf(i32 noundef %223)
%225 = load ptr, ptr %10, align 8
%226 = getelementptr inbounds ptr, ptr %225, i64 5
store ptr %224, ptr %226, align 8
%227 = load ptr, ptr %19, align 8
%228 = load ptr, ptr %10, align 8
%229 = getelementptr inbounds ptr, ptr %228, i64 5
%230 = load ptr, ptr %229, align 8
%231 = load ptr, ptr %11, align 8
%232 = load double, ptr %12, align 8
%233 = load double, ptr %12, align 8
%234 = fmul double 4.000000e+00, %233
%235 = fptosi double %234 to i32
%236 = call i32 @GaussianFiltering3D_float(ptr noundef %227, ptr noundef %230, ptr noundef %231, double noundef %232, i32 noundef %235)
%237 = load ptr, ptr %19, align 8
%238 = call i32 @free(ptr noundef %237)
ret void
}
declare ptr @mallocf(i32 noundef) #1
declare i32 @GaussianFiltering3D_float(ptr noundef, ptr noundef, ptr noundef, double noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvnj6urbz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @StructureTensor3D(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double %5, ptr %12, align 8
%21 = load ptr, ptr %11, align 8
%22 = getelementptr inbounds i32, ptr %21, i64 0
%23 = load i32, ptr %22, align 4
%24 = load ptr, ptr %11, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
%26 = load i32, ptr %25, align 4
%27 = mul nsw i32 %23, %26
%28 = load ptr, ptr %11, align 8
%29 = getelementptr inbounds i32, ptr %28, i64 2
%30 = load i32, ptr %29, align 4
%31 = mul nsw i32 %27, %30
store i32 %31, ptr %13, align 4
%32 = load i32, ptr %13, align 4
%33 = call ptr @mallocf(i32 noundef %32)
store ptr %33, ptr %15, align 8
%34 = load i32, ptr %13, align 4
%35 = call ptr @mallocf(i32 noundef %34)
store ptr %35, ptr %18, align 8
%36 = load i32, ptr %13, align 4
%37 = call ptr @mallocf(i32 noundef %36)
store ptr %37, ptr %20, align 8
%38 = load i32, ptr %13, align 4
%39 = call ptr @mallocf(i32 noundef %38)
store ptr %39, ptr %16, align 8
%40 = load i32, ptr %13, align 4
%41 = call ptr @mallocf(i32 noundef %40)
store ptr %41, ptr %17, align 8
%42 = load i32, ptr %13, align 4
%43 = call ptr @mallocf(i32 noundef %42)
store ptr %43, ptr %19, align 8
store i32 0, ptr %14, align 4
%44 = load i32, ptr %14, align 4
%45 = load i32, ptr %13, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %.lr.ph, label %144
.lr.ph: ; preds = %6
br label %47
47: ; preds = %.lr.ph, %138
%48 = load ptr, ptr %7, align 8
%49 = load i32, ptr %14, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, ptr %48, i64 %50
%52 = load float, ptr %51, align 4
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, ptr %53, i64 %55
%57 = load float, ptr %56, align 4
%58 = fmul float %52, %57
%59 = load ptr, ptr %15, align 8
%60 = load i32, ptr %14, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, ptr %59, i64 %61
store float %58, ptr %62, align 4
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %14, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds float, ptr %63, i64 %65
%67 = load float, ptr %66, align 4
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %14, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, ptr %68, i64 %70
%72 = load float, ptr %71, align 4
%73 = fmul float %67, %72
%74 = load ptr, ptr %16, align 8
%75 = load i32, ptr %14, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, ptr %74, i64 %76
store float %73, ptr %77, align 4
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %14, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds float, ptr %78, i64 %80
%82 = load float, ptr %81, align 4
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %14, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, ptr %83, i64 %85
%87 = load float, ptr %86, align 4
%88 = fmul float %82, %87
%89 = load ptr, ptr %17, align 8
%90 = load i32, ptr %14, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, ptr %89, i64 %91
store float %88, ptr %92, align 4
%93 = load ptr, ptr %8, align 8
%94 = load i32, ptr %14, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds float, ptr %93, i64 %95
%97 = load float, ptr %96, align 4
%98 = load ptr, ptr %8, align 8
%99 = load i32, ptr %14, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %98, i64 %100
%102 = load float, ptr %101, align 4
%103 = fmul float %97, %102
%104 = load ptr, ptr %18, align 8
%105 = load i32, ptr %14, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds float, ptr %104, i64 %106
store float %103, ptr %107, align 4
%108 = load ptr, ptr %8, align 8
%109 = load i32, ptr %14, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds float, ptr %108, i64 %110
%112 = load float, ptr %111, align 4
%113 = load ptr, ptr %9, align 8
%114 = load i32, ptr %14, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds float, ptr %113, i64 %115
%117 = load float, ptr %116, align 4
%118 = fmul float %112, %117
%119 = load ptr, ptr %19, align 8
%120 = load i32, ptr %14, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, ptr %119, i64 %121
store float %118, ptr %122, align 4
%123 = load ptr, ptr %9, align 8
%124 = load i32, ptr %14, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds float, ptr %123, i64 %125
%127 = load float, ptr %126, align 4
%128 = load ptr, ptr %9, align 8
%129 = load i32, ptr %14, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds float, ptr %128, i64 %130
%132 = load float, ptr %131, align 4
%133 = fmul float %127, %132
%134 = load ptr, ptr %20, align 8
%135 = load i32, ptr %14, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, ptr %134, i64 %136
store float %133, ptr %137, align 4
br label %138
138: ; preds = %47
%139 = load i32, ptr %14, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %14, align 4
%141 = load i32, ptr %14, align 4
%142 = load i32, ptr %13, align 4
%143 = icmp slt i32 %141, %142
br i1 %143, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %138
br label %144
144: ; preds = %._crit_edge, %6
%145 = load i32, ptr %13, align 4
%146 = call ptr @mallocf(i32 noundef %145)
%147 = load ptr, ptr %10, align 8
%148 = getelementptr inbounds ptr, ptr %147, i64 0
store ptr %146, ptr %148, align 8
%149 = load ptr, ptr %15, align 8
%150 = load ptr, ptr %10, align 8
%151 = getelementptr inbounds ptr, ptr %150, i64 0
%152 = load ptr, ptr %151, align 8
%153 = load ptr, ptr %11, align 8
%154 = load double, ptr %12, align 8
%155 = load double, ptr %12, align 8
%156 = fmul double 4.000000e+00, %155
%157 = fptosi double %156 to i32
%158 = call i32 @GaussianFiltering3D_float(ptr noundef %149, ptr noundef %152, ptr noundef %153, double noundef %154, i32 noundef %157)
%159 = load ptr, ptr %15, align 8
%160 = call i32 @free(ptr noundef %159)
%161 = load i32, ptr %13, align 4
%162 = call ptr @mallocf(i32 noundef %161)
%163 = load ptr, ptr %10, align 8
%164 = getelementptr inbounds ptr, ptr %163, i64 1
store ptr %162, ptr %164, align 8
%165 = load ptr, ptr %18, align 8
%166 = load ptr, ptr %10, align 8
%167 = getelementptr inbounds ptr, ptr %166, i64 1
%168 = load ptr, ptr %167, align 8
%169 = load ptr, ptr %11, align 8
%170 = load double, ptr %12, align 8
%171 = load double, ptr %12, align 8
%172 = fmul double 4.000000e+00, %171
%173 = fptosi double %172 to i32
%174 = call i32 @GaussianFiltering3D_float(ptr noundef %165, ptr noundef %168, ptr noundef %169, double noundef %170, i32 noundef %173)
%175 = load ptr, ptr %18, align 8
%176 = call i32 @free(ptr noundef %175)
%177 = load i32, ptr %13, align 4
%178 = call ptr @mallocf(i32 noundef %177)
%179 = load ptr, ptr %10, align 8
%180 = getelementptr inbounds ptr, ptr %179, i64 2
store ptr %178, ptr %180, align 8
%181 = load ptr, ptr %20, align 8
%182 = load ptr, ptr %10, align 8
%183 = getelementptr inbounds ptr, ptr %182, i64 2
%184 = load ptr, ptr %183, align 8
%185 = load ptr, ptr %11, align 8
%186 = load double, ptr %12, align 8
%187 = load double, ptr %12, align 8
%188 = fmul double 4.000000e+00, %187
%189 = fptosi double %188 to i32
%190 = call i32 @GaussianFiltering3D_float(ptr noundef %181, ptr noundef %184, ptr noundef %185, double noundef %186, i32 noundef %189)
%191 = load ptr, ptr %20, align 8
%192 = call i32 @free(ptr noundef %191)
%193 = load i32, ptr %13, align 4
%194 = call ptr @mallocf(i32 noundef %193)
%195 = load ptr, ptr %10, align 8
%196 = getelementptr inbounds ptr, ptr %195, i64 3
store ptr %194, ptr %196, align 8
%197 = load ptr, ptr %16, align 8
%198 = load ptr, ptr %10, align 8
%199 = getelementptr inbounds ptr, ptr %198, i64 3
%200 = load ptr, ptr %199, align 8
%201 = load ptr, ptr %11, align 8
%202 = load double, ptr %12, align 8
%203 = load double, ptr %12, align 8
%204 = fmul double 4.000000e+00, %203
%205 = fptosi double %204 to i32
%206 = call i32 @GaussianFiltering3D_float(ptr noundef %197, ptr noundef %200, ptr noundef %201, double noundef %202, i32 noundef %205)
%207 = load ptr, ptr %16, align 8
%208 = call i32 @free(ptr noundef %207)
%209 = load i32, ptr %13, align 4
%210 = call ptr @mallocf(i32 noundef %209)
%211 = load ptr, ptr %10, align 8
%212 = getelementptr inbounds ptr, ptr %211, i64 4
store ptr %210, ptr %212, align 8
%213 = load ptr, ptr %17, align 8
%214 = load ptr, ptr %10, align 8
%215 = getelementptr inbounds ptr, ptr %214, i64 4
%216 = load ptr, ptr %215, align 8
%217 = load ptr, ptr %11, align 8
%218 = load double, ptr %12, align 8
%219 = load double, ptr %12, align 8
%220 = fmul double 4.000000e+00, %219
%221 = fptosi double %220 to i32
%222 = call i32 @GaussianFiltering3D_float(ptr noundef %213, ptr noundef %216, ptr noundef %217, double noundef %218, i32 noundef %221)
%223 = load ptr, ptr %17, align 8
%224 = call i32 @free(ptr noundef %223)
%225 = load i32, ptr %13, align 4
%226 = call ptr @mallocf(i32 noundef %225)
%227 = load ptr, ptr %10, align 8
%228 = getelementptr inbounds ptr, ptr %227, i64 5
store ptr %226, ptr %228, align 8
%229 = load ptr, ptr %19, align 8
%230 = load ptr, ptr %10, align 8
%231 = getelementptr inbounds ptr, ptr %230, i64 5
%232 = load ptr, ptr %231, align 8
%233 = load ptr, ptr %11, align 8
%234 = load double, ptr %12, align 8
%235 = load double, ptr %12, align 8
%236 = fmul double 4.000000e+00, %235
%237 = fptosi double %236 to i32
%238 = call i32 @GaussianFiltering3D_float(ptr noundef %229, ptr noundef %232, ptr noundef %233, double noundef %234, i32 noundef %237)
%239 = load ptr, ptr %19, align 8
%240 = call i32 @free(ptr noundef %239)
ret void
}
declare ptr @mallocf(i32 noundef) #1
declare i32 @GaussianFiltering3D_float(ptr noundef, ptr noundef, ptr noundef, double noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmyiwa2f0.c'
source_filename = "/tmp/tmpmyiwa2f0.c"
target datalayout = "e-m:e-p270: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/tmpmyiwa2f0.c"
target datalayout = "e-m:e-p270: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/tmpk08r8q3c.c'
source_filename = "/tmp/tmpk08r8q3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sproto_pack(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [8 x i64], align 16
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%20 = load ptr, ptr %5, align 8
store ptr %20, ptr %15, align 8
%21 = load ptr, ptr %7, align 8
store ptr %21, ptr %16, align 8
store i32 0, ptr %10, align 4
br label %22
22: ; preds = %112, %4
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %115
26: ; preds = %22
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 8
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %28, %29
store i32 %30, ptr %17, align 4
%31 = load i32, ptr %17, align 4
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %53
33: ; preds = %26
%34 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 0
%35 = load ptr, ptr %15, align 8
%36 = load i32, ptr %17, align 4
%37 = sub nsw i32 8, %36
%38 = call i32 @memcpy(ptr noundef %34, ptr noundef %35, i32 noundef %37)
store i32 0, ptr %18, align 4
br label %39
39: ; preds = %48, %33
%40 = load i32, ptr %18, align 4
%41 = load i32, ptr %17, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %51
43: ; preds = %39
%44 = load i32, ptr %18, align 4
%45 = sub nsw i32 7, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 %46
store i64 0, ptr %47, align 8
br label %48
48: ; preds = %43
%49 = load i32, ptr %18, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %18, align 4
br label %39, !llvm.loop !6
51: ; preds = %39
%52 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 0
store ptr %52, ptr %15, align 8
br label %53
53: ; preds = %51, %26
%54 = load ptr, ptr %15, align 8
%55 = load ptr, ptr %16, align 8
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %13, align 4
%58 = call i32 @pack_seg(ptr noundef %54, ptr noundef %55, i32 noundef %56, i32 noundef %57)
store i32 %58, ptr %19, align 4
%59 = load i32, ptr %19, align 4
%60 = load i32, ptr %8, align 4
%61 = sub nsw i32 %60, %59
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %19, align 4
%63 = icmp eq i32 %62, 10
br i1 %63, label %64, label %67
64: ; preds = %53
%65 = load ptr, ptr %15, align 8
store ptr %65, ptr %11, align 8
%66 = load ptr, ptr %16, align 8
store ptr %66, ptr %12, align 8
store i32 1, ptr %13, align 4
br label %102
67: ; preds = %53
%68 = load i32, ptr %19, align 4
%69 = icmp eq i32 %68, 8
br i1 %69, label %70, label %87
70: ; preds = %67
%71 = load i32, ptr %13, align 4
%72 = icmp sgt i32 %71, 0
br i1 %72, label %73, label %87
73: ; preds = %70
%74 = load i32, ptr %13, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %13, align 4
%76 = load i32, ptr %13, align 4
%77 = icmp eq i32 %76, 256
br i1 %77, label %78, label %86
78: ; preds = %73
%79 = load i32, ptr %8, align 4
%80 = icmp sge i32 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = load ptr, ptr %11, align 8
%83 = load ptr, ptr %12, align 8
%84 = call i32 @write_ff(ptr noundef %82, ptr noundef %83, i32 noundef 2048)
br label %85
85: ; preds = %81, %78
store i32 0, ptr %13, align 4
br label %86
86: ; preds = %85, %73
br label %101
87: ; preds = %70, %67
%88 = load i32, ptr %13, align 4
%89 = icmp sgt i32 %88, 0
br i1 %89, label %90, label %100
90: ; preds = %87
%91 = load i32, ptr %8, align 4
%92 = icmp sge i32 %91, 0
br i1 %92, label %93, label %99
93: ; preds = %90
%94 = load ptr, ptr %11, align 8
%95 = load ptr, ptr %12, align 8
%96 = load i32, ptr %13, align 4
%97 = mul nsw i32 %96, 8
%98 = call i32 @write_ff(ptr noundef %94, ptr noundef %95, i32 noundef %97)
br label %99
99: ; preds = %93, %90
store i32 0, ptr %13, align 4
br label %100
100: ; preds = %99, %87
br label %101
101: ; preds = %100, %86
br label %102
102: ; preds = %101, %64
%103 = load ptr, ptr %15, align 8
%104 = getelementptr inbounds i64, ptr %103, i64 8
store ptr %104, ptr %15, align 8
%105 = load i32, ptr %19, align 4
%106 = load ptr, ptr %16, align 8
%107 = sext i32 %105 to i64
%108 = getelementptr inbounds i64, ptr %106, i64 %107
store ptr %108, ptr %16, align 8
%109 = load i32, ptr %19, align 4
%110 = load i32, ptr %14, align 4
%111 = add nsw i32 %110, %109
store i32 %111, ptr %14, align 4
br label %112
112: ; preds = %102
%113 = load i32, ptr %10, align 4
%114 = add nsw i32 %113, 8
store i32 %114, ptr %10, align 4
br label %22, !llvm.loop !8
115: ; preds = %22
%116 = load i32, ptr %8, align 4
%117 = icmp sge i32 %116, 0
br i1 %117, label %118, label %144
118: ; preds = %115
%119 = load i32, ptr %13, align 4
%120 = icmp eq i32 %119, 1
br i1 %120, label %121, label %125
121: ; preds = %118
%122 = load ptr, ptr %11, align 8
%123 = load ptr, ptr %12, align 8
%124 = call i32 @write_ff(ptr noundef %122, ptr noundef %123, i32 noundef 8)
br label %143
125: ; preds = %118
%126 = load i32, ptr %13, align 4
%127 = icmp sgt i32 %126, 1
br i1 %127, label %128, label %142
128: ; preds = %125
%129 = load ptr, ptr %11, align 8
%130 = load ptr, ptr %12, align 8
%131 = load i32, ptr %6, align 4
%132 = sext i32 %131 to i64
%133 = load ptr, ptr %11, align 8
%134 = load ptr, ptr %5, align 8
%135 = ptrtoint ptr %133 to i64
%136 = ptrtoint ptr %134 to i64
%137 = sub i64 %135, %136
%138 = sdiv exact i64 %137, 8
%139 = sub nsw i64 %132, %138
%140 = trunc i64 %139 to i32
%141 = call i32 @write_ff(ptr noundef %129, ptr noundef %130, i32 noundef %140)
br label %142
142: ; preds = %128, %125
br label %143
143: ; preds = %142, %121
br label %144
144: ; preds = %143, %115
%145 = load i32, ptr %14, align 4
ret i32 %145
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pack_seg(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write_ff(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk08r8q3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sproto_pack(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [8 x i64], align 16
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%20 = load ptr, ptr %5, align 8
store ptr %20, ptr %15, align 8
%21 = load ptr, ptr %7, align 8
store ptr %21, ptr %16, align 8
store i32 0, ptr %10, align 4
%22 = load i32, ptr %10, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph2, label %119
.lr.ph2: ; preds = %4
br label %25
25: ; preds = %.lr.ph2, %113
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 8
%28 = load i32, ptr %6, align 4
%29 = sub nsw i32 %27, %28
store i32 %29, ptr %17, align 4
%30 = load i32, ptr %17, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %54
32: ; preds = %25
%33 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 0
%34 = load ptr, ptr %15, align 8
%35 = load i32, ptr %17, align 4
%36 = sub nsw i32 8, %35
%37 = call i32 @memcpy(ptr noundef %33, ptr noundef %34, i32 noundef %36)
store i32 0, ptr %18, align 4
%38 = load i32, ptr %18, align 4
%39 = load i32, ptr %17, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph, label %52
.lr.ph: ; preds = %32
br label %41
41: ; preds = %.lr.ph, %46
%42 = load i32, ptr %18, align 4
%43 = sub nsw i32 7, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 %44
store i64 0, ptr %45, align 8
br label %46
46: ; preds = %41
%47 = load i32, ptr %18, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %18, align 4
%49 = load i32, ptr %18, align 4
%50 = load i32, ptr %17, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %32
%53 = getelementptr inbounds [8 x i64], ptr %9, i64 0, i64 0
store ptr %53, ptr %15, align 8
br label %54
54: ; preds = %52, %25
%55 = load ptr, ptr %15, align 8
%56 = load ptr, ptr %16, align 8
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %13, align 4
%59 = call i32 @pack_seg(ptr noundef %55, ptr noundef %56, i32 noundef %57, i32 noundef %58)
store i32 %59, ptr %19, align 4
%60 = load i32, ptr %19, align 4
%61 = load i32, ptr %8, align 4
%62 = sub nsw i32 %61, %60
store i32 %62, ptr %8, align 4
%63 = load i32, ptr %19, align 4
%64 = icmp eq i32 %63, 10
br i1 %64, label %65, label %68
65: ; preds = %54
%66 = load ptr, ptr %15, align 8
store ptr %66, ptr %11, align 8
%67 = load ptr, ptr %16, align 8
store ptr %67, ptr %12, align 8
store i32 1, ptr %13, align 4
br label %103
68: ; preds = %54
%69 = load i32, ptr %19, align 4
%70 = icmp eq i32 %69, 8
br i1 %70, label %71, label %88
71: ; preds = %68
%72 = load i32, ptr %13, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %88
74: ; preds = %71
%75 = load i32, ptr %13, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %13, align 4
%77 = load i32, ptr %13, align 4
%78 = icmp eq i32 %77, 256
br i1 %78, label %79, label %87
79: ; preds = %74
%80 = load i32, ptr %8, align 4
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %79
%83 = load ptr, ptr %11, align 8
%84 = load ptr, ptr %12, align 8
%85 = call i32 @write_ff(ptr noundef %83, ptr noundef %84, i32 noundef 2048)
br label %86
86: ; preds = %82, %79
store i32 0, ptr %13, align 4
br label %87
87: ; preds = %86, %74
br label %102
88: ; preds = %71, %68
%89 = load i32, ptr %13, align 4
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %88
%92 = load i32, ptr %8, align 4
%93 = icmp sge i32 %92, 0
br i1 %93, label %94, label %100
94: ; preds = %91
%95 = load ptr, ptr %11, align 8
%96 = load ptr, ptr %12, align 8
%97 = load i32, ptr %13, align 4
%98 = mul nsw i32 %97, 8
%99 = call i32 @write_ff(ptr noundef %95, ptr noundef %96, i32 noundef %98)
br label %100
100: ; preds = %94, %91
store i32 0, ptr %13, align 4
br label %101
101: ; preds = %100, %88
br label %102
102: ; preds = %101, %87
br label %103
103: ; preds = %102, %65
%104 = load ptr, ptr %15, align 8
%105 = getelementptr inbounds i64, ptr %104, i64 8
store ptr %105, ptr %15, align 8
%106 = load i32, ptr %19, align 4
%107 = load ptr, ptr %16, align 8
%108 = sext i32 %106 to i64
%109 = getelementptr inbounds i64, ptr %107, i64 %108
store ptr %109, ptr %16, align 8
%110 = load i32, ptr %19, align 4
%111 = load i32, ptr %14, align 4
%112 = add nsw i32 %111, %110
store i32 %112, ptr %14, align 4
br label %113
113: ; preds = %103
%114 = load i32, ptr %10, align 4
%115 = add nsw i32 %114, 8
store i32 %115, ptr %10, align 4
%116 = load i32, ptr %10, align 4
%117 = load i32, ptr %6, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %113
br label %119
119: ; preds = %._crit_edge3, %4
%120 = load i32, ptr %8, align 4
%121 = icmp sge i32 %120, 0
br i1 %121, label %122, label %148
122: ; preds = %119
%123 = load i32, ptr %13, align 4
%124 = icmp eq i32 %123, 1
br i1 %124, label %125, label %129
125: ; preds = %122
%126 = load ptr, ptr %11, align 8
%127 = load ptr, ptr %12, align 8
%128 = call i32 @write_ff(ptr noundef %126, ptr noundef %127, i32 noundef 8)
br label %147
129: ; preds = %122
%130 = load i32, ptr %13, align 4
%131 = icmp sgt i32 %130, 1
br i1 %131, label %132, label %146
132: ; preds = %129
%133 = load ptr, ptr %11, align 8
%134 = load ptr, ptr %12, align 8
%135 = load i32, ptr %6, align 4
%136 = sext i32 %135 to i64
%137 = load ptr, ptr %11, align 8
%138 = load ptr, ptr %5, align 8
%139 = ptrtoint ptr %137 to i64
%140 = ptrtoint ptr %138 to i64
%141 = sub i64 %139, %140
%142 = sdiv exact i64 %141, 8
%143 = sub nsw i64 %136, %142
%144 = trunc i64 %143 to i32
%145 = call i32 @write_ff(ptr noundef %133, ptr noundef %134, i32 noundef %144)
br label %146
146: ; preds = %132, %129
br label %147
147: ; preds = %146, %125
br label %148
148: ; preds = %147, %119
%149 = load i32, ptr %14, align 4
ret i32 %149
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pack_seg(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write_ff(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpanl9esfn.c'
source_filename = "/tmp/tmpanl9esfn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"void g()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g() #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/tmpanl9esfn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"void g()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g() #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/tmpnppfgua_.c'
source_filename = "/tmp/tmpnppfgua_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PWMtest(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 = and i32 %5, 3
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
store volatile i32 310, ptr %10, align 4
br label %25
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
store volatile i32 250, ptr %15, align 4
br label %24
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
store volatile i32 190, ptr %20, align 4
br label %23
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
store volatile i32 177, ptr %22, align 4
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %14
br label %25
25: ; preds = %24, %9
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnppfgua_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PWMtest(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 = and i32 %5, 3
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
store volatile i32 310, ptr %10, align 4
br label %25
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
store volatile i32 250, ptr %15, align 4
br label %24
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %3, align 8
store volatile i32 190, ptr %20, align 4
br label %23
21: ; preds = %16
%22 = load ptr, ptr %3, align 8
store volatile i32 177, ptr %22, align 4
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %14
br label %25
25: ; preds = %24, %9
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp529ngmv.c'
source_filename = "/tmp/tmpp529ngmv.c"
target datalayout = "e-m:e-p270: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/tmpp529ngmv.c"
target datalayout = "e-m:e-p270: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/tmp19szngnw.c'
source_filename = "/tmp/tmp19szngnw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PIC18F45K50_stop() #0 {
%1 = call i32 @serial_close(i32 noundef 0)
ret void
}
declare i32 @serial_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/tmp19szngnw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PIC18F45K50_stop() #0 {
%1 = call i32 @serial_close(i32 noundef 0)
ret void
}
declare i32 @serial_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/tmp2znilh5f.c'
source_filename = "/tmp/tmp2znilh5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %26, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %2, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %27
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 40
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %21
14: ; preds = %8
%15 = load i32, ptr %2, align 4
%16 = icmp eq i32 %15, 41
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %17, %14
br label %21
21: ; preds = %20, %11
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (...) @printErrorMsg()
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %24, %21
br label %4, !llvm.loop !6
27: ; preds = %4
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @getchar(...) #1
declare i32 @printErrorMsg(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2znilh5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %25
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 40
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
br label %20
13: ; preds = %7
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 41
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %16, %13
br label %20
20: ; preds = %19, %10
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (...) @printErrorMsg()
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %23, %20
%26 = call i32 (...) @getchar()
store i32 %26, ptr %2, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %29
29: ; preds = %._crit_edge, %0
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @getchar(...) #1
declare i32 @printErrorMsg(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpofdpcmp5.c'
source_filename = "/tmp/tmpofdpcmp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBUART_BUS_RESET_ISR() #0 {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
%3 = call i32 (...) @USBUART_ReInitComponent()
ret void
}
declare i32 @USBUART_ReInitComponent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofdpcmp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBUART_BUS_RESET_ISR() #0 {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
%3 = call i32 (...) @USBUART_ReInitComponent()
ret void
}
declare i32 @USBUART_ReInitComponent(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzyy15lam.c'
source_filename = "/tmp/tmpzyy15lam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SyncObjExit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %14
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @pthread_mutex_destroy(ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %10, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %6, %1
ret void
}
declare i32 @pthread_mutex_destroy(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzyy15lam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SyncObjExit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %14
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @pthread_mutex_destroy(ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %10, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %6, %1
ret void
}
declare i32 @pthread_mutex_destroy(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp00r_jhsd.c'
source_filename = "/tmp/tmp00r_jhsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fun1(i32 noundef 1)
%3 = call i32 @fun3(i32 noundef 2)
%4 = call i32 @fun4(i32 noundef 1)
ret i32 0
}
declare i32 @fun1(i32 noundef) #1
declare i32 @fun3(i32 noundef) #1
declare i32 @fun4(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/tmp00r_jhsd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fun1(i32 noundef 1)
%3 = call i32 @fun3(i32 noundef 2)
%4 = call i32 @fun4(i32 noundef 1)
ret i32 0
}
declare i32 @fun1(i32 noundef) #1
declare i32 @fun3(i32 noundef) #1
declare i32 @fun4(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/tmpcxwpdr_k.c'
source_filename = "/tmp/tmpcxwpdr_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %7, align 8
br label %8
8: ; preds = %24, %2
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %4, align 8
%11 = load i8, ptr %9, align 1
store i8 %11, ptr %6, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %8
%15 = load i8, ptr %6, align 1
%16 = sext i8 %15 to i32
%17 = load i32, ptr %5, align 4
%18 = trunc i32 %17 to i8
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %16, %19
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 -1
store ptr %23, ptr %7, align 8
br label %24
24: ; preds = %21, %14
br label %8, !llvm.loop !6
25: ; preds = %8
%26 = load i32, ptr %5, align 4
%27 = trunc i32 %26 to i8
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %4, align 8
store ptr %32, ptr %3, align 8
br label %35
33: ; preds = %25
%34 = load ptr, ptr %7, align 8
store ptr %34, ptr %3, align 8
br label %35
35: ; preds = %33, %30
%36 = load ptr, ptr %3, align 8
ret ptr %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcxwpdr_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr null, ptr %7, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %4, align 8
%10 = load i8, ptr %8, align 1
store i8 %10, ptr %6, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %23
%14 = load i8, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = load i32, ptr %5, align 4
%17 = trunc i32 %16 to i8
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %15, %18
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 -1
store ptr %22, ptr %7, align 8
br label %23
23: ; preds = %20, %13
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i8, ptr %24, align 1
store i8 %26, ptr %6, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %2
%30 = load i32, ptr %5, align 4
%31 = trunc i32 %30 to i8
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 -1
store ptr %36, ptr %4, align 8
store ptr %36, ptr %3, align 8
br label %39
37: ; preds = %29
%38 = load ptr, ptr %7, align 8
store ptr %38, ptr %3, align 8
br label %39
39: ; preds = %37, %34
%40 = load ptr, ptr %3, align 8
ret ptr %40
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3may2iyp.c'
source_filename = "/tmp/tmp3may2iyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"%zux%zu took %zu cycles\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_cycle(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %4, align 8
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %5, align 8
%16 = mul nuw i64 %13, %14
%17 = alloca i32, i64 %16, align 16
store i64 %13, ptr %6, align 8
store i64 %14, ptr %7, align 8
%18 = load i64, ptr %3, align 8
%19 = load i64, ptr %4, align 8
%20 = mul nuw i64 %18, %19
%21 = alloca i32, i64 %20, align 16
store i64 %18, ptr %8, align 8
store i64 %19, ptr %9, align 8
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %4, align 8
%24 = mul nuw i64 %22, %23
%25 = alloca i32, i64 %24, align 16
store i64 %22, ptr %10, align 8
store i64 %23, ptr %11, align 8
%26 = load i64, ptr %3, align 8
%27 = load i64, ptr %4, align 8
%28 = call i32 @fill(i64 noundef %26, i64 noundef %27, ptr noundef %17)
%29 = mul nuw i64 %13, %14
%30 = mul nuw i64 4, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memcpy(ptr noundef %21, ptr noundef %17, i32 noundef %31)
store i64 1, ptr %12, align 8
br label %33
33: ; preds = %48, %2
%34 = load i64, ptr %3, align 8
%35 = load i64, ptr %4, align 8
%36 = call i32 @row2col(i64 noundef %34, i64 noundef %35, ptr noundef %21, ptr noundef %25)
%37 = mul nuw i64 %22, %23
%38 = mul nuw i64 4, %37
%39 = trunc i64 %38 to i32
%40 = call i32 @memcpy(ptr noundef %21, ptr noundef %25, i32 noundef %39)
%41 = mul nuw i64 %18, %19
%42 = mul nuw i64 4, %41
%43 = trunc i64 %42 to i32
%44 = call i32 @memcmp(ptr noundef %17, ptr noundef %21, i32 noundef %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %33
br label %51
47: ; preds = %33
br label %48
48: ; preds = %47
%49 = load i64, ptr %12, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %12, align 8
br label %33
51: ; preds = %46
%52 = load i64, ptr %3, align 8
%53 = load i64, ptr %4, align 8
%54 = load i64, ptr %12, align 8
%55 = call i32 @printf(ptr noundef @.str, i64 noundef %52, i64 noundef %53, i64 noundef %54)
%56 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %56)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fill(i64 noundef, i64 noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @row2col(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #2
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3may2iyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"%zux%zu took %zu cycles\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_cycle(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, 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
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %4, align 8
%15 = call ptr @llvm.stacksave()
store ptr %15, ptr %5, align 8
%16 = mul nuw i64 %13, %14
%17 = alloca i32, i64 %16, align 16
store i64 %13, ptr %6, align 8
store i64 %14, ptr %7, align 8
%18 = load i64, ptr %3, align 8
%19 = load i64, ptr %4, align 8
%20 = mul nuw i64 %18, %19
%21 = alloca i32, i64 %20, align 16
store i64 %18, ptr %8, align 8
store i64 %19, ptr %9, align 8
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %4, align 8
%24 = mul nuw i64 %22, %23
%25 = alloca i32, i64 %24, align 16
store i64 %22, ptr %10, align 8
store i64 %23, ptr %11, align 8
%26 = load i64, ptr %3, align 8
%27 = load i64, ptr %4, align 8
%28 = call i32 @fill(i64 noundef %26, i64 noundef %27, ptr noundef %17)
%29 = mul nuw i64 %13, %14
%30 = mul nuw i64 4, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memcpy(ptr noundef %21, ptr noundef %17, i32 noundef %31)
store i64 1, ptr %12, align 8
br label %33
33: ; preds = %48, %2
%34 = load i64, ptr %3, align 8
%35 = load i64, ptr %4, align 8
%36 = call i32 @row2col(i64 noundef %34, i64 noundef %35, ptr noundef %21, ptr noundef %25)
%37 = mul nuw i64 %22, %23
%38 = mul nuw i64 4, %37
%39 = trunc i64 %38 to i32
%40 = call i32 @memcpy(ptr noundef %21, ptr noundef %25, i32 noundef %39)
%41 = mul nuw i64 %18, %19
%42 = mul nuw i64 4, %41
%43 = trunc i64 %42 to i32
%44 = call i32 @memcmp(ptr noundef %17, ptr noundef %21, i32 noundef %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %33
br label %51
47: ; preds = %33
br label %48
48: ; preds = %47
%49 = load i64, ptr %12, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %12, align 8
br label %33
51: ; preds = %46
%52 = load i64, ptr %3, align 8
%53 = load i64, ptr %4, align 8
%54 = load i64, ptr %12, align 8
%55 = call i32 @printf(ptr noundef @.str, i64 noundef %52, i64 noundef %53, i64 noundef %54)
%56 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %56)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fill(i64 noundef, i64 noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @row2col(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #2
declare i32 @memcmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwfx3fw_2.c'
source_filename = "/tmp/tmpwfx3fw_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"no program file given\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"couldn't open program\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"attempting memory access after end of tape\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"attempting memory access before beginning of tape\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"putchar failed\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.6 = private unnamed_addr constant [15 x i8] c"getchar failed\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"fgetc on program file failed\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"no matching ] found\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [29 x i8] c"fseek on program file failed\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"no matching [ found\00", align 1
@.str.11 = private unnamed_addr constant [30 x i8] c"fclose on program file failed\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 [30000 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @die(ptr noundef @.str)
br label %16
16: ; preds = %14, %2
%17 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i32 noundef 0, i32 noundef 30000)
%19 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %16
%27 = call i32 @die_errno(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %16
br label %29
29: ; preds = %183, %28
%30 = load ptr, ptr %8, align 8
%31 = call i32 @fgetc(ptr noundef %30)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr @EOF, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %184
34: ; preds = %29
%35 = load i32, ptr %9, align 4
%36 = trunc i32 %35 to i8
store i8 %36, ptr %11, align 1
%37 = load i8, ptr %11, align 1
%38 = zext i8 %37 to i32
switch i32 %38, label %183 [
i32 62, label %39
i32 60, label %52
i32 43, label %65
i32 45, label %69
i32 46, label %73
i32 44, label %82
i32 91, label %98
i32 93, label %137
]
39: ; preds = %34
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%42 = ptrtoint ptr %40 to i64
%43 = ptrtoint ptr %41 to i64
%44 = sub i64 %42, %43
%45 = icmp slt i64 %44, 29999
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load ptr, ptr %7, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %7, align 8
br label %51
49: ; preds = %39
%50 = call i32 @die(ptr noundef @.str.3)
br label %51
51: ; preds = %49, %46
br label %183
52: ; preds = %34
%53 = load ptr, ptr %7, align 8
%54 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%55 = ptrtoint ptr %53 to i64
%56 = ptrtoint ptr %54 to i64
%57 = sub i64 %55, %56
%58 = icmp sgt i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %52
%60 = load ptr, ptr %7, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 -1
store ptr %61, ptr %7, align 8
br label %64
62: ; preds = %52
%63 = call i32 @die(ptr noundef @.str.4)
br label %64
64: ; preds = %62, %59
br label %183
65: ; preds = %34
%66 = load ptr, ptr %7, align 8
%67 = load i8, ptr %66, align 1
%68 = add i8 %67, 1
store i8 %68, ptr %66, align 1
br label %183
69: ; preds = %34
%70 = load ptr, ptr %7, align 8
%71 = load i8, ptr %70, align 1
%72 = add i8 %71, -1
store i8 %72, ptr %70, align 1
br label %183
73: ; preds = %34
%74 = load ptr, ptr %7, align 8
%75 = load i8, ptr %74, align 1
%76 = call i32 @putchar(i8 noundef zeroext %75)
%77 = load i32, ptr @EOF, align 4
%78 = icmp eq i32 %76, %77
br i1 %78, label %79, label %81
79: ; preds = %73
%80 = call i32 @die(ptr noundef @.str.5)
br label %81
81: ; preds = %79, %73
br label %183
82: ; preds = %34
%83 = call i32 (...) @getchar()
store i32 %83, ptr %9, align 4
%84 = load i32, ptr @EOF, align 4
%85 = icmp eq i32 %83, %84
br i1 %85, label %86, label %93
86: ; preds = %82
%87 = load ptr, ptr @stdin, align 8
%88 = call i64 @ferror(ptr noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 @die(ptr noundef @.str.6)
br label %92
92: ; preds = %90, %86
br label %97
93: ; preds = %82
%94 = load i32, ptr %9, align 4
%95 = trunc i32 %94 to i8
%96 = load ptr, ptr %7, align 8
store i8 %95, ptr %96, align 1
br label %97
97: ; preds = %93, %92
br label %183
98: ; preds = %34
%99 = load ptr, ptr %7, align 8
%100 = load i8, ptr %99, align 1
%101 = zext i8 %100 to i32
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %136
103: ; preds = %98
store i32 1, ptr %10, align 4
br label %104
104: ; preds = %134, %103
%105 = load i32, ptr %10, align 4
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %135
107: ; preds = %104
%108 = load ptr, ptr %8, align 8
%109 = call i32 @fgetc(ptr noundef %108)
store i32 %109, ptr %9, align 4
%110 = load i32, ptr @EOF, align 4
%111 = icmp eq i32 %109, %110
br i1 %111, label %112, label %121
112: ; preds = %107
%113 = load ptr, ptr %8, align 8
%114 = call i64 @ferror(ptr noundef %113)
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %112
%117 = call i32 @die(ptr noundef @.str.7)
br label %120
118: ; preds = %112
%119 = call i32 @die(ptr noundef @.str.8)
br label %120
120: ; preds = %118, %116
br label %121
121: ; preds = %120, %107
%122 = load i32, ptr %9, align 4
%123 = icmp eq i32 %122, 91
br i1 %123, label %124, label %127
124: ; preds = %121
%125 = load i32, ptr %10, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %10, align 4
br label %134
127: ; preds = %121
%128 = load i32, ptr %9, align 4
%129 = icmp eq i32 %128, 93
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = load i32, ptr %10, align 4
%132 = add nsw i32 %131, -1
store i32 %132, ptr %10, align 4
br label %133
133: ; preds = %130, %127
br label %134
134: ; preds = %133, %124
br label %104, !llvm.loop !6
135: ; preds = %104
br label %136
136: ; preds = %135, %98
br label %183
137: ; preds = %34
%138 = load ptr, ptr %7, align 8
%139 = load i8, ptr %138, align 1
%140 = zext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %182
142: ; preds = %137
store i32 1, ptr %10, align 4
br label %143
143: ; preds = %180, %142
%144 = load i32, ptr %10, align 4
%145 = icmp sgt i32 %144, 0
br i1 %145, label %146, label %181
146: ; preds = %143
%147 = load ptr, ptr %8, align 8
%148 = load i32, ptr @SEEK_CUR, align 4
%149 = call i32 @fseek(ptr noundef %147, i32 noundef -2, i32 noundef %148)
%150 = icmp eq i32 %149, -1
br i1 %150, label %151, label %153
151: ; preds = %146
%152 = call i32 @die_errno(ptr noundef @.str.9)
br label %153
153: ; preds = %151, %146
%154 = load ptr, ptr %8, align 8
%155 = call i32 @fgetc(ptr noundef %154)
store i32 %155, ptr %9, align 4
%156 = load i32, ptr @EOF, align 4
%157 = icmp eq i32 %155, %156
br i1 %157, label %158, label %167
158: ; preds = %153
%159 = load ptr, ptr %8, align 8
%160 = call i64 @ferror(ptr noundef %159)
%161 = icmp ne i64 %160, 0
br i1 %161, label %162, label %164
162: ; preds = %158
%163 = call i32 @die(ptr noundef @.str.7)
br label %166
164: ; preds = %158
%165 = call i32 @die(ptr noundef @.str.10)
br label %166
166: ; preds = %164, %162
br label %167
167: ; preds = %166, %153
%168 = load i32, ptr %9, align 4
%169 = icmp eq i32 %168, 93
br i1 %169, label %170, label %173
170: ; preds = %167
%171 = load i32, ptr %10, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %10, align 4
br label %180
173: ; preds = %167
%174 = load i32, ptr %9, align 4
%175 = icmp eq i32 %174, 91
br i1 %175, label %176, label %179
176: ; preds = %173
%177 = load i32, ptr %10, align 4
%178 = add nsw i32 %177, -1
store i32 %178, ptr %10, align 4
br label %179
179: ; preds = %176, %173
br label %180
180: ; preds = %179, %170
br label %143, !llvm.loop !8
181: ; preds = %143
br label %182
182: ; preds = %181, %137
br label %183
183: ; preds = %34, %182, %136, %97, %81, %69, %65, %64, %51
br label %29, !llvm.loop !9
184: ; preds = %29
%185 = load ptr, ptr %8, align 8
%186 = call i64 @ferror(ptr noundef %185)
%187 = icmp ne i64 %186, 0
br i1 %187, label %188, label %190
188: ; preds = %184
%189 = call i32 @die(ptr noundef @.str.7)
br label %190
190: ; preds = %188, %184
%191 = load ptr, ptr %8, align 8
%192 = call i32 @fclose(ptr noundef %191)
%193 = load i32, ptr @EOF, align 4
%194 = icmp eq i32 %192, %193
br i1 %194, label %195, label %197
195: ; preds = %190
%196 = call i32 @die_errno(ptr noundef @.str.11)
br label %197
197: ; preds = %195, %190
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @die_errno(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @putchar(i8 noundef zeroext) #1
declare i32 @getchar(...) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwfx3fw_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"no program file given\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"couldn't open program\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"attempting memory access after end of tape\00", align 1
@.str.4 = private unnamed_addr constant [50 x i8] c"attempting memory access before beginning of tape\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"putchar failed\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.6 = private unnamed_addr constant [15 x i8] c"getchar failed\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"fgetc on program file failed\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"no matching ] found\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [29 x i8] c"fseek on program file failed\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c"no matching [ found\00", align 1
@.str.11 = private unnamed_addr constant [30 x i8] c"fclose on program file failed\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 [30000 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @die(ptr noundef @.str)
br label %16
16: ; preds = %14, %2
%17 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @memset(ptr noundef %17, i32 noundef 0, i32 noundef 30000)
%19 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call ptr @fopen(ptr noundef %22, ptr noundef @.str.1)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %16
%27 = call i32 @die_errno(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %16
%29 = load ptr, ptr %8, align 8
%30 = call i32 @fgetc(ptr noundef %29)
store i32 %30, ptr %9, align 4
%31 = load i32, ptr @EOF, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %.lr.ph5, label %189
.lr.ph5: ; preds = %28
br label %33
33: ; preds = %.lr.ph5, %184
%34 = load i32, ptr %9, align 4
%35 = trunc i32 %34 to i8
store i8 %35, ptr %11, align 1
%36 = load i8, ptr %11, align 1
%37 = zext i8 %36 to i32
switch i32 %37, label %184 [
i32 62, label %38
i32 60, label %51
i32 43, label %64
i32 45, label %68
i32 46, label %72
i32 44, label %81
i32 91, label %97
i32 93, label %137
]
38: ; preds = %33
%39 = load ptr, ptr %7, align 8
%40 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%41 = ptrtoint ptr %39 to i64
%42 = ptrtoint ptr %40 to i64
%43 = sub i64 %41, %42
%44 = icmp slt i64 %43, 29999
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = load ptr, ptr %7, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %7, align 8
br label %50
48: ; preds = %38
%49 = call i32 @die(ptr noundef @.str.3)
br label %50
50: ; preds = %48, %45
br label %184
51: ; preds = %33
%52 = load ptr, ptr %7, align 8
%53 = getelementptr inbounds [30000 x i8], ptr %6, i64 0, i64 0
%54 = ptrtoint ptr %52 to i64
%55 = ptrtoint ptr %53 to i64
%56 = sub i64 %54, %55
%57 = icmp sgt i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 -1
store ptr %60, ptr %7, align 8
br label %63
61: ; preds = %51
%62 = call i32 @die(ptr noundef @.str.4)
br label %63
63: ; preds = %61, %58
br label %184
64: ; preds = %33
%65 = load ptr, ptr %7, align 8
%66 = load i8, ptr %65, align 1
%67 = add i8 %66, 1
store i8 %67, ptr %65, align 1
br label %184
68: ; preds = %33
%69 = load ptr, ptr %7, align 8
%70 = load i8, ptr %69, align 1
%71 = add i8 %70, -1
store i8 %71, ptr %69, align 1
br label %184
72: ; preds = %33
%73 = load ptr, ptr %7, align 8
%74 = load i8, ptr %73, align 1
%75 = call i32 @putchar(i8 noundef zeroext %74)
%76 = load i32, ptr @EOF, align 4
%77 = icmp eq i32 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %72
%79 = call i32 @die(ptr noundef @.str.5)
br label %80
80: ; preds = %78, %72
br label %184
81: ; preds = %33
%82 = call i32 (...) @getchar()
store i32 %82, ptr %9, align 4
%83 = load i32, ptr @EOF, align 4
%84 = icmp eq i32 %82, %83
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = load ptr, ptr @stdin, align 8
%87 = call i64 @ferror(ptr noundef %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = call i32 @die(ptr noundef @.str.6)
br label %91
91: ; preds = %89, %85
br label %96
92: ; preds = %81
%93 = load i32, ptr %9, align 4
%94 = trunc i32 %93 to i8
%95 = load ptr, ptr %7, align 8
store i8 %94, ptr %95, align 1
br label %96
96: ; preds = %92, %91
br label %184
97: ; preds = %33
%98 = load ptr, ptr %7, align 8
%99 = load i8, ptr %98, align 1
%100 = zext i8 %99 to i32
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %136
102: ; preds = %97
store i32 1, ptr %10, align 4
%103 = load i32, ptr %10, align 4
%104 = icmp sgt i32 %103, 0
br i1 %104, label %.lr.ph2, label %135
.lr.ph2: ; preds = %102
br label %105
105: ; preds = %.lr.ph2, %132
%106 = load ptr, ptr %8, align 8
%107 = call i32 @fgetc(ptr noundef %106)
store i32 %107, ptr %9, align 4
%108 = load i32, ptr @EOF, align 4
%109 = icmp eq i32 %107, %108
br i1 %109, label %110, label %119
110: ; preds = %105
%111 = load ptr, ptr %8, align 8
%112 = call i64 @ferror(ptr noundef %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 @die(ptr noundef @.str.7)
br label %118
116: ; preds = %110
%117 = call i32 @die(ptr noundef @.str.8)
br label %118
118: ; preds = %116, %114
br label %119
119: ; preds = %118, %105
%120 = load i32, ptr %9, align 4
%121 = icmp eq i32 %120, 91
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load i32, ptr %10, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %10, align 4
br label %132
125: ; preds = %119
%126 = load i32, ptr %9, align 4
%127 = icmp eq i32 %126, 93
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load i32, ptr %10, align 4
%130 = add nsw i32 %129, -1
store i32 %130, ptr %10, align 4
br label %131
131: ; preds = %128, %125
br label %132
132: ; preds = %131, %122
%133 = load i32, ptr %10, align 4
%134 = icmp sgt i32 %133, 0
br i1 %134, label %105, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %132
br label %135
135: ; preds = %._crit_edge3, %102
br label %136
136: ; preds = %135, %97
br label %184
137: ; preds = %33
%138 = load ptr, ptr %7, align 8
%139 = load i8, ptr %138, align 1
%140 = zext i8 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %183
142: ; preds = %137
store i32 1, ptr %10, align 4
%143 = load i32, ptr %10, align 4
%144 = icmp sgt i32 %143, 0
br i1 %144, label %.lr.ph, label %182
.lr.ph: ; preds = %142
br label %145
145: ; preds = %.lr.ph, %179
%146 = load ptr, ptr %8, align 8
%147 = load i32, ptr @SEEK_CUR, align 4
%148 = call i32 @fseek(ptr noundef %146, i32 noundef -2, i32 noundef %147)
%149 = icmp eq i32 %148, -1
br i1 %149, label %150, label %152
150: ; preds = %145
%151 = call i32 @die_errno(ptr noundef @.str.9)
br label %152
152: ; preds = %150, %145
%153 = load ptr, ptr %8, align 8
%154 = call i32 @fgetc(ptr noundef %153)
store i32 %154, ptr %9, align 4
%155 = load i32, ptr @EOF, align 4
%156 = icmp eq i32 %154, %155
br i1 %156, label %157, label %166
157: ; preds = %152
%158 = load ptr, ptr %8, align 8
%159 = call i64 @ferror(ptr noundef %158)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %163
161: ; preds = %157
%162 = call i32 @die(ptr noundef @.str.7)
br label %165
163: ; preds = %157
%164 = call i32 @die(ptr noundef @.str.10)
br label %165
165: ; preds = %163, %161
br label %166
166: ; preds = %165, %152
%167 = load i32, ptr %9, align 4
%168 = icmp eq i32 %167, 93
br i1 %168, label %169, label %172
169: ; preds = %166
%170 = load i32, ptr %10, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %10, align 4
br label %179
172: ; preds = %166
%173 = load i32, ptr %9, align 4
%174 = icmp eq i32 %173, 91
br i1 %174, label %175, label %178
175: ; preds = %172
%176 = load i32, ptr %10, align 4
%177 = add nsw i32 %176, -1
store i32 %177, ptr %10, align 4
br label %178
178: ; preds = %175, %172
br label %179
179: ; preds = %178, %169
%180 = load i32, ptr %10, align 4
%181 = icmp sgt i32 %180, 0
br i1 %181, label %145, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %179
br label %182
182: ; preds = %._crit_edge, %142
br label %183
183: ; preds = %182, %137
br label %184
184: ; preds = %183, %136, %96, %80, %68, %64, %63, %50, %33
%185 = load ptr, ptr %8, align 8
%186 = call i32 @fgetc(ptr noundef %185)
store i32 %186, ptr %9, align 4
%187 = load i32, ptr @EOF, align 4
%188 = icmp ne i32 %186, %187
br i1 %188, label %33, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %184
br label %189
189: ; preds = %._crit_edge6, %28
%190 = load ptr, ptr %8, align 8
%191 = call i64 @ferror(ptr noundef %190)
%192 = icmp ne i64 %191, 0
br i1 %192, label %193, label %195
193: ; preds = %189
%194 = call i32 @die(ptr noundef @.str.7)
br label %195
195: ; preds = %193, %189
%196 = load ptr, ptr %8, align 8
%197 = call i32 @fclose(ptr noundef %196)
%198 = load i32, ptr @EOF, align 4
%199 = icmp eq i32 %197, %198
br i1 %199, label %200, label %202
200: ; preds = %195
%201 = call i32 @die_errno(ptr noundef @.str.11)
br label %202
202: ; preds = %200, %195
ret i32 0
}
declare i32 @die(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @die_errno(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @putchar(i8 noundef zeroext) #1
declare i32 @getchar(...) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmcb03rqn.c'
source_filename = "/tmp/tmpmcb03rqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @_mm_monitorx(ptr noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %10, align 4
%18 = call i32 @_mm_mwaitx(i32 noundef %15, i32 noundef %16, i32 noundef %17)
ret void
}
declare i32 @_mm_monitorx(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @_mm_mwaitx(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcb03rqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @_mm_monitorx(ptr noundef %11, i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %10, align 4
%18 = call i32 @_mm_mwaitx(i32 noundef %15, i32 noundef %16, i32 noundef %17)
ret void
}
declare i32 @_mm_monitorx(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @_mm_mwaitx(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpllilrhs9.c'
source_filename = "/tmp/tmpllilrhs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cal_exp_affinity_mat(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca 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
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %11
11: ; preds = %64, %4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %67
15: ; preds = %11
%16 = load i32, ptr %9, align 4
store i32 %16, ptr %10, align 4
br label %17
17: ; preds = %60, %15
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %63
21: ; preds = %17
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %8, align 4
%33 = call i32 @innerprod(ptr noundef %26, ptr noundef %31, i32 noundef %32)
%34 = call double @exp(i32 noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
store double %34, ptr %42, align 8
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %10, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %47, i64 %49
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds ptr, ptr %52, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
store double %51, ptr %59, align 8
br label %60
60: ; preds = %21
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
br label %17, !llvm.loop !6
63: ; preds = %17
br label %64
64: ; preds = %63
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
br label %11, !llvm.loop !8
67: ; preds = %11
ret void
}
declare double @exp(i32 noundef) #1
declare i32 @innerprod(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpllilrhs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cal_exp_affinity_mat(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca 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
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph2, label %71
.lr.ph2: ; preds = %4
br label %14
14: ; preds = %.lr.ph2, %65
%15 = load i32, ptr %9, align 4
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %64
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %58
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load i32, ptr %8, align 4
%31 = call i32 @innerprod(ptr noundef %24, ptr noundef %29, i32 noundef %30)
%32 = call double @exp(i32 noundef %31)
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %37, i64 %39
store double %32, ptr %40, align 8
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %45, i64 %47
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
store double %49, ptr %57, align 8
br label %58
58: ; preds = %19
%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 = load i32, ptr %7, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %14
br label %65
65: ; preds = %64
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %71
71: ; preds = %._crit_edge3, %4
ret void
}
declare double @exp(i32 noundef) #1
declare i32 @innerprod(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmplzaowtyb.c'
source_filename = "/tmp/tmplzaowtyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean_str(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
store i8 0, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %40, %2
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %43
18: ; preds = %14
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 13
br i1 %25, label %34, label %26
26: ; preds = %18
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 10
br i1 %33, label %34, label %39
34: ; preds = %26, %18
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 0, ptr %38, align 1
br label %39
39: ; preds = %34, %26
br label %40
40: ; preds = %39
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
br label %14, !llvm.loop !6
43: ; preds = %14
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplzaowtyb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean_str(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
store i8 0, ptr %10, align 1
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %6, align 4
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %45
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %39
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 13
br i1 %24, label %33, label %25
25: ; preds = %17
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 10
br i1 %32, label %33, label %38
33: ; preds = %25, %17
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 0, ptr %37, align 1
br label %38
38: ; preds = %33, %25
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %2
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7onb8r2v.c'
source_filename = "/tmp/tmp7onb8r2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rad_to_deg(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fmul double 3.600000e+02, %3
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to double
%8 = fdiv double %4, %7
ret double %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7onb8r2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @rad_to_deg(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fmul double 3.600000e+02, %3
%5 = load i32, ptr @M_PI, align 4
%6 = mul nsw i32 2, %5
%7 = sitofp i32 %6 to double
%8 = fdiv double %4, %7
ret double %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8ieypasd.c'
source_filename = "/tmp/tmp8ieypasd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Must be root\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"One argument required: ++ or --\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"lspci | grep VGA\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"%20d:%2d.%1d VGA\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"lspci couldn't find your vga adapter\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"setpci -s %02d:%02d.%01d F4.B\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"setpci didn't work\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"++\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"--\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"++ to increase, -- to decrease\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"setpci -s %02d:%02d.%01d F4.B=%x\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 [3 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i64 (...) @geteuid()
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %94
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %94
20: ; preds = %15
%21 = call ptr @popen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%24 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%25 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%26 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %22, ptr noundef @.str.4, ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %10, align 8
%28 = call i32 @pclose(ptr noundef %27)
%29 = load i32, ptr %8, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %20
%32 = call i32 @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %94
33: ; preds = %20
%34 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%35 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%40 = load i32, ptr %39, align 4
%41 = call i32 (ptr, i32, ptr, i32, i32, i32, ...) @snprintf(ptr noundef %34, i32 noundef 100, ptr noundef @.str.6, i32 noundef %36, i32 noundef %38, i32 noundef %40)
%42 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%43 = call ptr @popen(ptr noundef %42, ptr noundef @.str.3)
store ptr %43, ptr %10, align 8
%44 = load ptr, ptr %10, align 8
%45 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %44, ptr noundef @.str.7, ptr noundef %6)
store i32 %45, ptr %8, align 4
%46 = load ptr, ptr %10, align 8
%47 = call i32 @pclose(ptr noundef %46)
%48 = load i32, ptr %8, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %52, label %50
50: ; preds = %33
%51 = call i32 @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %94
52: ; preds = %33
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.9)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %52
%59 = load i32, ptr %6, align 4
%60 = add i32 %59, 10
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp ugt i32 %61, 255
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 255, ptr %6, align 4
br label %64
64: ; preds = %63, %58
br label %82
65: ; preds = %52
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i64 @strcmp(ptr noundef %68, ptr noundef @.str.10)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %65
%72 = load i32, ptr %6, align 4
%73 = icmp ult i32 %72, 10
br i1 %73, label %74, label %75
74: ; preds = %71
store i32 0, ptr %6, align 4
br label %78
75: ; preds = %71
%76 = load i32, ptr %6, align 4
%77 = sub i32 %76, 10
store i32 %77, ptr %6, align 4
br label %78
78: ; preds = %75, %74
br label %81
79: ; preds = %65
%80 = call i32 @printf(ptr noundef @.str.11)
store i32 1, ptr %3, align 4
br label %94
81: ; preds = %78
br label %82
82: ; preds = %81, %64
%83 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%84 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%85 = load i32, ptr %84, align 4
%86 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%87 = load i32, ptr %86, align 4
%88 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %6, align 4
%91 = call i32 (ptr, i32, ptr, i32, i32, i32, ...) @snprintf(ptr noundef %83, i32 noundef 100, ptr noundef @.str.12, i32 noundef %85, i32 noundef %87, i32 noundef %89, i32 noundef %90)
%92 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%93 = call i32 @system(ptr noundef %92)
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %82, %79, %50, %31, %18, %13
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare i64 @geteuid(...) #1
declare i32 @printf(ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @pclose(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ieypasd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Must be root\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"One argument required: ++ or --\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"lspci | grep VGA\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"%20d:%2d.%1d VGA\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"lspci couldn't find your vga adapter\0A\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"setpci -s %02d:%02d.%01d F4.B\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"setpci didn't work\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"++\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"--\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"++ to increase, -- to decrease\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"setpci -s %02d:%02d.%01d F4.B=%x\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 [3 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i64 (...) @geteuid()
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %94
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %94
20: ; preds = %15
%21 = call ptr @popen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%24 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%25 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%26 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %22, ptr noundef @.str.4, ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %10, align 8
%28 = call i32 @pclose(ptr noundef %27)
%29 = load i32, ptr %8, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %20
%32 = call i32 @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %94
33: ; preds = %20
%34 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%35 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%36 = load i32, ptr %35, align 4
%37 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%38 = load i32, ptr %37, align 4
%39 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%40 = load i32, ptr %39, align 4
%41 = call i32 (ptr, i32, ptr, i32, i32, i32, ...) @snprintf(ptr noundef %34, i32 noundef 100, ptr noundef @.str.6, i32 noundef %36, i32 noundef %38, i32 noundef %40)
%42 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%43 = call ptr @popen(ptr noundef %42, ptr noundef @.str.3)
store ptr %43, ptr %10, align 8
%44 = load ptr, ptr %10, align 8
%45 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %44, ptr noundef @.str.7, ptr noundef %6)
store i32 %45, ptr %8, align 4
%46 = load ptr, ptr %10, align 8
%47 = call i32 @pclose(ptr noundef %46)
%48 = load i32, ptr %8, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %52, label %50
50: ; preds = %33
%51 = call i32 @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %94
52: ; preds = %33
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i64 @strcmp(ptr noundef %55, ptr noundef @.str.9)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %52
%59 = load i32, ptr %6, align 4
%60 = add i32 %59, 10
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = icmp ugt i32 %61, 255
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 255, ptr %6, align 4
br label %64
64: ; preds = %63, %58
br label %82
65: ; preds = %52
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i64 @strcmp(ptr noundef %68, ptr noundef @.str.10)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %65
%72 = load i32, ptr %6, align 4
%73 = icmp ult i32 %72, 10
br i1 %73, label %74, label %75
74: ; preds = %71
store i32 0, ptr %6, align 4
br label %78
75: ; preds = %71
%76 = load i32, ptr %6, align 4
%77 = sub i32 %76, 10
store i32 %77, ptr %6, align 4
br label %78
78: ; preds = %75, %74
br label %81
79: ; preds = %65
%80 = call i32 @printf(ptr noundef @.str.11)
store i32 1, ptr %3, align 4
br label %94
81: ; preds = %78
br label %82
82: ; preds = %81, %64
%83 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%84 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 0
%85 = load i32, ptr %84, align 4
%86 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 1
%87 = load i32, ptr %86, align 4
%88 = getelementptr inbounds [3 x i32], ptr %7, i64 0, i64 2
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %6, align 4
%91 = call i32 (ptr, i32, ptr, i32, i32, i32, ...) @snprintf(ptr noundef %83, i32 noundef 100, ptr noundef @.str.12, i32 noundef %85, i32 noundef %87, i32 noundef %89, i32 noundef %90)
%92 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%93 = call i32 @system(ptr noundef %92)
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %82, %79, %50, %31, %18, %13
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare i64 @geteuid(...) #1
declare i32 @printf(ptr noundef) #1
declare ptr @popen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @pclose(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp140sxyui.c'
source_filename = "/tmp/tmp140sxyui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Divisors are:\09\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"No divisors\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @divisor(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sgt i32 %5, 1
br i1 %6, label %7, label %26
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %4, align 4
br label %9
9: ; preds = %22, %7
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %25
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i32, ptr %4, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
br label %21
21: ; preds = %18, %13
br label %22
22: ; preds = %21
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %9, !llvm.loop !6
25: ; preds = %9
br label %28
26: ; preds = %1
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %28
28: ; preds = %26, %25
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
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/tmp140sxyui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Divisors are:\09\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"No divisors\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @divisor(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sgt i32 %5, 1
br i1 %6, label %7, label %28
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %27
.lr.ph: ; preds = %7
br label %12
12: ; preds = %.lr.ph, %21
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = srem i32 %13, %14
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = load i32, ptr %4, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
br label %20
20: ; preds = %17, %12
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %7
br label %30
28: ; preds = %1
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %27
%31 = load ptr, ptr %2, align 8
ret ptr %31
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuxbzblk_.c'
source_filename = "/tmp/tmpuxbzblk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %26, %2
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %29
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i8, ptr %4, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %18, %20
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %22, %12
br label %26
26: ; preds = %25
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %7, !llvm.loop !6
29: ; preds = %7
%30 = load i32, ptr %6, align 4
ret i32 %30
}
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/tmpuxbzblk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %25
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %17, %19
br i1 %20, label %21, label %24
21: ; preds = %11
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %21, %11
br label %25
25: ; preds = %24
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = load ptr, ptr %3, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = icmp slt i32 %28, %30
br i1 %31, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %32
32: ; preds = %._crit_edge, %2
%33 = load i32, ptr %6, 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/tmppctxttfn.c'
source_filename = "/tmp/tmppctxttfn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Please enter a string > \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"The number of syllables is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%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 i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 19, i32 noundef %11)
%13 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %15
15: ; preds = %71, %0
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %74
19: ; preds = %15
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 10
br i1 %25, label %26, label %27
26: ; preds = %19
br label %71
27: ; preds = %19
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %33, 91
br i1 %34, label %35, label %41
35: ; preds = %27
%36 = load i32, ptr %6, align 4
%37 = icmp sgt i32 %36, 64
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 32
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %38, %35, %27
%42 = load i32, ptr %6, align 4
%43 = trunc i32 %42 to i8
store i8 %43, ptr %8, align 1
%44 = load i8, ptr %8, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 97
br i1 %46, label %67, label %47
47: ; preds = %41
%48 = load i8, ptr %8, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 101
br i1 %50, label %67, label %51
51: ; preds = %47
%52 = load i8, ptr %8, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 105
br i1 %54, label %67, label %55
55: ; preds = %51
%56 = load i8, ptr %8, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 111
br i1 %58, label %67, label %59
59: ; preds = %55
%60 = load i8, ptr %8, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 117
br i1 %62, label %67, label %63
63: ; preds = %59
%64 = load i8, ptr %8, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 121
br i1 %66, label %67, label %70
67: ; preds = %63, %59, %55, %51, %47, %41
%68 = load i32, ptr %7, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %7, align 4
br label %70
70: ; preds = %67, %63
br label %71
71: ; preds = %70, %26
%72 = load i32, ptr %4, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %4, align 4
br label %15, !llvm.loop !6
74: ; preds = %15
%75 = load i32, ptr %7, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %75)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppctxttfn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Please enter a string > \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"The number of syllables is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%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 i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%11 = load i32, ptr @stdin, align 4
%12 = call i32 @fgets(ptr noundef %10, i32 noundef 19, i32 noundef %11)
%13 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %3, align 4
store i32 0, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %.lr.ph, label %76
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %70
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %26
25: ; preds = %18
br label %70
26: ; preds = %18
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 91
br i1 %33, label %34, label %40
34: ; preds = %26
%35 = load i32, ptr %6, align 4
%36 = icmp sgt i32 %35, 64
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 32
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %34, %26
%41 = load i32, ptr %6, align 4
%42 = trunc i32 %41 to i8
store i8 %42, ptr %8, align 1
%43 = load i8, ptr %8, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 97
br i1 %45, label %66, label %46
46: ; preds = %40
%47 = load i8, ptr %8, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 101
br i1 %49, label %66, label %50
50: ; preds = %46
%51 = load i8, ptr %8, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 105
br i1 %53, label %66, label %54
54: ; preds = %50
%55 = load i8, ptr %8, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 111
br i1 %57, label %66, label %58
58: ; preds = %54
%59 = load i8, ptr %8, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 117
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = load i8, ptr %8, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 121
br i1 %65, label %66, label %69
66: ; preds = %62, %58, %54, %50, %46, %40
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
br label %69
69: ; preds = %66, %62
br label %70
70: ; preds = %69, %25
%71 = load i32, ptr %4, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %4, align 4
%73 = load i32, ptr %4, align 4
%74 = load i32, ptr %3, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %0
%77 = load i32, ptr %7, align 4
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %77)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk3ks8oop.c'
source_filename = "/tmp/tmpk3ks8oop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x i8], align 1
%3 = alloca [2 x i8], align 1
store i32 0, ptr %1, align 4
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @fflush(i32 noundef %4)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = getelementptr inbounds [2 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk3ks8oop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x i8], align 1
%3 = alloca [2 x i8], align 1
store i32 0, ptr %1, align 4
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @fflush(i32 noundef %4)
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = getelementptr inbounds [2 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 0
}
declare i32 @fflush(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp399jqz0f.c'
source_filename = "/tmp/tmp399jqz0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/mnt/0/dir\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"mkdir failed\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"/mnt/0/dir/sub\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"rename failed\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 @mkdir(ptr noundef @.str, i32 noundef 493)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @err(i32 noundef 1, ptr noundef @.str.1)
br label %10
10: ; preds = %8, %2
%11 = call i32 @rename(ptr noundef @.str, ptr noundef @.str.2)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @err(i32 noundef 1, ptr noundef @.str.3)
br label %15
15: ; preds = %13, %10
ret i32 0
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @rename(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/tmp399jqz0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/mnt/0/dir\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"mkdir failed\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"/mnt/0/dir/sub\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"rename failed\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 @mkdir(ptr noundef @.str, i32 noundef 493)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @err(i32 noundef 1, ptr noundef @.str.1)
br label %10
10: ; preds = %8, %2
%11 = call i32 @rename(ptr noundef @.str, ptr noundef @.str.2)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @err(i32 noundef 1, ptr noundef @.str.3)
br label %15
15: ; preds = %13, %10
ret i32 0
}
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i32 @rename(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/tmpprzyfigp.c'
source_filename = "/tmp/tmpprzyfigp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XButtonEvent_root(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpprzyfigp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XButtonEvent_root(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw8umil3t.c'
source_filename = "/tmp/tmpw8umil3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @utils_safe_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %8
8: ; preds = %20, %3
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i64 @write(i32 noundef %9, ptr noundef %10, i64 noundef %11)
store i64 %12, ptr %7, align 8
br label %13
13: ; preds = %8
%14 = load i64, ptr %7, align 8
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i64, ptr @errno, align 8
%18 = load i64, ptr @EINTR, align 8
%19 = icmp eq i64 %17, %18
br label %20
20: ; preds = %16, %13
%21 = phi i1 [ false, %13 ], [ %19, %16 ]
br i1 %21, label %8, label %22, !llvm.loop !6
22: ; preds = %20
%23 = load i64, ptr %7, align 8
ret i64 %23
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8umil3t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @utils_safe_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %8
8: ; preds = %20, %3
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = call i64 @write(i32 noundef %9, ptr noundef %10, i64 noundef %11)
store i64 %12, ptr %7, align 8
br label %13
13: ; preds = %8
%14 = load i64, ptr %7, align 8
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load i64, ptr @errno, align 8
%18 = load i64, ptr @EINTR, align 8
%19 = icmp eq i64 %17, %18
br label %20
20: ; preds = %16, %13
%21 = phi i1 [ false, %13 ], [ %19, %16 ]
br i1 %21, label %8, label %22, !llvm.loop !6
22: ; preds = %20
%23 = load i64, ptr %7, align 8
ret i64 %23
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1po0z5sp.c'
source_filename = "/tmp/tmp1po0z5sp.c"
target datalayout = "e-m:e-p270: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/tmp1po0z5sp.c"
target datalayout = "e-m:e-p270: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/tmpvu2qu7k4.c'
source_filename = "/tmp/tmpvu2qu7k4.c"
target datalayout = "e-m:e-p270: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/tmpvu2qu7k4.c"
target datalayout = "e-m:e-p270: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/tmpn3e8q5c5.c'
source_filename = "/tmp/tmpn3e8q5c5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @div(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 = sdiv i32 %5, %6
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/tmpn3e8q5c5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @div(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 = sdiv i32 %5, %6
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/tmpuxnum02o.c'
source_filename = "/tmp/tmpuxnum02o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter filename: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"can't open %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %25
9: ; preds = %2
%10 = call ptr @malloc(i32 noundef 200)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 0, ptr %12, align 1
br label %13
13: ; preds = %19, %9
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %23
19: ; preds = %13
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %21)
br label %13, !llvm.loop !6
23: ; preds = %13
%24 = call i32 (...) @getchar()
br label %29
25: ; preds = %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
store ptr %28, ptr %6, align 8
br label %29
29: ; preds = %25, %23
%30 = load ptr, ptr %6, align 8
%31 = call i64 @file_load(ptr noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load ptr, ptr %6, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %34)
store i32 -1, ptr %3, align 4
br label %40
36: ; preds = %29
%37 = call i32 (...) @console_init()
%38 = call i32 (...) @command_mode()
%39 = call i32 (...) @console_black()
store i32 0, ptr %3, align 4
br label %40
40: ; preds = %36, %33
%41 = load i32, ptr %3, align 4
ret i32 %41
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @file_load(ptr noundef) #1
declare i32 @console_init(...) #1
declare i32 @command_mode(...) #1
declare i32 @console_black(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpuxnum02o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter filename: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"can't open %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %28
9: ; preds = %2
%10 = call ptr @malloc(i32 noundef 200)
store ptr %10, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
store i8 0, ptr %12, align 1
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
%16 = xor i1 %15, true
br i1 %16, label %.lr.ph, label %26
.lr.ph: ; preds = %9
br label %17
17: ; preds = %.lr.ph, %17
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = load ptr, ptr %6, align 8
%20 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = icmp ne i8 %23, 0
%25 = xor i1 %24, true
br i1 %25, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %26
26: ; preds = %._crit_edge, %9
%27 = call i32 (...) @getchar()
br label %32
28: ; preds = %2
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %6, align 8
br label %32
32: ; preds = %28, %26
%33 = load ptr, ptr %6, align 8
%34 = call i64 @file_load(ptr noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load ptr, ptr %6, align 8
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %37)
store i32 -1, ptr %3, align 4
br label %43
39: ; preds = %32
%40 = call i32 (...) @console_init()
%41 = call i32 (...) @command_mode()
%42 = call i32 (...) @console_black()
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %39, %36
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @file_load(ptr noundef) #1
declare i32 @console_init(...) #1
declare i32 @command_mode(...) #1
declare i32 @console_black(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqslrtntl.c'
source_filename = "/tmp/tmpqslrtntl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_message_read(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 i32, ptr @EINVAL, align 4
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqslrtntl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_message_read(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 i32, ptr @EINVAL, align 4
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpse75z6sw.c'
source_filename = "/tmp/tmpse75z6sw.c"
target datalayout = "e-m:e-p270: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/tmpse75z6sw.c"
target datalayout = "e-m:e-p270: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/tmpt4puf9ky.c'
source_filename = "/tmp/tmpt4puf9ky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"bin\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @KSRM16162742943295_br_find_bin_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @KSRM16162742943295_br_find_prefix(ptr noundef null)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %16
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %22
15: ; preds = %9
store ptr null, ptr %2, align 8
br label %22
16: ; preds = %1
%17 = load ptr, ptr %4, align 8
%18 = call ptr @KSRM16162742943295_br_build_path(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %2, align 8
br label %22
22: ; preds = %16, %15, %12
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @KSRM16162742943295_br_find_prefix(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @KSRM16162742943295_br_build_path(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt4puf9ky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"bin\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @KSRM16162742943295_br_find_bin_dir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = call ptr @KSRM16162742943295_br_find_prefix(ptr noundef null)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %16
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = call ptr @strdup(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %22
15: ; preds = %9
store ptr null, ptr %2, align 8
br label %22
16: ; preds = %1
%17 = load ptr, ptr %4, align 8
%18 = call ptr @KSRM16162742943295_br_build_path(ptr noundef %17, ptr noundef @.str)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i32 @free(ptr noundef %19)
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %2, align 8
br label %22
22: ; preds = %16, %15, %12
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @KSRM16162742943295_br_find_prefix(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare ptr @KSRM16162742943295_br_build_path(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4xg86f2f.c'
source_filename = "/tmp/tmp4xg86f2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\B8\80\E4\B8\AA\E9\9D\9E\E8\B4\9F\E6\95\B4\E6\95\B0\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\E4\B8\8D\E8\A6\81\E8\BE\93\E5\85\A5\E8\B4\9F\E6\95\B0\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\E6\98\AF\E5\90\A6\E7\BB\A7\E7\BB\AD\E6\89\A7\E8\A1\8C?[Yes...0/NO...9]:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %31, %0
br label %6
6: ; preds = %14, %5
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = call i32 @puts(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %6
br label %14
14: ; preds = %13
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %6, label %17, !llvm.loop !6
17: ; preds = %14
store i32 1, ptr %4, align 4
br label %18
18: ; preds = %24, %17
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = call i32 @putchar(i8 noundef signext 42)
br label %24
24: ; preds = %22
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %18, !llvm.loop !8
27: ; preds = %18
%28 = call i32 @putchar(i8 noundef signext 10)
%29 = call i32 @printf(ptr noundef @.str.3)
%30 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %31
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %5, label %35, !llvm.loop !9
35: ; preds = %31
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4xg86f2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\B8\80\E4\B8\AA\E9\9D\9E\E8\B4\9F\E6\95\B4\E6\95\B0\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\E4\B8\8D\E8\A6\81\E8\BE\93\E5\85\A5\E8\B4\9F\E6\95\B0\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\E6\98\AF\E5\90\A6\E7\BB\A7\E7\BB\AD\E6\89\A7\E8\A1\8C?[Yes...0/NO...9]:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %33, %0
br label %6
6: ; preds = %14, %5
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = call i32 @puts(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %6
br label %14
14: ; preds = %13
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %6, label %17, !llvm.loop !6
17: ; preds = %14
store i32 1, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %.lr.ph, label %29
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %23
%22 = call i32 @putchar(i8 noundef signext 42)
br label %23
23: ; preds = %21
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %21, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %17
%30 = call i32 @putchar(i8 noundef signext 10)
%31 = call i32 @printf(ptr noundef @.str.3)
%32 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %33
33: ; preds = %29
%34 = load i32, ptr %2, align 4
%35 = icmp ne i32 %34, 0
%36 = xor i1 %35, true
br i1 %36, label %5, label %37, !llvm.loop !9
37: ; preds = %33
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpjqwumbig.c'
source_filename = "/tmp/tmpjqwumbig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [60 x i8] c"Don't install rep-remote setuid; it's not designed for it.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [64 x ptr], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call i32 @fflush(i32 noundef 0)
%11 = call i64 (...) @getuid()
%12 = call i64 (...) @geteuid()
%13 = icmp ne i64 %11, %12
br i1 %13, label %18, label %14
14: ; preds = %2
%15 = call i64 (...) @getgid()
%16 = call i64 (...) @getegid()
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %14, %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fputs(ptr noundef @.str, i32 noundef %19)
store i32 10, ptr %3, align 4
br label %117
21: ; preds = %14
%22 = call i32 (...) @print_signature()
br label %23
23: ; preds = %21, %116
%24 = call i32 (...) @read_char()
store i32 %24, ptr %7, align 4
%25 = call i32 (...) @read_char()
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %33, label %29
29: ; preds = %23
%30 = load i32, ptr %8, align 4
%31 = load i32, ptr @EOF, align 4
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29, %23
store i32 0, ptr %3, align 4
br label %117
34: ; preds = %29
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 64
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 noundef %37)
store i32 0, ptr %9, align 4
br label %39
39: ; preds = %48, %34
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %8, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %51
43: ; preds = %39
%44 = call ptr (...) @read_string()
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %46
store ptr %44, ptr %47, align 8
br label %48
48: ; preds = %43
%49 = load i32, ptr %9, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %9, align 4
br label %39, !llvm.loop !6
51: ; preds = %39
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %53
store ptr null, ptr %54, align 8
%55 = load i32, ptr %7, align 4
switch i32 %55, label %102 [
i32 71, label %56
i32 80, label %60
i32 82, label %64
i32 114, label %68
i32 77, label %72
i32 109, label %76
i32 67, label %80
i32 99, label %84
i32 108, label %88
i32 76, label %92
i32 68, label %96
i32 81, label %100
i32 10, label %101
i32 13, label %101
]
56: ; preds = %51
%57 = load i32, ptr %8, align 4
%58 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%59 = call i32 @do_get(i32 noundef %57, ptr noundef %58)
br label %102
60: ; preds = %51
%61 = load i32, ptr %8, align 4
%62 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%63 = call i32 @do_put(i32 noundef %61, ptr noundef %62)
br label %102
64: ; preds = %51
%65 = load i32, ptr %8, align 4
%66 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%67 = call i32 @do_rm(i32 noundef %65, ptr noundef %66)
br label %102
68: ; preds = %51
%69 = load i32, ptr %8, align 4
%70 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%71 = call i32 @do_rmdir(i32 noundef %69, ptr noundef %70)
br label %102
72: ; preds = %51
%73 = load i32, ptr %8, align 4
%74 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%75 = call i32 @do_mv(i32 noundef %73, ptr noundef %74)
br label %102
76: ; preds = %51
%77 = load i32, ptr %8, align 4
%78 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%79 = call i32 @do_mkdir(i32 noundef %77, ptr noundef %78)
br label %102
80: ; preds = %51
%81 = load i32, ptr %8, align 4
%82 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%83 = call i32 @do_cp(i32 noundef %81, ptr noundef %82)
br label %102
84: ; preds = %51
%85 = load i32, ptr %8, align 4
%86 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%87 = call i32 @do_chmod(i32 noundef %85, ptr noundef %86)
br label %102
88: ; preds = %51
%89 = load i32, ptr %8, align 4
%90 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%91 = call i32 @do_readlink(i32 noundef %89, ptr noundef %90)
br label %102
92: ; preds = %51
%93 = load i32, ptr %8, align 4
%94 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%95 = call i32 @do_symlink(i32 noundef %93, ptr noundef %94)
br label %102
96: ; preds = %51
%97 = load i32, ptr %8, align 4
%98 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%99 = call i32 @do_readdir(i32 noundef %97, ptr noundef %98)
br label %102
100: ; preds = %51
store i32 0, ptr %3, align 4
br label %117
101: ; preds = %51, %51
br label %102
102: ; preds = %51, %101, %96, %92, %88, %84, %80, %76, %72, %68, %64, %60, %56
store i32 0, ptr %9, align 4
br label %103
103: ; preds = %113, %102
%104 = load i32, ptr %9, align 4
%105 = load i32, ptr %8, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %116
107: ; preds = %103
%108 = load i32, ptr %9, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %109
%111 = load ptr, ptr %110, align 8
%112 = call i32 @free(ptr noundef %111)
br label %113
113: ; preds = %107
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %9, align 4
br label %103, !llvm.loop !8
116: ; preds = %103
br label %23
117: ; preds = %100, %33, %18
%118 = load i32, ptr %3, align 4
ret i32 %118
}
declare i32 @fflush(i32 noundef) #1
declare i64 @getuid(...) #1
declare i64 @geteuid(...) #1
declare i64 @getgid(...) #1
declare i64 @getegid(...) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @print_signature(...) #1
declare i32 @read_char(...) #1
declare i32 @assert(i32 noundef) #1
declare ptr @read_string(...) #1
declare i32 @do_get(i32 noundef, ptr noundef) #1
declare i32 @do_put(i32 noundef, ptr noundef) #1
declare i32 @do_rm(i32 noundef, ptr noundef) #1
declare i32 @do_rmdir(i32 noundef, ptr noundef) #1
declare i32 @do_mv(i32 noundef, ptr noundef) #1
declare i32 @do_mkdir(i32 noundef, ptr noundef) #1
declare i32 @do_cp(i32 noundef, ptr noundef) #1
declare i32 @do_chmod(i32 noundef, ptr noundef) #1
declare i32 @do_readlink(i32 noundef, ptr noundef) #1
declare i32 @do_symlink(i32 noundef, ptr noundef) #1
declare i32 @do_readdir(i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqwumbig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [60 x i8] c"Don't install rep-remote setuid; it's not designed for it.\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [64 x ptr], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call i32 @fflush(i32 noundef 0)
%11 = call i64 (...) @getuid()
%12 = call i64 (...) @geteuid()
%13 = icmp ne i64 %11, %12
br i1 %13, label %18, label %14
14: ; preds = %2
%15 = call i64 (...) @getgid()
%16 = call i64 (...) @getegid()
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %14, %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fputs(ptr noundef @.str, i32 noundef %19)
store i32 10, ptr %3, align 4
br label %125
21: ; preds = %14
%22 = call i32 (...) @print_signature()
%23 = call i32 (...) @read_char()
store i32 %23, ptr %7, align 4
%24 = call i32 (...) @read_char()
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr @EOF, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %32, label %.lr.ph5
.lr.ph5: ; preds = %21
br label %28
28: ; preds = %.lr.ph5, %119
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr @EOF, align 4
%31 = icmp eq i32 %29, %30
br i1 %31, label %._crit_edge6, label %33
._crit_edge6: ; preds = %28
br label %32
._crit_edge7: ; preds = %119
br label %32
32: ; preds = %._crit_edge7, %._crit_edge6, %21
store i32 0, ptr %3, align 4
br label %125
33: ; preds = %28
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %34, 64
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 noundef %36)
store i32 0, ptr %9, align 4
%38 = load i32, ptr %9, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph, label %52
.lr.ph: ; preds = %33
br label %41
41: ; preds = %.lr.ph, %46
%42 = call ptr (...) @read_string()
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %44
store ptr %42, ptr %45, align 8
br label %46
46: ; preds = %41
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr %8, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %33
%53 = load i32, ptr %9, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %54
store ptr null, ptr %55, align 8
%56 = load i32, ptr %7, align 4
switch i32 %56, label %103 [
i32 71, label %57
i32 80, label %61
i32 82, label %65
i32 114, label %69
i32 77, label %73
i32 109, label %77
i32 67, label %81
i32 99, label %85
i32 108, label %89
i32 76, label %93
i32 68, label %97
i32 81, label %101
i32 10, label %102
i32 13, label %102
]
57: ; preds = %52
%58 = load i32, ptr %8, align 4
%59 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%60 = call i32 @do_get(i32 noundef %58, ptr noundef %59)
br label %103
61: ; preds = %52
%62 = load i32, ptr %8, align 4
%63 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%64 = call i32 @do_put(i32 noundef %62, ptr noundef %63)
br label %103
65: ; preds = %52
%66 = load i32, ptr %8, align 4
%67 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%68 = call i32 @do_rm(i32 noundef %66, ptr noundef %67)
br label %103
69: ; preds = %52
%70 = load i32, ptr %8, align 4
%71 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%72 = call i32 @do_rmdir(i32 noundef %70, ptr noundef %71)
br label %103
73: ; preds = %52
%74 = load i32, ptr %8, align 4
%75 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%76 = call i32 @do_mv(i32 noundef %74, ptr noundef %75)
br label %103
77: ; preds = %52
%78 = load i32, ptr %8, align 4
%79 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%80 = call i32 @do_mkdir(i32 noundef %78, ptr noundef %79)
br label %103
81: ; preds = %52
%82 = load i32, ptr %8, align 4
%83 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%84 = call i32 @do_cp(i32 noundef %82, ptr noundef %83)
br label %103
85: ; preds = %52
%86 = load i32, ptr %8, align 4
%87 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%88 = call i32 @do_chmod(i32 noundef %86, ptr noundef %87)
br label %103
89: ; preds = %52
%90 = load i32, ptr %8, align 4
%91 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%92 = call i32 @do_readlink(i32 noundef %90, ptr noundef %91)
br label %103
93: ; preds = %52
%94 = load i32, ptr %8, align 4
%95 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%96 = call i32 @do_symlink(i32 noundef %94, ptr noundef %95)
br label %103
97: ; preds = %52
%98 = load i32, ptr %8, align 4
%99 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 0
%100 = call i32 @do_readdir(i32 noundef %98, ptr noundef %99)
br label %103
101: ; preds = %52
store i32 0, ptr %3, align 4
br label %125
102: ; preds = %52, %52
br label %103
103: ; preds = %102, %97, %93, %89, %85, %81, %77, %73, %69, %65, %61, %57, %52
store i32 0, ptr %9, align 4
%104 = load i32, ptr %9, align 4
%105 = load i32, ptr %8, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %.lr.ph2, label %119
.lr.ph2: ; preds = %103
br label %107
107: ; preds = %.lr.ph2, %113
%108 = load i32, ptr %9, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [64 x ptr], ptr %6, i64 0, i64 %109
%111 = load ptr, ptr %110, align 8
%112 = call i32 @free(ptr noundef %111)
br label %113
113: ; preds = %107
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %9, align 4
%116 = load i32, ptr %9, align 4
%117 = load i32, ptr %8, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %107, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %113
br label %119
119: ; preds = %._crit_edge3, %103
%120 = call i32 (...) @read_char()
store i32 %120, ptr %7, align 4
%121 = call i32 (...) @read_char()
store i32 %121, ptr %8, align 4
%122 = load i32, ptr %7, align 4
%123 = load i32, ptr @EOF, align 4
%124 = icmp eq i32 %122, %123
br i1 %124, label %._crit_edge7, label %28
125: ; preds = %101, %32, %18
%126 = load i32, ptr %3, align 4
ret i32 %126
}
declare i32 @fflush(i32 noundef) #1
declare i64 @getuid(...) #1
declare i64 @geteuid(...) #1
declare i64 @getgid(...) #1
declare i64 @getegid(...) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @print_signature(...) #1
declare i32 @read_char(...) #1
declare i32 @assert(i32 noundef) #1
declare ptr @read_string(...) #1
declare i32 @do_get(i32 noundef, ptr noundef) #1
declare i32 @do_put(i32 noundef, ptr noundef) #1
declare i32 @do_rm(i32 noundef, ptr noundef) #1
declare i32 @do_rmdir(i32 noundef, ptr noundef) #1
declare i32 @do_mv(i32 noundef, ptr noundef) #1
declare i32 @do_mkdir(i32 noundef, ptr noundef) #1
declare i32 @do_cp(i32 noundef, ptr noundef) #1
declare i32 @do_chmod(i32 noundef, ptr noundef) #1
declare i32 @do_readlink(i32 noundef, ptr noundef) #1
declare i32 @do_symlink(i32 noundef, ptr noundef) #1
declare i32 @do_readdir(i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp19bhx6y6.c'
source_filename = "/tmp/tmp19bhx6y6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mvVecNormalize2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds float, ptr %4, i64 0
%6 = load float, ptr %5, align 4
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds float, ptr %7, i64 0
%9 = load float, ptr %8, align 4
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds float, ptr %10, i64 1
%12 = load float, ptr %11, align 4
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds float, ptr %13, i64 1
%15 = load float, ptr %14, align 4
%16 = fmul float %12, %15
%17 = call float @llvm.fmuladd.f32(float %6, float %9, float %16)
%18 = call i64 @sqrt(float noundef %17)
%19 = sitofp i64 %18 to float
store float %19, ptr %3, align 4
%20 = load float, ptr %3, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds float, ptr %21, i64 0
%23 = load float, ptr %22, align 4
%24 = fdiv float %23, %20
store float %24, ptr %22, align 4
%25 = load float, ptr %3, align 4
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds float, ptr %26, i64 1
%28 = load float, ptr %27, align 4
%29 = fdiv float %28, %25
store float %29, ptr %27, align 4
ret void
}
declare i64 @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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/tmp19bhx6y6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mvVecNormalize2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds float, ptr %4, i64 0
%6 = load float, ptr %5, align 4
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds float, ptr %7, i64 0
%9 = load float, ptr %8, align 4
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds float, ptr %10, i64 1
%12 = load float, ptr %11, align 4
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds float, ptr %13, i64 1
%15 = load float, ptr %14, align 4
%16 = fmul float %12, %15
%17 = call float @llvm.fmuladd.f32(float %6, float %9, float %16)
%18 = call i64 @sqrt(float noundef %17)
%19 = sitofp i64 %18 to float
store float %19, ptr %3, align 4
%20 = load float, ptr %3, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds float, ptr %21, i64 0
%23 = load float, ptr %22, align 4
%24 = fdiv float %23, %20
store float %24, ptr %22, align 4
%25 = load float, ptr %3, align 4
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds float, ptr %26, i64 1
%28 = load float, ptr %27, align 4
%29 = fdiv float %28, %25
store float %29, ptr %27, align 4
ret void
}
declare i64 @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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/tmph04w9exy.c'
source_filename = "/tmp/tmph04w9exy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @fabs_max(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @fabs(double noundef %6)
%8 = load double, ptr %5, align 8
%9 = call i64 @fabs(double noundef %8)
%10 = icmp sgt i64 %7, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load double, ptr %4, align 8
store double %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load double, ptr %5, align 8
store double %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load double, ptr %3, align 8
ret double %16
}
declare i64 @fabs(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/tmph04w9exy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @fabs_max(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @fabs(double noundef %6)
%8 = load double, ptr %5, align 8
%9 = call i64 @fabs(double noundef %8)
%10 = icmp sgt i64 %7, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load double, ptr %4, align 8
store double %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load double, ptr %5, align 8
store double %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load double, ptr %3, align 8
ret double %16
}
declare i64 @fabs(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/tmp90wdbhlj.c'
source_filename = "/tmp/tmp90wdbhlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_debug(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @debug()
ret void
}
declare i32 @debug(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp90wdbhlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_debug(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @debug()
ret void
}
declare i32 @debug(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6aq4ofdc.c'
source_filename = "/tmp/tmp6aq4ofdc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1'b1\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"({\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"L[%i]\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"} == %i'b\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c" && (\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_verilog_line(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [4 x i32], align 16
%12 = alloca [11 x i32], align 16
%13 = alloca [11 x i32], align 16
%14 = alloca [11 x i32], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [4096 x i32], align 16
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 16, i1 false)
store i32 0, ptr %15, align 4
store i32 0, ptr %10, align 4
store i32 1, ptr %16, align 4
br label %24
24: ; preds = %69, %4
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %25, 11
br i1 %26, label %27, label %74
27: ; preds = %24
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %10, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i64
%34 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %34, align 4
store i32 %35, ptr %19, align 4
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
switch i32 %42, label %68 [
i32 0, label %43
i32 1, label %60
]
43: ; preds = %27
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i32 0, i32 1
%53 = load i32, ptr %19, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [11 x i32], ptr %12, i64 0, i64 %54
store i32 %52, ptr %55, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %19, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 %58
store i32 %56, ptr %59, align 4
br label %68
60: ; preds = %27
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %19, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [11 x i32], ptr %14, i64 0, i64 %63
store i32 %61, ptr %64, align 4
%65 = load i32, ptr %16, align 4
%66 = load i32, ptr %15, align 4
%67 = or i32 %66, %65
store i32 %67, ptr %15, align 4
br label %68
68: ; preds = %27, %60, %43
br label %69
69: ; preds = %68
%70 = load i32, ptr %10, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %10, align 4
%72 = load i32, ptr %16, align 4
%73 = shl i32 %72, 1
store i32 %73, ptr %16, align 4
br label %24, !llvm.loop !6
74: ; preds = %24
%75 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%76 = load i32, ptr %75, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %146
78: ; preds = %74
store i32 0, ptr %18, align 4
store i32 0, ptr %20, align 4
br label %79
79: ; preds = %134, %78
%80 = load i32, ptr %20, align 4
%81 = icmp slt i32 %80, 512
br i1 %81, label %82, label %137
82: ; preds = %79
store i32 0, ptr %21, align 4
br label %83
83: ; preds = %130, %82
%84 = load i32, ptr %21, align 4
%85 = icmp sle i32 %84, 7
br i1 %85, label %86, label %133
86: ; preds = %83
%87 = load i32, ptr %20, align 4
%88 = load i32, ptr %21, align 4
%89 = call i32 @prepare_selector(i32 noundef %87, i32 noundef %88)
%90 = load i32, ptr %15, align 4
%91 = and i32 %89, %90
store i32 %91, ptr %22, align 4
store i32 -1, ptr %23, align 4
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %20, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [8 x i32], ptr %92, i64 %94
%96 = load i32, ptr %21, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [8 x i32], ptr %95, i64 0, i64 %97
%99 = load i32, ptr %98, align 4
%100 = icmp ne i32 %99, 1
br i1 %100, label %101, label %102
101: ; preds = %86
br label %130
102: ; preds = %86
store i32 0, ptr %10, align 4
br label %103
103: ; preds = %117, %102
%104 = load i32, ptr %10, align 4
%105 = load i32, ptr %18, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %120
107: ; preds = %103
%108 = load i32, ptr %10, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load i32, ptr %22, align 4
%113 = icmp eq i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %107
%115 = load i32, ptr %10, align 4
store i32 %115, ptr %23, align 4
br label %120
116: ; preds = %107
br label %117
117: ; preds = %116
%118 = load i32, ptr %10, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %10, align 4
br label %103, !llvm.loop !8
120: ; preds = %114, %103
%121 = load i32, ptr %23, align 4
%122 = icmp eq i32 %121, -1
br i1 %122, label %123, label %129
123: ; preds = %120
%124 = load i32, ptr %22, align 4
%125 = load i32, ptr %18, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %18, align 4
%127 = sext i32 %125 to i64
%128 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 %127
store i32 %124, ptr %128, align 4
br label %129
129: ; preds = %123, %120
br label %130
130: ; preds = %129, %101
%131 = load i32, ptr %21, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %21, align 4
br label %83, !llvm.loop !9
133: ; preds = %83
br label %134
134: ; preds = %133
%135 = load i32, ptr %20, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %20, align 4
br label %79, !llvm.loop !10
137: ; preds = %79
%138 = load i32, ptr %18, align 4
%139 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%140 = load i32, ptr %139, align 4
%141 = shl i32 1, %140
%142 = icmp eq i32 %138, %141
br i1 %142, label %143, label %145
143: ; preds = %137
%144 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
store i32 0, ptr %144, align 4
br label %145
145: ; preds = %143, %137
br label %146
146: ; preds = %145, %74
%147 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%148 = load i32, ptr %147, align 16
%149 = icmp ne i32 %148, 0
br i1 %149, label %157, label %150
150: ; preds = %146
%151 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%152 = load i32, ptr %151, align 4
%153 = icmp ne i32 %152, 0
br i1 %153, label %157, label %154
154: ; preds = %150
%155 = load ptr, ptr %6, align 8
%156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %241
157: ; preds = %150, %146
%158 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%159 = load i32, ptr %158, align 16
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %218
161: ; preds = %157
%162 = load ptr, ptr %6, align 8
%163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.1)
store i32 0, ptr %10, align 4
br label %164
164: ; preds = %185, %161
%165 = load i32, ptr %10, align 4
%166 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%167 = load i32, ptr %166, align 16
%168 = icmp slt i32 %165, %167
br i1 %168, label %169, label %188
169: ; preds = %164
%170 = load ptr, ptr %6, align 8
%171 = load i32, ptr %10, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 %172
%174 = load i32, ptr %173, align 4
%175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.2, i32 noundef %174)
%176 = load i32, ptr %10, align 4
%177 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%178 = load i32, ptr %177, align 16
%179 = sub nsw i32 %178, 1
%180 = icmp slt i32 %176, %179
br i1 %180, label %181, label %184
181: ; preds = %169
%182 = load ptr, ptr %6, align 8
%183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.3)
br label %184
184: ; preds = %181, %169
br label %185
185: ; preds = %184
%186 = load i32, ptr %10, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %10, align 4
br label %164, !llvm.loop !11
188: ; preds = %164
%189 = load ptr, ptr %6, align 8
%190 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%191 = load i32, ptr %190, align 16
%192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.4, i32 noundef %191)
store i32 0, ptr %10, align 4
br label %193
193: ; preds = %205, %188
%194 = load i32, ptr %10, align 4
%195 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%196 = load i32, ptr %195, align 16
%197 = icmp slt i32 %194, %196
br i1 %197, label %198, label %208
198: ; preds = %193
%199 = load ptr, ptr %6, align 8
%200 = load i32, ptr %10, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [11 x i32], ptr %12, i64 0, i64 %201
%203 = load i32, ptr %202, align 4
%204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.5, i32 noundef %203)
br label %205
205: ; preds = %198
%206 = load i32, ptr %10, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %10, align 4
br label %193, !llvm.loop !12
208: ; preds = %193
%209 = load ptr, ptr %6, align 8
%210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.6)
%211 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%212 = load i32, ptr %211, align 4
%213 = icmp ne i32 %212, 0
br i1 %213, label %214, label %217
214: ; preds = %208
%215 = load ptr, ptr %6, align 8
%216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.7)
br label %217
217: ; preds = %214, %208
br label %218
218: ; preds = %217, %157
%219 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%220 = load i32, ptr %219, align 4
%221 = icmp ne i32 %220, 0
br i1 %221, label %222, label %228
222: ; preds = %218
%223 = load ptr, ptr %6, align 8
%224 = load i32, ptr %15, align 4
%225 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 0
%226 = load i32, ptr %18, align 4
%227 = call i32 @recurse_other(ptr noundef %223, i32 noundef %224, ptr noundef %225, i32 noundef %226, i32 noundef 0, i32 noundef 0, i32 noundef 1)
br label %228
228: ; preds = %222, %218
%229 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%230 = load i32, ptr %229, align 16
%231 = icmp ne i32 %230, 0
br i1 %231, label %232, label %240
232: ; preds = %228
%233 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%234 = load i32, ptr %233, align 4
%235 = icmp ne i32 %234, 0
br i1 %235, label %236, label %239
236: ; preds = %232
%237 = load ptr, ptr %6, align 8
%238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.6)
br label %239
239: ; preds = %236, %232
br label %240
240: ; preds = %239, %228
store i32 0, ptr %5, align 4
br label %241
241: ; preds = %240, %154
%242 = load i32, ptr %5, align 4
ret i32 %242
}
; 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 @prepare_selector(i32 noundef, i32 noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2
declare i32 @recurse_other(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6aq4ofdc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1'b1\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"({\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"L[%i]\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"} == %i'b\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c")\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c" && (\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_verilog_line(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca [4 x i32], align 16
%12 = alloca [11 x i32], align 16
%13 = alloca [11 x i32], align 16
%14 = alloca [11 x i32], align 16
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [4096 x i32], align 16
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 16, i1 false)
store i32 0, ptr %15, align 4
store i32 0, ptr %10, align 4
store i32 1, ptr %16, align 4
%24 = load i32, ptr %10, align 4
%25 = icmp slt i32 %24, 11
br i1 %25, label %.lr.ph, label %75
.lr.ph: ; preds = %4
br label %26
26: ; preds = %.lr.ph, %68
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i64
%33 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %33, align 4
store i32 %34, ptr %19, align 4
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
switch i32 %41, label %67 [
i32 0, label %42
i32 1, label %59
]
42: ; preds = %26
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i32 0, i32 1
%52 = load i32, ptr %19, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [11 x i32], ptr %12, i64 0, i64 %53
store i32 %51, ptr %54, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %19, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 %57
store i32 %55, ptr %58, align 4
br label %67
59: ; preds = %26
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %19, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [11 x i32], ptr %14, i64 0, i64 %62
store i32 %60, ptr %63, align 4
%64 = load i32, ptr %16, align 4
%65 = load i32, ptr %15, align 4
%66 = or i32 %65, %64
store i32 %66, ptr %15, align 4
br label %67
67: ; preds = %59, %42, %26
br label %68
68: ; preds = %67
%69 = load i32, ptr %10, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %10, align 4
%71 = load i32, ptr %16, align 4
%72 = shl i32 %71, 1
store i32 %72, ptr %16, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp slt i32 %73, 11
br i1 %74, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %75
75: ; preds = %._crit_edge, %4
%76 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %151
79: ; preds = %75
store i32 0, ptr %18, align 4
store i32 0, ptr %20, align 4
%80 = load i32, ptr %20, align 4
%81 = icmp slt i32 %80, 512
br i1 %81, label %.lr.ph7, label %142
.lr.ph7: ; preds = %79
br label %82
82: ; preds = %.lr.ph7, %137
store i32 0, ptr %21, align 4
%83 = load i32, ptr %21, align 4
%84 = icmp sle i32 %83, 7
br i1 %84, label %.lr.ph4, label %136
.lr.ph4: ; preds = %82
br label %85
85: ; preds = %.lr.ph4, %131
%86 = load i32, ptr %20, align 4
%87 = load i32, ptr %21, align 4
%88 = call i32 @prepare_selector(i32 noundef %86, i32 noundef %87)
%89 = load i32, ptr %15, align 4
%90 = and i32 %88, %89
store i32 %90, ptr %22, align 4
store i32 -1, ptr %23, align 4
%91 = load ptr, ptr %9, align 8
%92 = load i32, ptr %20, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [8 x i32], ptr %91, i64 %93
%95 = load i32, ptr %21, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [8 x i32], ptr %94, i64 0, i64 %96
%98 = load i32, ptr %97, align 4
%99 = icmp ne i32 %98, 1
br i1 %99, label %100, label %101
100: ; preds = %85
br label %131
101: ; preds = %85
store i32 0, ptr %10, align 4
%102 = load i32, ptr %10, align 4
%103 = load i32, ptr %18, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %101
br label %105
105: ; preds = %.lr.ph2, %115
%106 = load i32, ptr %10, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 %107
%109 = load i32, ptr %108, align 4
%110 = load i32, ptr %22, align 4
%111 = icmp eq i32 %109, %110
br i1 %111, label %112, label %114
112: ; preds = %105
%113 = load i32, ptr %10, align 4
store i32 %113, ptr %23, align 4
br label %121
114: ; preds = %105
br label %115
115: ; preds = %114
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %10, align 4
%118 = load i32, ptr %10, align 4
%119 = load i32, ptr %18, align 4
%120 = icmp slt i32 %118, %119
br i1 %120, label %105, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %115
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %101
br label %121
121: ; preds = %.loopexit, %112
%122 = load i32, ptr %23, align 4
%123 = icmp eq i32 %122, -1
br i1 %123, label %124, label %130
124: ; preds = %121
%125 = load i32, ptr %22, align 4
%126 = load i32, ptr %18, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %18, align 4
%128 = sext i32 %126 to i64
%129 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 %128
store i32 %125, ptr %129, align 4
br label %130
130: ; preds = %124, %121
br label %131
131: ; preds = %130, %100
%132 = load i32, ptr %21, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %21, align 4
%134 = load i32, ptr %21, align 4
%135 = icmp sle i32 %134, 7
br i1 %135, label %85, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %131
br label %136
136: ; preds = %._crit_edge5, %82
br label %137
137: ; preds = %136
%138 = load i32, ptr %20, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %20, align 4
%140 = load i32, ptr %20, align 4
%141 = icmp slt i32 %140, 512
br i1 %141, label %82, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %137
br label %142
142: ; preds = %._crit_edge8, %79
%143 = load i32, ptr %18, align 4
%144 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%145 = load i32, ptr %144, align 4
%146 = shl i32 1, %145
%147 = icmp eq i32 %143, %146
br i1 %147, label %148, label %150
148: ; preds = %142
%149 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
store i32 0, ptr %149, align 4
br label %150
150: ; preds = %148, %142
br label %151
151: ; preds = %150, %75
%152 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%153 = load i32, ptr %152, align 16
%154 = icmp ne i32 %153, 0
br i1 %154, label %162, label %155
155: ; preds = %151
%156 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%157 = load i32, ptr %156, align 4
%158 = icmp ne i32 %157, 0
br i1 %158, label %162, label %159
159: ; preds = %155
%160 = load ptr, ptr %6, align 8
%161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %250
162: ; preds = %155, %151
%163 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%164 = load i32, ptr %163, align 16
%165 = icmp ne i32 %164, 0
br i1 %165, label %166, label %227
166: ; preds = %162
%167 = load ptr, ptr %6, align 8
%168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.1)
store i32 0, ptr %10, align 4
%169 = load i32, ptr %10, align 4
%170 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%171 = load i32, ptr %170, align 16
%172 = icmp slt i32 %169, %171
br i1 %172, label %.lr.ph10, label %195
.lr.ph10: ; preds = %166
br label %173
173: ; preds = %.lr.ph10, %189
%174 = load ptr, ptr %6, align 8
%175 = load i32, ptr %10, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.2, i32 noundef %178)
%180 = load i32, ptr %10, align 4
%181 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%182 = load i32, ptr %181, align 16
%183 = sub nsw i32 %182, 1
%184 = icmp slt i32 %180, %183
br i1 %184, label %185, label %188
185: ; preds = %173
%186 = load ptr, ptr %6, align 8
%187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.3)
br label %188
188: ; preds = %185, %173
br label %189
189: ; preds = %188
%190 = load i32, ptr %10, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %10, align 4
%192 = load i32, ptr %10, align 4
%193 = load i32, ptr %170, align 16
%194 = icmp slt i32 %192, %193
br i1 %194, label %173, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %189
br label %195
195: ; preds = %._crit_edge11, %166
%196 = load ptr, ptr %6, align 8
%197 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%198 = load i32, ptr %197, align 16
%199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.4, i32 noundef %198)
store i32 0, ptr %10, align 4
%200 = load i32, ptr %10, align 4
%201 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%202 = load i32, ptr %201, align 16
%203 = icmp slt i32 %200, %202
br i1 %203, label %.lr.ph13, label %217
.lr.ph13: ; preds = %195
br label %204
204: ; preds = %.lr.ph13, %211
%205 = load ptr, ptr %6, align 8
%206 = load i32, ptr %10, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds [11 x i32], ptr %12, i64 0, i64 %207
%209 = load i32, ptr %208, align 4
%210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.5, i32 noundef %209)
br label %211
211: ; preds = %204
%212 = load i32, ptr %10, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %10, align 4
%214 = load i32, ptr %10, align 4
%215 = load i32, ptr %201, align 16
%216 = icmp slt i32 %214, %215
br i1 %216, label %204, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %211
br label %217
217: ; preds = %._crit_edge14, %195
%218 = load ptr, ptr %6, align 8
%219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.6)
%220 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%221 = load i32, ptr %220, align 4
%222 = icmp ne i32 %221, 0
br i1 %222, label %223, label %226
223: ; preds = %217
%224 = load ptr, ptr %6, align 8
%225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.7)
br label %226
226: ; preds = %223, %217
br label %227
227: ; preds = %226, %162
%228 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%229 = load i32, ptr %228, align 4
%230 = icmp ne i32 %229, 0
br i1 %230, label %231, label %237
231: ; preds = %227
%232 = load ptr, ptr %6, align 8
%233 = load i32, ptr %15, align 4
%234 = getelementptr inbounds [4096 x i32], ptr %17, i64 0, i64 0
%235 = load i32, ptr %18, align 4
%236 = call i32 @recurse_other(ptr noundef %232, i32 noundef %233, ptr noundef %234, i32 noundef %235, i32 noundef 0, i32 noundef 0, i32 noundef 1)
br label %237
237: ; preds = %231, %227
%238 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
%239 = load i32, ptr %238, align 16
%240 = icmp ne i32 %239, 0
br i1 %240, label %241, label %249
241: ; preds = %237
%242 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 1
%243 = load i32, ptr %242, align 4
%244 = icmp ne i32 %243, 0
br i1 %244, label %245, label %248
245: ; preds = %241
%246 = load ptr, ptr %6, align 8
%247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.6)
br label %248
248: ; preds = %245, %241
br label %249
249: ; preds = %248, %237
store i32 0, ptr %5, align 4
br label %250
250: ; preds = %249, %159
%251 = load i32, ptr %5, align 4
ret i32 %251
}
; 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 @prepare_selector(i32 noundef, i32 noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2
declare i32 @recurse_other(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpfq6z8o7b.c'
source_filename = "/tmp/tmpfq6z8o7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"initializing!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initialize_me(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfq6z8o7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"initializing!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @initialize_me(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyl2g01l8.c'
source_filename = "/tmp/tmpyl2g01l8.c"
target datalayout = "e-m:e-p270: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/tmpyl2g01l8.c"
target datalayout = "e-m:e-p270: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/tmpdj7j52x9.c'
source_filename = "/tmp/tmpdj7j52x9.c"
target datalayout = "e-m:e-p270: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/tmpdj7j52x9.c"
target datalayout = "e-m:e-p270: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/tmpy2k3g99z.c'
source_filename = "/tmp/tmpy2k3g99z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_ecdh_tests() #0 {
%1 = call i32 (...) @test_ecdh_generator_basepoint()
%2 = call i32 (...) @test_bad_scalar()
ret void
}
declare i32 @test_ecdh_generator_basepoint(...) #1
declare i32 @test_bad_scalar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2k3g99z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @run_ecdh_tests() #0 {
%1 = call i32 (...) @test_ecdh_generator_basepoint()
%2 = call i32 (...) @test_bad_scalar()
ret void
}
declare i32 @test_ecdh_generator_basepoint(...) #1
declare i32 @test_bad_scalar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa7o6diqn.c'
source_filename = "/tmp/tmpa7o6diqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"XXXXXX\00", align 1
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mkdtemp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %4, align 8
store i32 100, ptr %5, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %8, 6
br i1 %9, label %17, label %10
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %11, i64 %12
%14 = getelementptr inbounds i8, ptr %13, i64 -6
%15 = call i64 @memcmp(ptr noundef %14, ptr noundef @.str, i32 noundef 6)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %10, %1
%18 = load i64, ptr @EINVAL, align 8
store i64 %18, ptr @errno, align 8
store ptr null, ptr %2, align 8
br label %48
19: ; preds = %10
br label %20
20: ; preds = %40, %19
%21 = load ptr, ptr %3, align 8
%22 = load i64, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 -6
%25 = call i32 @__randname(ptr noundef %24)
%26 = load ptr, ptr %3, align 8
%27 = call i32 @mkdir(ptr noundef %26, i32 noundef 448)
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %20
%30 = load ptr, ptr %3, align 8
store ptr %30, ptr %2, align 8
br label %48
31: ; preds = %20
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %5, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = load i64, ptr @errno, align 8
%38 = load i64, ptr @EEXIST, align 8
%39 = icmp eq i64 %37, %38
br label %40
40: ; preds = %36, %32
%41 = phi i1 [ false, %32 ], [ %39, %36 ]
br i1 %41, label %20, label %42, !llvm.loop !6
42: ; preds = %40
%43 = load ptr, ptr %3, align 8
%44 = load i64, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %43, i64 %44
%46 = getelementptr inbounds i8, ptr %45, i64 -6
%47 = call i32 @memcpy(ptr noundef %46, ptr noundef @.str, i32 noundef 6)
store ptr null, ptr %2, align 8
br label %48
48: ; preds = %42, %29, %17
%49 = load ptr, ptr %2, align 8
ret ptr %49
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @__randname(ptr noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa7o6diqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"XXXXXX\00", align 1
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EEXIST = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mkdtemp(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %4, align 8
store i32 100, ptr %5, align 4
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %8, 6
br i1 %9, label %17, label %10
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %11, i64 %12
%14 = getelementptr inbounds i8, ptr %13, i64 -6
%15 = call i64 @memcmp(ptr noundef %14, ptr noundef @.str, i32 noundef 6)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %10, %1
%18 = load i64, ptr @EINVAL, align 8
store i64 %18, ptr @errno, align 8
store ptr null, ptr %2, align 8
br label %48
19: ; preds = %10
br label %20
20: ; preds = %40, %19
%21 = load ptr, ptr %3, align 8
%22 = load i64, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %21, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 -6
%25 = call i32 @__randname(ptr noundef %24)
%26 = load ptr, ptr %3, align 8
%27 = call i32 @mkdir(ptr noundef %26, i32 noundef 448)
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %20
%30 = load ptr, ptr %3, align 8
store ptr %30, ptr %2, align 8
br label %48
31: ; preds = %20
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %5, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = load i64, ptr @errno, align 8
%38 = load i64, ptr @EEXIST, align 8
%39 = icmp eq i64 %37, %38
br label %40
40: ; preds = %36, %32
%41 = phi i1 [ false, %32 ], [ %39, %36 ]
br i1 %41, label %20, label %42, !llvm.loop !6
42: ; preds = %40
%43 = load ptr, ptr %3, align 8
%44 = load i64, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %43, i64 %44
%46 = getelementptr inbounds i8, ptr %45, i64 -6
%47 = call i32 @memcpy(ptr noundef %46, ptr noundef @.str, i32 noundef 6)
store ptr null, ptr %2, align 8
br label %48
48: ; preds = %42, %29, %17
%49 = load ptr, ptr %2, align 8
ret ptr %49
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @__randname(ptr noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpimel9x2y.c'
source_filename = "/tmp/tmpimel9x2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_vector_mpz(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 = zext i32 %5 to i64
%7 = mul i64 4, %6
%8 = trunc i64 %7 to i32
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %3, align 8
store ptr %10, ptr %11, align 8
br label %12
12: ; preds = %24, %2
%13 = load i32, ptr %4, align 4
%14 = icmp ugt i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %4, align 4
%19 = sub i32 %18, 1
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %17, i64 %20
%22 = load i32, ptr %21, align 4
%23 = call i32 @mpz_init(i32 noundef %22)
br label %24
24: ; preds = %15
%25 = load i32, ptr %4, align 4
%26 = add i32 %25, -1
store i32 %26, ptr %4, align 4
br label %12, !llvm.loop !6
27: ; preds = %12
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @mpz_init(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/tmpimel9x2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_vector_mpz(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 = zext i32 %5 to i64
%7 = mul i64 4, %6
%8 = trunc i64 %7 to i32
%9 = call i64 @malloc(i32 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %3, align 8
store ptr %10, ptr %11, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ugt i32 %12, 0
br i1 %13, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %23
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %4, align 4
%18 = sub i32 %17, 1
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %16, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 @mpz_init(i32 noundef %21)
br label %23
23: ; preds = %14
%24 = load i32, ptr %4, align 4
%25 = add i32 %24, -1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp ugt i32 %26, 0
br i1 %27, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %2
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @mpz_init(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/tmpalostv9a.c'
source_filename = "/tmp/tmpalostv9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testSelectionSort()
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
declare i32 @testSelectionSort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpalostv9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @testSelectionSort()
%3 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %3
}
declare i32 @testSelectionSort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmwsa_mi6.c'
source_filename = "/tmp/tmpmwsa_mi6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calulaDec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %233, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %236
11: ; preds = %7
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 67
br i1 %18, label %19, label %33
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 77
br i1 %27, label %28, label %33
28: ; preds = %19
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 900
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %232
33: ; preds = %19, %11
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 67
br i1 %40, label %41, label %55
41: ; preds = %33
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %42, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 68
br i1 %49, label %50, label %55
50: ; preds = %41
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 400
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
br label %231
55: ; preds = %41, %33
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 88
br i1 %62, label %63, label %77
63: ; preds = %55
%64 = load ptr, ptr %4, align 8
%65 = load i32, ptr %5, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %64, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 67
br i1 %71, label %72, label %77
72: ; preds = %63
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 90
store i32 %74, ptr %6, align 4
%75 = load i32, ptr %5, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %5, align 4
br label %230
77: ; preds = %63, %55
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %5, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 88
br i1 %84, label %85, label %99
85: ; preds = %77
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 76
br i1 %93, label %94, label %99
94: ; preds = %85
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 40
store i32 %96, ptr %6, align 4
%97 = load i32, ptr %5, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %5, align 4
br label %229
99: ; preds = %85, %77
%100 = load ptr, ptr %4, align 8
%101 = load i32, ptr %5, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 73
br i1 %106, label %107, label %121
107: ; preds = %99
%108 = load ptr, ptr %4, align 8
%109 = load i32, ptr %5, align 4
%110 = add nsw i32 %109, 1
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %108, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 88
br i1 %115, label %116, label %121
116: ; preds = %107
%117 = load i32, ptr %6, align 4
%118 = add nsw i32 %117, 9
store i32 %118, ptr %6, align 4
%119 = load i32, ptr %5, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %5, align 4
br label %228
121: ; preds = %107, %99
%122 = load ptr, ptr %4, align 8
%123 = load i32, ptr %5, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, ptr %122, i64 %124
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 73
br i1 %128, label %129, label %143
129: ; preds = %121
%130 = load ptr, ptr %4, align 8
%131 = load i32, ptr %5, align 4
%132 = add nsw i32 %131, 1
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %130, i64 %133
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 86
br i1 %137, label %138, label %143
138: ; preds = %129
%139 = load i32, ptr %6, align 4
%140 = add nsw i32 %139, 4
store i32 %140, ptr %6, align 4
%141 = load i32, ptr %5, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %5, align 4
br label %227
143: ; preds = %129, %121
%144 = load ptr, ptr %4, align 8
%145 = load i32, ptr %5, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, ptr %144, i64 %146
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 77
br i1 %150, label %151, label %154
151: ; preds = %143
%152 = load i32, ptr %6, align 4
%153 = add nsw i32 %152, 1000
store i32 %153, ptr %6, align 4
br label %226
154: ; preds = %143
%155 = load ptr, ptr %4, align 8
%156 = load i32, ptr %5, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i8, ptr %155, i64 %157
%159 = load i8, ptr %158, align 1
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 68
br i1 %161, label %162, label %165
162: ; preds = %154
%163 = load i32, ptr %6, align 4
%164 = add nsw i32 %163, 500
store i32 %164, ptr %6, align 4
br label %225
165: ; preds = %154
%166 = load ptr, ptr %4, align 8
%167 = load i32, ptr %5, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i8, ptr %166, i64 %168
%170 = load i8, ptr %169, align 1
%171 = sext i8 %170 to i32
%172 = icmp eq i32 %171, 67
br i1 %172, label %173, label %176
173: ; preds = %165
%174 = load i32, ptr %6, align 4
%175 = add nsw i32 %174, 100
store i32 %175, ptr %6, align 4
br label %224
176: ; preds = %165
%177 = load ptr, ptr %4, align 8
%178 = load i32, ptr %5, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, ptr %177, i64 %179
%181 = load i8, ptr %180, align 1
%182 = sext i8 %181 to i32
%183 = icmp eq i32 %182, 76
br i1 %183, label %184, label %187
184: ; preds = %176
%185 = load i32, ptr %6, align 4
%186 = add nsw i32 %185, 50
store i32 %186, ptr %6, align 4
br label %223
187: ; preds = %176
%188 = load ptr, ptr %4, align 8
%189 = load i32, ptr %5, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, ptr %188, i64 %190
%192 = load i8, ptr %191, align 1
%193 = sext i8 %192 to i32
%194 = icmp eq i32 %193, 88
br i1 %194, label %195, label %198
195: ; preds = %187
%196 = load i32, ptr %6, align 4
%197 = add nsw i32 %196, 10
store i32 %197, ptr %6, align 4
br label %222
198: ; preds = %187
%199 = load ptr, ptr %4, align 8
%200 = load i32, ptr %5, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
%203 = load i8, ptr %202, align 1
%204 = sext i8 %203 to i32
%205 = icmp eq i32 %204, 86
br i1 %205, label %206, label %209
206: ; preds = %198
%207 = load i32, ptr %6, align 4
%208 = add nsw i32 %207, 5
store i32 %208, ptr %6, align 4
br label %221
209: ; preds = %198
%210 = load ptr, ptr %4, align 8
%211 = load i32, ptr %5, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds i8, ptr %210, i64 %212
%214 = load i8, ptr %213, align 1
%215 = sext i8 %214 to i32
%216 = icmp eq i32 %215, 73
br i1 %216, label %217, label %220
217: ; preds = %209
%218 = load i32, ptr %6, align 4
%219 = add nsw i32 %218, 1
store i32 %219, ptr %6, align 4
br label %220
220: ; preds = %217, %209
br label %221
221: ; preds = %220, %206
br label %222
222: ; preds = %221, %195
br label %223
223: ; preds = %222, %184
br label %224
224: ; preds = %223, %173
br label %225
225: ; preds = %224, %162
br label %226
226: ; preds = %225, %151
br label %227
227: ; preds = %226, %138
br label %228
228: ; preds = %227, %116
br label %229
229: ; preds = %228, %94
br label %230
230: ; preds = %229, %72
br label %231
231: ; preds = %230, %50
br label %232
232: ; preds = %231, %28
br label %233
233: ; preds = %232
%234 = load i32, ptr %5, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %5, align 4
br label %7, !llvm.loop !6
236: ; preds = %7
%237 = load i32, ptr %6, align 4
%238 = call i32 @printf(ptr noundef @.str, i32 noundef %237)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwsa_mi6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @calulaDec(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %238
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %232
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 67
br i1 %17, label %18, label %32
18: ; preds = %10
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 77
br i1 %26, label %27, label %32
27: ; preds = %18
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 900
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %231
32: ; preds = %18, %10
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 67
br i1 %39, label %40, label %54
40: ; preds = %32
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %41, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 68
br i1 %48, label %49, label %54
49: ; preds = %40
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 400
store i32 %51, ptr %6, align 4
%52 = load i32, ptr %5, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %5, align 4
br label %230
54: ; preds = %40, %32
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 88
br i1 %61, label %62, label %76
62: ; preds = %54
%63 = load ptr, ptr %4, align 8
%64 = load i32, ptr %5, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %63, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 67
br i1 %70, label %71, label %76
71: ; preds = %62
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 90
store i32 %73, ptr %6, align 4
%74 = load i32, ptr %5, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %5, align 4
br label %229
76: ; preds = %62, %54
%77 = load ptr, ptr %4, align 8
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 88
br i1 %83, label %84, label %98
84: ; preds = %76
%85 = load ptr, ptr %4, align 8
%86 = load i32, ptr %5, align 4
%87 = add nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %85, i64 %88
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 76
br i1 %92, label %93, label %98
93: ; preds = %84
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 40
store i32 %95, ptr %6, align 4
%96 = load i32, ptr %5, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %5, align 4
br label %228
98: ; preds = %84, %76
%99 = load ptr, ptr %4, align 8
%100 = load i32, ptr %5, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, ptr %99, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 73
br i1 %105, label %106, label %120
106: ; preds = %98
%107 = load ptr, ptr %4, align 8
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %107, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 88
br i1 %114, label %115, label %120
115: ; preds = %106
%116 = load i32, ptr %6, align 4
%117 = add nsw i32 %116, 9
store i32 %117, ptr %6, align 4
%118 = load i32, ptr %5, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %5, align 4
br label %227
120: ; preds = %106, %98
%121 = load ptr, ptr %4, align 8
%122 = load i32, ptr %5, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load i8, ptr %124, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 73
br i1 %127, label %128, label %142
128: ; preds = %120
%129 = load ptr, ptr %4, align 8
%130 = load i32, ptr %5, align 4
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, ptr %129, i64 %132
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 86
br i1 %136, label %137, label %142
137: ; preds = %128
%138 = load i32, ptr %6, align 4
%139 = add nsw i32 %138, 4
store i32 %139, ptr %6, align 4
%140 = load i32, ptr %5, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %5, align 4
br label %226
142: ; preds = %128, %120
%143 = load ptr, ptr %4, align 8
%144 = load i32, ptr %5, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %143, i64 %145
%147 = load i8, ptr %146, align 1
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 77
br i1 %149, label %150, label %153
150: ; preds = %142
%151 = load i32, ptr %6, align 4
%152 = add nsw i32 %151, 1000
store i32 %152, ptr %6, align 4
br label %225
153: ; preds = %142
%154 = load ptr, ptr %4, align 8
%155 = load i32, ptr %5, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8, ptr %154, i64 %156
%158 = load i8, ptr %157, align 1
%159 = sext i8 %158 to i32
%160 = icmp eq i32 %159, 68
br i1 %160, label %161, label %164
161: ; preds = %153
%162 = load i32, ptr %6, align 4
%163 = add nsw i32 %162, 500
store i32 %163, ptr %6, align 4
br label %224
164: ; preds = %153
%165 = load ptr, ptr %4, align 8
%166 = load i32, ptr %5, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i8, ptr %165, i64 %167
%169 = load i8, ptr %168, align 1
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 67
br i1 %171, label %172, label %175
172: ; preds = %164
%173 = load i32, ptr %6, align 4
%174 = add nsw i32 %173, 100
store i32 %174, ptr %6, align 4
br label %223
175: ; preds = %164
%176 = load ptr, ptr %4, align 8
%177 = load i32, ptr %5, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i8, ptr %176, i64 %178
%180 = load i8, ptr %179, align 1
%181 = sext i8 %180 to i32
%182 = icmp eq i32 %181, 76
br i1 %182, label %183, label %186
183: ; preds = %175
%184 = load i32, ptr %6, align 4
%185 = add nsw i32 %184, 50
store i32 %185, ptr %6, align 4
br label %222
186: ; preds = %175
%187 = load ptr, ptr %4, align 8
%188 = load i32, ptr %5, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds i8, ptr %187, i64 %189
%191 = load i8, ptr %190, align 1
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 88
br i1 %193, label %194, label %197
194: ; preds = %186
%195 = load i32, ptr %6, align 4
%196 = add nsw i32 %195, 10
store i32 %196, ptr %6, align 4
br label %221
197: ; preds = %186
%198 = load ptr, ptr %4, align 8
%199 = load i32, ptr %5, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8, ptr %198, i64 %200
%202 = load i8, ptr %201, align 1
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 86
br i1 %204, label %205, label %208
205: ; preds = %197
%206 = load i32, ptr %6, align 4
%207 = add nsw i32 %206, 5
store i32 %207, ptr %6, align 4
br label %220
208: ; preds = %197
%209 = load ptr, ptr %4, align 8
%210 = load i32, ptr %5, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i8, ptr %209, i64 %211
%213 = load i8, ptr %212, align 1
%214 = sext i8 %213 to i32
%215 = icmp eq i32 %214, 73
br i1 %215, label %216, label %219
216: ; preds = %208
%217 = load i32, ptr %6, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %6, align 4
br label %219
219: ; preds = %216, %208
br label %220
220: ; preds = %219, %205
br label %221
221: ; preds = %220, %194
br label %222
222: ; preds = %221, %183
br label %223
223: ; preds = %222, %172
br label %224
224: ; preds = %223, %161
br label %225
225: ; preds = %224, %150
br label %226
226: ; preds = %225, %137
br label %227
227: ; preds = %226, %115
br label %228
228: ; preds = %227, %93
br label %229
229: ; preds = %228, %71
br label %230
230: ; preds = %229, %49
br label %231
231: ; preds = %230, %27
br label %232
232: ; preds = %231
%233 = load i32, ptr %5, align 4
%234 = add nsw i32 %233, 1
store i32 %234, ptr %5, align 4
%235 = load i32, ptr %5, align 4
%236 = load i32, ptr %3, align 4
%237 = icmp slt i32 %235, %236
br i1 %237, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %232
br label %238
238: ; preds = %._crit_edge, %2
%239 = load i32, ptr %6, align 4
%240 = call i32 @printf(ptr noundef @.str, i32 noundef %239)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfvo1shjp.c'
source_filename = "/tmp/tmpfvo1shjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/testbin/matmult\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 @triple(ptr noundef @.str)
ret i32 0
}
declare i32 @triple(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfvo1shjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/testbin/matmult\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 @triple(ptr noundef @.str)
ret i32 0
}
declare i32 @triple(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8zmt6rg3.c'
source_filename = "/tmp/tmp8zmt6rg3.c"
target datalayout = "e-m:e-p270: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/tmp8zmt6rg3.c"
target datalayout = "e-m:e-p270: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/tmpm3l6rpsy.c'
source_filename = "/tmp/tmpm3l6rpsy.c"
target datalayout = "e-m:e-p270: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/tmpm3l6rpsy.c"
target datalayout = "e-m:e-p270: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/tmpbq0q_1mz.c'
source_filename = "/tmp/tmpbq0q_1mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge(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
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i64, align 8
%18 = alloca i64, align 8
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
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = call i64 @calloc(i32 noundef %23, i32 noundef 4)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %13, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i64 0, ptr %17, align 8
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %6, align 4
%31 = sub nsw i32 %29, %30
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
store i64 %33, ptr %18, align 8
store i32 0, ptr %10, align 4
br label %34
34: ; preds = %117, %4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %120
38: ; preds = %34
%39 = load i32, ptr %16, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %56, label %41
41: ; preds = %38
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %13, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %14, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = icmp sle i32 %46, %51
br i1 %52, label %53, label %74
53: ; preds = %41
%54 = load i32, ptr %15, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %74, label %56
56: ; preds = %53, %38
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %13, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %13, align 4
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds i32, ptr %57, i64 %60
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %12, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
%67 = load i64, ptr %18, align 8
%68 = add nsw i64 %67, -1
store i64 %68, ptr %18, align 8
%69 = load i32, ptr %13, align 4
%70 = load i32, ptr %8, align 4
%71 = icmp sgt i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %56
store i32 1, ptr %15, align 4
br label %73
73: ; preds = %72, %56
br label %116
74: ; preds = %53, %41
%75 = load i32, ptr %15, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %92, label %77
77: ; preds = %74
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %14, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %13, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %86, align 4
%88 = icmp slt i32 %82, %87
br i1 %88, label %89, label %115
89: ; preds = %77
%90 = load i32, ptr %16, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %115, label %92
92: ; preds = %89, %74
%93 = load ptr, ptr %5, align 8
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %14, align 4
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds i32, ptr %93, i64 %96
%98 = load i32, ptr %97, align 4
%99 = load ptr, ptr %12, align 8
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %99, i64 %101
store i32 %98, ptr %102, align 4
%103 = load i32, ptr %14, align 4
%104 = load i32, ptr %7, align 4
%105 = icmp sgt i32 %103, %104
br i1 %105, label %106, label %107
106: ; preds = %92
store i32 1, ptr %16, align 4
br label %107
107: ; preds = %106, %92
%108 = load i32, ptr %15, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %107
%111 = load i64, ptr %18, align 8
%112 = load i64, ptr %17, align 8
%113 = add nsw i64 %112, %111
store i64 %113, ptr %17, align 8
br label %114
114: ; preds = %110, %107
br label %115
115: ; preds = %114, %89, %77
br label %116
116: ; preds = %115, %73
br label %117
117: ; preds = %116
%118 = load i32, ptr %10, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %10, align 4
br label %34, !llvm.loop !6
120: ; preds = %34
store i32 0, ptr %10, align 4
%121 = load i32, ptr %6, align 4
store i32 %121, ptr %11, align 4
br label %122
122: ; preds = %136, %120
%123 = load i32, ptr %10, align 4
%124 = load i32, ptr %9, align 4
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %141
126: ; preds = %122
%127 = load ptr, ptr %12, align 8
%128 = load i32, ptr %10, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, ptr %127, i64 %129
%131 = load i32, ptr %130, align 4
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %11, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %132, i64 %134
store i32 %131, ptr %135, align 4
br label %136
136: ; preds = %126
%137 = load i32, ptr %10, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %10, align 4
%139 = load i32, ptr %11, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %11, align 4
br label %122, !llvm.loop !8
141: ; preds = %122
%142 = load ptr, ptr %12, align 8
%143 = call i32 @free(ptr noundef %142)
%144 = load i64, ptr %17, align 8
ret i64 %144
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbq0q_1mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge(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
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i64, align 8
%18 = alloca i64, align 8
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
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = call i64 @calloc(i32 noundef %23, i32 noundef 4)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %13, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %16, align 4
store i64 0, ptr %17, align 8
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %6, align 4
%31 = sub nsw i32 %29, %30
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
store i64 %33, ptr %18, align 8
store i32 0, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %122
.lr.ph: ; preds = %4
br label %37
37: ; preds = %.lr.ph, %116
%38 = load i32, ptr %16, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %55, label %40
40: ; preds = %37
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %13, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %14, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp sle i32 %45, %50
br i1 %51, label %52, label %73
52: ; preds = %40
%53 = load i32, ptr %15, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %73, label %55
55: ; preds = %52, %37
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %13, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %13, align 4
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %12, align 8
%63 = load i32, ptr %10, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
store i32 %61, ptr %65, align 4
%66 = load i64, ptr %18, align 8
%67 = add nsw i64 %66, -1
store i64 %67, ptr %18, align 8
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp sgt i32 %68, %69
br i1 %70, label %71, label %72
71: ; preds = %55
store i32 1, ptr %15, align 4
br label %72
72: ; preds = %71, %55
br label %115
73: ; preds = %52, %40
%74 = load i32, ptr %15, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %91, label %76
76: ; preds = %73
%77 = load ptr, ptr %5, align 8
%78 = load i32, ptr %14, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %77, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load ptr, ptr %5, align 8
%83 = load i32, ptr %13, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %82, i64 %84
%86 = load i32, ptr %85, align 4
%87 = icmp slt i32 %81, %86
br i1 %87, label %88, label %114
88: ; preds = %76
%89 = load i32, ptr %16, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %114, label %91
91: ; preds = %88, %73
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr %14, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %14, align 4
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i32, ptr %92, i64 %95
%97 = load i32, ptr %96, align 4
%98 = load ptr, ptr %12, align 8
%99 = load i32, ptr %10, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %98, i64 %100
store i32 %97, ptr %101, align 4
%102 = load i32, ptr %14, align 4
%103 = load i32, ptr %7, align 4
%104 = icmp sgt i32 %102, %103
br i1 %104, label %105, label %106
105: ; preds = %91
store i32 1, ptr %16, align 4
br label %106
106: ; preds = %105, %91
%107 = load i32, ptr %15, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %106
%110 = load i64, ptr %18, align 8
%111 = load i64, ptr %17, align 8
%112 = add nsw i64 %111, %110
store i64 %112, ptr %17, align 8
br label %113
113: ; preds = %109, %106
br label %114
114: ; preds = %113, %88, %76
br label %115
115: ; preds = %114, %72
br label %116
116: ; preds = %115
%117 = load i32, ptr %10, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %10, align 4
%119 = load i32, ptr %10, align 4
%120 = load i32, ptr %9, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %116
br label %122
122: ; preds = %._crit_edge, %4
store i32 0, ptr %10, align 4
%123 = load i32, ptr %6, align 4
store i32 %123, ptr %11, align 4
%124 = load i32, ptr %10, align 4
%125 = load i32, ptr %9, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %.lr.ph2, label %145
.lr.ph2: ; preds = %122
br label %127
127: ; preds = %.lr.ph2, %137
%128 = load ptr, ptr %12, align 8
%129 = load i32, ptr %10, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, ptr %128, i64 %130
%132 = load i32, ptr %131, align 4
%133 = load ptr, ptr %5, align 8
%134 = load i32, ptr %11, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, ptr %133, i64 %135
store i32 %132, ptr %136, align 4
br label %137
137: ; preds = %127
%138 = load i32, ptr %10, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %10, align 4
%140 = load i32, ptr %11, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %11, align 4
%142 = load i32, ptr %10, align 4
%143 = load i32, ptr %9, align 4
%144 = icmp slt i32 %142, %143
br i1 %144, label %127, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %137
br label %145
145: ; preds = %._crit_edge3, %122
%146 = load ptr, ptr %12, align 8
%147 = call i32 @free(ptr noundef %146)
%148 = load i64, ptr %17, align 8
ret i64 %148
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0n0xpg3c.c'
source_filename = "/tmp/tmp0n0xpg3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, double }
@.str = private unnamed_addr constant [8 x i8] c"./t1_s1\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"t1_s1: %fsecs\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"./t1_s2\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"t1_s2: %fsecs\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 8
%3 = alloca %struct.timeval, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %4, align 8
%5 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%6 = call i32 @system(ptr noundef @.str)
%7 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%9 = load double, ptr %8, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%11 = load double, ptr %10, align 8
%12 = fsub double %9, %11
%13 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%14 = load double, ptr %13, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%16 = load double, ptr %15, align 8
%17 = fsub double %14, %16
%18 = fdiv double %17, 1.000000e+06
%19 = fadd double %12, %18
store double %19, ptr %4, align 8
%20 = load double, ptr %4, align 8
%21 = call i32 @printf(ptr noundef @.str.1, double noundef %20)
%22 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%23 = call i32 @system(ptr noundef @.str.2)
%24 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%25 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%26 = load double, ptr %25, align 8
%27 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%28 = load double, ptr %27, align 8
%29 = fsub double %26, %28
%30 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%31 = load double, ptr %30, align 8
%32 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%33 = load double, ptr %32, align 8
%34 = fsub double %31, %33
%35 = fdiv double %34, 1.000000e+06
%36 = fadd double %29, %35
store double %36, ptr %4, align 8
%37 = load double, ptr %4, align 8
%38 = call i32 @printf(ptr noundef @.str.3, double noundef %37)
ret i32 0
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0n0xpg3c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, double }
@.str = private unnamed_addr constant [8 x i8] c"./t1_s1\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"t1_s1: %fsecs\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"./t1_s2\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"t1_s2: %fsecs\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timeval, align 8
%3 = alloca %struct.timeval, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %4, align 8
%5 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%6 = call i32 @system(ptr noundef @.str)
%7 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%9 = load double, ptr %8, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%11 = load double, ptr %10, align 8
%12 = fsub double %9, %11
%13 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%14 = load double, ptr %13, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%16 = load double, ptr %15, align 8
%17 = fsub double %14, %16
%18 = fdiv double %17, 1.000000e+06
%19 = fadd double %12, %18
store double %19, ptr %4, align 8
%20 = load double, ptr %4, align 8
%21 = call i32 @printf(ptr noundef @.str.1, double noundef %20)
%22 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%23 = call i32 @system(ptr noundef @.str.2)
%24 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%25 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%26 = load double, ptr %25, align 8
%27 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%28 = load double, ptr %27, align 8
%29 = fsub double %26, %28
%30 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%31 = load double, ptr %30, align 8
%32 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%33 = load double, ptr %32, align 8
%34 = fsub double %31, %33
%35 = fdiv double %34, 1.000000e+06
%36 = fadd double %29, %35
store double %36, ptr %4, align 8
%37 = load double, ptr %4, align 8
%38 = call i32 @printf(ptr noundef @.str.3, double noundef %37)
ret i32 0
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn95py9hx.c'
source_filename = "/tmp/tmpn95py9hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @umask(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 @__syscall_umask(i32 noundef %3)
ret i32 %4
}
declare i32 @__syscall_umask(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/tmpn95py9hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @umask(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 @__syscall_umask(i32 noundef %3)
ret i32 %4
}
declare i32 @__syscall_umask(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits