llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpoku5fi12.c'
source_filename = "/tmp/tmpoku5fi12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcstok(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %27
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %5, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %22
store ptr null, ptr %4, align 8
br label %79
27: ; preds = %22, %3
br label %28
28: ; preds = %42, %27
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i32, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load i32, ptr %29, align 4
store i32 %31, ptr %9, align 4
%32 = load ptr, ptr %6, align 8
store ptr %32, ptr %8, align 8
br label %33
33: ; preds = %43, %28
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds i32, ptr %34, i32 1
store ptr %35, ptr %8, align 8
%36 = load i32, ptr %34, align 4
store i32 %36, ptr %10, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %33
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
br label %28
43: ; preds = %38
br label %33, !llvm.loop !6
44: ; preds = %33
%45 = load i32, ptr %9, align 4
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = load ptr, ptr %7, align 8
store ptr null, ptr %48, align 8
store ptr null, ptr %4, align 8
br label %79
49: ; preds = %44
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 -1
store ptr %51, ptr %11, align 8
br label %52
52: ; preds = %78, %49
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds i32, ptr %53, i32 1
store ptr %54, ptr %5, align 8
%55 = load i32, ptr %53, align 4
store i32 %55, ptr %9, align 4
%56 = load ptr, ptr %6, align 8
store ptr %56, ptr %8, align 8
br label %57
57: ; preds = %75, %52
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds i32, ptr %58, i32 1
store ptr %59, ptr %8, align 8
%60 = load i32, ptr %58, align 4
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %9, align 4
%62 = icmp eq i32 %60, %61
br i1 %62, label %63, label %74
63: ; preds = %57
%64 = load i32, ptr %9, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %63
store ptr null, ptr %5, align 8
br label %70
67: ; preds = %63
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds i32, ptr %68, i64 -1
store i32 0, ptr %69, align 4
br label %70
70: ; preds = %67, %66
%71 = load ptr, ptr %5, align 8
%72 = load ptr, ptr %7, align 8
store ptr %71, ptr %72, align 8
%73 = load ptr, ptr %11, align 8
store ptr %73, ptr %4, align 8
br label %79
74: ; preds = %57
br label %75
75: ; preds = %74
%76 = load i32, ptr %10, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %57, label %78, !llvm.loop !8
78: ; preds = %75
br label %52
79: ; preds = %70, %47, %26
%80 = load ptr, ptr %4, align 8
ret ptr %80
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoku5fi12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcstok(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = load ptr, ptr %7, align 8
%17 = icmp ne ptr %16, null
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %27
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %5, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %27
26: ; preds = %22
store ptr null, ptr %4, align 8
br label %89
27: ; preds = %22, %3
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i32, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load i32, ptr %28, align 4
store i32 %30, ptr %9, align 4
%31 = load ptr, ptr %6, align 8
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds i32, ptr %32, i32 1
store ptr %33, ptr %8, align 8
%34 = load i32, ptr %32, align 4
store i32 %34, ptr %10, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %.lr.ph.lr.ph, label %._crit_edge
.lr.ph.lr.ph: ; preds = %27
br label %.lr.ph
.lr.ph: ; preds = %.lr.ph.lr.ph, %45
br label %41
36: ; preds = %41
%37 = load ptr, ptr %8, align 8
%38 = getelementptr inbounds i32, ptr %37, i32 1
store ptr %38, ptr %8, align 8
%39 = load i32, ptr %37, align 4
store i32 %39, ptr %10, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %._crit_edge1, !llvm.loop !6
41: ; preds = %.lr.ph, %36
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %10, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %36
45: ; preds = %41
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds i32, ptr %46, i32 1
store ptr %47, ptr %5, align 8
%48 = load i32, ptr %46, align 4
store i32 %48, ptr %9, align 4
%49 = load ptr, ptr %6, align 8
store ptr %49, ptr %8, align 8
%50 = load ptr, ptr %8, align 8
%51 = getelementptr inbounds i32, ptr %50, i32 1
store ptr %51, ptr %8, align 8
%52 = load i32, ptr %50, align 4
store i32 %52, ptr %10, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %.lr.ph, label %.._crit_edge_crit_edge
.._crit_edge_crit_edge: ; preds = %45
br label %._crit_edge
._crit_edge: ; preds = %.._crit_edge_crit_edge, %27
br label %54
._crit_edge1: ; preds = %36
br label %54
54: ; preds = %._crit_edge1, %._crit_edge
%55 = load i32, ptr %9, align 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load ptr, ptr %7, align 8
store ptr null, ptr %58, align 8
store ptr null, ptr %4, align 8
br label %89
59: ; preds = %54
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 -1
store ptr %61, ptr %11, align 8
br label %62
62: ; preds = %88, %59
%63 = load ptr, ptr %5, align 8
%64 = getelementptr inbounds i32, ptr %63, i32 1
store ptr %64, ptr %5, align 8
%65 = load i32, ptr %63, align 4
store i32 %65, ptr %9, align 4
%66 = load ptr, ptr %6, align 8
store ptr %66, ptr %8, align 8
br label %67
67: ; preds = %85, %62
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i32, ptr %68, i32 1
store ptr %69, ptr %8, align 8
%70 = load i32, ptr %68, align 4
store i32 %70, ptr %10, align 4
%71 = load i32, ptr %9, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %73, label %84
73: ; preds = %67
%74 = load i32, ptr %9, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %73
store ptr null, ptr %5, align 8
br label %80
77: ; preds = %73
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 -1
store i32 0, ptr %79, align 4
br label %80
80: ; preds = %77, %76
%81 = load ptr, ptr %5, align 8
%82 = load ptr, ptr %7, align 8
store ptr %81, ptr %82, align 8
%83 = load ptr, ptr %11, align 8
store ptr %83, ptr %4, align 8
br label %89
84: ; preds = %67
br label %85
85: ; preds = %84
%86 = load i32, ptr %10, align 4
%87 = icmp ne i32 %86, 0
br i1 %87, label %67, label %88, !llvm.loop !8
88: ; preds = %85
br label %62
89: ; preds = %80, %57, %26
%90 = load ptr, ptr %4, align 8
ret ptr %90
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2azde02p.c'
source_filename = "/tmp/tmp2azde02p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @synth_2to1_mono2stereo(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @synth_2to1(ptr noundef %9, i32 noundef 0, ptr noundef %10, ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %13, i64 %16
%18 = getelementptr inbounds i8, ptr %17, i64 -64
store ptr %18, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %19
19: ; preds = %30, %3
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 16
br i1 %21, label %22, label %33
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i16, ptr %23, i64 0
%25 = load i16, ptr %24, align 2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds i16, ptr %26, i64 1
store i16 %25, ptr %27, align 2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 4
store ptr %29, ptr %5, align 8
br label %30
30: ; preds = %22
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = load i32, ptr %8, align 4
ret i32 %34
}
declare i32 @synth_2to1(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2azde02p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @synth_2to1_mono2stereo(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @synth_2to1(ptr noundef %9, i32 noundef 0, ptr noundef %10, ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %14, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %13, i64 %16
%18 = getelementptr inbounds i8, ptr %17, i64 -64
store ptr %18, ptr %5, align 8
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 16
br i1 %20, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %29
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i16, ptr %22, i64 0
%24 = load i16, ptr %23, align 2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i16, ptr %25, i64 1
store i16 %24, ptr %26, align 2
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 4
store ptr %28, ptr %5, align 8
br label %29
29: ; preds = %21
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %32, 16
br i1 %33, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i32, ptr %8, align 4
ret i32 %35
}
declare i32 @synth_2to1(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpl4q0o__x.c'
source_filename = "/tmp/tmpl4q0o__x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.inotify_event = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"chdir /\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@IN_CREATE = dso_local global i32 0, align 4
@IN_MOVED_TO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"inotify_add_watch\00", align 1
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"chdir %s\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"stat %s\00", align 1
@PATH_MAX = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [5 x i8] c"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @await(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = call i64 @chdir(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
br label %178
18: ; preds = %13, %3
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %23, label %39
23: ; preds = %18
%24 = call i64 @chdir(ptr noundef @.str)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 (i32, ptr, ...) @err(i32 noundef %27, ptr noundef @.str.1)
br label %29
29: ; preds = %26, %23
br label %30
30: ; preds = %35, %29
%31 = load ptr, ptr %4, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 47
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %4, align 8
br label %30, !llvm.loop !6
38: ; preds = %30
br label %39
39: ; preds = %38, %18
%40 = load ptr, ptr %4, align 8
%41 = call ptr @strrchr(ptr noundef %40, i8 noundef signext 47)
store ptr %41, ptr %7, align 8
%42 = load ptr, ptr %7, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %62
44: ; preds = %39
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 1
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %62
50: ; preds = %44
br label %51
51: ; preds = %56, %50
%52 = load ptr, ptr %7, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 47
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 -1
store ptr %58, ptr %7, align 8
store i8 0, ptr %57, align 1
br label %51, !llvm.loop !8
59: ; preds = %51
%60 = load ptr, ptr %4, align 8
%61 = call ptr @strrchr(ptr noundef %60, i8 noundef signext 47)
store ptr %61, ptr %7, align 8
br label %62
62: ; preds = %59, %44, %39
%63 = load ptr, ptr %7, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %71
65: ; preds = %62
%66 = load ptr, ptr %7, align 8
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %5, align 4
call void @await(ptr noundef %67, i32 noundef %68, i32 noundef 1)
%69 = load ptr, ptr %7, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 1
store ptr %70, ptr %4, align 8
br label %71
71: ; preds = %65, %62
%72 = load ptr, ptr %4, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %71
br label %178
77: ; preds = %71
%78 = load i32, ptr %5, align 4
%79 = load i32, ptr @IN_CREATE, align 4
%80 = load i32, ptr @IN_MOVED_TO, align 4
%81 = or i32 %79, %80
%82 = call i32 @inotify_add_watch(i32 noundef %78, ptr noundef @.str.2, i32 noundef %81)
store i32 %82, ptr %8, align 4
%83 = icmp slt i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %77
%85 = load i32, ptr @EXIT_FAILURE, align 4
%86 = call i32 (i32, ptr, ...) @err(i32 noundef %85, ptr noundef @.str.3)
br label %87
87: ; preds = %84, %77
%88 = load i32, ptr %6, align 4
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %104
90: ; preds = %87
%91 = load ptr, ptr %4, align 8
%92 = call i64 @chdir(ptr noundef %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %95, label %94
94: ; preds = %90
br label %174
95: ; preds = %90
%96 = load i64, ptr @errno, align 8
%97 = load i64, ptr @ENOENT, align 8
%98 = icmp ne i64 %96, %97
br i1 %98, label %99, label %103
99: ; preds = %95
%100 = load i32, ptr @EXIT_FAILURE, align 4
%101 = load ptr, ptr %4, align 8
%102 = call i32 (i32, ptr, ...) @err(i32 noundef %100, ptr noundef @.str.4, ptr noundef %101)
br label %103
103: ; preds = %99, %95
br label %118
104: ; preds = %87
%105 = load ptr, ptr %4, align 8
%106 = call i32 @stat(ptr noundef %105, ptr noundef %10)
%107 = icmp ne i32 %106, 0
br i1 %107, label %109, label %108
108: ; preds = %104
br label %174
109: ; preds = %104
%110 = load i64, ptr @errno, align 8
%111 = load i64, ptr @ENOENT, align 8
%112 = icmp ne i64 %110, %111
br i1 %112, label %113, label %117
113: ; preds = %109
%114 = load i32, ptr @EXIT_FAILURE, align 4
%115 = load ptr, ptr %4, align 8
%116 = call i32 (i32, ptr, ...) @err(i32 noundef %114, ptr noundef @.str.5, ptr noundef %115)
br label %117
117: ; preds = %113, %109
br label %118
118: ; preds = %117, %103
%119 = load i64, ptr @PATH_MAX, align 8
%120 = add i64 4, %119
%121 = add i64 %120, 1
%122 = call ptr @malloc(i64 noundef %121)
store ptr %122, ptr %9, align 8
%123 = icmp ne ptr %122, null
br i1 %123, label %127, label %124
124: ; preds = %118
%125 = load i32, ptr @EXIT_FAILURE, align 4
%126 = call i32 (i32, ptr, ...) @err(i32 noundef %125, ptr noundef @.str.6)
br label %127
127: ; preds = %124, %118
br label %128
128: ; preds = %127, %173
%129 = load i32, ptr %5, align 4
%130 = load ptr, ptr %9, align 8
%131 = load i64, ptr @PATH_MAX, align 8
%132 = add i64 4, %131
%133 = add i64 %132, 1
%134 = call i64 @read(i32 noundef %129, ptr noundef %130, i64 noundef %133)
%135 = icmp slt i64 %134, 0
br i1 %135, label %136, label %148
136: ; preds = %128
%137 = load i64, ptr @errno, align 8
%138 = load i64, ptr @EAGAIN, align 8
%139 = icmp ne i64 %137, %138
br i1 %139, label %140, label %147
140: ; preds = %136
%141 = load i64, ptr @errno, align 8
%142 = load i64, ptr @EINTR, align 8
%143 = icmp ne i64 %141, %142
br i1 %143, label %144, label %147
144: ; preds = %140
%145 = load i32, ptr @EXIT_FAILURE, align 4
%146 = call i32 (i32, ptr, ...) @err(i32 noundef %145, ptr noundef @.str.7)
br label %147
147: ; preds = %144, %140, %136
br label %173
148: ; preds = %128
%149 = load ptr, ptr %4, align 8
%150 = load ptr, ptr %9, align 8
%151 = getelementptr inbounds %struct.inotify_event, ptr %150, i32 0, i32 0
%152 = load i32, ptr %151, align 4
%153 = call i32 @strcmp(ptr noundef %149, i32 noundef %152)
%154 = icmp ne i32 %153, 0
br i1 %154, label %172, label %155
155: ; preds = %148
%156 = load i32, ptr %6, align 4
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %162
158: ; preds = %155
%159 = load ptr, ptr %4, align 8
%160 = call i64 @chdir(ptr noundef %159)
%161 = icmp ne i64 %160, 0
br i1 %161, label %163, label %162
162: ; preds = %158, %155
br label %174
163: ; preds = %158
%164 = load i64, ptr @errno, align 8
%165 = load i64, ptr @ENOENT, align 8
%166 = icmp ne i64 %164, %165
br i1 %166, label %167, label %171
167: ; preds = %163
%168 = load i32, ptr @EXIT_FAILURE, align 4
%169 = load ptr, ptr %4, align 8
%170 = call i32 (i32, ptr, ...) @err(i32 noundef %168, ptr noundef @.str.4, ptr noundef %169)
br label %171
171: ; preds = %167, %163
br label %172
172: ; preds = %171, %148
br label %173
173: ; preds = %172, %147
br label %128
174: ; preds = %162, %108, %94
%175 = load i32, ptr %5, align 4
%176 = load i32, ptr %8, align 4
%177 = call i32 @inotify_rm_watch(i32 noundef %175, i32 noundef %176)
br label %178
178: ; preds = %174, %76, %17
ret void
}
declare i64 @chdir(ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef, ...) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @inotify_add_watch(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @inotify_rm_watch(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl4q0o__x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.inotify_event = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"chdir /\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@IN_CREATE = dso_local global i32 0, align 4
@IN_MOVED_TO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"inotify_add_watch\00", align 1
@errno = dso_local global i64 0, align 8
@ENOENT = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"chdir %s\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"stat %s\00", align 1
@PATH_MAX = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [7 x i8] c"malloc\00", align 1
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [5 x i8] c"read\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @await(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = call i64 @chdir(ptr noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
br label %184
18: ; preds = %13, %3
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %23, label %42
23: ; preds = %18
%24 = call i64 @chdir(ptr noundef @.str)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 (i32, ptr, ...) @err(i32 noundef %27, ptr noundef @.str.1)
br label %29
29: ; preds = %26, %23
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 47
br i1 %33, label %.lr.ph, label %41
.lr.ph: ; preds = %29
br label %34
34: ; preds = %.lr.ph, %34
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %4, align 8
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 47
br i1 %40, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %41
41: ; preds = %._crit_edge, %29
br label %42
42: ; preds = %41, %18
%43 = load ptr, ptr %4, align 8
%44 = call ptr @strrchr(ptr noundef %43, i8 noundef signext 47)
store ptr %44, ptr %7, align 8
%45 = load ptr, ptr %7, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %68
47: ; preds = %42
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %68
53: ; preds = %47
%54 = load ptr, ptr %7, align 8
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 47
br i1 %57, label %.lr.ph2, label %65
.lr.ph2: ; preds = %53
br label %58
58: ; preds = %.lr.ph2, %58
%59 = load ptr, ptr %7, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 -1
store ptr %60, ptr %7, align 8
store i8 0, ptr %59, align 1
%61 = load ptr, ptr %7, align 8
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 47
br i1 %64, label %58, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %65
65: ; preds = %._crit_edge3, %53
%66 = load ptr, ptr %4, align 8
%67 = call ptr @strrchr(ptr noundef %66, i8 noundef signext 47)
store ptr %67, ptr %7, align 8
br label %68
68: ; preds = %65, %47, %42
%69 = load ptr, ptr %7, align 8
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %77
71: ; preds = %68
%72 = load ptr, ptr %7, align 8
store i8 0, ptr %72, align 1
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %5, align 4
call void @await(ptr noundef %73, i32 noundef %74, i32 noundef 1)
%75 = load ptr, ptr %7, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
store ptr %76, ptr %4, align 8
br label %77
77: ; preds = %71, %68
%78 = load ptr, ptr %4, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %77
br label %184
83: ; preds = %77
%84 = load i32, ptr %5, align 4
%85 = load i32, ptr @IN_CREATE, align 4
%86 = load i32, ptr @IN_MOVED_TO, align 4
%87 = or i32 %85, %86
%88 = call i32 @inotify_add_watch(i32 noundef %84, ptr noundef @.str.2, i32 noundef %87)
store i32 %88, ptr %8, align 4
%89 = icmp slt i32 %88, 0
br i1 %89, label %90, label %93
90: ; preds = %83
%91 = load i32, ptr @EXIT_FAILURE, align 4
%92 = call i32 (i32, ptr, ...) @err(i32 noundef %91, ptr noundef @.str.3)
br label %93
93: ; preds = %90, %83
%94 = load i32, ptr %6, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %110
96: ; preds = %93
%97 = load ptr, ptr %4, align 8
%98 = call i64 @chdir(ptr noundef %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %101, label %100
100: ; preds = %96
br label %180
101: ; preds = %96
%102 = load i64, ptr @errno, align 8
%103 = load i64, ptr @ENOENT, align 8
%104 = icmp ne i64 %102, %103
br i1 %104, label %105, label %109
105: ; preds = %101
%106 = load i32, ptr @EXIT_FAILURE, align 4
%107 = load ptr, ptr %4, align 8
%108 = call i32 (i32, ptr, ...) @err(i32 noundef %106, ptr noundef @.str.4, ptr noundef %107)
br label %109
109: ; preds = %105, %101
br label %124
110: ; preds = %93
%111 = load ptr, ptr %4, align 8
%112 = call i32 @stat(ptr noundef %111, ptr noundef %10)
%113 = icmp ne i32 %112, 0
br i1 %113, label %115, label %114
114: ; preds = %110
br label %180
115: ; preds = %110
%116 = load i64, ptr @errno, align 8
%117 = load i64, ptr @ENOENT, align 8
%118 = icmp ne i64 %116, %117
br i1 %118, label %119, label %123
119: ; preds = %115
%120 = load i32, ptr @EXIT_FAILURE, align 4
%121 = load ptr, ptr %4, align 8
%122 = call i32 (i32, ptr, ...) @err(i32 noundef %120, ptr noundef @.str.5, ptr noundef %121)
br label %123
123: ; preds = %119, %115
br label %124
124: ; preds = %123, %109
%125 = load i64, ptr @PATH_MAX, align 8
%126 = add i64 4, %125
%127 = add i64 %126, 1
%128 = call ptr @malloc(i64 noundef %127)
store ptr %128, ptr %9, align 8
%129 = icmp ne ptr %128, null
br i1 %129, label %133, label %130
130: ; preds = %124
%131 = load i32, ptr @EXIT_FAILURE, align 4
%132 = call i32 (i32, ptr, ...) @err(i32 noundef %131, ptr noundef @.str.6)
br label %133
133: ; preds = %130, %124
br label %134
134: ; preds = %179, %133
%135 = load i32, ptr %5, align 4
%136 = load ptr, ptr %9, align 8
%137 = load i64, ptr @PATH_MAX, align 8
%138 = add i64 4, %137
%139 = add i64 %138, 1
%140 = call i64 @read(i32 noundef %135, ptr noundef %136, i64 noundef %139)
%141 = icmp slt i64 %140, 0
br i1 %141, label %142, label %154
142: ; preds = %134
%143 = load i64, ptr @errno, align 8
%144 = load i64, ptr @EAGAIN, align 8
%145 = icmp ne i64 %143, %144
br i1 %145, label %146, label %153
146: ; preds = %142
%147 = load i64, ptr @errno, align 8
%148 = load i64, ptr @EINTR, align 8
%149 = icmp ne i64 %147, %148
br i1 %149, label %150, label %153
150: ; preds = %146
%151 = load i32, ptr @EXIT_FAILURE, align 4
%152 = call i32 (i32, ptr, ...) @err(i32 noundef %151, ptr noundef @.str.7)
br label %153
153: ; preds = %150, %146, %142
br label %179
154: ; preds = %134
%155 = load ptr, ptr %4, align 8
%156 = load ptr, ptr %9, align 8
%157 = getelementptr inbounds %struct.inotify_event, ptr %156, i32 0, i32 0
%158 = load i32, ptr %157, align 4
%159 = call i32 @strcmp(ptr noundef %155, i32 noundef %158)
%160 = icmp ne i32 %159, 0
br i1 %160, label %178, label %161
161: ; preds = %154
%162 = load i32, ptr %6, align 4
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %168
164: ; preds = %161
%165 = load ptr, ptr %4, align 8
%166 = call i64 @chdir(ptr noundef %165)
%167 = icmp ne i64 %166, 0
br i1 %167, label %169, label %168
168: ; preds = %164, %161
br label %180
169: ; preds = %164
%170 = load i64, ptr @errno, align 8
%171 = load i64, ptr @ENOENT, align 8
%172 = icmp ne i64 %170, %171
br i1 %172, label %173, label %177
173: ; preds = %169
%174 = load i32, ptr @EXIT_FAILURE, align 4
%175 = load ptr, ptr %4, align 8
%176 = call i32 (i32, ptr, ...) @err(i32 noundef %174, ptr noundef @.str.4, ptr noundef %175)
br label %177
177: ; preds = %173, %169
br label %178
178: ; preds = %177, %154
br label %179
179: ; preds = %178, %153
br label %134
180: ; preds = %168, %114, %100
%181 = load i32, ptr %5, align 4
%182 = load i32, ptr %8, align 4
%183 = call i32 @inotify_rm_watch(i32 noundef %181, i32 noundef %182)
br label %184
184: ; preds = %180, %82, %17
ret void
}
declare i64 @chdir(ptr noundef) #1
declare i32 @err(i32 noundef, ptr noundef, ...) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @inotify_add_watch(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @inotify_rm_watch(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpgqxg5bp8.c'
source_filename = "/tmp/tmpgqxg5bp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@init_atom_builder.init = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_atom_builder() #0 {
%1 = load i32, ptr @init_atom_builder.init, align 4
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0
br label %31
4: ; preds = %0
%5 = load i32, ptr @init_atom_builder.init, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr @init_atom_builder.init, align 4
%7 = call i32 (...) @init_atom_builder_config()
%8 = call i32 (...) @init_atom_builder_interface()
%9 = call i32 (...) @init_atom_builder_vlan()
%10 = call i32 (...) @init_atom_builder_ports_list()
%11 = call i32 (...) @init_atom_builder_custom_list()
%12 = call i32 (...) @init_atom_builder_med_power()
%13 = call i32 (...) @init_atom_builder_pis_list()
%14 = call i32 (...) @init_atom_builder_mgmts_list()
%15 = call i32 (...) @init_atom_builder_med_caelements_list()
%16 = call i32 (...) @init_atom_builder_med_location()
%17 = call i32 (...) @init_atom_builder_interfaces_list()
%18 = call i32 (...) @init_atom_builder_med_caelement()
%19 = call i32 (...) @init_atom_builder_custom()
%20 = call i32 (...) @init_atom_builder_med_locations_list()
%21 = call i32 (...) @init_atom_builder_ppvid()
%22 = call i32 (...) @init_atom_builder_med_policy()
%23 = call i32 (...) @init_atom_builder_pi()
%24 = call i32 (...) @init_atom_builder_ppvids_list()
%25 = call i32 (...) @init_atom_builder_port()
%26 = call i32 (...) @init_atom_builder_vlans_list()
%27 = call i32 (...) @init_atom_builder_dot3_power()
%28 = call i32 (...) @init_atom_builder_mgmt()
%29 = call i32 (...) @init_atom_builder_chassis()
%30 = call i32 (...) @init_atom_builder_med_policies_list()
br label %31
31: ; preds = %4, %3
ret void
}
declare i32 @init_atom_builder_config(...) #1
declare i32 @init_atom_builder_interface(...) #1
declare i32 @init_atom_builder_vlan(...) #1
declare i32 @init_atom_builder_ports_list(...) #1
declare i32 @init_atom_builder_custom_list(...) #1
declare i32 @init_atom_builder_med_power(...) #1
declare i32 @init_atom_builder_pis_list(...) #1
declare i32 @init_atom_builder_mgmts_list(...) #1
declare i32 @init_atom_builder_med_caelements_list(...) #1
declare i32 @init_atom_builder_med_location(...) #1
declare i32 @init_atom_builder_interfaces_list(...) #1
declare i32 @init_atom_builder_med_caelement(...) #1
declare i32 @init_atom_builder_custom(...) #1
declare i32 @init_atom_builder_med_locations_list(...) #1
declare i32 @init_atom_builder_ppvid(...) #1
declare i32 @init_atom_builder_med_policy(...) #1
declare i32 @init_atom_builder_pi(...) #1
declare i32 @init_atom_builder_ppvids_list(...) #1
declare i32 @init_atom_builder_port(...) #1
declare i32 @init_atom_builder_vlans_list(...) #1
declare i32 @init_atom_builder_dot3_power(...) #1
declare i32 @init_atom_builder_mgmt(...) #1
declare i32 @init_atom_builder_chassis(...) #1
declare i32 @init_atom_builder_med_policies_list(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgqxg5bp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@init_atom_builder.init = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_atom_builder() #0 {
%1 = load i32, ptr @init_atom_builder.init, align 4
%2 = icmp ne i32 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0
br label %31
4: ; preds = %0
%5 = load i32, ptr @init_atom_builder.init, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr @init_atom_builder.init, align 4
%7 = call i32 (...) @init_atom_builder_config()
%8 = call i32 (...) @init_atom_builder_interface()
%9 = call i32 (...) @init_atom_builder_vlan()
%10 = call i32 (...) @init_atom_builder_ports_list()
%11 = call i32 (...) @init_atom_builder_custom_list()
%12 = call i32 (...) @init_atom_builder_med_power()
%13 = call i32 (...) @init_atom_builder_pis_list()
%14 = call i32 (...) @init_atom_builder_mgmts_list()
%15 = call i32 (...) @init_atom_builder_med_caelements_list()
%16 = call i32 (...) @init_atom_builder_med_location()
%17 = call i32 (...) @init_atom_builder_interfaces_list()
%18 = call i32 (...) @init_atom_builder_med_caelement()
%19 = call i32 (...) @init_atom_builder_custom()
%20 = call i32 (...) @init_atom_builder_med_locations_list()
%21 = call i32 (...) @init_atom_builder_ppvid()
%22 = call i32 (...) @init_atom_builder_med_policy()
%23 = call i32 (...) @init_atom_builder_pi()
%24 = call i32 (...) @init_atom_builder_ppvids_list()
%25 = call i32 (...) @init_atom_builder_port()
%26 = call i32 (...) @init_atom_builder_vlans_list()
%27 = call i32 (...) @init_atom_builder_dot3_power()
%28 = call i32 (...) @init_atom_builder_mgmt()
%29 = call i32 (...) @init_atom_builder_chassis()
%30 = call i32 (...) @init_atom_builder_med_policies_list()
br label %31
31: ; preds = %4, %3
ret void
}
declare i32 @init_atom_builder_config(...) #1
declare i32 @init_atom_builder_interface(...) #1
declare i32 @init_atom_builder_vlan(...) #1
declare i32 @init_atom_builder_ports_list(...) #1
declare i32 @init_atom_builder_custom_list(...) #1
declare i32 @init_atom_builder_med_power(...) #1
declare i32 @init_atom_builder_pis_list(...) #1
declare i32 @init_atom_builder_mgmts_list(...) #1
declare i32 @init_atom_builder_med_caelements_list(...) #1
declare i32 @init_atom_builder_med_location(...) #1
declare i32 @init_atom_builder_interfaces_list(...) #1
declare i32 @init_atom_builder_med_caelement(...) #1
declare i32 @init_atom_builder_custom(...) #1
declare i32 @init_atom_builder_med_locations_list(...) #1
declare i32 @init_atom_builder_ppvid(...) #1
declare i32 @init_atom_builder_med_policy(...) #1
declare i32 @init_atom_builder_pi(...) #1
declare i32 @init_atom_builder_ppvids_list(...) #1
declare i32 @init_atom_builder_port(...) #1
declare i32 @init_atom_builder_vlans_list(...) #1
declare i32 @init_atom_builder_dot3_power(...) #1
declare i32 @init_atom_builder_mgmt(...) #1
declare i32 @init_atom_builder_chassis(...) #1
declare i32 @init_atom_builder_med_policies_list(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2lk7rhnf.c'
source_filename = "/tmp/tmp2lk7rhnf.c"
target datalayout = "e-m:e-p270: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/tmp2lk7rhnf.c"
target datalayout = "e-m:e-p270: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/tmpdyaknfae.c'
source_filename = "/tmp/tmpdyaknfae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"resume=\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"noresume\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_resume(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @get_arg(i32 noundef %8, ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load ptr, ptr %7, align 8
br label %17
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
br label %17
17: ; preds = %15, %13
%18 = phi ptr [ %14, %13 ], [ %16, %15 ]
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %17
store i32 0, ptr %3, align 4
br label %33
24: ; preds = %17
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call i64 @get_flag(i32 noundef %25, ptr noundef %26, ptr noundef @.str.2)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 0, ptr %3, align 4
br label %33
30: ; preds = %24
%31 = load ptr, ptr %6, align 8
%32 = call i32 @resume(ptr noundef %31)
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %30, %29, %23
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare ptr @get_arg(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @get_flag(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @resume(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdyaknfae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"resume=\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"noresume\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_resume(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @get_arg(i32 noundef %8, ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load ptr, ptr %7, align 8
br label %17
15: ; preds = %2
%16 = load ptr, ptr %6, align 8
br label %17
17: ; preds = %15, %13
%18 = phi ptr [ %14, %13 ], [ %16, %15 ]
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %17
store i32 0, ptr %3, align 4
br label %33
24: ; preds = %17
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call i64 @get_flag(i32 noundef %25, ptr noundef %26, ptr noundef @.str.2)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 0, ptr %3, align 4
br label %33
30: ; preds = %24
%31 = load ptr, ptr %6, align 8
%32 = call i32 @resume(ptr noundef %31)
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %30, %29, %23
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare ptr @get_arg(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @get_flag(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @resume(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqadevn62.c'
source_filename = "/tmp/tmpqadevn62.c"
target datalayout = "e-m:e-p270: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/tmpqadevn62.c"
target datalayout = "e-m:e-p270: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/tmpoo8p0dau.c'
source_filename = "/tmp/tmpoo8p0dau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"/tmp/xyz_netmode_forkpool.XXXXXX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xyz_netmodel_tempfd() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [1024 x i8], align 16
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @mkstemp(ptr noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 -1, ptr %1, align 4
br label %15
11: ; preds = %0
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @unlink(ptr noundef %12)
%14 = load i32, ptr %2, align 4
store i32 %14, ptr %1, align 4
br label %15
15: ; preds = %11, %10
%16 = load i32, ptr %1, align 4
ret i32 %16
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @mkstemp(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoo8p0dau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"/tmp/xyz_netmode_forkpool.XXXXXX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xyz_netmodel_tempfd() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [1024 x i8], align 16
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = call i32 @strcpy(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @mkstemp(ptr noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 -1, ptr %1, align 4
br label %15
11: ; preds = %0
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i32 @unlink(ptr noundef %12)
%14 = load i32, ptr %2, align 4
store i32 %14, ptr %1, align 4
br label %15
15: ; preds = %11, %10
%16 = load i32, ptr %1, align 4
ret i32 %16
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @mkstemp(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmmk66a05.c'
source_filename = "/tmp/tmpmmk66a05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mostrar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %27, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 4
br i1 %7, label %8, label %30
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %22, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x i32], ptr %13, i64 %15
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %22
22: ; preds = %12
%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
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %5, !llvm.loop !8
30: ; preds = %5
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmmk66a05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mostrar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 4
br i1 %6, label %.lr.ph2, label %32
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %27
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %20
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [4 x i32], ptr %11, i64 %13
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 4
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %7
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %32
32: ; preds = %._crit_edge3, %1
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpnyiaqn9n.c'
source_filename = "/tmp/tmpnyiaqn9n.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [17 x i8] c"minlog10: %4.6f\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 float, align 4
%7 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @usage(ptr noundef %13)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call float @atof(ptr noundef %20)
store float %21, ptr %6, align 4
%22 = load float, ptr %6, align 4
%23 = call i32 @log10(float noundef %22)
%24 = mul nsw i32 -10, %23
%25 = sitofp i32 %24 to float
store float %25, ptr %7, align 4
%26 = load float, ptr %7, align 4
%27 = call i32 @printf(ptr noundef @.str, float noundef %26)
ret i32 0
}
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare float @atof(ptr noundef) #1
declare i32 @log10(float noundef) #1
declare i32 @printf(ptr 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnyiaqn9n.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [17 x i8] c"minlog10: %4.6f\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 float, align 4
%7 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i32 @usage(ptr noundef %13)
%15 = load i32, ptr @EXIT_SUCCESS, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call float @atof(ptr noundef %20)
store float %21, ptr %6, align 4
%22 = load float, ptr %6, align 4
%23 = call i32 @log10(float noundef %22)
%24 = mul nsw i32 -10, %23
%25 = sitofp i32 %24 to float
store float %25, ptr %7, align 4
%26 = load float, ptr %7, align 4
%27 = call i32 @printf(ptr noundef @.str, float noundef %26)
ret i32 0
}
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare float @atof(ptr noundef) #1
declare i32 @log10(float noundef) #1
declare i32 @printf(ptr 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmugzss6k.c'
source_filename = "/tmp/tmpmugzss6k.c"
target datalayout = "e-m:e-p270: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/tmpmugzss6k.c"
target datalayout = "e-m:e-p270: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/tmpu2wuyopm.c'
source_filename = "/tmp/tmpu2wuyopm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
br label %3
3: ; preds = %14, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 1
br i1 %5, label %6, label %17
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %6
br label %17
13: ; preds = %6
br label %14
14: ; preds = %13
%15 = load i32, ptr %2, align 4
%16 = sdiv i32 %15, 2
store i32 %16, ptr %2, align 4
br label %3, !llvm.loop !6
17: ; preds = %12, %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2wuyopm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sge i32 %3, 1
br i1 %4, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %13
%6 = load i32, ptr %2, align 4
%7 = add nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %12
11: ; preds = %5
br label %18
12: ; preds = %5
br label %13
13: ; preds = %12
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 %14, 2
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sge i32 %16, 1
br i1 %17, label %5, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %13
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %18
18: ; preds = %.loopexit, %11
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg72gbs9n.c'
source_filename = "/tmp/tmpg72gbs9n.c"
target datalayout = "e-m:e-p270: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/tmpg72gbs9n.c"
target datalayout = "e-m:e-p270: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/tmp1tgldvi1.c'
source_filename = "/tmp/tmp1tgldvi1.c"
target datalayout = "e-m:e-p270: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/tmp1tgldvi1.c"
target datalayout = "e-m:e-p270: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/tmp3ztdkdoq.c'
source_filename = "/tmp/tmp3ztdkdoq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getbsize.header = internal global [20 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"BLOCKSIZE\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"K\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"M\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"%s: unknown blocksize\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"maximum blocksize is %ldG\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"minimum blocksize is 512\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"%ld%s-blocks\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getbsize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %11, align 8
%12 = call ptr @getenv(ptr noundef @.str.1)
store ptr %12, ptr %10, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %68
14: ; preds = %2
%15 = load ptr, ptr %10, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %68
19: ; preds = %14
%20 = load ptr, ptr %10, align 8
%21 = call i64 @strtol(ptr noundef %20, ptr noundef %9, i32 noundef 10)
store i64 %21, ptr %5, align 8
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
br label %65
24: ; preds = %19
%25 = load i64, ptr %5, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i64 1, ptr %5, align 8
br label %28
28: ; preds = %27, %24
%29 = load ptr, ptr %9, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %28
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %33
br label %49
40: ; preds = %33, %28
%41 = load ptr, ptr %9, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
switch i32 %43, label %48 [
i32 71, label %44
i32 103, label %44
i32 75, label %45
i32 107, label %45
i32 77, label %46
i32 109, label %46
i32 0, label %47
]
44: ; preds = %40, %40
store ptr @.str.2, ptr %11, align 8
store i64 1, ptr %6, align 8
store i64 1073741824, ptr %7, align 8
br label %52
45: ; preds = %40, %40
store ptr @.str.3, ptr %11, align 8
store i64 1048576, ptr %6, align 8
store i64 1024, ptr %7, align 8
br label %52
46: ; preds = %40, %40
store ptr @.str.4, ptr %11, align 8
store i64 1024, ptr %6, align 8
store i64 1048576, ptr %7, align 8
br label %52
47: ; preds = %40
store i64 1073741824, ptr %6, align 8
store i64 1, ptr %7, align 8
br label %52
48: ; preds = %40
br label %49
49: ; preds = %48, %39
%50 = load ptr, ptr %10, align 8
%51 = call i32 (ptr, ...) @warnx(ptr noundef @.str.5, ptr noundef %50)
store i64 512, ptr %5, align 8
store i64 1073741824, ptr %6, align 8
store i64 1, ptr %7, align 8
br label %52
52: ; preds = %49, %47, %46, %45, %44
%53 = load i64, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = icmp sgt i64 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 (ptr, ...) @warnx(ptr noundef @.str.6, i64 noundef 1)
%58 = load i64, ptr %6, align 8
store i64 %58, ptr %5, align 8
br label %59
59: ; preds = %56, %52
%60 = load i64, ptr %5, align 8
%61 = load i64, ptr %7, align 8
%62 = mul nsw i64 %60, %61
store i64 %62, ptr %8, align 8
%63 = icmp slt i64 %62, 512
br i1 %63, label %64, label %67
64: ; preds = %59
br label %65
65: ; preds = %64, %23
%66 = call i32 (ptr, ...) @warnx(ptr noundef @.str.7)
store ptr @.str, ptr %11, align 8
store i64 512, ptr %5, align 8
store i64 512, ptr %8, align 8
br label %67
67: ; preds = %65, %59
br label %69
68: ; preds = %14, %2
store i64 512, ptr %5, align 8
store i64 512, ptr %8, align 8
br label %69
69: ; preds = %68, %67
%70 = load i64, ptr %5, align 8
%71 = load ptr, ptr %11, align 8
%72 = call i32 @snprintf(ptr noundef @getbsize.header, i32 noundef 20, ptr noundef @.str.8, i64 noundef %70, ptr noundef %71)
%73 = call i32 @strlen(ptr noundef @getbsize.header)
%74 = load ptr, ptr %3, align 8
store i32 %73, ptr %74, align 4
%75 = load i64, ptr %8, align 8
%76 = load ptr, ptr %4, align 8
store i64 %75, ptr %76, align 8
ret ptr @getbsize.header
}
declare ptr @getenv(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @warnx(ptr noundef, ...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ztdkdoq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getbsize.header = internal global [20 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"BLOCKSIZE\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"G\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"K\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"M\00", align 1
@.str.5 = private unnamed_addr constant [22 x i8] c"%s: unknown blocksize\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"maximum blocksize is %ldG\00", align 1
@.str.7 = private unnamed_addr constant [25 x i8] c"minimum blocksize is 512\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"%ld%s-blocks\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getbsize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %11, align 8
%12 = call ptr @getenv(ptr noundef @.str.1)
store ptr %12, ptr %10, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %68
14: ; preds = %2
%15 = load ptr, ptr %10, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %68
19: ; preds = %14
%20 = load ptr, ptr %10, align 8
%21 = call i64 @strtol(ptr noundef %20, ptr noundef %9, i32 noundef 10)
store i64 %21, ptr %5, align 8
%22 = icmp slt i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
br label %65
24: ; preds = %19
%25 = load i64, ptr %5, align 8
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24
store i64 1, ptr %5, align 8
br label %28
28: ; preds = %27, %24
%29 = load ptr, ptr %9, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %28
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %33
br label %49
40: ; preds = %33, %28
%41 = load ptr, ptr %9, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
switch i32 %43, label %48 [
i32 71, label %44
i32 103, label %44
i32 75, label %45
i32 107, label %45
i32 77, label %46
i32 109, label %46
i32 0, label %47
]
44: ; preds = %40, %40
store ptr @.str.2, ptr %11, align 8
store i64 1, ptr %6, align 8
store i64 1073741824, ptr %7, align 8
br label %52
45: ; preds = %40, %40
store ptr @.str.3, ptr %11, align 8
store i64 1048576, ptr %6, align 8
store i64 1024, ptr %7, align 8
br label %52
46: ; preds = %40, %40
store ptr @.str.4, ptr %11, align 8
store i64 1024, ptr %6, align 8
store i64 1048576, ptr %7, align 8
br label %52
47: ; preds = %40
store i64 1073741824, ptr %6, align 8
store i64 1, ptr %7, align 8
br label %52
48: ; preds = %40
br label %49
49: ; preds = %48, %39
%50 = load ptr, ptr %10, align 8
%51 = call i32 (ptr, ...) @warnx(ptr noundef @.str.5, ptr noundef %50)
store i64 512, ptr %5, align 8
store i64 1073741824, ptr %6, align 8
store i64 1, ptr %7, align 8
br label %52
52: ; preds = %49, %47, %46, %45, %44
%53 = load i64, ptr %5, align 8
%54 = load i64, ptr %6, align 8
%55 = icmp sgt i64 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 (ptr, ...) @warnx(ptr noundef @.str.6, i64 noundef 1)
%58 = load i64, ptr %6, align 8
store i64 %58, ptr %5, align 8
br label %59
59: ; preds = %56, %52
%60 = load i64, ptr %5, align 8
%61 = load i64, ptr %7, align 8
%62 = mul nsw i64 %60, %61
store i64 %62, ptr %8, align 8
%63 = icmp slt i64 %62, 512
br i1 %63, label %64, label %67
64: ; preds = %59
br label %65
65: ; preds = %64, %23
%66 = call i32 (ptr, ...) @warnx(ptr noundef @.str.7)
store ptr @.str, ptr %11, align 8
store i64 512, ptr %5, align 8
store i64 512, ptr %8, align 8
br label %67
67: ; preds = %65, %59
br label %69
68: ; preds = %14, %2
store i64 512, ptr %5, align 8
store i64 512, ptr %8, align 8
br label %69
69: ; preds = %68, %67
%70 = load i64, ptr %5, align 8
%71 = load ptr, ptr %11, align 8
%72 = call i32 @snprintf(ptr noundef @getbsize.header, i32 noundef 20, ptr noundef @.str.8, i64 noundef %70, ptr noundef %71)
%73 = call i32 @strlen(ptr noundef @getbsize.header)
%74 = load ptr, ptr %3, align 8
store i32 %73, ptr %74, align 4
%75 = load i64, ptr %8, align 8
%76 = load ptr, ptr %4, align 8
store i64 %75, ptr %76, align 8
ret ptr @getbsize.header
}
declare ptr @getenv(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @warnx(ptr noundef, ...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppcauf82a.c'
source_filename = "/tmp/tmppcauf82a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, 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
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
br label %12
12: ; preds = %138, %0
%13 = load i64, ptr %3, align 8
%14 = add nsw i64 %13, -1
store i64 %14, ptr %3, align 8
%15 = icmp ne i64 %13, 0
br i1 %15, label %16, label %143
16: ; preds = %12
%17 = call i64 @malloc(i32 noundef 1000000)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %2, align 8
%19 = load ptr, ptr %2, align 8
%20 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %19)
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
%21 = load i64, ptr %5, align 8
store i64 %21, ptr %6, align 8
%22 = load i64, ptr %5, align 8
store i64 %22, ptr %7, align 8
store i64 0, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
br label %23
23: ; preds = %68, %16
%24 = load ptr, ptr %2, align 8
%25 = load i64, ptr %4, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %72
30: ; preds = %23
%31 = load ptr, ptr %2, align 8
%32 = load i64, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %31, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 60
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i64, ptr %5, align 8
%39 = add nsw i64 %38, 1
store i64 %39, ptr %5, align 8
br label %51
40: ; preds = %30
%41 = load ptr, ptr %2, align 8
%42 = load i64, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %41, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 62
br i1 %46, label %47, label %50
47: ; preds = %40
%48 = load i64, ptr %5, align 8
%49 = add nsw i64 %48, -1
store i64 %49, ptr %5, align 8
br label %50
50: ; preds = %47, %40
br label %51
51: ; preds = %50, %37
%52 = load i64, ptr %7, align 8
%53 = load i64, ptr %5, align 8
%54 = icmp slt i64 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = load i64, ptr %5, align 8
br label %59
57: ; preds = %51
%58 = load i64, ptr %7, align 8
br label %59
59: ; preds = %57, %55
%60 = phi i64 [ %56, %55 ], [ %58, %57 ]
store i64 %60, ptr %7, align 8
%61 = load i64, ptr %6, align 8
%62 = load i64, ptr %5, align 8
%63 = icmp sgt i64 %61, %62
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = load i64, ptr %5, align 8
br label %68
66: ; preds = %59
%67 = load i64, ptr %6, align 8
br label %68
68: ; preds = %66, %64
%69 = phi i64 [ %65, %64 ], [ %67, %66 ]
store i64 %69, ptr %6, align 8
%70 = load i64, ptr %4, align 8
%71 = add nsw i64 %70, 1
store i64 %71, ptr %4, align 8
br label %23, !llvm.loop !6
72: ; preds = %23
%73 = load i64, ptr %7, align 8
%74 = load i64, ptr %6, align 8
%75 = sub nsw i64 %73, %74
%76 = add nsw i64 %75, 1
store i64 %76, ptr %9, align 8
store i64 0, ptr %4, align 8
%77 = load i64, ptr %5, align 8
store i64 %77, ptr %7, align 8
%78 = load i64, ptr %5, align 8
store i64 %78, ptr %6, align 8
br label %79
79: ; preds = %122, %72
%80 = load ptr, ptr %2, align 8
%81 = load i64, ptr %4, align 8
%82 = getelementptr inbounds i8, ptr %80, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %126
86: ; preds = %79
%87 = load ptr, ptr %2, align 8
%88 = load i64, ptr %4, align 8
%89 = getelementptr inbounds i8, ptr %87, i64 %88
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 60
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = load i64, ptr %5, align 8
%95 = add nsw i64 %94, 1
store i64 %95, ptr %5, align 8
br label %105
96: ; preds = %86
%97 = load ptr, ptr %2, align 8
%98 = load i64, ptr %4, align 8
%99 = getelementptr inbounds i8, ptr %97, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 62
br i1 %102, label %103, label %104
103: ; preds = %96
store i64 0, ptr %5, align 8
br label %104
104: ; preds = %103, %96
br label %105
105: ; preds = %104, %93
%106 = load i64, ptr %7, align 8
%107 = load i64, ptr %5, align 8
%108 = icmp slt i64 %106, %107
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = load i64, ptr %5, align 8
br label %113
111: ; preds = %105
%112 = load i64, ptr %7, align 8
br label %113
113: ; preds = %111, %109
%114 = phi i64 [ %110, %109 ], [ %112, %111 ]
store i64 %114, ptr %7, align 8
%115 = load i64, ptr %6, align 8
%116 = load i64, ptr %5, align 8
%117 = icmp sgt i64 %115, %116
br i1 %117, label %118, label %120
118: ; preds = %113
%119 = load i64, ptr %5, align 8
br label %122
120: ; preds = %113
%121 = load i64, ptr %6, align 8
br label %122
122: ; preds = %120, %118
%123 = phi i64 [ %119, %118 ], [ %121, %120 ]
store i64 %123, ptr %6, align 8
%124 = load i64, ptr %4, align 8
%125 = add nsw i64 %124, 1
store i64 %125, ptr %4, align 8
br label %79, !llvm.loop !8
126: ; preds = %79
%127 = load i64, ptr %7, align 8
%128 = load i64, ptr %6, align 8
%129 = sub nsw i64 %127, %128
%130 = add nsw i64 %129, 1
store i64 %130, ptr %10, align 8
%131 = load i64, ptr %9, align 8
%132 = load i64, ptr %10, align 8
%133 = icmp sgt i64 %131, %132
br i1 %133, label %134, label %136
134: ; preds = %126
%135 = load i64, ptr %10, align 8
br label %138
136: ; preds = %126
%137 = load i64, ptr %9, align 8
br label %138
138: ; preds = %136, %134
%139 = phi i64 [ %135, %134 ], [ %137, %136 ]
%140 = call i32 @printf(ptr noundef @.str.2, i64 noundef %139)
%141 = load ptr, ptr %2, align 8
%142 = call i32 @free(ptr noundef %141)
br label %12, !llvm.loop !9
143: ; preds = %12
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppcauf82a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, 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
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
%12 = load i64, ptr %3, align 8
%13 = add nsw i64 %12, -1
store i64 %13, ptr %3, align 8
%14 = icmp ne i64 %12, 0
br i1 %14, label %.lr.ph5, label %155
.lr.ph5: ; preds = %0
br label %15
15: ; preds = %.lr.ph5, %147
%16 = call i64 @malloc(i32 noundef 1000000)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %18)
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
%20 = load i64, ptr %5, align 8
store i64 %20, ptr %6, align 8
%21 = load i64, ptr %5, align 8
store i64 %21, ptr %7, align 8
store i64 0, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %22, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %.lr.ph, label %76
.lr.ph: ; preds = %15
br label %28
28: ; preds = %.lr.ph, %66
%29 = load ptr, ptr %2, align 8
%30 = load i64, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 60
br i1 %34, label %35, label %38
35: ; preds = %28
%36 = load i64, ptr %5, align 8
%37 = add nsw i64 %36, 1
store i64 %37, ptr %5, align 8
br label %49
38: ; preds = %28
%39 = load ptr, ptr %2, align 8
%40 = load i64, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 62
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = load i64, ptr %5, align 8
%47 = add nsw i64 %46, -1
store i64 %47, ptr %5, align 8
br label %48
48: ; preds = %45, %38
br label %49
49: ; preds = %48, %35
%50 = load i64, ptr %7, align 8
%51 = load i64, ptr %5, align 8
%52 = icmp slt i64 %50, %51
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = load i64, ptr %5, align 8
br label %57
55: ; preds = %49
%56 = load i64, ptr %7, align 8
br label %57
57: ; preds = %55, %53
%58 = phi i64 [ %54, %53 ], [ %56, %55 ]
store i64 %58, ptr %7, align 8
%59 = load i64, ptr %6, align 8
%60 = load i64, ptr %5, align 8
%61 = icmp sgt i64 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %57
%63 = load i64, ptr %5, align 8
br label %66
64: ; preds = %57
%65 = load i64, ptr %6, align 8
br label %66
66: ; preds = %64, %62
%67 = phi i64 [ %63, %62 ], [ %65, %64 ]
store i64 %67, ptr %6, align 8
%68 = load i64, ptr %4, align 8
%69 = add nsw i64 %68, 1
store i64 %69, ptr %4, align 8
%70 = load ptr, ptr %2, align 8
%71 = load i64, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, 0
br i1 %75, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %76
76: ; preds = %._crit_edge, %15
%77 = load i64, ptr %7, align 8
%78 = load i64, ptr %6, align 8
%79 = sub nsw i64 %77, %78
%80 = add nsw i64 %79, 1
store i64 %80, ptr %9, align 8
store i64 0, ptr %4, align 8
%81 = load i64, ptr %5, align 8
store i64 %81, ptr %7, align 8
%82 = load i64, ptr %5, align 8
store i64 %82, ptr %6, align 8
%83 = load ptr, ptr %2, align 8
%84 = load i64, ptr %4, align 8
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp ne i32 %87, 0
br i1 %88, label %.lr.ph2, label %135
.lr.ph2: ; preds = %76
br label %89
89: ; preds = %.lr.ph2, %125
%90 = load ptr, ptr %2, align 8
%91 = load i64, ptr %4, align 8
%92 = getelementptr inbounds i8, ptr %90, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 60
br i1 %95, label %96, label %99
96: ; preds = %89
%97 = load i64, ptr %5, align 8
%98 = add nsw i64 %97, 1
store i64 %98, ptr %5, align 8
br label %108
99: ; preds = %89
%100 = load ptr, ptr %2, align 8
%101 = load i64, ptr %4, align 8
%102 = getelementptr inbounds i8, ptr %100, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 62
br i1 %105, label %106, label %107
106: ; preds = %99
store i64 0, ptr %5, align 8
br label %107
107: ; preds = %106, %99
br label %108
108: ; preds = %107, %96
%109 = load i64, ptr %7, align 8
%110 = load i64, ptr %5, align 8
%111 = icmp slt i64 %109, %110
br i1 %111, label %112, label %114
112: ; preds = %108
%113 = load i64, ptr %5, align 8
br label %116
114: ; preds = %108
%115 = load i64, ptr %7, align 8
br label %116
116: ; preds = %114, %112
%117 = phi i64 [ %113, %112 ], [ %115, %114 ]
store i64 %117, ptr %7, align 8
%118 = load i64, ptr %6, align 8
%119 = load i64, ptr %5, align 8
%120 = icmp sgt i64 %118, %119
br i1 %120, label %121, label %123
121: ; preds = %116
%122 = load i64, ptr %5, align 8
br label %125
123: ; preds = %116
%124 = load i64, ptr %6, align 8
br label %125
125: ; preds = %123, %121
%126 = phi i64 [ %122, %121 ], [ %124, %123 ]
store i64 %126, ptr %6, align 8
%127 = load i64, ptr %4, align 8
%128 = add nsw i64 %127, 1
store i64 %128, ptr %4, align 8
%129 = load ptr, ptr %2, align 8
%130 = load i64, ptr %4, align 8
%131 = getelementptr inbounds i8, ptr %129, i64 %130
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp ne i32 %133, 0
br i1 %134, label %89, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %125
br label %135
135: ; preds = %._crit_edge3, %76
%136 = load i64, ptr %7, align 8
%137 = load i64, ptr %6, align 8
%138 = sub nsw i64 %136, %137
%139 = add nsw i64 %138, 1
store i64 %139, ptr %10, align 8
%140 = load i64, ptr %9, align 8
%141 = load i64, ptr %10, align 8
%142 = icmp sgt i64 %140, %141
br i1 %142, label %143, label %145
143: ; preds = %135
%144 = load i64, ptr %10, align 8
br label %147
145: ; preds = %135
%146 = load i64, ptr %9, align 8
br label %147
147: ; preds = %145, %143
%148 = phi i64 [ %144, %143 ], [ %146, %145 ]
%149 = call i32 @printf(ptr noundef @.str.2, i64 noundef %148)
%150 = load ptr, ptr %2, align 8
%151 = call i32 @free(ptr noundef %150)
%152 = load i64, ptr %3, align 8
%153 = add nsw i64 %152, -1
store i64 %153, ptr %3, align 8
%154 = icmp ne i64 %152, 0
br i1 %154, label %15, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %147
br label %155
155: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpdjvr1baf.c'
source_filename = "/tmp/tmpdjvr1baf.c"
target datalayout = "e-m:e-p270: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/tmpdjvr1baf.c"
target datalayout = "e-m:e-p270: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/tmptncfb429.c'
source_filename = "/tmp/tmptncfb429.c"
target datalayout = "e-m:e-p270: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/tmptncfb429.c"
target datalayout = "e-m:e-p270: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/tmp8ueoo29v.c'
source_filename = "/tmp/tmp8ueoo29v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vasprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = 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 i64 128, ptr %10, align 8
%12 = load i64, ptr %10, align 8
%13 = call ptr @malloc(i64 noundef %12)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
store ptr null, ptr %17, align 8
store i32 -1, ptr %4, align 4
br label %81
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %10, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = call i32 @vsnprintf(ptr noundef %19, i64 noundef %20, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %18
%27 = load ptr, ptr %8, align 8
%28 = call i32 @free(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
store ptr null, ptr %29, align 8
store i32 -1, ptr %4, align 4
br label %81
30: ; preds = %18
%31 = load i32, ptr %11, align 4
%32 = load i64, ptr %10, align 8
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %50
35: ; preds = %30
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %11, align 4
%38 = add nsw i32 %37, 1
%39 = call ptr @realloc(ptr noundef %36, i32 noundef %38)
store ptr %39, ptr %9, align 8
%40 = load ptr, ptr %9, align 8
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %5, align 8
store ptr %43, ptr %44, align 8
br label %48
45: ; preds = %35
%46 = load ptr, ptr %9, align 8
%47 = load ptr, ptr %5, align 8
store ptr %46, ptr %47, align 8
br label %48
48: ; preds = %45, %42
%49 = load i32, ptr %11, align 4
store i32 %49, ptr %4, align 4
br label %81
50: ; preds = %30
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = add i64 %52, 1
store i64 %53, ptr %10, align 8
%54 = load ptr, ptr %8, align 8
%55 = call i32 @free(ptr noundef %54)
%56 = load i64, ptr %10, align 8
%57 = call ptr @malloc(i64 noundef %56)
store ptr %57, ptr %8, align 8
%58 = load ptr, ptr %8, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %62
60: ; preds = %50
%61 = load ptr, ptr %5, align 8
store ptr null, ptr %61, align 8
store i32 -1, ptr %4, align 4
br label %81
62: ; preds = %50
%63 = load ptr, ptr %8, align 8
%64 = load i64, ptr %10, align 8
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %7, align 4
%67 = call i32 @vsnprintf(ptr noundef %63, i64 noundef %64, ptr noundef %65, i32 noundef %66)
store i32 %67, ptr %11, align 4
%68 = load i32, ptr %11, align 4
%69 = load i64, ptr %10, align 8
%70 = trunc i64 %69 to i32
%71 = sub nsw i32 %70, 1
%72 = icmp ne i32 %68, %71
br i1 %72, label %73, label %77
73: ; preds = %62
%74 = load ptr, ptr %8, align 8
%75 = call i32 @free(ptr noundef %74)
%76 = load ptr, ptr %5, align 8
store ptr null, ptr %76, align 8
store i32 -1, ptr %4, align 4
br label %81
77: ; preds = %62
%78 = load ptr, ptr %8, align 8
%79 = load ptr, ptr %5, align 8
store ptr %78, ptr %79, align 8
%80 = load i32, ptr %11, align 4
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %77, %73, %60, %48, %26, %16
%82 = load i32, ptr %4, align 4
ret i32 %82
}
declare ptr @malloc(i64 noundef) #1
declare i32 @vsnprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ueoo29v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vasprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = 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 i64 128, ptr %10, align 8
%12 = load i64, ptr %10, align 8
%13 = call ptr @malloc(i64 noundef %12)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %8, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %3
%17 = load ptr, ptr %5, align 8
store ptr null, ptr %17, align 8
store i32 -1, ptr %4, align 4
br label %81
18: ; preds = %3
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %10, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = call i32 @vsnprintf(ptr noundef %19, i64 noundef %20, ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %18
%27 = load ptr, ptr %8, align 8
%28 = call i32 @free(ptr noundef %27)
%29 = load ptr, ptr %5, align 8
store ptr null, ptr %29, align 8
store i32 -1, ptr %4, align 4
br label %81
30: ; preds = %18
%31 = load i32, ptr %11, align 4
%32 = load i64, ptr %10, align 8
%33 = trunc i64 %32 to i32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %50
35: ; preds = %30
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %11, align 4
%38 = add nsw i32 %37, 1
%39 = call ptr @realloc(ptr noundef %36, i32 noundef %38)
store ptr %39, ptr %9, align 8
%40 = load ptr, ptr %9, align 8
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %5, align 8
store ptr %43, ptr %44, align 8
br label %48
45: ; preds = %35
%46 = load ptr, ptr %9, align 8
%47 = load ptr, ptr %5, align 8
store ptr %46, ptr %47, align 8
br label %48
48: ; preds = %45, %42
%49 = load i32, ptr %11, align 4
store i32 %49, ptr %4, align 4
br label %81
50: ; preds = %30
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = add i64 %52, 1
store i64 %53, ptr %10, align 8
%54 = load ptr, ptr %8, align 8
%55 = call i32 @free(ptr noundef %54)
%56 = load i64, ptr %10, align 8
%57 = call ptr @malloc(i64 noundef %56)
store ptr %57, ptr %8, align 8
%58 = load ptr, ptr %8, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %62
60: ; preds = %50
%61 = load ptr, ptr %5, align 8
store ptr null, ptr %61, align 8
store i32 -1, ptr %4, align 4
br label %81
62: ; preds = %50
%63 = load ptr, ptr %8, align 8
%64 = load i64, ptr %10, align 8
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %7, align 4
%67 = call i32 @vsnprintf(ptr noundef %63, i64 noundef %64, ptr noundef %65, i32 noundef %66)
store i32 %67, ptr %11, align 4
%68 = load i32, ptr %11, align 4
%69 = load i64, ptr %10, align 8
%70 = trunc i64 %69 to i32
%71 = sub nsw i32 %70, 1
%72 = icmp ne i32 %68, %71
br i1 %72, label %73, label %77
73: ; preds = %62
%74 = load ptr, ptr %8, align 8
%75 = call i32 @free(ptr noundef %74)
%76 = load ptr, ptr %5, align 8
store ptr null, ptr %76, align 8
store i32 -1, ptr %4, align 4
br label %81
77: ; preds = %62
%78 = load ptr, ptr %8, align 8
%79 = load ptr, ptr %5, align 8
store ptr %78, ptr %79, align 8
%80 = load i32, ptr %11, align 4
store i32 %80, ptr %4, align 4
br label %81
81: ; preds = %77, %73, %60, %48, %26, %16
%82 = load i32, ptr %4, align 4
ret i32 %82
}
declare ptr @malloc(i64 noundef) #1
declare i32 @vsnprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpae_lkyy_.c'
source_filename = "/tmp/tmpae_lkyy_.c"
target datalayout = "e-m:e-p270: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.syms = private unnamed_addr constant [8 x i8] c" :@$+#&%", align 1
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"Usage: %s\0A <bin file> <offset> <n>\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Can not open file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%s @ %lx\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Can not seek file %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%d map(s)\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"maps = {\0A\00", align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Can not read file %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"-- %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\22\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"\22,\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca [8 x i8], align 1
%11 = alloca i8, align 1
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i16, align 2
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%19 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
store ptr %19, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.syms, i64 8, i1 false)
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 4
br i1 %21, label %22, label %28
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %168
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
%32 = load i32, ptr @O_RDONLY, align 4
%33 = call i32 @open(ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %28
%37 = load i32, ptr @stderr, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1, ptr noundef %40)
store i32 1, ptr %3, align 4
br label %168
42: ; preds = %28
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 2
%45 = load ptr, ptr %44, align 8
%46 = call i64 @strtol(ptr noundef %45, ptr noundef null, i32 noundef 0)
store i64 %46, ptr %12, align 8
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8
%51 = load i64, ptr %12, align 8
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.2, ptr noundef %50, i64 noundef %51)
%53 = load i32, ptr %6, align 4
%54 = load i64, ptr %12, align 8
%55 = load i32, ptr @SEEK_SET, align 4
%56 = call i64 @lseek(i32 noundef %53, i64 noundef %54, i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %42
%59 = load i32, ptr @stderr, align 4
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 1
%62 = load ptr, ptr %61, align 8
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.3, ptr noundef %62)
store i32 1, ptr %3, align 4
br label %168
64: ; preds = %42
%65 = load ptr, ptr %5, align 8
%66 = getelementptr inbounds ptr, ptr %65, i64 3
%67 = load ptr, ptr %66, align 8
%68 = call i32 @atoi(ptr noundef %67)
store i32 %68, ptr %13, align 4
%69 = load i32, ptr @stderr, align 4
%70 = load i32, ptr %13, align 4
%71 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.4, i32 noundef %70)
%72 = load i32, ptr @stdout, align 4
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %72, ptr noundef @.str.5)
br label %74
74: ; preds = %160, %64
%75 = load i32, ptr %13, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %13, align 4
%77 = icmp ne i32 %75, 0
br i1 %77, label %78, label %163
78: ; preds = %74
%79 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
store ptr %79, ptr %9, align 8
store i32 0, ptr %16, align 4
br label %80
80: ; preds = %121, %78
%81 = load i32, ptr %16, align 4
%82 = icmp slt i32 %81, 52
br i1 %82, label %83, label %124
83: ; preds = %80
store i32 5, ptr %18, align 4
%84 = load i32, ptr %6, align 4
%85 = call i32 @read(i32 noundef %84, ptr noundef %17, i32 noundef 2)
%86 = sext i32 %85 to i64
%87 = icmp ne i64 %86, 2
br i1 %87, label %88, label %94
88: ; preds = %83
%89 = load i32, ptr @stderr, align 4
%90 = load ptr, ptr %5, align 8
%91 = getelementptr inbounds ptr, ptr %90, i64 1
%92 = load ptr, ptr %91, align 8
%93 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef @.str.6, ptr noundef %92)
store i32 1, ptr %3, align 4
br label %168
94: ; preds = %83
%95 = load i16, ptr %17, align 2
%96 = zext i16 %95 to i32
%97 = shl i32 %96, 1
%98 = trunc i32 %97 to i16
store i16 %98, ptr %17, align 2
%99 = load i32, ptr %16, align 4
%100 = icmp eq i32 %99, 51
br i1 %100, label %101, label %102
101: ; preds = %94
store i32 1, ptr %18, align 4
br label %102
102: ; preds = %101, %94
br label %103
103: ; preds = %107, %102
%104 = load i32, ptr %18, align 4
%105 = add nsw i32 %104, -1
store i32 %105, ptr %18, align 4
%106 = icmp ne i32 %104, 0
br i1 %106, label %107, label %120
107: ; preds = %103
%108 = load i16, ptr %17, align 2
%109 = zext i16 %108 to i32
%110 = and i32 %109, 57344
%111 = ashr i32 %110, 13
%112 = trunc i32 %111 to i8
%113 = load ptr, ptr %9, align 8
store i8 %112, ptr %113, align 1
%114 = load ptr, ptr %9, align 8
%115 = getelementptr inbounds i8, ptr %114, i32 1
store ptr %115, ptr %9, align 8
%116 = load i16, ptr %17, align 2
%117 = zext i16 %116 to i32
%118 = shl i32 %117, 3
%119 = trunc i32 %118 to i16
store i16 %119, ptr %17, align 2
br label %103, !llvm.loop !6
120: ; preds = %103
br label %121
121: ; preds = %120
%122 = load i32, ptr %16, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %16, align 4
br label %80, !llvm.loop !8
124: ; preds = %80
%125 = load i32, ptr @stdout, align 4
%126 = load i32, ptr %7, align 4
%127 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %125, ptr noundef @.str.7, i32 noundef %126)
store i32 0, ptr %15, align 4
br label %128
128: ; preds = %157, %124
%129 = load i32, ptr %15, align 4
%130 = icmp slt i32 %129, 16
br i1 %130, label %131, label %160
131: ; preds = %128
%132 = load i32, ptr @stdout, align 4
%133 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %132, ptr noundef @.str.8)
store i32 0, ptr %14, align 4
br label %134
134: ; preds = %151, %131
%135 = load i32, ptr %14, align 4
%136 = icmp slt i32 %135, 16
br i1 %136, label %137, label %154
137: ; preds = %134
%138 = load i32, ptr @stdout, align 4
%139 = load i32, ptr %15, align 4
%140 = mul nsw i32 %139, 16
%141 = load i32, ptr %14, align 4
%142 = add nsw i32 %140, %141
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %143
%145 = load i8, ptr %144, align 1
%146 = sext i8 %145 to i64
%147 = getelementptr inbounds [8 x i8], ptr %10, i64 0, i64 %146
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
%150 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %138, ptr noundef @.str.9, i32 noundef %149)
br label %151
151: ; preds = %137
%152 = load i32, ptr %14, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %14, align 4
br label %134, !llvm.loop !9
154: ; preds = %134
%155 = load i32, ptr @stdout, align 4
%156 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %155, ptr noundef @.str.10)
br label %157
157: ; preds = %154
%158 = load i32, ptr %15, align 4
%159 = add nsw i32 %158, 1
store i32 %159, ptr %15, align 4
br label %128, !llvm.loop !10
160: ; preds = %128
%161 = load i32, ptr %7, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %7, align 4
br label %74, !llvm.loop !11
163: ; preds = %74
%164 = load i32, ptr @stdout, align 4
%165 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %164, ptr noundef @.str.11)
%166 = load i32, ptr %6, align 4
%167 = call i32 @close(i32 noundef %166)
store i32 0, ptr %3, align 4
br label %168
168: ; preds = %163, %88, %58, %36, %22
%169 = load i32, ptr %3, align 4
ret i32 %169
}
; 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 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpae_lkyy_.c"
target datalayout = "e-m:e-p270: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.syms = private unnamed_addr constant [8 x i8] c" :@$+#&%", align 1
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"Usage: %s\0A <bin file> <offset> <n>\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Can not open file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%s @ %lx\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Can not seek file %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%d map(s)\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [10 x i8] c"maps = {\0A\00", align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Can not read file %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"-- %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\22\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"\22,\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca [8 x i8], align 1
%11 = alloca i8, align 1
%12 = alloca i64, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i16, align 2
%18 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%19 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
store ptr %19, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.syms, i64 8, i1 false)
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 4
br i1 %21, label %22, label %28
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %175
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
%32 = load i32, ptr @O_RDONLY, align 4
%33 = call i32 @open(ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %28
%37 = load i32, ptr @stderr, align 4
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1, ptr noundef %40)
store i32 1, ptr %3, align 4
br label %175
42: ; preds = %28
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 2
%45 = load ptr, ptr %44, align 8
%46 = call i64 @strtol(ptr noundef %45, ptr noundef null, i32 noundef 0)
store i64 %46, ptr %12, align 8
%47 = load i32, ptr @stderr, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8
%51 = load i64, ptr %12, align 8
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.2, ptr noundef %50, i64 noundef %51)
%53 = load i32, ptr %6, align 4
%54 = load i64, ptr %12, align 8
%55 = load i32, ptr @SEEK_SET, align 4
%56 = call i64 @lseek(i32 noundef %53, i64 noundef %54, i32 noundef %55)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %42
%59 = load i32, ptr @stderr, align 4
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds ptr, ptr %60, i64 1
%62 = load ptr, ptr %61, align 8
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %59, ptr noundef @.str.3, ptr noundef %62)
store i32 1, ptr %3, align 4
br label %175
64: ; preds = %42
%65 = load ptr, ptr %5, align 8
%66 = getelementptr inbounds ptr, ptr %65, i64 3
%67 = load ptr, ptr %66, align 8
%68 = call i32 @atoi(ptr noundef %67)
store i32 %68, ptr %13, align 4
%69 = load i32, ptr @stderr, align 4
%70 = load i32, ptr %13, align 4
%71 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %69, ptr noundef @.str.4, i32 noundef %70)
%72 = load i32, ptr @stdout, align 4
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %72, ptr noundef @.str.5)
%74 = load i32, ptr %13, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %13, align 4
%76 = icmp ne i32 %74, 0
br i1 %76, label %.lr.ph11, label %170
.lr.ph11: ; preds = %64
br label %77
77: ; preds = %.lr.ph11, %164
%78 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
store ptr %78, ptr %9, align 8
store i32 0, ptr %16, align 4
%79 = load i32, ptr %16, align 4
%80 = icmp slt i32 %79, 52
br i1 %80, label %.lr.ph2, label %126
.lr.ph2: ; preds = %77
br label %81
81: ; preds = %.lr.ph2, %121
store i32 5, ptr %18, align 4
%82 = load i32, ptr %6, align 4
%83 = call i32 @read(i32 noundef %82, ptr noundef %17, i32 noundef 2)
%84 = sext i32 %83 to i64
%85 = icmp ne i64 %84, 2
br i1 %85, label %86, label %92
86: ; preds = %81
%87 = load i32, ptr @stderr, align 4
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %87, ptr noundef @.str.6, ptr noundef %90)
store i32 1, ptr %3, align 4
br label %175
92: ; preds = %81
%93 = load i16, ptr %17, align 2
%94 = zext i16 %93 to i32
%95 = shl i32 %94, 1
%96 = trunc i32 %95 to i16
store i16 %96, ptr %17, align 2
%97 = load i32, ptr %16, align 4
%98 = icmp eq i32 %97, 51
br i1 %98, label %99, label %100
99: ; preds = %92
store i32 1, ptr %18, align 4
br label %100
100: ; preds = %99, %92
%101 = load i32, ptr %18, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %18, align 4
%103 = icmp ne i32 %101, 0
br i1 %103, label %.lr.ph, label %120
.lr.ph: ; preds = %100
br label %104
104: ; preds = %.lr.ph, %104
%105 = load i16, ptr %17, align 2
%106 = zext i16 %105 to i32
%107 = and i32 %106, 57344
%108 = ashr i32 %107, 13
%109 = trunc i32 %108 to i8
%110 = load ptr, ptr %9, align 8
store i8 %109, ptr %110, align 1
%111 = load ptr, ptr %9, align 8
%112 = getelementptr inbounds i8, ptr %111, i32 1
store ptr %112, ptr %9, align 8
%113 = load i16, ptr %17, align 2
%114 = zext i16 %113 to i32
%115 = shl i32 %114, 3
%116 = trunc i32 %115 to i16
store i16 %116, ptr %17, align 2
%117 = load i32, ptr %18, align 4
%118 = add nsw i32 %117, -1
store i32 %118, ptr %18, align 4
%119 = icmp ne i32 %117, 0
br i1 %119, label %104, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %104
br label %120
120: ; preds = %._crit_edge, %100
br label %121
121: ; preds = %120
%122 = load i32, ptr %16, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %16, align 4
%124 = load i32, ptr %16, align 4
%125 = icmp slt i32 %124, 52
br i1 %125, label %81, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %121
br label %126
126: ; preds = %._crit_edge3, %77
%127 = load i32, ptr @stdout, align 4
%128 = load i32, ptr %7, align 4
%129 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %127, ptr noundef @.str.7, i32 noundef %128)
store i32 0, ptr %15, align 4
%130 = load i32, ptr %15, align 4
%131 = icmp slt i32 %130, 16
br i1 %131, label %.lr.ph8, label %164
.lr.ph8: ; preds = %126
br label %132
132: ; preds = %.lr.ph8, %159
%133 = load i32, ptr @stdout, align 4
%134 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %133, ptr noundef @.str.8)
store i32 0, ptr %14, align 4
%135 = load i32, ptr %14, align 4
%136 = icmp slt i32 %135, 16
br i1 %136, label %.lr.ph5, label %156
.lr.ph5: ; preds = %132
br label %137
137: ; preds = %.lr.ph5, %151
%138 = load i32, ptr @stdout, align 4
%139 = load i32, ptr %15, align 4
%140 = mul nsw i32 %139, 16
%141 = load i32, ptr %14, align 4
%142 = add nsw i32 %140, %141
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 %143
%145 = load i8, ptr %144, align 1
%146 = sext i8 %145 to i64
%147 = getelementptr inbounds [8 x i8], ptr %10, i64 0, i64 %146
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
%150 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %138, ptr noundef @.str.9, i32 noundef %149)
br label %151
151: ; preds = %137
%152 = load i32, ptr %14, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %14, align 4
%154 = load i32, ptr %14, align 4
%155 = icmp slt i32 %154, 16
br i1 %155, label %137, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %151
br label %156
156: ; preds = %._crit_edge6, %132
%157 = load i32, ptr @stdout, align 4
%158 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %157, ptr noundef @.str.10)
br label %159
159: ; preds = %156
%160 = load i32, ptr %15, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %15, align 4
%162 = load i32, ptr %15, align 4
%163 = icmp slt i32 %162, 16
br i1 %163, label %132, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %159
br label %164
164: ; preds = %._crit_edge9, %126
%165 = load i32, ptr %7, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %7, align 4
%167 = load i32, ptr %13, align 4
%168 = add nsw i32 %167, -1
store i32 %168, ptr %13, align 4
%169 = icmp ne i32 %167, 0
br i1 %169, label %77, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %164
br label %170
170: ; preds = %._crit_edge12, %64
%171 = load i32, ptr @stdout, align 4
%172 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %171, ptr noundef @.str.11)
%173 = load i32, ptr %6, align 4
%174 = call i32 @close(i32 noundef %173)
store i32 0, ptr %3, align 4
br label %175
175: ; preds = %170, %86, %58, %36, %22
%176 = load i32, ptr %3, align 4
ret i32 %176
}
; 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 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @lseek(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp9d5qohm6.c'
source_filename = "/tmp/tmp9d5qohm6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @yamc_sub_cmd_parser_ext(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @yamc_sub_cmd_parser_internal(i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef 0)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
ret i32 %15
}
declare i32 @yamc_sub_cmd_parser_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9d5qohm6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @yamc_sub_cmd_parser_ext(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @yamc_sub_cmd_parser_internal(i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef 0)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
ret i32 %15
}
declare i32 @yamc_sub_cmd_parser_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk5angzij.c'
source_filename = "/tmp/tmpk5angzij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@REG_EXTENDED = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Cannot compile regex: %s\0A\00", align 1
@REG_NOMATCH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @route_match(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
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @REG_EXTENDED, align 4
%11 = call i32 @regcomp(ptr noundef %6, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
store i32 0, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i32 @regexec(ptr noundef %6, ptr noundef %18, i32 noundef 0, ptr noundef null, i32 noundef 0)
store i32 %19, ptr %8, align 4
%20 = call i32 @regfree(ptr noundef %6)
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr @REG_NOMATCH, align 4
%23 = icmp ne i32 %21, %22
%24 = zext i1 %23 to i32
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %17, %14
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk5angzij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@REG_EXTENDED = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Cannot compile regex: %s\0A\00", align 1
@REG_NOMATCH = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @route_match(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
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @REG_EXTENDED, align 4
%11 = call i32 @regcomp(ptr noundef %6, ptr noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
store i32 0, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i32 @regexec(ptr noundef %6, ptr noundef %18, i32 noundef 0, ptr noundef null, i32 noundef 0)
store i32 %19, ptr %8, align 4
%20 = call i32 @regfree(ptr noundef %6)
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr @REG_NOMATCH, align 4
%23 = icmp ne i32 %21, %22
%24 = zext i1 %23 to i32
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %17, %14
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @regcomp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @regexec(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @regfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_igj8q9w.c'
source_filename = "/tmp/tmp_igj8q9w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_igj8q9w.c"
target datalayout = "e-m:e-p270: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/tmpoek07k_b.c'
source_filename = "/tmp/tmpoek07k_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_fg_storage() #0 {
%1 = call i32 @new_block_fg(i32 noundef 0)
ret void
}
declare i32 @new_block_fg(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/tmpoek07k_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_fg_storage() #0 {
%1 = call i32 @new_block_fg(i32 noundef 0)
ret void
}
declare i32 @new_block_fg(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/tmpjrzjhqf4.c'
source_filename = "/tmp/tmpjrzjhqf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cam16o(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i16 noundef zeroext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i16, align 2
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i16 %4, ptr %10, align 2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i16, ptr %10, align 2
%16 = call i32 @camo(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i16 noundef zeroext %15)
ret void
}
declare i32 @camo(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjrzjhqf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cam16o(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i16 noundef zeroext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i16, align 2
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i16 %4, ptr %10, align 2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i16, ptr %10, align 2
%16 = call i32 @camo(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i16 noundef zeroext %15)
ret void
}
declare i32 @camo(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpga8yt_h3.c'
source_filename = "/tmp/tmpga8yt_h3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%d%d%d%*c\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [22 x [22 x i8]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %14
14: ; preds = %202, %0
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %2, align 4
%17 = icmp ne i32 %15, 0
br i1 %17, label %18, label %203
18: ; preds = %14
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %31, %18
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %26
%28 = getelementptr inbounds [22 x i8], ptr %27, i64 0, i64 0
%29 = load i32, ptr @stdin, align 4
%30 = call i32 @fgets(ptr noundef %28, i32 noundef 22, i32 noundef %29)
br label %31
31: ; preds = %24
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %20, !llvm.loop !6
34: ; preds = %20
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %6, align 4
%38 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %39
39: ; preds = %197, %34
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %6, align 4
%42 = icmp ne i32 %40, 0
br i1 %42, label %43, label %202
43: ; preds = %39
%44 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %8, ptr noundef %9)
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %46
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [22 x i8], ptr %47, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
store i8 %51, ptr %11, align 1
store i32 1, ptr %10, align 4
br label %52
52: ; preds = %193, %43
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %53, %54
%56 = load i32, ptr %4, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %74
58: ; preds = %52
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %10, align 4
%61 = sub nsw i32 %59, %60
%62 = icmp sge i32 %61, 0
br i1 %62, label %63, label %74
63: ; preds = %58
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %64, %65
%67 = load i32, ptr %5, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %74
69: ; preds = %63
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %10, align 4
%72 = sub nsw i32 %70, %71
%73 = icmp sge i32 %72, 0
br label %74
74: ; preds = %69, %63, %58, %52
%75 = phi i1 [ false, %63 ], [ false, %58 ], [ false, %52 ], [ %73, %69 ]
br i1 %75, label %76, label %196
76: ; preds = %74
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %10, align 4
%79 = sub nsw i32 %77, %78
store i32 %79, ptr %12, align 4
br label %80
80: ; preds = %102, %76
%81 = load i32, ptr %12, align 4
%82 = load i32, ptr %9, align 4
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %82, %83
%85 = icmp slt i32 %81, %84
br i1 %85, label %86, label %105
86: ; preds = %80
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr %10, align 4
%89 = sub nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %90
%92 = load i32, ptr %12, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [22 x i8], ptr %91, i64 0, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = load i8, ptr %11, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %96, %98
br i1 %99, label %100, label %101
100: ; preds = %86
br label %197
101: ; preds = %86
br label %102
102: ; preds = %101
%103 = load i32, ptr %12, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %12, align 4
br label %80, !llvm.loop !8
105: ; preds = %80
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %10, align 4
%108 = sub nsw i32 %106, %107
store i32 %108, ptr %12, align 4
br label %109
109: ; preds = %131, %105
%110 = load i32, ptr %12, align 4
%111 = load i32, ptr %8, align 4
%112 = load i32, ptr %10, align 4
%113 = add nsw i32 %111, %112
%114 = icmp slt i32 %110, %113
br i1 %114, label %115, label %134
115: ; preds = %109
%116 = load i32, ptr %12, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %117
%119 = load i32, ptr %9, align 4
%120 = load i32, ptr %10, align 4
%121 = add nsw i32 %119, %120
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [22 x i8], ptr %118, i64 0, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = load i8, ptr %11, align 1
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %125, %127
br i1 %128, label %129, label %130
129: ; preds = %115
br label %197
130: ; preds = %115
br label %131
131: ; preds = %130
%132 = load i32, ptr %12, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %12, align 4
br label %109, !llvm.loop !9
134: ; preds = %109
%135 = load i32, ptr %9, align 4
%136 = load i32, ptr %10, align 4
%137 = add nsw i32 %135, %136
store i32 %137, ptr %12, align 4
br label %138
138: ; preds = %160, %134
%139 = load i32, ptr %12, align 4
%140 = load i32, ptr %9, align 4
%141 = load i32, ptr %10, align 4
%142 = sub nsw i32 %140, %141
%143 = icmp sgt i32 %139, %142
br i1 %143, label %144, label %163
144: ; preds = %138
%145 = load i32, ptr %8, align 4
%146 = load i32, ptr %10, align 4
%147 = add nsw i32 %145, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %148
%150 = load i32, ptr %12, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [22 x i8], ptr %149, i64 0, i64 %151
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = load i8, ptr %11, align 1
%156 = sext i8 %155 to i32
%157 = icmp ne i32 %154, %156
br i1 %157, label %158, label %159
158: ; preds = %144
br label %197
159: ; preds = %144
br label %160
160: ; preds = %159
%161 = load i32, ptr %12, align 4
%162 = add nsw i32 %161, -1
store i32 %162, ptr %12, align 4
br label %138, !llvm.loop !10
163: ; preds = %138
%164 = load i32, ptr %8, align 4
%165 = load i32, ptr %10, align 4
%166 = add nsw i32 %164, %165
store i32 %166, ptr %12, align 4
br label %167
167: ; preds = %189, %163
%168 = load i32, ptr %12, align 4
%169 = load i32, ptr %8, align 4
%170 = load i32, ptr %10, align 4
%171 = sub nsw i32 %169, %170
%172 = icmp sgt i32 %168, %171
br i1 %172, label %173, label %192
173: ; preds = %167
%174 = load i32, ptr %12, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %175
%177 = load i32, ptr %9, align 4
%178 = load i32, ptr %10, align 4
%179 = sub nsw i32 %177, %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [22 x i8], ptr %176, i64 0, i64 %180
%182 = load i8, ptr %181, align 1
%183 = sext i8 %182 to i32
%184 = load i8, ptr %11, align 1
%185 = sext i8 %184 to i32
%186 = icmp ne i32 %183, %185
br i1 %186, label %187, label %188
187: ; preds = %173
br label %197
188: ; preds = %173
br label %189
189: ; preds = %188
%190 = load i32, ptr %12, align 4
%191 = add nsw i32 %190, -1
store i32 %191, ptr %12, align 4
br label %167, !llvm.loop !11
192: ; preds = %167
br label %193
193: ; preds = %192
%194 = load i32, ptr %10, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %10, align 4
br label %52, !llvm.loop !12
196: ; preds = %74
br label %197
197: ; preds = %196, %187, %158, %129, %100
%198 = load i32, ptr %10, align 4
%199 = mul nsw i32 %198, 2
%200 = sub nsw i32 %199, 1
%201 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %200)
br label %39, !llvm.loop !13
202: ; preds = %39
br label %14, !llvm.loop !14
203: ; preds = %14
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpga8yt_h3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%d%d%d%*c\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [22 x [22 x i8]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
store i32 0, ptr %1, align 4
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = icmp ne i32 %14, 0
br i1 %16, label %.lr.ph17, label %225
.lr.ph17: ; preds = %0
br label %17
17: ; preds = %.lr.ph17, %221
%18 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %29
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %24
%26 = getelementptr inbounds [22 x i8], ptr %25, i64 0, i64 0
%27 = load i32, ptr @stdin, align 4
%28 = call i32 @fgets(ptr noundef %26, i32 noundef 22, i32 noundef %27)
br label %29
29: ; preds = %22
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %17
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %6, align 4
%39 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %36, i32 noundef %37, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %6, align 4
%42 = icmp ne i32 %40, 0
br i1 %42, label %.lr.ph14, label %221
.lr.ph14: ; preds = %35
br label %43
43: ; preds = %.lr.ph14, %213
%44 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %8, ptr noundef %9)
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %46
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [22 x i8], ptr %47, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
store i8 %51, ptr %11, align 1
store i32 1, ptr %10, align 4
br label %52
52: ; preds = %209, %43
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %53, %54
%56 = load i32, ptr %4, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %74
58: ; preds = %52
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %10, align 4
%61 = sub nsw i32 %59, %60
%62 = icmp sge i32 %61, 0
br i1 %62, label %63, label %74
63: ; preds = %58
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %64, %65
%67 = load i32, ptr %5, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %74
69: ; preds = %63
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %10, align 4
%72 = sub nsw i32 %70, %71
%73 = icmp sge i32 %72, 0
br label %74
74: ; preds = %69, %63, %58, %52
%75 = phi i1 [ false, %63 ], [ false, %58 ], [ false, %52 ], [ %73, %69 ]
br i1 %75, label %76, label %212
76: ; preds = %74
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %10, align 4
%79 = sub nsw i32 %77, %78
store i32 %79, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %10, align 4
%83 = add nsw i32 %81, %82
%84 = icmp slt i32 %80, %83
br i1 %84, label %.lr.ph2, label %109
.lr.ph2: ; preds = %76
br label %85
85: ; preds = %.lr.ph2, %101
%86 = load i32, ptr %8, align 4
%87 = load i32, ptr %10, align 4
%88 = sub nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %89
%91 = load i32, ptr %12, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [22 x i8], ptr %90, i64 0, i64 %92
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = load i8, ptr %11, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %95, %97
br i1 %98, label %99, label %100
99: ; preds = %85
br label %213
100: ; preds = %85
br label %101
101: ; preds = %100
%102 = load i32, ptr %12, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %12, align 4
%104 = load i32, ptr %12, align 4
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %10, align 4
%107 = add nsw i32 %105, %106
%108 = icmp slt i32 %104, %107
br i1 %108, label %85, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %101
br label %109
109: ; preds = %._crit_edge3, %76
%110 = load i32, ptr %8, align 4
%111 = load i32, ptr %10, align 4
%112 = sub nsw i32 %110, %111
store i32 %112, ptr %12, align 4
%113 = load i32, ptr %12, align 4
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr %10, align 4
%116 = add nsw i32 %114, %115
%117 = icmp slt i32 %113, %116
br i1 %117, label %.lr.ph5, label %142
.lr.ph5: ; preds = %109
br label %118
118: ; preds = %.lr.ph5, %134
%119 = load i32, ptr %12, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %120
%122 = load i32, ptr %9, align 4
%123 = load i32, ptr %10, align 4
%124 = add nsw i32 %122, %123
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [22 x i8], ptr %121, i64 0, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = load i8, ptr %11, align 1
%130 = sext i8 %129 to i32
%131 = icmp ne i32 %128, %130
br i1 %131, label %132, label %133
132: ; preds = %118
br label %213
133: ; preds = %118
br label %134
134: ; preds = %133
%135 = load i32, ptr %12, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %12, align 4
%137 = load i32, ptr %12, align 4
%138 = load i32, ptr %8, align 4
%139 = load i32, ptr %10, align 4
%140 = add nsw i32 %138, %139
%141 = icmp slt i32 %137, %140
br i1 %141, label %118, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %134
br label %142
142: ; preds = %._crit_edge6, %109
%143 = load i32, ptr %9, align 4
%144 = load i32, ptr %10, align 4
%145 = add nsw i32 %143, %144
store i32 %145, ptr %12, align 4
%146 = load i32, ptr %12, align 4
%147 = load i32, ptr %9, align 4
%148 = load i32, ptr %10, align 4
%149 = sub nsw i32 %147, %148
%150 = icmp sgt i32 %146, %149
br i1 %150, label %.lr.ph8, label %175
.lr.ph8: ; preds = %142
br label %151
151: ; preds = %.lr.ph8, %167
%152 = load i32, ptr %8, align 4
%153 = load i32, ptr %10, align 4
%154 = add nsw i32 %152, %153
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %155
%157 = load i32, ptr %12, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [22 x i8], ptr %156, i64 0, i64 %158
%160 = load i8, ptr %159, align 1
%161 = sext i8 %160 to i32
%162 = load i8, ptr %11, align 1
%163 = sext i8 %162 to i32
%164 = icmp ne i32 %161, %163
br i1 %164, label %165, label %166
165: ; preds = %151
br label %213
166: ; preds = %151
br label %167
167: ; preds = %166
%168 = load i32, ptr %12, align 4
%169 = add nsw i32 %168, -1
store i32 %169, ptr %12, align 4
%170 = load i32, ptr %12, align 4
%171 = load i32, ptr %9, align 4
%172 = load i32, ptr %10, align 4
%173 = sub nsw i32 %171, %172
%174 = icmp sgt i32 %170, %173
br i1 %174, label %151, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %167
br label %175
175: ; preds = %._crit_edge9, %142
%176 = load i32, ptr %8, align 4
%177 = load i32, ptr %10, align 4
%178 = add nsw i32 %176, %177
store i32 %178, ptr %12, align 4
%179 = load i32, ptr %12, align 4
%180 = load i32, ptr %8, align 4
%181 = load i32, ptr %10, align 4
%182 = sub nsw i32 %180, %181
%183 = icmp sgt i32 %179, %182
br i1 %183, label %.lr.ph11, label %208
.lr.ph11: ; preds = %175
br label %184
184: ; preds = %.lr.ph11, %200
%185 = load i32, ptr %12, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [22 x [22 x i8]], ptr %3, i64 0, i64 %186
%188 = load i32, ptr %9, align 4
%189 = load i32, ptr %10, align 4
%190 = sub nsw i32 %188, %189
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [22 x i8], ptr %187, i64 0, i64 %191
%193 = load i8, ptr %192, align 1
%194 = sext i8 %193 to i32
%195 = load i8, ptr %11, align 1
%196 = sext i8 %195 to i32
%197 = icmp ne i32 %194, %196
br i1 %197, label %198, label %199
198: ; preds = %184
br label %213
199: ; preds = %184
br label %200
200: ; preds = %199
%201 = load i32, ptr %12, align 4
%202 = add nsw i32 %201, -1
store i32 %202, ptr %12, align 4
%203 = load i32, ptr %12, align 4
%204 = load i32, ptr %8, align 4
%205 = load i32, ptr %10, align 4
%206 = sub nsw i32 %204, %205
%207 = icmp sgt i32 %203, %206
br i1 %207, label %184, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %200
br label %208
208: ; preds = %._crit_edge12, %175
br label %209
209: ; preds = %208
%210 = load i32, ptr %10, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %10, align 4
br label %52, !llvm.loop !12
212: ; preds = %74
br label %213
213: ; preds = %212, %198, %165, %132, %99
%214 = load i32, ptr %10, align 4
%215 = mul nsw i32 %214, 2
%216 = sub nsw i32 %215, 1
%217 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %216)
%218 = load i32, ptr %6, align 4
%219 = add nsw i32 %218, -1
store i32 %219, ptr %6, align 4
%220 = icmp ne i32 %218, 0
br i1 %220, label %43, label %._crit_edge15, !llvm.loop !13
._crit_edge15: ; preds = %213
br label %221
221: ; preds = %._crit_edge15, %35
%222 = load i32, ptr %2, align 4
%223 = add nsw i32 %222, -1
store i32 %223, ptr %2, align 4
%224 = icmp ne i32 %222, 0
br i1 %224, label %17, label %._crit_edge18, !llvm.loop !14
._crit_edge18: ; preds = %221
br label %225
225: ; preds = %._crit_edge18, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpasq824lm.c'
source_filename = "/tmp/tmpasq824lm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"./data/LMGC_GFC3D_CubeH8.hdf5\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"./data/LMGC_GFC3D-i00001-1-00000.hdf5\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"./data/LMGC_GFC3D-i00501-4-00000.hdf5\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"---\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @data_collection() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 150, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds ptr, ptr %10, i64 %13
store ptr @.str, ptr %14, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds ptr, ptr %15, i64 %18
store ptr @.str.1, ptr %19, align 8
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds ptr, ptr %20, i64 %23
store ptr @.str.2, ptr %24, align 8
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds ptr, ptr %25, i64 %28
store ptr @.str.3, ptr %29, align 8
%30 = load ptr, ptr %2, align 8
ret ptr %30
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpasq824lm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"./data/LMGC_GFC3D_CubeH8.hdf5\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"./data/LMGC_GFC3D-i00001-1-00000.hdf5\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"./data/LMGC_GFC3D-i00501-4-00000.hdf5\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"---\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @data_collection() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 150, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds ptr, ptr %10, i64 %13
store ptr @.str, ptr %14, align 8
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds ptr, ptr %15, i64 %18
store ptr @.str.1, ptr %19, align 8
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds ptr, ptr %20, i64 %23
store ptr @.str.2, ptr %24, align 8
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = sext i32 %26 to i64
%29 = getelementptr inbounds ptr, ptr %25, i64 %28
store ptr @.str.3, ptr %29, align 8
%30 = load ptr, ptr %2, align 8
ret ptr %30
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpagg0i1d5.c'
source_filename = "/tmp/tmpagg0i1d5.c"
target datalayout = "e-m:e-p270: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/tmpagg0i1d5.c"
target datalayout = "e-m:e-p270: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/tmpga3ob9vo.c'
source_filename = "/tmp/tmpga3ob9vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_streq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpga3ob9vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rdp_streq(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmjejsw52.c'
source_filename = "/tmp/tmpmjejsw52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"[n] stoping listener (%i)\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"[n] error while closing socket\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_udp_stop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sle i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %16
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @log_msg(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = call i32 @close(i32 noundef %10)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %7
%14 = call i32 @log_err(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %7
store i32 0, ptr %2, align 4
br label %16
16: ; preds = %15, %6
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i32 @log_msg(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @log_err(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmjejsw52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"[n] stoping listener (%i)\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"[n] error while closing socket\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @net_udp_stop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sle i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %16
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @log_msg(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = call i32 @close(i32 noundef %10)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %7
%14 = call i32 @log_err(ptr noundef @.str.1)
br label %15
15: ; preds = %13, %7
store i32 0, ptr %2, align 4
br label %16
16: ; preds = %15, %6
%17 = load i32, ptr %2, align 4
ret i32 %17
}
declare i32 @log_msg(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @log_err(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpczcf9zn9.c'
source_filename = "/tmp/tmpczcf9zn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f,%f,%79[^\0A]\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%f,%f,%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %27, %0
%6 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %6)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %28
9: ; preds = %5
%10 = load float, ptr %2, align 4
%11 = fcmp ogt float %10, 2.600000e+01
br i1 %11, label %12, label %27
12: ; preds = %9
%13 = load float, ptr %2, align 4
%14 = fcmp olt float %13, 3.400000e+01
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load float, ptr %3, align 4
%17 = fcmp ogt float %16, -7.600000e+01
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load float, ptr %3, align 4
%20 = fcmp olt float %19, -6.400000e+01
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load float, ptr %2, align 4
%23 = load float, ptr %3, align 4
%24 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%25 = call i32 @printf(ptr noundef @.str.1, float noundef %22, float noundef %23, ptr noundef %24)
br label %26
26: ; preds = %21, %18, %15
br label %27
27: ; preds = %26, %12, %9
br label %5, !llvm.loop !6
28: ; preds = %5
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float 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/tmpczcf9zn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f,%f,%79[^\0A]\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%f,%f,%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca [80 x i8], align 16
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %5)
%7 = icmp eq i32 %6, 3
br i1 %7, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %26
%9 = load float, ptr %2, align 4
%10 = fcmp ogt float %9, 2.600000e+01
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load float, ptr %2, align 4
%13 = fcmp olt float %12, 3.400000e+01
br i1 %13, label %14, label %26
14: ; preds = %11
%15 = load float, ptr %3, align 4
%16 = fcmp ogt float %15, -7.600000e+01
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = load float, ptr %3, align 4
%19 = fcmp olt float %18, -6.400000e+01
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load float, ptr %2, align 4
%22 = load float, ptr %3, align 4
%23 = getelementptr inbounds [80 x i8], ptr %4, i64 0, i64 0
%24 = call i32 @printf(ptr noundef @.str.1, float noundef %21, float noundef %22, ptr noundef %23)
br label %25
25: ; preds = %20, %17, %14
br label %26
26: ; preds = %25, %11, %8
%27 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %5)
%28 = icmp eq i32 %27, 3
br i1 %28, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %29
29: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef, float 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/tmp6fxrrs2z.c'
source_filename = "/tmp/tmp6fxrrs2z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @f(i32 noundef %3, i32 noundef 0, i32 noundef 0)
ret i32 %4
}
declare i32 @f(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/tmp6fxrrs2z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @f(i32 noundef %3, i32 noundef 0, i32 noundef 0)
ret i32 %4
}
declare i32 @f(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/tmp7vc61r3s.c'
source_filename = "/tmp/tmp7vc61r3s.c"
target datalayout = "e-m:e-p270: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.dirent = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"./\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"opendir error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %18
7: ; preds = %0
br label %8
8: ; preds = %12, %7
%9 = load ptr, ptr %2, align 8
%10 = call ptr @readdir(ptr noundef %9)
store ptr %10, ptr %3, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i32 @puts(i32 noundef %15)
br label %8, !llvm.loop !6
17: ; preds = %8
br label %20
18: ; preds = %0
%19 = call i32 @perror(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %17
%21 = load ptr, ptr %2, align 8
%22 = call i32 @close(ptr noundef %21)
ret i32 0
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @puts(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7vc61r3s.c"
target datalayout = "e-m:e-p270: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.dirent = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"./\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"opendir error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %20
7: ; preds = %0
%8 = load ptr, ptr %2, align 8
%9 = call ptr @readdir(ptr noundef %8)
store ptr %9, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %.lr.ph, label %19
.lr.ph: ; preds = %7
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.dirent, ptr %12, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i32 @puts(i32 noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = call ptr @readdir(ptr noundef %16)
store ptr %17, ptr %3, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %19
19: ; preds = %._crit_edge, %7
br label %22
20: ; preds = %0
%21 = call i32 @perror(ptr noundef @.str.1)
br label %22
22: ; preds = %20, %19
%23 = load ptr, ptr %2, align 8
%24 = call i32 @close(ptr noundef %23)
ret i32 0
}
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @puts(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpi_q3ue04.c'
source_filename = "/tmp/tmpi_q3ue04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Process %s with %s strcasestr(msg,cur):%d op:%d res:%d... \00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Not match\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ok\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @keystr_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i8 1, ptr %9, align 1
store i32 1, ptr %10, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %17, label %16
16: ; preds = %13, %2
store i32 1, ptr %3, align 4
br label %93
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %7, align 8
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 38
br i1 %23, label %24, label %36
24: ; preds = %17
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 0, i32 1
%33 = trunc i32 %32 to i8
store i8 %33, ptr %9, align 1
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %8, align 8
br label %36
36: ; preds = %24, %17
br label %37
37: ; preds = %88, %36
%38 = load ptr, ptr %8, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %89
40: ; preds = %37
%41 = load ptr, ptr %8, align 8
%42 = call ptr @strchr(ptr noundef %41, i8 noundef signext 38)
store ptr %42, ptr %6, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load ptr, ptr %6, align 8
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %6, align 8
br label %48
48: ; preds = %44, %40
%49 = load ptr, ptr %4, align 8
%50 = load ptr, ptr %8, align 8
%51 = load ptr, ptr %4, align 8
%52 = load ptr, ptr %8, align 8
%53 = call signext i8 @strcasestr(ptr noundef %51, ptr noundef %52)
%54 = sext i8 %53 to i32
%55 = load i8, ptr %9, align 1
%56 = sext i8 %55 to i32
%57 = load ptr, ptr %4, align 8
%58 = load ptr, ptr %8, align 8
%59 = call signext i8 @strcasestr(ptr noundef %57, ptr noundef %58)
%60 = sext i8 %59 to i32
%61 = load i8, ptr %9, align 1
%62 = sext i8 %61 to i32
%63 = xor i32 %60, %62
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %49, ptr noundef %50, i32 noundef %54, i32 noundef %56, i32 noundef %63)
%65 = load ptr, ptr %4, align 8
%66 = load ptr, ptr %8, align 8
%67 = call signext i8 @strcasestr(ptr noundef %65, ptr noundef %66)
%68 = load i8, ptr %9, align 1
%69 = call i64 @logxor(i8 noundef signext %67, i8 noundef signext %68)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %48
store i32 0, ptr %10, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %89
73: ; preds = %48
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%75 = load ptr, ptr %6, align 8
store ptr %75, ptr %8, align 8
%76 = load ptr, ptr %8, align 8
%77 = icmp ne ptr %76, null
br i1 %77, label %78, label %88
78: ; preds = %73
%79 = load ptr, ptr %8, align 8
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 45
%83 = zext i1 %82 to i64
%84 = select i1 %82, i32 0, i32 1
%85 = trunc i32 %84 to i8
store i8 %85, ptr %9, align 1
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %8, align 8
br label %88
88: ; preds = %78, %73
br label %37, !llvm.loop !6
89: ; preds = %71, %37
%90 = load ptr, ptr %7, align 8
%91 = call i32 @free(ptr noundef %90)
%92 = load i32, ptr %10, align 4
store i32 %92, ptr %3, align 4
br label %93
93: ; preds = %89, %16
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare ptr @strdup(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @strcasestr(ptr noundef, ptr noundef) #1
declare i64 @logxor(i8 noundef signext, i8 noundef signext) #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/tmpi_q3ue04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Process %s with %s strcasestr(msg,cur):%d op:%d res:%d... \00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Not match\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"ok\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @keystr_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i8 1, ptr %9, align 1
store i32 1, ptr %10, align 4
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %17, label %16
16: ; preds = %13, %2
store i32 1, ptr %3, align 4
br label %94
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = call ptr @strdup(ptr noundef %18)
store ptr %19, ptr %7, align 8
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 38
br i1 %23, label %24, label %36
24: ; preds = %17
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 0, i32 1
%33 = trunc i32 %32 to i8
store i8 %33, ptr %9, align 1
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %8, align 8
br label %36
36: ; preds = %24, %17
%37 = load ptr, ptr %8, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %36
br label %39
39: ; preds = %.lr.ph, %87
%40 = load ptr, ptr %8, align 8
%41 = call ptr @strchr(ptr noundef %40, i8 noundef signext 38)
store ptr %41, ptr %6, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load ptr, ptr %6, align 8
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %6, align 8
br label %47
47: ; preds = %43, %39
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %8, align 8
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %8, align 8
%52 = call signext i8 @strcasestr(ptr noundef %50, ptr noundef %51)
%53 = sext i8 %52 to i32
%54 = load i8, ptr %9, align 1
%55 = sext i8 %54 to i32
%56 = load ptr, ptr %4, align 8
%57 = load ptr, ptr %8, align 8
%58 = call signext i8 @strcasestr(ptr noundef %56, ptr noundef %57)
%59 = sext i8 %58 to i32
%60 = load i8, ptr %9, align 1
%61 = sext i8 %60 to i32
%62 = xor i32 %59, %61
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %48, ptr noundef %49, i32 noundef %53, i32 noundef %55, i32 noundef %62)
%64 = load ptr, ptr %4, align 8
%65 = load ptr, ptr %8, align 8
%66 = call signext i8 @strcasestr(ptr noundef %64, ptr noundef %65)
%67 = load i8, ptr %9, align 1
%68 = call i64 @logxor(i8 noundef signext %66, i8 noundef signext %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %47
store i32 0, ptr %10, align 4
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %90
72: ; preds = %47
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%74 = load ptr, ptr %6, align 8
store ptr %74, ptr %8, align 8
%75 = load ptr, ptr %8, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %77, label %87
77: ; preds = %72
%78 = load ptr, ptr %8, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 45
%82 = zext i1 %81 to i64
%83 = select i1 %81, i32 0, i32 1
%84 = trunc i32 %83 to i8
store i8 %84, ptr %9, align 1
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %8, align 8
br label %87
87: ; preds = %77, %72
%88 = load ptr, ptr %8, align 8
%89 = icmp ne ptr %88, null
br i1 %89, label %39, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %87
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %36
br label %90
90: ; preds = %.loopexit, %70
%91 = load ptr, ptr %7, align 8
%92 = call i32 @free(ptr noundef %91)
%93 = load i32, ptr %10, align 4
store i32 %93, ptr %3, align 4
br label %94
94: ; preds = %90, %16
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare ptr @strdup(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare signext i8 @strcasestr(ptr noundef, ptr noundef) #1
declare i64 @logxor(i8 noundef signext, i8 noundef signext) #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/tmp7ap8b_2l.c'
source_filename = "/tmp/tmp7ap8b_2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isleft(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 @strcmp(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ap8b_2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isleft(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 @strcmp(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb95cfnxl.c'
source_filename = "/tmp/tmpb95cfnxl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lock_dispose(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb95cfnxl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lock_dispose(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 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpinht9wti.c'
source_filename = "/tmp/tmpinht9wti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @__strxspn(ptr noundef %5, ptr noundef %6, i32 noundef 1)
ret i64 %7
}
declare i64 @__strxspn(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/tmpinht9wti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcspn(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @__strxspn(ptr noundef %5, ptr noundef %6, i32 noundef 1)
ret i64 %7
}
declare i64 @__strxspn(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/tmphkghwojs.c'
source_filename = "/tmp/tmphkghwojs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = 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/tmphkghwojs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = 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/tmpsk6xdwx6.c'
source_filename = "/tmp/tmpsk6xdwx6.c"
target datalayout = "e-m:e-p270: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/tmpsk6xdwx6.c"
target datalayout = "e-m:e-p270: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/tmpw1lt9bsb.c'
source_filename = "/tmp/tmpw1lt9bsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Cvar_SetValueSafe(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [32 x i8], align 16
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load float, ptr %4, align 4
%7 = call i64 @Q_isintegral(float noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%11 = load float, ptr %4, align 4
%12 = fptosi float %11 to i32
%13 = sitofp i32 %12 to float
%14 = call i32 @Com_sprintf(ptr noundef %10, i32 noundef 32, ptr noundef @.str, float noundef %13)
br label %19
15: ; preds = %2
%16 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%17 = load float, ptr %4, align 4
%18 = call i32 @Com_sprintf(ptr noundef %16, i32 noundef 32, ptr noundef @.str.1, float noundef %17)
br label %19
19: ; preds = %15, %9
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @Cvar_SetSafe(ptr noundef %20, ptr noundef %21)
ret void
}
declare i64 @Q_isintegral(float noundef) #1
declare i32 @Com_sprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @Cvar_SetSafe(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/tmpw1lt9bsb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Cvar_SetValueSafe(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [32 x i8], align 16
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load float, ptr %4, align 4
%7 = call i64 @Q_isintegral(float noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%11 = load float, ptr %4, align 4
%12 = fptosi float %11 to i32
%13 = sitofp i32 %12 to float
%14 = call i32 @Com_sprintf(ptr noundef %10, i32 noundef 32, ptr noundef @.str, float noundef %13)
br label %19
15: ; preds = %2
%16 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%17 = load float, ptr %4, align 4
%18 = call i32 @Com_sprintf(ptr noundef %16, i32 noundef 32, ptr noundef @.str.1, float noundef %17)
br label %19
19: ; preds = %15, %9
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @Cvar_SetSafe(ptr noundef %20, ptr noundef %21)
ret void
}
declare i64 @Q_isintegral(float noundef) #1
declare i32 @Com_sprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @Cvar_SetSafe(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/tmp8qj2vhaf.c'
source_filename = "/tmp/tmp8qj2vhaf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Fahrenheit\09Celsius\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%3d\09\09%6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 300, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 %9, 32
%11 = sitofp i32 %10 to double
%12 = fmul double 0x3FE1C71C71C71C72, %11
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, double noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %2, align 4
%16 = sub nsw i32 %15, 20
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8qj2vhaf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Fahrenheit\09Celsius\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%3d\09\09%6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 300, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 0
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = sub nsw i32 %8, 32
%10 = sitofp i32 %9 to double
%11 = fmul double 0x3FE1C71C71C71C72, %10
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7, double noundef %11)
br label %13
13: ; preds = %6
%14 = load i32, ptr %2, align 4
%15 = sub nsw i32 %14, 20
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sge i32 %16, 0
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp971_ombg.c'
source_filename = "/tmp/tmp971_ombg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tosInt32\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"div\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Division by zero\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tosInt32_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 %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 @tosLog_error(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
br label %9
9: ; preds = %7, %2
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = sdiv i32 %10, %11
ret i32 %12
}
declare i32 @tosLog_error(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/tmp971_ombg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tosInt32\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"div\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Division by zero\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tosInt32_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 %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 @tosLog_error(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
br label %9
9: ; preds = %7, %2
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = sdiv i32 %10, %11
ret i32 %12
}
declare i32 @tosLog_error(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/tmp2yc7rzwi.c'
source_filename = "/tmp/tmp2yc7rzwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quat_rotateY(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%11 = load float, ptr %4, align 4
%12 = fpext float %11 to double
%13 = fmul double %12, 5.000000e-01
%14 = fptrunc double %13 to float
store float %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
store float %17, ptr %5, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
store float %20, ptr %6, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
store float %23, ptr %7, align 4
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds float, ptr %24, i64 3
%26 = load float, ptr %25, align 4
store float %26, ptr %8, align 4
%27 = load float, ptr %4, align 4
%28 = call float @sinf(float noundef %27) #3
store float %28, ptr %9, align 4
%29 = load float, ptr %4, align 4
%30 = call float @cosf(float noundef %29) #3
store float %30, ptr %10, align 4
%31 = load float, ptr %5, align 4
%32 = load float, ptr %10, align 4
%33 = load float, ptr %7, align 4
%34 = load float, ptr %9, align 4
%35 = fmul float %33, %34
%36 = fneg float %35
%37 = call float @llvm.fmuladd.f32(float %31, float %32, float %36)
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds float, ptr %38, i64 0
store float %37, ptr %39, align 4
%40 = load float, ptr %6, align 4
%41 = load float, ptr %10, align 4
%42 = load float, ptr %8, align 4
%43 = load float, ptr %9, align 4
%44 = fmul float %42, %43
%45 = call float @llvm.fmuladd.f32(float %40, float %41, float %44)
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 1
store float %45, ptr %47, align 4
%48 = load float, ptr %7, align 4
%49 = load float, ptr %10, align 4
%50 = load float, ptr %5, align 4
%51 = load float, ptr %9, align 4
%52 = fmul float %50, %51
%53 = call float @llvm.fmuladd.f32(float %48, float %49, float %52)
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds float, ptr %54, i64 2
store float %53, ptr %55, align 4
%56 = load float, ptr %8, align 4
%57 = load float, ptr %10, align 4
%58 = load float, ptr %6, align 4
%59 = load float, ptr %9, align 4
%60 = fmul float %58, %59
%61 = fneg float %60
%62 = call float @llvm.fmuladd.f32(float %56, float %57, float %61)
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds float, ptr %63, i64 3
store float %62, ptr %64, align 4
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nounwind
declare float @cosf(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2yc7rzwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quat_rotateY(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%11 = load float, ptr %4, align 4
%12 = fpext float %11 to double
%13 = fmul double %12, 5.000000e-01
%14 = fptrunc double %13 to float
store float %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
store float %17, ptr %5, align 4
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
store float %20, ptr %6, align 4
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
store float %23, ptr %7, align 4
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds float, ptr %24, i64 3
%26 = load float, ptr %25, align 4
store float %26, ptr %8, align 4
%27 = load float, ptr %4, align 4
%28 = call float @sinf(float noundef %27) #3
store float %28, ptr %9, align 4
%29 = load float, ptr %4, align 4
%30 = call float @cosf(float noundef %29) #3
store float %30, ptr %10, align 4
%31 = load float, ptr %5, align 4
%32 = load float, ptr %10, align 4
%33 = load float, ptr %7, align 4
%34 = load float, ptr %9, align 4
%35 = fmul float %33, %34
%36 = fneg float %35
%37 = call float @llvm.fmuladd.f32(float %31, float %32, float %36)
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds float, ptr %38, i64 0
store float %37, ptr %39, align 4
%40 = load float, ptr %6, align 4
%41 = load float, ptr %10, align 4
%42 = load float, ptr %8, align 4
%43 = load float, ptr %9, align 4
%44 = fmul float %42, %43
%45 = call float @llvm.fmuladd.f32(float %40, float %41, float %44)
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds float, ptr %46, i64 1
store float %45, ptr %47, align 4
%48 = load float, ptr %7, align 4
%49 = load float, ptr %10, align 4
%50 = load float, ptr %5, align 4
%51 = load float, ptr %9, align 4
%52 = fmul float %50, %51
%53 = call float @llvm.fmuladd.f32(float %48, float %49, float %52)
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds float, ptr %54, i64 2
store float %53, ptr %55, align 4
%56 = load float, ptr %8, align 4
%57 = load float, ptr %10, align 4
%58 = load float, ptr %6, align 4
%59 = load float, ptr %9, align 4
%60 = fmul float %58, %59
%61 = fneg float %60
%62 = call float @llvm.fmuladd.f32(float %56, float %57, float %61)
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds float, ptr %63, i64 3
store float %62, ptr %64, align 4
ret void
}
; Function Attrs: nounwind
declare float @sinf(float noundef) #1
; Function Attrs: nounwind
declare float @cosf(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
|
; ModuleID = '/tmp/tmpe_49e1s3.c'
source_filename = "/tmp/tmpe_49e1s3.c"
target datalayout = "e-m:e-p270: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/tmpe_49e1s3.c"
target datalayout = "e-m:e-p270: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/tmpf_agnhxs.c'
source_filename = "/tmp/tmpf_agnhxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @m_lista_dispositivos_todos_Bluetooth(i32 noundef %1)
ret i32 0
}
declare i32 @m_lista_dispositivos_todos_Bluetooth(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/tmpf_agnhxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @m_lista_dispositivos_todos_Bluetooth(i32 noundef %1)
ret i32 0
}
declare i32 @m_lista_dispositivos_todos_Bluetooth(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/tmpre4r9yc7.c'
source_filename = "/tmp/tmpre4r9yc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"%s v.%s by pschmidt (philipp(>_AT_<)pschmidt.it)\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"pswRecovery4Moz\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Usage: %s MODE OPT [OPT ...]\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Description:\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c" This program will decrypt the mozilla database (signons.sqlite,key3.db)\0A\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c" where username and password of logins are stored.\0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"MODE:\0A\00", align 1
@.str.9 = private unnamed_addr constant [44 x i8] c" -n - Normal mode using libnss (DEFAULT)\0A\00", align 1
@.str.10 = private unnamed_addr constant [58 x i8] c" -f - Special mode w/o libnss (use %s and %s directly)\0A\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"key3.db\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"signons.sqlite\00", align 1
@.str.13 = private unnamed_addr constant [61 x i8] c" -s - Just calculate SHA1-HMAC for key (-k) and text (-t)\0A\00", align 1
@.str.14 = private unnamed_addr constant [86 x i8] c" -a - Invoke minimalistic ASN.1 parser for hexadecimal text specified by -a option\0A\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"OPT:\0A\00", align 1
@.str.16 = private unnamed_addr constant [52 x i8] c" -r - Enable raw output (output w/o description)\0A\00", align 1
@.str.17 = private unnamed_addr constant [61 x i8] c" -k - Key to use for SHA1-HMAC generation (see -s and -t)\0A\00", align 1
@.str.18 = private unnamed_addr constant [70 x i8] c" -t - Text/message to use for SHA1-HMAC generation (see -s and -k)\0A\00", align 1
@.str.19 = private unnamed_addr constant [77 x i8] c" -g - Global salt in hex format (e.g \2201 ef 64 ...\22) for des3 decryption \0A\00", align 1
@.str.20 = private unnamed_addr constant [75 x i8] c" -e - Entry salt in hex format (e.g \2263 53 64 ...\22) for des3 decryption\0A\00", align 1
@.str.21 = private unnamed_addr constant [37 x i8] c" -m - Master key mozilla password\0A\00", align 1
@.str.22 = private unnamed_addr constant [52 x i8] c" -u - Encrypted username string (base64 encoded)\0A\00", align 1
@.str.23 = private unnamed_addr constant [86 x i8] c" -p - Encrypted password string (base64 encoded)! NOT the MASTER password (see -m)\0A\00", align 1
@.str.24 = private unnamed_addr constant [44 x i8] c" -R - Private key entry (RSA key,see -f)\0A\00", align 1
@.str.25 = private unnamed_addr constant [30 x i8] c" -P - Mozilla profile path\0A\00", align 1
@.str.26 = private unnamed_addr constant [38 x i8] c" -l - Mozilla (or OS) library path\0A\00", align 1
@.str.27 = private unnamed_addr constant [98 x i8] c" -a - Hexadecimal string (e.g. 30 59 01 ...) to be tested with the minimalistic ASN.1 parser (\0A\00", align 1
@.str.28 = private unnamed_addr constant [16 x i8] c"Example usage:\0A\00", align 1
@.str.29 = private unnamed_addr constant [6 x i8] c" %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [23 x i8] c" %s -n -m \22pAsSw0rd\22\0A\00", align 1
@.str.31 = private unnamed_addr constant [9 x i8] c" %s -f\0A\00", align 1
@.str.32 = private unnamed_addr constant [76 x i8] c" %s -f -g \223b 28 75 c2 a9 0d 40 2b 84 b6 83 e0 de a5 41 49 55 07 f3 d4\22 \\\0A\00", align 1
@.str.33 = private unnamed_addr constant [97 x i8] c" -e \2232 73 a0 bf e4 03 39 86 13 33 9e ff 24 cc 26 4b c2 ef 7c 1a\22 (use this together w/ -R)\0A\00", align 1
@.str.34 = private unnamed_addr constant [74 x i8] c" %s -a \2230 13 02 01 05 16 0e 41 6e 79 62 6f 64 79 20 74 68 65 72 65 3f\22\0A\00", align 1
@.str.35 = private unnamed_addr constant [76 x i8] c" %s -s -t \2215 96 bb 81 12 65 2a 43 e7 bd fb 2f dc 87 99 e5 00 00 00 00\22 \\\0A\00", align 1
@.str.36 = private unnamed_addr constant [71 x i8] c" -k \228e 1e 3a 52 36 ab c3 44 55 2d 6e 1a 00 67 1a ed 69 2d 48 25\22\0A\00", align 1
@.str.37 = private unnamed_addr constant [10 x i8] c"CREDITS:\0A\00", align 1
@.str.38 = private unnamed_addr constant [102 x i8] c" ...go especially to Dr Stephen Henson from drh-consultancy who did some research on key3.db which\0A\00", align 1
@.str.39 = private unnamed_addr constant [97 x i8] c" was very useful for me to get started (see http://www.drh-consultancy.demon.co.uk/key3.html)\0A\00", align 1
@.str.40 = private unnamed_addr constant [35 x i8] c"KNOWN DEFICIENCIES/PROBLEMS/BUGS:\0A\00", align 1
@.str.41 = private unnamed_addr constant [97 x i8] c" Since this tool was designed in a very restricted amount of time, it lacks of a good design.\0A\00", align 1
@.str.42 = private unnamed_addr constant [121 x i8] c" There may be some borderline cases (e.g if you supply malicious/unexpected input etc.) where the tool failes/crashes\0A\00", align 1
@.str.43 = private unnamed_addr constant [113 x i8] c" The project was more about the research of how Mozilla encrypts passwords and not so much on the tool itself\0A\00", align 1
@.str.44 = private unnamed_addr constant [115 x i8] c" Use of more secure functions (as snprintf,strncpy,strncmp etc) would be great, but you know as of know it is a\0A\00", align 1
@.str.45 = private unnamed_addr constant [20 x i8] c" quick-done tool\0A\00", align 1
@.str.46 = private unnamed_addr constant [31 x i8] c"AUTHORS/CONTRIBUTORS/CONTACT:\0A\00", align 1
@.str.47 = private unnamed_addr constant [85 x i8] c" Please contact me at ph i lipp (AT] ps ch mi dt.it, w/o spaces and (AT] replaced\0A\00", align 1
@.str.48 = private unnamed_addr constant [24 x i8] c" Contributors wanted\0A\00", align 1
@.str.49 = private unnamed_addr constant [103 x i8] c" Please just drop me a mail if you find this tool useful and if you use this (or some of this) code\0A\00", align 1
@.str.50 = private unnamed_addr constant [50 x i8] c" (for any purpose whatsoever,except malicious)\0A\00", align 1
@.str.51 = private unnamed_addr constant [123 x i8] c" Also fixes and other suggestions are VERY welcome. Since the testing phase was NOT so ample,there may be some problems\0A\00", align 1
@.str.52 = private unnamed_addr constant [54 x i8] c" that we can encounter and (hopefully easily) FIX.\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 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%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, ptr noundef @.str.11, ptr noundef @.str.12)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
%33 = load ptr, ptr %2, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %33)
%35 = load ptr, ptr %2, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %35)
%37 = load ptr, ptr %2, align 8
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %37)
%39 = load ptr, ptr %2, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %39)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%42 = load ptr, ptr %2, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %42)
%44 = load ptr, ptr %2, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, ptr noundef %44)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.43)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.44)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.45)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.46)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.50)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.51)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
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/tmpre4r9yc7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"%s v.%s by pschmidt (philipp(>_AT_<)pschmidt.it)\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"pswRecovery4Moz\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Usage: %s MODE OPT [OPT ...]\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Description:\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c" This program will decrypt the mozilla database (signons.sqlite,key3.db)\0A\00", align 1
@.str.7 = private unnamed_addr constant [53 x i8] c" where username and password of logins are stored.\0A\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"MODE:\0A\00", align 1
@.str.9 = private unnamed_addr constant [44 x i8] c" -n - Normal mode using libnss (DEFAULT)\0A\00", align 1
@.str.10 = private unnamed_addr constant [58 x i8] c" -f - Special mode w/o libnss (use %s and %s directly)\0A\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"key3.db\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"signons.sqlite\00", align 1
@.str.13 = private unnamed_addr constant [61 x i8] c" -s - Just calculate SHA1-HMAC for key (-k) and text (-t)\0A\00", align 1
@.str.14 = private unnamed_addr constant [86 x i8] c" -a - Invoke minimalistic ASN.1 parser for hexadecimal text specified by -a option\0A\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"OPT:\0A\00", align 1
@.str.16 = private unnamed_addr constant [52 x i8] c" -r - Enable raw output (output w/o description)\0A\00", align 1
@.str.17 = private unnamed_addr constant [61 x i8] c" -k - Key to use for SHA1-HMAC generation (see -s and -t)\0A\00", align 1
@.str.18 = private unnamed_addr constant [70 x i8] c" -t - Text/message to use for SHA1-HMAC generation (see -s and -k)\0A\00", align 1
@.str.19 = private unnamed_addr constant [77 x i8] c" -g - Global salt in hex format (e.g \2201 ef 64 ...\22) for des3 decryption \0A\00", align 1
@.str.20 = private unnamed_addr constant [75 x i8] c" -e - Entry salt in hex format (e.g \2263 53 64 ...\22) for des3 decryption\0A\00", align 1
@.str.21 = private unnamed_addr constant [37 x i8] c" -m - Master key mozilla password\0A\00", align 1
@.str.22 = private unnamed_addr constant [52 x i8] c" -u - Encrypted username string (base64 encoded)\0A\00", align 1
@.str.23 = private unnamed_addr constant [86 x i8] c" -p - Encrypted password string (base64 encoded)! NOT the MASTER password (see -m)\0A\00", align 1
@.str.24 = private unnamed_addr constant [44 x i8] c" -R - Private key entry (RSA key,see -f)\0A\00", align 1
@.str.25 = private unnamed_addr constant [30 x i8] c" -P - Mozilla profile path\0A\00", align 1
@.str.26 = private unnamed_addr constant [38 x i8] c" -l - Mozilla (or OS) library path\0A\00", align 1
@.str.27 = private unnamed_addr constant [98 x i8] c" -a - Hexadecimal string (e.g. 30 59 01 ...) to be tested with the minimalistic ASN.1 parser (\0A\00", align 1
@.str.28 = private unnamed_addr constant [16 x i8] c"Example usage:\0A\00", align 1
@.str.29 = private unnamed_addr constant [6 x i8] c" %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [23 x i8] c" %s -n -m \22pAsSw0rd\22\0A\00", align 1
@.str.31 = private unnamed_addr constant [9 x i8] c" %s -f\0A\00", align 1
@.str.32 = private unnamed_addr constant [76 x i8] c" %s -f -g \223b 28 75 c2 a9 0d 40 2b 84 b6 83 e0 de a5 41 49 55 07 f3 d4\22 \\\0A\00", align 1
@.str.33 = private unnamed_addr constant [97 x i8] c" -e \2232 73 a0 bf e4 03 39 86 13 33 9e ff 24 cc 26 4b c2 ef 7c 1a\22 (use this together w/ -R)\0A\00", align 1
@.str.34 = private unnamed_addr constant [74 x i8] c" %s -a \2230 13 02 01 05 16 0e 41 6e 79 62 6f 64 79 20 74 68 65 72 65 3f\22\0A\00", align 1
@.str.35 = private unnamed_addr constant [76 x i8] c" %s -s -t \2215 96 bb 81 12 65 2a 43 e7 bd fb 2f dc 87 99 e5 00 00 00 00\22 \\\0A\00", align 1
@.str.36 = private unnamed_addr constant [71 x i8] c" -k \228e 1e 3a 52 36 ab c3 44 55 2d 6e 1a 00 67 1a ed 69 2d 48 25\22\0A\00", align 1
@.str.37 = private unnamed_addr constant [10 x i8] c"CREDITS:\0A\00", align 1
@.str.38 = private unnamed_addr constant [102 x i8] c" ...go especially to Dr Stephen Henson from drh-consultancy who did some research on key3.db which\0A\00", align 1
@.str.39 = private unnamed_addr constant [97 x i8] c" was very useful for me to get started (see http://www.drh-consultancy.demon.co.uk/key3.html)\0A\00", align 1
@.str.40 = private unnamed_addr constant [35 x i8] c"KNOWN DEFICIENCIES/PROBLEMS/BUGS:\0A\00", align 1
@.str.41 = private unnamed_addr constant [97 x i8] c" Since this tool was designed in a very restricted amount of time, it lacks of a good design.\0A\00", align 1
@.str.42 = private unnamed_addr constant [121 x i8] c" There may be some borderline cases (e.g if you supply malicious/unexpected input etc.) where the tool failes/crashes\0A\00", align 1
@.str.43 = private unnamed_addr constant [113 x i8] c" The project was more about the research of how Mozilla encrypts passwords and not so much on the tool itself\0A\00", align 1
@.str.44 = private unnamed_addr constant [115 x i8] c" Use of more secure functions (as snprintf,strncpy,strncmp etc) would be great, but you know as of know it is a\0A\00", align 1
@.str.45 = private unnamed_addr constant [20 x i8] c" quick-done tool\0A\00", align 1
@.str.46 = private unnamed_addr constant [31 x i8] c"AUTHORS/CONTRIBUTORS/CONTACT:\0A\00", align 1
@.str.47 = private unnamed_addr constant [85 x i8] c" Please contact me at ph i lipp (AT] ps ch mi dt.it, w/o spaces and (AT] replaced\0A\00", align 1
@.str.48 = private unnamed_addr constant [24 x i8] c" Contributors wanted\0A\00", align 1
@.str.49 = private unnamed_addr constant [103 x i8] c" Please just drop me a mail if you find this tool useful and if you use this (or some of this) code\0A\00", align 1
@.str.50 = private unnamed_addr constant [50 x i8] c" (for any purpose whatsoever,except malicious)\0A\00", align 1
@.str.51 = private unnamed_addr constant [123 x i8] c" Also fixes and other suggestions are VERY welcome. Since the testing phase was NOT so ample,there may be some problems\0A\00", align 1
@.str.52 = private unnamed_addr constant [54 x i8] c" that we can encounter and (hopefully easily) FIX.\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 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%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, ptr noundef @.str.11, ptr noundef @.str.12)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
%33 = load ptr, ptr %2, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %33)
%35 = load ptr, ptr %2, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %35)
%37 = load ptr, ptr %2, align 8
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %37)
%39 = load ptr, ptr %2, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %39)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%42 = load ptr, ptr %2, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %42)
%44 = load ptr, ptr %2, align 8
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, ptr noundef %44)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.39)
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.43)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.44)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.45)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.46)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.50)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.51)
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
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/tmpvy11bdi2.c'
source_filename = "/tmp/tmpvy11bdi2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @skipwhite(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %15, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %3
%9 = load ptr, ptr %2, align 8
%10 = load i8, ptr %9, align 1
%11 = call i64 @isspace(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %8, %3
%14 = phi i1 [ false, %3 ], [ %12, %8 ]
br i1 %14, label %15, label %18
15: ; preds = %13
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %2, align 8
br label %3, !llvm.loop !6
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvy11bdi2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @skipwhite(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %15, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %3
%9 = load ptr, ptr %2, align 8
%10 = load i8, ptr %9, align 1
%11 = call i64 @isspace(i8 noundef signext %10)
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %8, %3
%14 = phi i1 [ false, %3 ], [ %12, %8 ]
br i1 %14, label %15, label %18
15: ; preds = %13
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %2, align 8
br label %3, !llvm.loop !6
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0imzdm62.c'
source_filename = "/tmp/tmp0imzdm62.c"
target datalayout = "e-m:e-p270: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/tmp0imzdm62.c"
target datalayout = "e-m:e-p270: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/tmpcesh4pxh.c'
source_filename = "/tmp/tmpcesh4pxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
br label %47
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i32 @atoi(ptr noundef %27)
store i32 %28, ptr %7, align 4
br label %46
29: ; preds = %17
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, 4
br i1 %31, label %32, label %45
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %6, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
%40 = call i32 @atoi(ptr noundef %39)
store i32 %40, ptr %8, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 3
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %7, align 4
br label %45
45: ; preds = %32, %29
br label %46
46: ; preds = %45, %20
br label %47
47: ; preds = %46, %12
%48 = load i32, ptr %6, align 4
store i32 %48, ptr %9, align 4
br label %49
49: ; preds = %56, %47
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %53, label %60
53: ; preds = %49
%54 = load i32, ptr %9, align 4
%55 = call i32 @printf(ptr noundef @.str, i32 noundef %54)
br label %56
56: ; preds = %53
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %9, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %9, align 4
br label %49, !llvm.loop !6
60: ; preds = %49
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcesh4pxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
store i32 1, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %7, align 4
br label %47
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 @atoi(ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i32 @atoi(ptr noundef %27)
store i32 %28, ptr %7, align 4
br label %46
29: ; preds = %17
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, 4
br i1 %31, label %32, label %45
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
store i32 %36, ptr %6, align 4
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
%40 = call i32 @atoi(ptr noundef %39)
store i32 %40, ptr %8, align 4
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 3
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %7, align 4
br label %45
45: ; preds = %32, %29
br label %46
46: ; preds = %45, %20
br label %47
47: ; preds = %46, %12
%48 = load i32, ptr %6, align 4
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %9, align 4
%50 = load i32, ptr %7, align 4
%51 = icmp sle i32 %49, %50
br i1 %51, label %.lr.ph, label %62
.lr.ph: ; preds = %47
br label %52
52: ; preds = %.lr.ph, %55
%53 = load i32, ptr %9, align 4
%54 = call i32 @printf(ptr noundef @.str, i32 noundef %53)
br label %55
55: ; preds = %52
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp sle i32 %59, %60
br i1 %61, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %62
62: ; preds = %._crit_edge, %47
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_scju1_y.c'
source_filename = "/tmp/tmp_scju1_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binary_search_recursion(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = icmp eq i64 %10, 1
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 0
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %13, %16
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
br label %21
20: ; preds = %12
br label %21
21: ; preds = %20, %18
%22 = phi ptr [ %19, %18 ], [ null, %20 ]
store ptr %22, ptr %4, align 8
br label %54
23: ; preds = %3
%24 = load i64, ptr %7, align 8
%25 = lshr i64 %24, 1
store i64 %25, ptr %8, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %8, align 8
%28 = getelementptr inbounds i32, ptr %26, i64 %27
store ptr %28, ptr %9, align 8
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %29, %31
br i1 %32, label %33, label %35
33: ; preds = %23
%34 = load ptr, ptr %9, align 8
store ptr %34, ptr %4, align 8
br label %54
35: ; preds = %23
%36 = load i32, ptr %5, align 4
%37 = load ptr, ptr %9, align 8
%38 = load i32, ptr %37, align 4
%39 = icmp slt i32 %36, %38
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = load i32, ptr %5, align 4
%42 = load ptr, ptr %6, align 8
%43 = load i64, ptr %8, align 8
%44 = call ptr @binary_search_recursion(i32 noundef %41, ptr noundef %42, i64 noundef %43)
store ptr %44, ptr %4, align 8
br label %54
45: ; preds = %35
%46 = load i32, ptr %5, align 4
%47 = load ptr, ptr %9, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 1
%49 = load i64, ptr %7, align 8
%50 = load i64, ptr %8, align 8
%51 = sub i64 %49, %50
%52 = sub i64 %51, 1
%53 = call ptr @binary_search_recursion(i32 noundef %46, ptr noundef %48, i64 noundef %52)
store ptr %53, ptr %4, align 8
br label %54
54: ; preds = %45, %40, %33, %21
%55 = load ptr, ptr %4, align 8
ret ptr %55
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_scju1_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binary_search_recursion(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = icmp eq i64 %10, 1
br i1 %11, label %12, label %23
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 0
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %13, %16
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
br label %21
20: ; preds = %12
br label %21
21: ; preds = %20, %18
%22 = phi ptr [ %19, %18 ], [ null, %20 ]
store ptr %22, ptr %4, align 8
br label %54
23: ; preds = %3
%24 = load i64, ptr %7, align 8
%25 = lshr i64 %24, 1
store i64 %25, ptr %8, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %8, align 8
%28 = getelementptr inbounds i32, ptr %26, i64 %27
store ptr %28, ptr %9, align 8
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %29, %31
br i1 %32, label %33, label %35
33: ; preds = %23
%34 = load ptr, ptr %9, align 8
store ptr %34, ptr %4, align 8
br label %54
35: ; preds = %23
%36 = load i32, ptr %5, align 4
%37 = load ptr, ptr %9, align 8
%38 = load i32, ptr %37, align 4
%39 = icmp slt i32 %36, %38
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = load i32, ptr %5, align 4
%42 = load ptr, ptr %6, align 8
%43 = load i64, ptr %8, align 8
%44 = call ptr @binary_search_recursion(i32 noundef %41, ptr noundef %42, i64 noundef %43)
store ptr %44, ptr %4, align 8
br label %54
45: ; preds = %35
%46 = load i32, ptr %5, align 4
%47 = load ptr, ptr %9, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 1
%49 = load i64, ptr %7, align 8
%50 = load i64, ptr %8, align 8
%51 = sub i64 %49, %50
%52 = sub i64 %51, 1
%53 = call ptr @binary_search_recursion(i32 noundef %46, ptr noundef %48, i64 noundef %52)
store ptr %53, ptr %4, align 8
br label %54
54: ; preds = %45, %40, %33, %21
%55 = load ptr, ptr %4, align 8
ret ptr %55
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo7kxfxqv.c'
source_filename = "/tmp/tmpo7kxfxqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(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
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %39, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %42
12: ; preds = %8
%13 = call i32 (...) @rand()
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 %14, %15
%17 = srem i32 %13, %16
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %17, %18
store i32 %19, ptr %6, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %6, 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 ptr, ptr %4, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
store ptr %29, ptr %33, align 8
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
store ptr %34, ptr %38, align 8
br label %39
39: ; preds = %12
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
br label %8, !llvm.loop !6
42: ; preds = %8
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7kxfxqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shuffle(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
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %44
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %38
%12 = call i32 (...) @rand()
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = srem i32 %12, %15
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %16, %17
store i32 %18, ptr %6, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
store ptr %28, ptr %32, align 8
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds ptr, ptr %34, i64 %36
store ptr %33, ptr %37, align 8
br label %38
38: ; preds = %11
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %2
ret void
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphkm_e2qe.c'
source_filename = "/tmp/tmphkm_e2qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CONNECTED\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"DISCONNECTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
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 ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (...) @usage()
store i32 %11, ptr %3, align 4
br label %35
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = load ptr, ptr %6, align 8
%24 = call i32 @handle_connect(ptr noundef %23)
store i32 %24, ptr %3, align 4
br label %35
25: ; preds = %12
%26 = load ptr, ptr %7, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str.1)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load ptr, ptr %6, align 8
%31 = call i32 @handle_disconnect(ptr noundef %30)
store i32 %31, ptr %3, align 4
br label %35
32: ; preds = %25
br label %33
33: ; preds = %32
%34 = call i32 (...) @usage()
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %33, %29, %22, %10
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @handle_connect(ptr noundef) #1
declare i32 @handle_disconnect(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphkm_e2qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CONNECTED\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"DISCONNECTED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
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 ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (...) @usage()
store i32 %11, ptr %3, align 4
br label %35
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @strcmp(ptr noundef %19, ptr noundef @.str)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %12
%23 = load ptr, ptr %6, align 8
%24 = call i32 @handle_connect(ptr noundef %23)
store i32 %24, ptr %3, align 4
br label %35
25: ; preds = %12
%26 = load ptr, ptr %7, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str.1)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load ptr, ptr %6, align 8
%31 = call i32 @handle_disconnect(ptr noundef %30)
store i32 %31, ptr %3, align 4
br label %35
32: ; preds = %25
br label %33
33: ; preds = %32
%34 = call i32 (...) @usage()
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %33, %29, %22, %10
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @handle_connect(ptr noundef) #1
declare i32 @handle_disconnect(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppyb5d8ky.c'
source_filename = "/tmp/tmppyb5d8ky.c"
target datalayout = "e-m:e-p270: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/tmppyb5d8ky.c"
target datalayout = "e-m:e-p270: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/tmpve_ghv2h.c'
source_filename = "/tmp/tmpve_ghv2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Connection: close\0D\0AContent-length: %zu\0D\0A\0D\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_response(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @send_status(ptr noundef %7, i32 noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str, i32 noundef %12, ptr noundef %13)
ret void
}
declare i32 @send_status(ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpve_ghv2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Connection: close\0D\0AContent-length: %zu\0D\0A\0D\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @send_response(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @send_status(ptr noundef %7, i32 noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = call i32 @fprintf(ptr noundef %10, ptr noundef @.str, i32 noundef %12, ptr noundef %13)
ret void
}
declare i32 @send_status(ptr noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_3jt96bm.c'
source_filename = "/tmp/tmp_3jt96bm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %54, %2
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %19, 16
br i1 %20, label %21, label %57
21: ; preds = %18
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
%24 = load i8, ptr %22, align 1
%25 = zext i8 %24 to i32
store i32 %25, ptr %8, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %5, align 8
%28 = load i8, ptr %26, align 1
%29 = zext i8 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
%32 = load i8, ptr %30, align 1
%33 = zext i8 %32 to i32
store i32 %33, ptr %10, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %5, align 8
%36 = load i8, ptr %34, align 1
%37 = zext i8 %36 to i32
store i32 %37, ptr %11, align 4
%38 = load i32, ptr %8, align 4
%39 = ashr i32 %38, 3
%40 = load i32, ptr %9, align 4
%41 = and i32 %40, 252
%42 = shl i32 %41, 3
%43 = or i32 %39, %42
%44 = load i32, ptr %10, align 4
%45 = and i32 %44, 248
%46 = shl i32 %45, 8
%47 = or i32 %43, %46
%48 = load i32, ptr %11, align 4
%49 = ashr i32 %48, 5
%50 = or i32 %47, %49
%51 = load ptr, ptr %6, align 8
store i32 %50, ptr %51, align 4
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds i32, ptr %52, i32 1
store ptr %53, ptr %6, align 8
br label %54
54: ; preds = %21
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %7, align 4
br label %18, !llvm.loop !6
57: ; preds = %18
%58 = load ptr, ptr %3, align 8
store ptr %58, ptr %5, align 8
%59 = load ptr, ptr %4, align 8
store ptr %59, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %60
60: ; preds = %101, %57
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %61, 16
br i1 %62, label %63, label %104
63: ; preds = %60
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %5, align 8
%66 = load i8, ptr %64, align 1
%67 = zext i8 %66 to i32
store i32 %67, ptr %12, align 4
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %5, align 8
%70 = load i8, ptr %68, align 1
%71 = zext i8 %70 to i32
store i32 %71, ptr %13, align 4
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %5, align 8
%74 = load i8, ptr %72, align 1
%75 = zext i8 %74 to i32
store i32 %75, ptr %14, align 4
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %5, align 8
%78 = load i8, ptr %76, align 1
%79 = zext i8 %78 to i32
store i32 %79, ptr %15, align 4
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %12, align 4
%83 = ashr i32 %82, 3
%84 = load i32, ptr %13, align 4
%85 = and i32 %84, 252
%86 = shl i32 %85, 3
%87 = or i32 %83, %86
%88 = load i32, ptr %14, align 4
%89 = and i32 %88, 248
%90 = shl i32 %89, 8
%91 = or i32 %87, %90
%92 = load i32, ptr %15, align 4
%93 = ashr i32 %92, 5
%94 = or i32 %91, %93
%95 = icmp ne i32 %81, %94
br i1 %95, label %96, label %98
96: ; preds = %63
%97 = call i32 (...) @abort() #2
unreachable
98: ; preds = %63
%99 = load ptr, ptr %6, align 8
%100 = getelementptr inbounds i32, ptr %99, i32 1
store ptr %100, ptr %6, align 8
br label %101
101: ; preds = %98
%102 = load i32, ptr %7, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %7, align 4
br label %60, !llvm.loop !8
104: ; preds = %60
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3jt96bm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %6, align 8
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 16
br i1 %19, label %.lr.ph, label %58
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %53
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load i8, ptr %21, align 1
%24 = zext i8 %23 to i32
store i32 %24, ptr %8, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %5, align 8
%27 = load i8, ptr %25, align 1
%28 = zext i8 %27 to i32
store i32 %28, ptr %9, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load i8, ptr %29, align 1
%32 = zext i8 %31 to i32
store i32 %32, ptr %10, align 4
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %5, align 8
%35 = load i8, ptr %33, align 1
%36 = zext i8 %35 to i32
store i32 %36, ptr %11, align 4
%37 = load i32, ptr %8, align 4
%38 = ashr i32 %37, 3
%39 = load i32, ptr %9, align 4
%40 = and i32 %39, 252
%41 = shl i32 %40, 3
%42 = or i32 %38, %41
%43 = load i32, ptr %10, align 4
%44 = and i32 %43, 248
%45 = shl i32 %44, 8
%46 = or i32 %42, %45
%47 = load i32, ptr %11, align 4
%48 = ashr i32 %47, 5
%49 = or i32 %46, %48
%50 = load ptr, ptr %6, align 8
store i32 %49, ptr %50, align 4
%51 = load ptr, ptr %6, align 8
%52 = getelementptr inbounds i32, ptr %51, i32 1
store ptr %52, ptr %6, align 8
br label %53
53: ; preds = %20
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %7, align 4
%57 = icmp slt i32 %56, 16
br i1 %57, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %58
58: ; preds = %._crit_edge, %2
%59 = load ptr, ptr %3, align 8
store ptr %59, ptr %5, align 8
%60 = load ptr, ptr %4, align 8
store ptr %60, ptr %6, align 8
store i32 0, ptr %7, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %61, 16
br i1 %62, label %.lr.ph2, label %106
.lr.ph2: ; preds = %58
br label %63
63: ; preds = %.lr.ph2, %101
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %5, align 8
%66 = load i8, ptr %64, align 1
%67 = zext i8 %66 to i32
store i32 %67, ptr %12, align 4
%68 = load ptr, ptr %5, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %5, align 8
%70 = load i8, ptr %68, align 1
%71 = zext i8 %70 to i32
store i32 %71, ptr %13, align 4
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %5, align 8
%74 = load i8, ptr %72, align 1
%75 = zext i8 %74 to i32
store i32 %75, ptr %14, align 4
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %5, align 8
%78 = load i8, ptr %76, align 1
%79 = zext i8 %78 to i32
store i32 %79, ptr %15, align 4
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %12, align 4
%83 = ashr i32 %82, 3
%84 = load i32, ptr %13, align 4
%85 = and i32 %84, 252
%86 = shl i32 %85, 3
%87 = or i32 %83, %86
%88 = load i32, ptr %14, align 4
%89 = and i32 %88, 248
%90 = shl i32 %89, 8
%91 = or i32 %87, %90
%92 = load i32, ptr %15, align 4
%93 = ashr i32 %92, 5
%94 = or i32 %91, %93
%95 = icmp ne i32 %81, %94
br i1 %95, label %96, label %98
96: ; preds = %63
%97 = call i32 (...) @abort() #2
unreachable
98: ; preds = %63
%99 = load ptr, ptr %6, align 8
%100 = getelementptr inbounds i32, ptr %99, i32 1
store ptr %100, ptr %6, align 8
br label %101
101: ; preds = %98
%102 = load i32, ptr %7, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %7, align 4
%104 = load i32, ptr %7, align 4
%105 = icmp slt i32 %104, 16
br i1 %105, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %101
br label %106
106: ; preds = %._crit_edge3, %58
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa_fuv6gf.c'
source_filename = "/tmp/tmpa_fuv6gf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Enter the character that you want to find ASCII value of:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c,\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"The character you have entered: %c \0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"The ASCII value is: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
store i32 %7, ptr %2, align 4
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
ret i32 1
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa_fuv6gf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Enter the character that you want to find ASCII value of:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c,\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"The character you have entered: %c \0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"The ASCII value is: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
store i32 %7, ptr %2, align 4
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
ret i32 1
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy0jg3m7l.c'
source_filename = "/tmp/tmpy0jg3m7l.c"
target datalayout = "e-m:e-p270: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/tmpy0jg3m7l.c"
target datalayout = "e-m:e-p270: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/tmp5pghtvfx.c'
source_filename = "/tmp/tmp5pghtvfx.c"
target datalayout = "e-m:e-p270: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/tmp5pghtvfx.c"
target datalayout = "e-m:e-p270: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/tmphndykyk4.c'
source_filename = "/tmp/tmphndykyk4.c"
target datalayout = "e-m:e-p270: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/tmphndykyk4.c"
target datalayout = "e-m:e-p270: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/tmpthjs9m8r.c'
source_filename = "/tmp/tmpthjs9m8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @whiletest2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %3
3: ; preds = %6, %1
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 @noscramble(i32 noundef %7)
store i32 %8, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, -1
store i32 %10, ptr %2, align 4
br label %3, !llvm.loop !6
11: ; preds = %3
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @noscramble(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/tmpthjs9m8r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @whiletest2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %.lr.ph, label %12
.lr.ph: ; preds = %1
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = call i32 @noscramble(i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %12
12: ; preds = %._crit_edge, %1
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @noscramble(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/tmpz6rvit32.c'
source_filename = "/tmp/tmpz6rvit32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dfftss_plan_with_nthreads_(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 i32, ptr %3, align 4
%5 = call i32 @fftss_plan_with_nthreads(i32 noundef %4)
ret void
}
declare i32 @fftss_plan_with_nthreads(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/tmpz6rvit32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dfftss_plan_with_nthreads_(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 i32, ptr %3, align 4
%5 = call i32 @fftss_plan_with_nthreads(i32 noundef %4)
ret void
}
declare i32 @fftss_plan_with_nthreads(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/tmpq0pwlls_.c'
source_filename = "/tmp/tmpq0pwlls_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"invalid/empty uwsgi socket name\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"your system does not support ifaddrs subsystem\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_socket_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 42)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %31, %1
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %3, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
%16 = icmp slt i32 %12, %15
br i1 %16, label %17, label %34
17: ; preds = %11
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, 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 = call i64 @isspace(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %17
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %7, align 8
br label %30
29: ; preds = %17
br label %34
30: ; preds = %26
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %11, !llvm.loop !6
34: ; preds = %29, %11
%35 = load ptr, ptr %7, align 8
store ptr %35, ptr %3, align 8
%36 = load ptr, ptr %3, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 0
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %34
%42 = call i32 @uwsgi_log(ptr noundef @.str)
%43 = call i32 @uwsgi_exit(i32 noundef 1)
br label %44
44: ; preds = %41, %34
%45 = load ptr, ptr %3, align 8
%46 = call ptr @strchr(ptr noundef %45, i8 noundef signext 58)
store ptr %46, ptr %5, align 8
%47 = load ptr, ptr %5, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %51, label %49
49: ; preds = %44
%50 = load ptr, ptr %3, align 8
store ptr %50, ptr %2, align 8
br label %59
51: ; preds = %44
%52 = load ptr, ptr %4, align 8
%53 = icmp ne ptr %52, null
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i32 @uwsgi_log(ptr noundef @.str.1)
%56 = call i32 (...) @uwsgi_nuclear_blast()
br label %57
57: ; preds = %54, %51
%58 = load ptr, ptr %3, align 8
store ptr %58, ptr %2, align 8
br label %59
59: ; preds = %57, %49
%60 = load ptr, ptr %2, align 8
ret ptr %60
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @uwsgi_log(ptr noundef) #1
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @uwsgi_nuclear_blast(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpq0pwlls_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"invalid/empty uwsgi socket name\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"your system does not support ifaddrs subsystem\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @generate_socket_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strchr(ptr noundef %8, i8 noundef signext 42)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %11, %14
br i1 %15, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %30
%17 = load ptr, ptr %3, 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 i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = call i64 @isspace(i32 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %16
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %7, align 8
br label %29
28: ; preds = %16
br label %38
29: ; preds = %25
br label %30
30: ; preds = %29
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strlen(ptr noundef %34)
%36 = trunc i64 %35 to i32
%37 = icmp slt i32 %33, %36
br i1 %37, label %16, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %30
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %38
38: ; preds = %.loopexit, %28
%39 = load ptr, ptr %7, align 8
store ptr %39, ptr %3, align 8
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 0
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 @uwsgi_log(ptr noundef @.str)
%47 = call i32 @uwsgi_exit(i32 noundef 1)
br label %48
48: ; preds = %45, %38
%49 = load ptr, ptr %3, align 8
%50 = call ptr @strchr(ptr noundef %49, i8 noundef signext 58)
store ptr %50, ptr %5, align 8
%51 = load ptr, ptr %5, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %55, label %53
53: ; preds = %48
%54 = load ptr, ptr %3, align 8
store ptr %54, ptr %2, align 8
br label %63
55: ; preds = %48
%56 = load ptr, ptr %4, align 8
%57 = icmp ne ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = call i32 @uwsgi_log(ptr noundef @.str.1)
%60 = call i32 (...) @uwsgi_nuclear_blast()
br label %61
61: ; preds = %58, %55
%62 = load ptr, ptr %3, align 8
store ptr %62, ptr %2, align 8
br label %63
63: ; preds = %61, %53
%64 = load ptr, ptr %2, align 8
ret ptr %64
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @isspace(i32 noundef) #1
declare i32 @uwsgi_log(ptr noundef) #1
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @uwsgi_nuclear_blast(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_uf5rewv.c'
source_filename = "/tmp/tmp_uf5rewv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @memchr(ptr noundef %6, i32 noundef 0, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = ptrtoint ptr %12 to i64
%15 = ptrtoint ptr %13 to i64
%16 = sub i64 %14, %15
br label %19
17: ; preds = %2
%18 = load i64, ptr %4, align 8
br label %19
19: ; preds = %17, %11
%20 = phi i64 [ %16, %11 ], [ %18, %17 ]
ret i64 %20
}
declare ptr @memchr(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_uf5rewv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @memchr(ptr noundef %6, i32 noundef 0, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = ptrtoint ptr %12 to i64
%15 = ptrtoint ptr %13 to i64
%16 = sub i64 %14, %15
br label %19
17: ; preds = %2
%18 = load i64, ptr %4, align 8
br label %19
19: ; preds = %17, %11
%20 = phi i64 [ %16, %11 ], [ %18, %17 ]
ret i64 %20
}
declare ptr @memchr(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_qgdpg73.c'
source_filename = "/tmp/tmp_qgdpg73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qgdpg73.c"
target datalayout = "e-m:e-p270: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/tmpopish8vv.c'
source_filename = "/tmp/tmpopish8vv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"Bad usage\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"static unsigned char %s[] =\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"{\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"0x%02x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], 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
store i32 0, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %57, %16
%23 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @read(i32 noundef 0, ptr noundef %23, i32 noundef 1024)
store i32 %24, ptr %8, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %58
26: ; preds = %22
store i32 0, ptr %7, align 4
br label %27
27: ; preds = %54, %26
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %57
31: ; preds = %27
%32 = load i32, ptr %9, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %36
36: ; preds = %34, %31
%37 = load i32, ptr %9, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = srem i32 %40, 16
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
45: ; preds = %43, %39, %36
%46 = load i32, ptr %7, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %50)
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
br label %54
54: ; preds = %45
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %7, align 4
br label %27, !llvm.loop !6
57: ; preds = %27
br label %22, !llvm.loop !8
58: ; preds = %22
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%60 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopish8vv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"Bad usage\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"static unsigned char %s[] =\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"{\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"0x%02x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"\0A};\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], 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
store i32 0, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str)
%15 = call i32 @exit(i32 noundef -1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%23 = call i32 @read(i32 noundef 0, ptr noundef %22, i32 noundef 1024)
store i32 %23, ptr %8, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %.lr.ph2, label %61
.lr.ph2: ; preds = %16
br label %25
25: ; preds = %.lr.ph2, %58
store i32 0, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph, label %58
.lr.ph: ; preds = %25
br label %29
29: ; preds = %.lr.ph, %52
%30 = load i32, ptr %9, align 4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %9, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = load i32, ptr %9, align 4
%39 = srem i32 %38, 16
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %43
43: ; preds = %41, %37, %34
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %48)
%50 = load i32, ptr %9, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %9, align 4
br label %52
52: ; preds = %43
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %8, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %25
%59 = call i32 @read(i32 noundef 0, ptr noundef %22, i32 noundef 1024)
store i32 %59, ptr %8, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %61
61: ; preds = %._crit_edge3, %16
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%63 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpcci7vfng.c'
source_filename = "/tmp/tmpcci7vfng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Mesh_System_Free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcci7vfng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Mesh_System_Free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm799g47z.c'
source_filename = "/tmp/tmpm799g47z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"exit(ATS): unmatched value at run-time:\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @atsruntime_handle_unmatchedval(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm799g47z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"exit(ATS): unmatched value at run-time:\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @atsruntime_handle_unmatchedval(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3pif4cbs.c'
source_filename = "/tmp/tmp3pif4cbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SDL_imageFilterSubByte(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i8 %3, ptr %9, align 1
%16 = call i64 (...) @SDL_imageFilterMMXdetect()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %43
18: ; preds = %4
%19 = load i32, ptr %8, align 4
%20 = icmp sgt i32 %19, 7
br i1 %20, label %21, label %43
21: ; preds = %18
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %8, align 4
%25 = load i8, ptr %9, align 1
%26 = call i32 @SDL_imageFilterSubByteMMX(ptr noundef %22, ptr noundef %23, i32 noundef %24, i8 noundef zeroext %25)
%27 = load i32, ptr %8, align 4
%28 = and i32 %27, 7
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %21
%31 = load i32, ptr %8, align 4
%32 = and i32 %31, -8
store i32 %32, ptr %11, align 4
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %11, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store ptr %36, ptr %13, align 8
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %11, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store ptr %40, ptr %14, align 8
br label %42
41: ; preds = %21
store i32 0, ptr %5, align 4
br label %75
42: ; preds = %30
br label %46
43: ; preds = %18, %4
store i32 0, ptr %11, align 4
%44 = load ptr, ptr %6, align 8
store ptr %44, ptr %13, align 8
%45 = load ptr, ptr %7, align 8
store ptr %45, ptr %14, align 8
br label %46
46: ; preds = %43, %42
%47 = load i8, ptr %9, align 1
%48 = zext i8 %47 to i32
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %11, align 4
store i32 %49, ptr %10, align 4
br label %50
50: ; preds = %71, %46
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %8, align 4
%53 = icmp ult i32 %51, %52
br i1 %53, label %54, label %74
54: ; preds = %50
%55 = load ptr, ptr %13, align 8
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = load i32, ptr %12, align 4
%59 = sub nsw i32 %57, %58
store i32 %59, ptr %15, align 4
%60 = load i32, ptr %15, align 4
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %54
store i32 0, ptr %15, align 4
br label %63
63: ; preds = %62, %54
%64 = load i32, ptr %15, align 4
%65 = trunc i32 %64 to i8
%66 = load ptr, ptr %14, align 8
store i8 %65, ptr %66, align 1
%67 = load ptr, ptr %13, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %13, align 8
%69 = load ptr, ptr %14, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %14, align 8
br label %71
71: ; preds = %63
%72 = load i32, ptr %10, align 4
%73 = add i32 %72, 1
store i32 %73, ptr %10, align 4
br label %50, !llvm.loop !6
74: ; preds = %50
store i32 0, ptr %5, align 4
br label %75
75: ; preds = %74, %41
%76 = load i32, ptr %5, align 4
ret i32 %76
}
declare i64 @SDL_imageFilterMMXdetect(...) #1
declare i32 @SDL_imageFilterSubByteMMX(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3pif4cbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SDL_imageFilterSubByte(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i8 %3, ptr %9, align 1
%16 = call i64 (...) @SDL_imageFilterMMXdetect()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %43
18: ; preds = %4
%19 = load i32, ptr %8, align 4
%20 = icmp sgt i32 %19, 7
br i1 %20, label %21, label %43
21: ; preds = %18
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %8, align 4
%25 = load i8, ptr %9, align 1
%26 = call i32 @SDL_imageFilterSubByteMMX(ptr noundef %22, ptr noundef %23, i32 noundef %24, i8 noundef zeroext %25)
%27 = load i32, ptr %8, align 4
%28 = and i32 %27, 7
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %21
%31 = load i32, ptr %8, align 4
%32 = and i32 %31, -8
store i32 %32, ptr %11, align 4
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %11, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store ptr %36, ptr %13, align 8
%37 = load ptr, ptr %7, align 8
%38 = load i32, ptr %11, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store ptr %40, ptr %14, align 8
br label %42
41: ; preds = %21
store i32 0, ptr %5, align 4
br label %77
42: ; preds = %30
br label %46
43: ; preds = %18, %4
store i32 0, ptr %11, align 4
%44 = load ptr, ptr %6, align 8
store ptr %44, ptr %13, align 8
%45 = load ptr, ptr %7, align 8
store ptr %45, ptr %14, align 8
br label %46
46: ; preds = %43, %42
%47 = load i8, ptr %9, align 1
%48 = zext i8 %47 to i32
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %11, align 4
store i32 %49, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = load i32, ptr %8, align 4
%52 = icmp ult i32 %50, %51
br i1 %52, label %.lr.ph, label %76
.lr.ph: ; preds = %46
br label %53
53: ; preds = %.lr.ph, %70
%54 = load ptr, ptr %13, align 8
%55 = load i8, ptr %54, align 1
%56 = zext i8 %55 to i32
%57 = load i32, ptr %12, align 4
%58 = sub nsw i32 %56, %57
store i32 %58, ptr %15, align 4
%59 = load i32, ptr %15, align 4
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %53
store i32 0, ptr %15, align 4
br label %62
62: ; preds = %61, %53
%63 = load i32, ptr %15, align 4
%64 = trunc i32 %63 to i8
%65 = load ptr, ptr %14, align 8
store i8 %64, ptr %65, align 1
%66 = load ptr, ptr %13, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %13, align 8
%68 = load ptr, ptr %14, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %14, align 8
br label %70
70: ; preds = %62
%71 = load i32, ptr %10, align 4
%72 = add i32 %71, 1
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %10, align 4
%74 = load i32, ptr %8, align 4
%75 = icmp ult i32 %73, %74
br i1 %75, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %70
br label %76
76: ; preds = %._crit_edge, %46
store i32 0, ptr %5, align 4
br label %77
77: ; preds = %76, %41
%78 = load i32, ptr %5, align 4
ret i32 %78
}
declare i64 @SDL_imageFilterMMXdetect(...) #1
declare i32 @SDL_imageFilterSubByteMMX(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6zqgqhoh.c'
source_filename = "/tmp/tmp6zqgqhoh.c"
target datalayout = "e-m:e-p270: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/tmp6zqgqhoh.c"
target datalayout = "e-m:e-p270: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/tmp8hi0wz6b.c'
source_filename = "/tmp/tmp8hi0wz6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, i32, i32, ptr, i32 }
@.str = private unnamed_addr constant [26 x i8] c"cannot get tty attributes\00", align 1
@BRKINT = dso_local global i32 0, align 4
@ICRNL = dso_local global i32 0, align 4
@IGNBRK = dso_local global i32 0, align 4
@IGNCR = dso_local global i32 0, align 4
@IGNPAR = dso_local global i32 0, align 4
@INLCR = dso_local global i32 0, align 4
@INPCK = dso_local global i32 0, align 4
@ISTRIP = dso_local global i32 0, align 4
@IXOFF = dso_local global i32 0, align 4
@IXON = dso_local global i32 0, align 4
@PARMRK = dso_local global i32 0, align 4
@OPOST = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@ISIG = dso_local global i32 0, align 4
@IEXTEN = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSAFLUSH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"cannot set tty attributes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_termios(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.termios, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i64 @tcgetattr(i32 noundef %7, ptr noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %77
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %14, i64 32, i1 false)
%15 = load i32, ptr @BRKINT, align 4
%16 = load i32, ptr @ICRNL, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @IGNBRK, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @IGNCR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @IGNPAR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @INLCR, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @INPCK, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @ISTRIP, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @IXOFF, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @IXON, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @PARMRK, align 4
%35 = or i32 %33, %34
%36 = xor i32 %35, -1
%37 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
%38 = load i32, ptr %37, align 8
%39 = and i32 %38, %36
store i32 %39, ptr %37, align 8
%40 = load i32, ptr @OPOST, align 4
%41 = xor i32 %40, -1
%42 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 4
%43 = load i32, ptr %42, align 8
%44 = and i32 %43, %41
store i32 %44, ptr %42, align 8
%45 = load i32, ptr @CREAD, align 4
%46 = load i32, ptr @CS8, align 4
%47 = or i32 %45, %46
%48 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%49 = load i32, ptr %48, align 4
%50 = or i32 %49, %47
store i32 %50, ptr %48, align 4
%51 = load i32, ptr @ECHO, align 4
%52 = load i32, ptr @ICANON, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @ISIG, align 4
%55 = or i32 %53, %54
%56 = load i32, ptr @IEXTEN, align 4
%57 = or i32 %55, %56
%58 = xor i32 %57, -1
%59 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 2
%60 = load i32, ptr %59, align 8
%61 = and i32 %60, %58
store i32 %61, ptr %59, align 8
%62 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
%63 = load ptr, ptr %62, align 8
%64 = load i64, ptr @VMIN, align 8
%65 = getelementptr inbounds i32, ptr %63, i64 %64
store i32 1, ptr %65, align 4
%66 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
%67 = load ptr, ptr %66, align 8
%68 = load i64, ptr @VTIME, align 8
%69 = getelementptr inbounds i32, ptr %67, i64 %68
store i32 0, ptr %69, align 4
%70 = load i32, ptr %5, align 4
%71 = load i32, ptr @TCSAFLUSH, align 4
%72 = call i64 @tcsetattr(i32 noundef %70, i32 noundef %71, ptr noundef %6)
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %13
%75 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %77
76: ; preds = %13
store i32 0, ptr %3, align 4
br label %77
77: ; preds = %76, %74, %11
%78 = load i32, ptr %3, align 4
ret i32 %78
}
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; 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) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8hi0wz6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32, i32, i32, ptr, i32 }
@.str = private unnamed_addr constant [26 x i8] c"cannot get tty attributes\00", align 1
@BRKINT = dso_local global i32 0, align 4
@ICRNL = dso_local global i32 0, align 4
@IGNBRK = dso_local global i32 0, align 4
@IGNCR = dso_local global i32 0, align 4
@IGNPAR = dso_local global i32 0, align 4
@INLCR = dso_local global i32 0, align 4
@INPCK = dso_local global i32 0, align 4
@ISTRIP = dso_local global i32 0, align 4
@IXOFF = dso_local global i32 0, align 4
@IXON = dso_local global i32 0, align 4
@PARMRK = dso_local global i32 0, align 4
@OPOST = dso_local global i32 0, align 4
@CREAD = dso_local global i32 0, align 4
@CS8 = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@ICANON = dso_local global i32 0, align 4
@ISIG = dso_local global i32 0, align 4
@IEXTEN = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSAFLUSH = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"cannot set tty attributes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_termios(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.termios, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i64 @tcgetattr(i32 noundef %7, ptr noundef %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %77
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %14, i64 32, i1 false)
%15 = load i32, ptr @BRKINT, align 4
%16 = load i32, ptr @ICRNL, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @IGNBRK, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @IGNCR, align 4
%21 = or i32 %19, %20
%22 = load i32, ptr @IGNPAR, align 4
%23 = or i32 %21, %22
%24 = load i32, ptr @INLCR, align 4
%25 = or i32 %23, %24
%26 = load i32, ptr @INPCK, align 4
%27 = or i32 %25, %26
%28 = load i32, ptr @ISTRIP, align 4
%29 = or i32 %27, %28
%30 = load i32, ptr @IXOFF, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @IXON, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @PARMRK, align 4
%35 = or i32 %33, %34
%36 = xor i32 %35, -1
%37 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
%38 = load i32, ptr %37, align 8
%39 = and i32 %38, %36
store i32 %39, ptr %37, align 8
%40 = load i32, ptr @OPOST, align 4
%41 = xor i32 %40, -1
%42 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 4
%43 = load i32, ptr %42, align 8
%44 = and i32 %43, %41
store i32 %44, ptr %42, align 8
%45 = load i32, ptr @CREAD, align 4
%46 = load i32, ptr @CS8, align 4
%47 = or i32 %45, %46
%48 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 1
%49 = load i32, ptr %48, align 4
%50 = or i32 %49, %47
store i32 %50, ptr %48, align 4
%51 = load i32, ptr @ECHO, align 4
%52 = load i32, ptr @ICANON, align 4
%53 = or i32 %51, %52
%54 = load i32, ptr @ISIG, align 4
%55 = or i32 %53, %54
%56 = load i32, ptr @IEXTEN, align 4
%57 = or i32 %55, %56
%58 = xor i32 %57, -1
%59 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 2
%60 = load i32, ptr %59, align 8
%61 = and i32 %60, %58
store i32 %61, ptr %59, align 8
%62 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
%63 = load ptr, ptr %62, align 8
%64 = load i64, ptr @VMIN, align 8
%65 = getelementptr inbounds i32, ptr %63, i64 %64
store i32 1, ptr %65, align 4
%66 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 3
%67 = load ptr, ptr %66, align 8
%68 = load i64, ptr @VTIME, align 8
%69 = getelementptr inbounds i32, ptr %67, i64 %68
store i32 0, ptr %69, align 4
%70 = load i32, ptr %5, align 4
%71 = load i32, ptr @TCSAFLUSH, align 4
%72 = call i64 @tcsetattr(i32 noundef %70, i32 noundef %71, ptr noundef %6)
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %13
%75 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %77
76: ; preds = %13
store i32 0, ptr %3, align 4
br label %77
77: ; preds = %76, %74, %11
%78 = load i32, ptr %3, align 4
ret i32 %78
}
declare i64 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; 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) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl8f6vanx.c'
source_filename = "/tmp/tmpl8f6vanx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
%3 = call i32 @rightrot(i32 noundef 3, i32 noundef 33)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rightrot(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/tmpl8f6vanx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
%3 = call i32 @rightrot(i32 noundef 3, i32 noundef 33)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @rightrot(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/tmpwkmhntox.c'
source_filename = "/tmp/tmpwkmhntox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [85 x i8] c"#include <stdio.h>%c%cint main(void) {%c%cchar *a=%c%s%c,%c%c*b=%c%s%c,%c%c*c=%c%s%c\00", align 1
@.str.1 = private unnamed_addr constant [90 x i8] c";%c%cprintf(a, 10, 10, 10, 9, 34, a, 34, 10, 9, 34, b, 34, 10, 9, 34, c, 34);%c%cprintf(b\00", align 1
@.str.2 = private unnamed_addr constant [77 x i8] c", 10, 9, 10, 9);%c%cprintf(c, 10, 9, 10, 9, 10, 10, 10);%c%creturn 0;%c}%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
store ptr @.str.2, ptr %4, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %5, i32 noundef 10, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %6, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %7, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %8, i32 noundef 34)
%10 = load ptr, ptr %3, align 8
%11 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %10, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 9)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %12, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwkmhntox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [85 x i8] c"#include <stdio.h>%c%cint main(void) {%c%cchar *a=%c%s%c,%c%c*b=%c%s%c,%c%c*c=%c%s%c\00", align 1
@.str.1 = private unnamed_addr constant [90 x i8] c";%c%cprintf(a, 10, 10, 10, 9, 34, a, 34, 10, 9, 34, b, 34, 10, 9, 34, c, 34);%c%cprintf(b\00", align 1
@.str.2 = private unnamed_addr constant [77 x i8] c", 10, 9, 10, 9);%c%cprintf(c, 10, 9, 10, 9, 10, 10, 10);%c%creturn 0;%c}%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
store ptr @.str.2, ptr %4, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %5, i32 noundef 10, i32 noundef 10, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %6, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %7, i32 noundef 34, i32 noundef 10, i32 noundef 9, i32 noundef 34, ptr noundef %8, i32 noundef 34)
%10 = load ptr, ptr %3, align 8
%11 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %10, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 9)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, i32, i32, i32, i32, ...) @printf(ptr noundef %12, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 9, i32 noundef 10, i32 noundef 10, i32 noundef 10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoiu867q3.c'
source_filename = "/tmp/tmpoiu867q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread2_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %1, %3
%4 = call i32 (...) @print_greetings2()
%5 = call i32 @sleep(i32 noundef 1)
br label %3
}
declare i32 @print_greetings2(...) #1
declare i32 @sleep(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/tmpoiu867q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @thread2_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %3, %1
%4 = call i32 (...) @print_greetings2()
%5 = call i32 @sleep(i32 noundef 1)
br label %3
}
declare i32 @print_greetings2(...) #1
declare i32 @sleep(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/tmpywfuadlw.c'
source_filename = "/tmp/tmpywfuadlw.c"
target datalayout = "e-m:e-p270: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/tmpywfuadlw.c"
target datalayout = "e-m:e-p270: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/tmpgxjsk4sc.c'
source_filename = "/tmp/tmpgxjsk4sc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lib_print() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @avm_totalactuals()
store i32 %3, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %13, %0
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %1, align 4
%7 = icmp ult i32 %5, %6
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = call i32 @avm_getactual(i32 noundef %9)
%11 = call i32 @avm_tostring(i32 noundef %10)
%12 = call i32 @putchar(i8 noundef signext 32)
br label %13
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = add i32 %14, 1
store i32 %15, ptr %2, align 4
br label %4, !llvm.loop !6
16: ; preds = %4
%17 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @avm_totalactuals(...) #1
declare i32 @avm_tostring(i32 noundef) #1
declare i32 @avm_getactual(i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgxjsk4sc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lib_print() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @avm_totalactuals()
store i32 %3, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp ult i32 %4, %5
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %12
%8 = load i32, ptr %2, align 4
%9 = call i32 @avm_getactual(i32 noundef %8)
%10 = call i32 @avm_tostring(i32 noundef %9)
%11 = call i32 @putchar(i8 noundef signext 32)
br label %12
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = add i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %1, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @avm_totalactuals(...) #1
declare i32 @avm_tostring(i32 noundef) #1
declare i32 @avm_getactual(i32 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"}
|
; ModuleID = '/tmp/tmpxgd1gu7d.c'
source_filename = "/tmp/tmpxgd1gu7d.c"
target datalayout = "e-m:e-p270: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 double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"ERROR: Invalid STF type (arg 4)\0A\00", align 1
@.str.1 = private unnamed_addr constant [120 x i8] c" arg 4 must be one of these letters:\0A\09 g :gaussian \0A\09 q : parabolic \0A\09 l : triangle \0A\09 b : box car \0A\09 c : cosine\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_stf(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %4, align 4
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, 1.517430e+00
store double %14, ptr %9, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 103
br i1 %19, label %20, label %41
20: ; preds = %3
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %20
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp sle i32 %22, %23
br i1 %24, label %25, label %40
25: ; preds = %21
%26 = load i32, ptr %7, align 4
%27 = sitofp i32 %26 to double
%28 = load double, ptr %9, align 8
%29 = fdiv double %27, %28
%30 = call i32 @pow(double noundef %29, i32 noundef 2)
%31 = sub nsw i32 0, %30
%32 = call double @exp(i32 noundef %31)
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
store double %32, ptr %36, align 8
br label %37
37: ; preds = %25
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %155
41: ; preds = %3
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 0
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 113
br i1 %46, label %47, label %69
47: ; preds = %41
store i32 0, ptr %7, align 4
br label %48
48: ; preds = %65, %47
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %4, align 4
%51 = icmp sle i32 %49, %50
br i1 %51, label %52, label %68
52: ; preds = %48
%53 = load i32, ptr %7, align 4
%54 = sitofp i32 %53 to double
%55 = load i32, ptr %4, align 4
%56 = sitofp i32 %55 to double
%57 = fdiv double %54, %56
%58 = call i32 @pow(double noundef %57, i32 noundef 2)
%59 = sitofp i32 %58 to double
%60 = fsub double 1.000000e+00, %59
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
store double %60, ptr %64, align 8
br label %65
65: ; preds = %52
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %7, align 4
br label %48, !llvm.loop !8
68: ; preds = %48
br label %154
69: ; preds = %41
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds i8, ptr %70, i64 0
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 108
br i1 %74, label %75, label %95
75: ; preds = %69
store i32 0, ptr %7, align 4
br label %76
76: ; preds = %91, %75
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %4, align 4
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %94
80: ; preds = %76
%81 = load i32, ptr %7, align 4
%82 = sitofp i32 %81 to double
%83 = load i32, ptr %4, align 4
%84 = sitofp i32 %83 to double
%85 = fdiv double %82, %84
%86 = fsub double 1.000000e+00, %85
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
store double %86, ptr %90, align 8
br label %91
91: ; preds = %80
%92 = load i32, ptr %7, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %7, align 4
br label %76, !llvm.loop !9
94: ; preds = %76
br label %153
95: ; preds = %69
%96 = load ptr, ptr %5, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 0
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 98
br i1 %100, label %101, label %115
101: ; preds = %95
store i32 0, ptr %7, align 4
br label %102
102: ; preds = %111, %101
%103 = load i32, ptr %7, align 4
%104 = load i32, ptr %4, align 4
%105 = icmp sle i32 %103, %104
br i1 %105, label %106, label %114
106: ; preds = %102
%107 = load ptr, ptr %6, align 8
%108 = load i32, ptr %7, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, ptr %107, i64 %109
store double 1.000000e+00, ptr %110, align 8
br label %111
111: ; preds = %106
%112 = load i32, ptr %7, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %7, align 4
br label %102, !llvm.loop !10
114: ; preds = %102
br label %152
115: ; preds = %95
%116 = load ptr, ptr %5, align 8
%117 = getelementptr inbounds i8, ptr %116, i64 0
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 99
br i1 %120, label %121, label %145
121: ; preds = %115
store i32 0, ptr %7, align 4
br label %122
122: ; preds = %141, %121
%123 = load i32, ptr %7, align 4
%124 = load i32, ptr %4, align 4
%125 = icmp sle i32 %123, %124
br i1 %125, label %126, label %144
126: ; preds = %122
%127 = load double, ptr @M_PI, align 8
%128 = load i32, ptr %7, align 4
%129 = sitofp i32 %128 to double
%130 = fmul double %127, %129
%131 = load i32, ptr %4, align 4
%132 = sitofp i32 %131 to double
%133 = fdiv double %130, %132
%134 = call i32 @cos(double noundef %133)
%135 = sitofp i32 %134 to double
%136 = fadd double 1.000000e+00, %135
%137 = load ptr, ptr %6, align 8
%138 = load i32, ptr %7, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, ptr %137, i64 %139
store double %136, ptr %140, align 8
br label %141
141: ; preds = %126
%142 = load i32, ptr %7, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %7, align 4
br label %122, !llvm.loop !11
144: ; preds = %122
br label %151
145: ; preds = %115
%146 = load i32, ptr @stderr, align 4
%147 = call i32 @fprintf(i32 noundef %146, ptr noundef @.str)
%148 = load i32, ptr @stderr, align 4
%149 = call i32 @fprintf(i32 noundef %148, ptr noundef @.str.1)
%150 = call i32 @exit(i32 noundef 1) #4
unreachable
151: ; preds = %144
br label %152
152: ; preds = %151, %114
br label %153
153: ; preds = %152, %94
br label %154
154: ; preds = %153, %68
br label %155
155: ; preds = %154, %40
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %156
156: ; preds = %168, %155
%157 = load i32, ptr %7, align 4
%158 = load i32, ptr %8, align 4
%159 = icmp slt i32 %157, %158
br i1 %159, label %160, label %171
160: ; preds = %156
%161 = load double, ptr %9, align 8
%162 = load ptr, ptr %6, align 8
%163 = load i32, ptr %7, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %162, i64 %164
%166 = load double, ptr %165, align 8
%167 = fadd double %161, %166
store double %167, ptr %9, align 8
br label %168
168: ; preds = %160
%169 = load i32, ptr %7, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %7, align 4
br label %156, !llvm.loop !12
171: ; preds = %156
%172 = load double, ptr %9, align 8
%173 = load ptr, ptr %6, align 8
%174 = getelementptr inbounds double, ptr %173, i64 0
%175 = load double, ptr %174, align 8
%176 = fneg double %175
%177 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %172, double %176)
store double %177, ptr %9, align 8
store i32 0, ptr %7, align 4
br label %178
178: ; preds = %194, %171
%179 = load i32, ptr %7, align 4
%180 = load i32, ptr %4, align 4
%181 = icmp sle i32 %179, %180
br i1 %181, label %182, label %197
182: ; preds = %178
%183 = load ptr, ptr %6, align 8
%184 = load i32, ptr %7, align 4
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double, ptr %183, i64 %185
%187 = load double, ptr %186, align 8
%188 = load double, ptr %9, align 8
%189 = fdiv double %187, %188
%190 = load ptr, ptr %6, align 8
%191 = load i32, ptr %7, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, ptr %190, i64 %192
store double %189, ptr %193, align 8
br label %194
194: ; preds = %182
%195 = load i32, ptr %7, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %7, align 4
br label %178, !llvm.loop !13
197: ; preds = %178
ret void
}
declare double @exp(i32 noundef) #1
declare i32 @pow(double noundef, i32 noundef) #1
declare i32 @cos(double noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxgd1gu7d.c"
target datalayout = "e-m:e-p270: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 double 0.000000e+00, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"ERROR: Invalid STF type (arg 4)\0A\00", align 1
@.str.1 = private unnamed_addr constant [120 x i8] c" arg 4 must be one of these letters:\0A\09 g :gaussian \0A\09 q : parabolic \0A\09 l : triangle \0A\09 b : box car \0A\09 c : cosine\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_stf(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %4, align 4
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, 1.517430e+00
store double %14, ptr %9, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 103
br i1 %19, label %20, label %43
20: ; preds = %3
store i32 0, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %.lr.ph11, label %42
.lr.ph11: ; preds = %20
br label %24
24: ; preds = %.lr.ph11, %36
%25 = load i32, ptr %7, align 4
%26 = sitofp i32 %25 to double
%27 = load double, ptr %9, align 8
%28 = fdiv double %26, %27
%29 = call i32 @pow(double noundef %28, i32 noundef 2)
%30 = sub nsw i32 0, %29
%31 = call double @exp(i32 noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %32, i64 %34
store double %31, ptr %35, align 8
br label %36
36: ; preds = %24
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %24, label %._crit_edge12, !llvm.loop !6
._crit_edge12: ; preds = %36
br label %42
42: ; preds = %._crit_edge12, %20
br label %165
43: ; preds = %3
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i64 0
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 113
br i1 %48, label %49, label %73
49: ; preds = %43
store i32 0, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %.lr.ph8, label %72
.lr.ph8: ; preds = %49
br label %53
53: ; preds = %.lr.ph8, %66
%54 = load i32, ptr %7, align 4
%55 = sitofp i32 %54 to double
%56 = load i32, ptr %4, align 4
%57 = sitofp i32 %56 to double
%58 = fdiv double %55, %57
%59 = call i32 @pow(double noundef %58, i32 noundef 2)
%60 = sitofp i32 %59 to double
%61 = fsub double 1.000000e+00, %60
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %62, i64 %64
store double %61, ptr %65, align 8
br label %66
66: ; preds = %53
%67 = load i32, ptr %7, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %7, align 4
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %4, align 4
%71 = icmp sle i32 %69, %70
br i1 %71, label %53, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %66
br label %72
72: ; preds = %._crit_edge9, %49
br label %164
73: ; preds = %43
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 0
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 108
br i1 %78, label %79, label %101
79: ; preds = %73
store i32 0, ptr %7, align 4
%80 = load i32, ptr %7, align 4
%81 = load i32, ptr %4, align 4
%82 = icmp sle i32 %80, %81
br i1 %82, label %.lr.ph5, label %100
.lr.ph5: ; preds = %79
br label %83
83: ; preds = %.lr.ph5, %94
%84 = load i32, ptr %7, align 4
%85 = sitofp i32 %84 to double
%86 = load i32, ptr %4, align 4
%87 = sitofp i32 %86 to double
%88 = fdiv double %85, %87
%89 = fsub double 1.000000e+00, %88
%90 = load ptr, ptr %6, align 8
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, ptr %90, i64 %92
store double %89, ptr %93, align 8
br label %94
94: ; preds = %83
%95 = load i32, ptr %7, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %7, align 4
%97 = load i32, ptr %7, align 4
%98 = load i32, ptr %4, align 4
%99 = icmp sle i32 %97, %98
br i1 %99, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %94
br label %100
100: ; preds = %._crit_edge6, %79
br label %163
101: ; preds = %73
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds i8, ptr %102, i64 0
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 98
br i1 %106, label %107, label %123
107: ; preds = %101
store i32 0, ptr %7, align 4
%108 = load i32, ptr %7, align 4
%109 = load i32, ptr %4, align 4
%110 = icmp sle i32 %108, %109
br i1 %110, label %.lr.ph2, label %122
.lr.ph2: ; preds = %107
br label %111
111: ; preds = %.lr.ph2, %116
%112 = load ptr, ptr %6, align 8
%113 = load i32, ptr %7, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
store double 1.000000e+00, ptr %115, align 8
br label %116
116: ; preds = %111
%117 = load i32, ptr %7, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %7, align 4
%119 = load i32, ptr %7, align 4
%120 = load i32, ptr %4, align 4
%121 = icmp sle i32 %119, %120
br i1 %121, label %111, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %116
br label %122
122: ; preds = %._crit_edge3, %107
br label %162
123: ; preds = %101
%124 = load ptr, ptr %5, align 8
%125 = getelementptr inbounds i8, ptr %124, i64 0
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 99
br i1 %128, label %129, label %155
129: ; preds = %123
store i32 0, ptr %7, align 4
%130 = load i32, ptr %7, align 4
%131 = load i32, ptr %4, align 4
%132 = icmp sle i32 %130, %131
br i1 %132, label %.lr.ph, label %154
.lr.ph: ; preds = %129
br label %133
133: ; preds = %.lr.ph, %148
%134 = load double, ptr @M_PI, align 8
%135 = load i32, ptr %7, align 4
%136 = sitofp i32 %135 to double
%137 = fmul double %134, %136
%138 = load i32, ptr %4, align 4
%139 = sitofp i32 %138 to double
%140 = fdiv double %137, %139
%141 = call i32 @cos(double noundef %140)
%142 = sitofp i32 %141 to double
%143 = fadd double 1.000000e+00, %142
%144 = load ptr, ptr %6, align 8
%145 = load i32, ptr %7, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
store double %143, ptr %147, align 8
br label %148
148: ; preds = %133
%149 = load i32, ptr %7, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %7, align 4
%151 = load i32, ptr %7, align 4
%152 = load i32, ptr %4, align 4
%153 = icmp sle i32 %151, %152
br i1 %153, label %133, label %._crit_edge, !llvm.loop !11
._crit_edge: ; preds = %148
br label %154
154: ; preds = %._crit_edge, %129
br label %161
155: ; preds = %123
%156 = load i32, ptr @stderr, align 4
%157 = call i32 @fprintf(i32 noundef %156, ptr noundef @.str)
%158 = load i32, ptr @stderr, align 4
%159 = call i32 @fprintf(i32 noundef %158, ptr noundef @.str.1)
%160 = call i32 @exit(i32 noundef 1) #4
unreachable
161: ; preds = %154
br label %162
162: ; preds = %161, %122
br label %163
163: ; preds = %162, %100
br label %164
164: ; preds = %163, %72
br label %165
165: ; preds = %164, %42
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %7, align 4
%166 = load i32, ptr %7, align 4
%167 = load i32, ptr %8, align 4
%168 = icmp slt i32 %166, %167
br i1 %168, label %.lr.ph14, label %183
.lr.ph14: ; preds = %165
br label %169
169: ; preds = %.lr.ph14, %177
%170 = load double, ptr %9, align 8
%171 = load ptr, ptr %6, align 8
%172 = load i32, ptr %7, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
%175 = load double, ptr %174, align 8
%176 = fadd double %170, %175
store double %176, ptr %9, align 8
br label %177
177: ; preds = %169
%178 = load i32, ptr %7, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %7, align 4
%180 = load i32, ptr %7, align 4
%181 = load i32, ptr %8, align 4
%182 = icmp slt i32 %180, %181
br i1 %182, label %169, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %177
br label %183
183: ; preds = %._crit_edge15, %165
%184 = load double, ptr %9, align 8
%185 = load ptr, ptr %6, align 8
%186 = getelementptr inbounds double, ptr %185, i64 0
%187 = load double, ptr %186, align 8
%188 = fneg double %187
%189 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %184, double %188)
store double %189, ptr %9, align 8
store i32 0, ptr %7, align 4
%190 = load i32, ptr %7, align 4
%191 = load i32, ptr %4, align 4
%192 = icmp sle i32 %190, %191
br i1 %192, label %.lr.ph17, label %211
.lr.ph17: ; preds = %183
br label %193
193: ; preds = %.lr.ph17, %205
%194 = load ptr, ptr %6, align 8
%195 = load i32, ptr %7, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, ptr %194, i64 %196
%198 = load double, ptr %197, align 8
%199 = load double, ptr %9, align 8
%200 = fdiv double %198, %199
%201 = load ptr, ptr %6, align 8
%202 = load i32, ptr %7, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
store double %200, ptr %204, align 8
br label %205
205: ; preds = %193
%206 = load i32, ptr %7, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %7, align 4
%208 = load i32, ptr %7, align 4
%209 = load i32, ptr %4, align 4
%210 = icmp sle i32 %208, %209
br i1 %210, label %193, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %205
br label %211
211: ; preds = %._crit_edge18, %183
ret void
}
declare double @exp(i32 noundef) #1
declare i32 @pow(double noundef, i32 noundef) #1
declare i32 @cos(double noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp4cgss9l6.c'
source_filename = "/tmp/tmp4cgss9l6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Negation: [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %6, %0
%4 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
br label %3, !llvm.loop !6
12: ; preds = %3
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4cgss9l6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Negation: [%d]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
%10 = call i32 @printf(ptr noundef @.str.1, i32 noundef %9)
%11 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%12 = icmp ne i64 %11, 0
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprrth1p9m.c'
source_filename = "/tmp/tmprrth1p9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
br label %48
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %15, %8
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = call i64 @isspace(i8 noundef signext %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %10, !llvm.loop !6
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store ptr %23, ptr %4, align 8
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %3, align 8
%26 = icmp ugt ptr %24, %25
br i1 %26, label %27, label %37
27: ; preds = %18
br label %28
28: ; preds = %34, %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 -1
store ptr %30, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = call i64 @isspace(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load ptr, ptr %4, align 8
store i8 0, ptr %35, align 1
br label %28, !llvm.loop !8
36: ; preds = %28
br label %37
37: ; preds = %36, %18
%38 = load ptr, ptr %2, align 8
%39 = load ptr, ptr %3, align 8
%40 = load ptr, ptr %4, align 8
%41 = load ptr, ptr %3, align 8
%42 = ptrtoint ptr %40 to i64
%43 = ptrtoint ptr %41 to i64
%44 = sub i64 %42, %43
%45 = add nsw i64 %44, 1
%46 = trunc i64 %45 to i32
%47 = call i32 @memmove(ptr noundef %38, ptr noundef %39, i32 noundef %46)
br label %48
48: ; preds = %37, %7
ret void
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memmove(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/tmprrth1p9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
br label %55
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = call i64 @isspace(i8 noundef signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %21
.lr.ph: ; preds = %8
br label %14
14: ; preds = %.lr.ph, %14
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @isspace(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %21
21: ; preds = %._crit_edge, %8
%22 = load ptr, ptr %3, align 8
%23 = load ptr, ptr %3, align 8
%24 = call i32 @strlen(ptr noundef %23)
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %4, align 8
%28 = load ptr, ptr %3, align 8
%29 = icmp ugt ptr %27, %28
br i1 %29, label %30, label %44
30: ; preds = %21
%31 = load ptr, ptr %4, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = call i64 @isspace(i8 noundef signext %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %.lr.ph2, label %43
.lr.ph2: ; preds = %30
br label %36
36: ; preds = %.lr.ph2, %36
%37 = load ptr, ptr %4, align 8
store i8 0, ptr %37, align 1
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 -1
store ptr %39, ptr %4, align 8
%40 = load i8, ptr %39, align 1
%41 = call i64 @isspace(i8 noundef signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %43
43: ; preds = %._crit_edge3, %30
br label %44
44: ; preds = %43, %21
%45 = load ptr, ptr %2, align 8
%46 = load ptr, ptr %3, align 8
%47 = load ptr, ptr %4, align 8
%48 = load ptr, ptr %3, align 8
%49 = ptrtoint ptr %47 to i64
%50 = ptrtoint ptr %48 to i64
%51 = sub i64 %49, %50
%52 = add nsw i64 %51, 1
%53 = trunc i64 %52 to i32
%54 = call i32 @memmove(ptr noundef %45, ptr noundef %46, i32 noundef %53)
br label %55
55: ; preds = %44, %7
ret void
}
declare i64 @isspace(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memmove(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/tmp1k4wopw1.c'
source_filename = "/tmp/tmp1k4wopw1.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [47 x i8] c"Entering dlr_check_file_compatbility(\22%s\22) ...\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@ENOENT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"dlr_check_file_compatibility(): %s\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"unable to dlopen() global symbol object\00", align 1
@ENOTDIR = dso_local global i32 0, align 4
@EPROTO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dlr_check_file_compatibility(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr @errno, align 8
%9 = call i32 (ptr, ...) @dlr_set_error(ptr noundef null)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @dlr_debug(i32 noundef 2, ptr noundef @.str, ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %34
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr @RTLD_LAZY, align 4
%17 = load i32, ptr @RTLD_LOCAL, align 4
%18 = or i32 %16, %17
%19 = call ptr @dlopen(ptr noundef %15, i32 noundef %18)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %5, align 8
store ptr %23, ptr %24, align 8
br label %25
25: ; preds = %22, %14
%26 = load ptr, ptr %7, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = call ptr (...) @dlerror()
%30 = call i32 (ptr, ...) @dlr_set_error(ptr noundef %29)
%31 = load i32, ptr @ENOENT, align 4
%32 = sub nsw i32 0, %31
store i32 %32, ptr %3, align 4
br label %83
33: ; preds = %25
br label %47
34: ; preds = %2
%35 = load ptr, ptr %5, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %7, align 8
br label %46
40: ; preds = %34
%41 = load i32, ptr @EINVAL, align 4
%42 = call i32 @strerror(i32 noundef %41)
%43 = call i32 (ptr, ...) @dlr_set_error(ptr noundef @.str.1, i32 noundef %42)
%44 = load i32, ptr @EINVAL, align 4
%45 = sub nsw i32 0, %44
store i32 %45, ptr %3, align 4
br label %83
46: ; preds = %37
br label %47
47: ; preds = %46, %33
%48 = load i32, ptr @RTLD_LAZY, align 4
%49 = load i32, ptr @RTLD_LOCAL, align 4
%50 = or i32 %48, %49
%51 = call ptr @dlopen(ptr noundef null, i32 noundef %50)
store ptr %51, ptr %6, align 8
%52 = load ptr, ptr %6, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %64
54: ; preds = %47
%55 = call i32 (ptr, ...) @dlr_set_error(ptr noundef @.str.2)
%56 = load ptr, ptr %5, align 8
%57 = icmp eq ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load ptr, ptr %7, align 8
%60 = call i32 @dlclose(ptr noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr @ENOTDIR, align 4
%63 = sub nsw i32 0, %62
store i32 %63, ptr %3, align 4
br label %83
64: ; preds = %47
%65 = load ptr, ptr %6, align 8
%66 = load ptr, ptr %7, align 8
%67 = call i32 @dlr_are_symbol_objects_compatible(ptr noundef %65, ptr noundef %66)
store i32 %67, ptr %8, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = load i32, ptr @EPROTO, align 4
%72 = sub nsw i32 0, %71
store i32 %72, ptr %8, align 4
br label %73
73: ; preds = %70, %64
%74 = load ptr, ptr %6, align 8
%75 = call i32 @dlclose(ptr noundef %74)
%76 = load ptr, ptr %5, align 8
%77 = icmp eq ptr %76, null
br i1 %77, label %78, label %81
78: ; preds = %73
%79 = load ptr, ptr %7, align 8
%80 = call i32 @dlclose(ptr noundef %79)
br label %81
81: ; preds = %78, %73
%82 = load i32, ptr %8, align 4
store i32 %82, ptr %3, align 4
br label %83
83: ; preds = %81, %61, %40, %28
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i32 @dlr_set_error(ptr noundef, ...) #1
declare i32 @dlr_debug(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare ptr @dlerror(...) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @dlclose(ptr noundef) #1
declare i32 @dlr_are_symbol_objects_compatible(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/tmp1k4wopw1.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [47 x i8] c"Entering dlr_check_file_compatbility(\22%s\22) ...\00", align 1
@RTLD_LAZY = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@ENOENT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"dlr_check_file_compatibility(): %s\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"unable to dlopen() global symbol object\00", align 1
@ENOTDIR = dso_local global i32 0, align 4
@EPROTO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dlr_check_file_compatibility(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr @errno, align 8
%9 = call i32 (ptr, ...) @dlr_set_error(ptr noundef null)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @dlr_debug(i32 noundef 2, ptr noundef @.str, ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %34
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr @RTLD_LAZY, align 4
%17 = load i32, ptr @RTLD_LOCAL, align 4
%18 = or i32 %16, %17
%19 = call ptr @dlopen(ptr noundef %15, i32 noundef %18)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %5, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %5, align 8
store ptr %23, ptr %24, align 8
br label %25
25: ; preds = %22, %14
%26 = load ptr, ptr %7, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = call ptr (...) @dlerror()
%30 = call i32 (ptr, ...) @dlr_set_error(ptr noundef %29)
%31 = load i32, ptr @ENOENT, align 4
%32 = sub nsw i32 0, %31
store i32 %32, ptr %3, align 4
br label %83
33: ; preds = %25
br label %47
34: ; preds = %2
%35 = load ptr, ptr %5, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = load ptr, ptr %38, align 8
store ptr %39, ptr %7, align 8
br label %46
40: ; preds = %34
%41 = load i32, ptr @EINVAL, align 4
%42 = call i32 @strerror(i32 noundef %41)
%43 = call i32 (ptr, ...) @dlr_set_error(ptr noundef @.str.1, i32 noundef %42)
%44 = load i32, ptr @EINVAL, align 4
%45 = sub nsw i32 0, %44
store i32 %45, ptr %3, align 4
br label %83
46: ; preds = %37
br label %47
47: ; preds = %46, %33
%48 = load i32, ptr @RTLD_LAZY, align 4
%49 = load i32, ptr @RTLD_LOCAL, align 4
%50 = or i32 %48, %49
%51 = call ptr @dlopen(ptr noundef null, i32 noundef %50)
store ptr %51, ptr %6, align 8
%52 = load ptr, ptr %6, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %64
54: ; preds = %47
%55 = call i32 (ptr, ...) @dlr_set_error(ptr noundef @.str.2)
%56 = load ptr, ptr %5, align 8
%57 = icmp eq ptr %56, null
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load ptr, ptr %7, align 8
%60 = call i32 @dlclose(ptr noundef %59)
br label %61
61: ; preds = %58, %54
%62 = load i32, ptr @ENOTDIR, align 4
%63 = sub nsw i32 0, %62
store i32 %63, ptr %3, align 4
br label %83
64: ; preds = %47
%65 = load ptr, ptr %6, align 8
%66 = load ptr, ptr %7, align 8
%67 = call i32 @dlr_are_symbol_objects_compatible(ptr noundef %65, ptr noundef %66)
store i32 %67, ptr %8, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = load i32, ptr @EPROTO, align 4
%72 = sub nsw i32 0, %71
store i32 %72, ptr %8, align 4
br label %73
73: ; preds = %70, %64
%74 = load ptr, ptr %6, align 8
%75 = call i32 @dlclose(ptr noundef %74)
%76 = load ptr, ptr %5, align 8
%77 = icmp eq ptr %76, null
br i1 %77, label %78, label %81
78: ; preds = %73
%79 = load ptr, ptr %7, align 8
%80 = call i32 @dlclose(ptr noundef %79)
br label %81
81: ; preds = %78, %73
%82 = load i32, ptr %8, align 4
store i32 %82, ptr %3, align 4
br label %83
83: ; preds = %81, %61, %40, %28
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i32 @dlr_set_error(ptr noundef, ...) #1
declare i32 @dlr_debug(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare ptr @dlerror(...) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @dlclose(ptr noundef) #1
declare i32 @dlr_are_symbol_objects_compatible(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/tmpb2ixywdn.c'
source_filename = "/tmp/tmpb2ixywdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"Tiny Z80 Disassembler Ver 0.1 by fukuchan\0A\00", align 1
@.str.1 = private unnamed_addr constant [77 x i8] c"Usage: dasm88 [-org n [-size n] ] [-nv] [-t n] [-f option_file] binary_file\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c" -org n - Set Disassemble start address n\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" -size n - Set Disassemble size n\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c" -f option_file - Specity Option-File\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c" -nv - Not verbose output\0A\00", align 1
@.str.6 = private unnamed_addr constant [53 x i8] c" -t n - Set tab width n ( align 8*x )\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c" binary_file - Binary-File\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb2ixywdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"Tiny Z80 Disassembler Ver 0.1 by fukuchan\0A\00", align 1
@.str.1 = private unnamed_addr constant [77 x i8] c"Usage: dasm88 [-org n [-size n] ] [-nv] [-t n] [-f option_file] binary_file\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c" -org n - Set Disassemble start address n\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" -size n - Set Disassemble size n\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c" -f option_file - Specity Option-File\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c" -nv - Not verbose output\0A\00", align 1
@.str.6 = private unnamed_addr constant [53 x i8] c" -t n - Set tab width n ( align 8*x )\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c" binary_file - Binary-File\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbm5o8mw5.c'
source_filename = "/tmp/tmpbm5o8mw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"@hotmail.com\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%s@hotmail.com\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @AddHotmail(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %32
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strchr(ptr noundef %11, i8 noundef signext 64)
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strlen(ptr noundef %15)
%17 = call i64 @strlen(ptr noundef @.str)
%18 = add nsw i64 %16, %17
%19 = add nsw i64 %18, 1
%20 = call i64 @malloc(i64 noundef %19)
%21 = inttoptr i64 %20 to ptr
%22 = load ptr, ptr %5, align 8
store ptr %21, ptr %22, align 8
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str.1, ptr noundef %25)
br label %31
27: ; preds = %10
%28 = load ptr, ptr %4, align 8
%29 = call ptr @strdup(ptr noundef %28)
%30 = load ptr, ptr %5, align 8
store ptr %29, ptr %30, align 8
br label %31
31: ; preds = %27, %14
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %31, %9
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbm5o8mw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"@hotmail.com\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%s@hotmail.com\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @AddHotmail(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %32
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strchr(ptr noundef %11, i8 noundef signext 64)
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = call i64 @strlen(ptr noundef %15)
%17 = call i64 @strlen(ptr noundef @.str)
%18 = add nsw i64 %16, %17
%19 = add nsw i64 %18, 1
%20 = call i64 @malloc(i64 noundef %19)
%21 = inttoptr i64 %20 to ptr
%22 = load ptr, ptr %5, align 8
store ptr %21, ptr %22, align 8
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str.1, ptr noundef %25)
br label %31
27: ; preds = %10
%28 = load ptr, ptr %4, align 8
%29 = call ptr @strdup(ptr noundef %28)
%30 = load ptr, ptr %5, align 8
store ptr %29, ptr %30, align 8
br label %31
31: ; preds = %27, %14
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %31, %9
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6wj978xk.c'
source_filename = "/tmp/tmp6wj978xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_strsav(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 i64 @strlen(ptr noundef %3)
%5 = add nsw i64 %4, 1
%6 = mul nsw i64 1, %5
%7 = call i64 @MMalloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
%9 = load ptr, ptr %2, align 8
%10 = call ptr @strcpy(ptr noundef %8, ptr noundef %9)
ret ptr %10
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare i64 @MMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6wj978xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_strsav(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 i64 @strlen(ptr noundef %3)
%5 = add nsw i64 %4, 1
%6 = mul nsw i64 1, %5
%7 = call i64 @MMalloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
%9 = load ptr, ptr %2, align 8
%10 = call ptr @strcpy(ptr noundef %8, ptr noundef %9)
ret ptr %10
}
declare ptr @strcpy(ptr noundef, ptr noundef) #1
declare i64 @MMalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf35c9b7g.c'
source_filename = "/tmp/tmpf35c9b7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @irq_8259_mask(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 @bsp_irq_mask(i32 noundef %3)
ret void
}
declare i32 @bsp_irq_mask(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/tmpf35c9b7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @irq_8259_mask(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 @bsp_irq_mask(i32 noundef %3)
ret void
}
declare i32 @bsp_irq_mask(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/tmp0xlgi40x.c'
source_filename = "/tmp/tmp0xlgi40x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ProolSkript Interpreter\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @skript()
%3 = call i32 @puts(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @skript(...) #1
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/tmp0xlgi40x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ProolSkript Interpreter\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @skript()
%3 = call i32 @puts(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @skript(...) #1
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/tmpv2ilz7it.c'
source_filename = "/tmp/tmpv2ilz7it.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"dasum\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 10000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv2ilz7it.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"dasum\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 10000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpc_25rxov.c'
source_filename = "/tmp/tmpc_25rxov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PANIC(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 @perror(ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_25rxov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PANIC(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 @perror(ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps7gov04p.c'
source_filename = "/tmp/tmps7gov04p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0xba\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xba() #0 {
%1 = call i64 @isupper(i32 noundef 186)
%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 935, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps7gov04p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isupper should be 0 for 0xba\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0xba() #0 {
%1 = call i64 @isupper(i32 noundef 186)
%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 935, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpetcbbmxu.c'
source_filename = "/tmp/tmpetcbbmxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashFunction(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 %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @murmur3(ptr noundef %3, i32 noundef %5)
%7 = srem i32 %6, 1024
ret i32 %7
}
declare i32 @murmur3(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpetcbbmxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashFunction(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 %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = call i32 @murmur3(ptr noundef %3, i32 noundef %5)
%7 = srem i32 %6, 1024
ret i32 %7
}
declare i32 @murmur3(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmc0jeh8i.c'
source_filename = "/tmp/tmpmc0jeh8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Klaida skaitymo pabaigoje\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_read_wait(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [1 x ptr], align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds [1 x ptr], ptr %4, i64 0, i64 0
store ptr %5, ptr %6, align 8
%7 = getelementptr inbounds [1 x ptr], ptr %4, i64 0, i64 0
%8 = call i64 @ps_test_aio_suspend(ptr noundef %7, i32 noundef 1, ptr noundef null)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %15
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @ps_test_aio_return(ptr noundef %13)
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %12, %10
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @ps_test_aio_suspend(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @ps_test_aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmc0jeh8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Klaida skaitymo pabaigoje\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ps_read_wait(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [1 x ptr], align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds [1 x ptr], ptr %4, i64 0, i64 0
store ptr %5, ptr %6, align 8
%7 = getelementptr inbounds [1 x ptr], ptr %4, i64 0, i64 0
%8 = call i64 @ps_test_aio_suspend(ptr noundef %7, i32 noundef 1, ptr noundef null)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %15
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @ps_test_aio_return(ptr noundef %13)
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %12, %10
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @ps_test_aio_suspend(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @ps_test_aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyw5q3q7t.c'
source_filename = "/tmp/tmpyw5q3q7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_xmemcpy_all() #0 {
%1 = call i32 (...) @test_xmemcpy_small()
%2 = call i32 (...) @test_xmemcpy_unalign()
%3 = call i32 (...) @test_xmemcpy_mismatch()
%4 = call i32 (...) @test_xmemcpy_large()
%5 = call i32 (...) @test_xmemcpy_large_unalign()
%6 = call i32 (...) @test_memset()
ret void
}
declare i32 @test_xmemcpy_small(...) #1
declare i32 @test_xmemcpy_unalign(...) #1
declare i32 @test_xmemcpy_mismatch(...) #1
declare i32 @test_xmemcpy_large(...) #1
declare i32 @test_xmemcpy_large_unalign(...) #1
declare i32 @test_memset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyw5q3q7t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_xmemcpy_all() #0 {
%1 = call i32 (...) @test_xmemcpy_small()
%2 = call i32 (...) @test_xmemcpy_unalign()
%3 = call i32 (...) @test_xmemcpy_mismatch()
%4 = call i32 (...) @test_xmemcpy_large()
%5 = call i32 (...) @test_xmemcpy_large_unalign()
%6 = call i32 (...) @test_memset()
ret void
}
declare i32 @test_xmemcpy_small(...) #1
declare i32 @test_xmemcpy_unalign(...) #1
declare i32 @test_xmemcpy_mismatch(...) #1
declare i32 @test_xmemcpy_large(...) #1
declare i32 @test_xmemcpy_large_unalign(...) #1
declare i32 @test_memset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjl09mk8b.c'
source_filename = "/tmp/tmpjl09mk8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FSqueryValidator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1000, i1 false)
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 5
%9 = call i32 @strcpy(ptr noundef %6, ptr noundef %8)
br label %10
10: ; preds = %17, %1
%11 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = call i64 @strncmp(ptr noundef %14, ptr noundef @.str, i32 noundef 1)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %10
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %10, !llvm.loop !6
20: ; preds = %10
%21 = load i32, ptr %4, align 4
switch i32 %21, label %42 [
i32 2, label %22
i32 3, label %32
]
22: ; preds = %20
%23 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = call i32 @strlen(ptr noundef %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %22
store i32 2, ptr %5, align 4
br label %31
30: ; preds = %22
store i32 0, ptr %5, align 4
br label %31
31: ; preds = %30, %29
br label %43
32: ; preds = %20
%33 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = call i32 @strlen(ptr noundef %36)
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %32
store i32 3, ptr %5, align 4
br label %41
40: ; preds = %32
store i32 0, ptr %5, align 4
br label %41
41: ; preds = %40, %39
br label %43
42: ; preds = %20
store i32 0, ptr %5, align 4
br label %43
43: ; preds = %42, %41, %31
%44 = load i32, ptr %5, align 4
ret i32 %44
}
; 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 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjl09mk8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @FSqueryValidator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1000, i1 false)
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 5
%9 = call i32 @strcpy(ptr noundef %6, ptr noundef %8)
%10 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = call i64 @strncmp(ptr noundef %13, ptr noundef @.str, i32 noundef 1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %.lr.ph, label %24
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %16
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %10, i64 %20
%22 = call i64 @strncmp(ptr noundef %21, ptr noundef @.str, i32 noundef 1)
%23 = icmp eq i64 %22, 0
br i1 %23, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %24
24: ; preds = %._crit_edge, %1
%25 = load i32, ptr %4, align 4
switch i32 %25, label %46 [
i32 2, label %26
i32 3, label %36
]
26: ; preds = %24
%27 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%28 = load i32, ptr %4, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store i32 2, ptr %5, align 4
br label %35
34: ; preds = %26
store i32 0, ptr %5, align 4
br label %35
35: ; preds = %34, %33
br label %47
36: ; preds = %24
%37 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%38 = load i32, ptr %4, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %36
store i32 3, ptr %5, align 4
br label %45
44: ; preds = %36
store i32 0, ptr %5, align 4
br label %45
45: ; preds = %44, %43
br label %47
46: ; preds = %24
store i32 0, ptr %5, align 4
br label %47
47: ; preds = %46, %45, %35
%48 = load i32, ptr %5, align 4
ret i32 %48
}
; 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 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpipe8l1y4.c'
source_filename = "/tmp/tmpipe8l1y4.c"
target datalayout = "e-m:e-p270: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/tmpipe8l1y4.c"
target datalayout = "e-m:e-p270: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/tmpsxxrnevv.c'
source_filename = "/tmp/tmpsxxrnevv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reset() #0 {
%1 = call i32 @gpio_high(i32 noundef 25)
%2 = call i32 @delayms(i32 noundef 150)
%3 = call i32 @gpio_low(i32 noundef 25)
%4 = call i32 @delayus(i32 noundef 100)
ret void
}
declare i32 @gpio_high(i32 noundef) #1
declare i32 @delayms(i32 noundef) #1
declare i32 @gpio_low(i32 noundef) #1
declare i32 @delayus(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/tmpsxxrnevv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reset() #0 {
%1 = call i32 @gpio_high(i32 noundef 25)
%2 = call i32 @delayms(i32 noundef 150)
%3 = call i32 @gpio_low(i32 noundef 25)
%4 = call i32 @delayus(i32 noundef 100)
ret void
}
declare i32 @gpio_high(i32 noundef) #1
declare i32 @delayms(i32 noundef) #1
declare i32 @gpio_low(i32 noundef) #1
declare i32 @delayus(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/tmphl4wuz3b.c'
source_filename = "/tmp/tmphl4wuz3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, ptr %5, align 4
%9 = trunc i32 %8 to i8
store i8 %9, ptr %6, align 1
br label %10
10: ; preds = %104, %2
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %13, %15
%17 = zext i1 %16 to i32
%18 = call i64 @__unlikely(i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
store ptr %21, ptr %7, align 8
br label %22
22: ; preds = %20, %10
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
%28 = call i64 @__unlikely(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %22
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %3, align 8
br label %107
32: ; preds = %22
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %4, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr %6, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %37, %39
%41 = zext i1 %40 to i32
%42 = call i64 @__unlikely(i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %32
%45 = load ptr, ptr %4, align 8
store ptr %45, ptr %7, align 8
br label %46
46: ; preds = %44, %32
%47 = load ptr, ptr %4, align 8
%48 = load i8, ptr %47, align 1
%49 = icmp ne i8 %48, 0
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
%52 = call i64 @__unlikely(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %46
%55 = load ptr, ptr %7, align 8
store ptr %55, ptr %3, align 8
br label %107
56: ; preds = %46
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %4, align 8
%59 = load ptr, ptr %4, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = load i8, ptr %6, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %61, %63
%65 = zext i1 %64 to i32
%66 = call i64 @__unlikely(i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %56
%69 = load ptr, ptr %4, align 8
store ptr %69, ptr %7, align 8
br label %70
70: ; preds = %68, %56
%71 = load ptr, ptr %4, align 8
%72 = load i8, ptr %71, align 1
%73 = icmp ne i8 %72, 0
%74 = xor i1 %73, true
%75 = zext i1 %74 to i32
%76 = call i64 @__unlikely(i32 noundef %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = load ptr, ptr %7, align 8
store ptr %79, ptr %3, align 8
br label %107
80: ; preds = %70
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %4, align 8
%83 = load ptr, ptr %4, align 8
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = load i8, ptr %6, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %85, %87
%89 = zext i1 %88 to i32
%90 = call i64 @__unlikely(i32 noundef %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %80
%93 = load ptr, ptr %4, align 8
store ptr %93, ptr %7, align 8
br label %94
94: ; preds = %92, %80
%95 = load ptr, ptr %4, align 8
%96 = load i8, ptr %95, align 1
%97 = icmp ne i8 %96, 0
%98 = xor i1 %97, true
%99 = zext i1 %98 to i32
%100 = call i64 @__unlikely(i32 noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %94
%103 = load ptr, ptr %7, align 8
store ptr %103, ptr %3, align 8
br label %107
104: ; preds = %94
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 1
store ptr %106, ptr %4, align 8
br label %10
107: ; preds = %102, %78, %54, %30
%108 = load ptr, ptr %3, align 8
ret ptr %108
}
declare i64 @__unlikely(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/tmphl4wuz3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, ptr %5, align 4
%9 = trunc i32 %8 to i8
store i8 %9, ptr %6, align 1
br label %10
10: ; preds = %104, %2
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr %6, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %13, %15
%17 = zext i1 %16 to i32
%18 = call i64 @__unlikely(i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
store ptr %21, ptr %7, align 8
br label %22
22: ; preds = %20, %10
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
%28 = call i64 @__unlikely(i32 noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %22
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %3, align 8
br label %107
32: ; preds = %22
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %4, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr %6, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %37, %39
%41 = zext i1 %40 to i32
%42 = call i64 @__unlikely(i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %32
%45 = load ptr, ptr %4, align 8
store ptr %45, ptr %7, align 8
br label %46
46: ; preds = %44, %32
%47 = load ptr, ptr %4, align 8
%48 = load i8, ptr %47, align 1
%49 = icmp ne i8 %48, 0
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
%52 = call i64 @__unlikely(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %46
%55 = load ptr, ptr %7, align 8
store ptr %55, ptr %3, align 8
br label %107
56: ; preds = %46
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %4, align 8
%59 = load ptr, ptr %4, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = load i8, ptr %6, align 1
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %61, %63
%65 = zext i1 %64 to i32
%66 = call i64 @__unlikely(i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %56
%69 = load ptr, ptr %4, align 8
store ptr %69, ptr %7, align 8
br label %70
70: ; preds = %68, %56
%71 = load ptr, ptr %4, align 8
%72 = load i8, ptr %71, align 1
%73 = icmp ne i8 %72, 0
%74 = xor i1 %73, true
%75 = zext i1 %74 to i32
%76 = call i64 @__unlikely(i32 noundef %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = load ptr, ptr %7, align 8
store ptr %79, ptr %3, align 8
br label %107
80: ; preds = %70
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %4, align 8
%83 = load ptr, ptr %4, align 8
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = load i8, ptr %6, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %85, %87
%89 = zext i1 %88 to i32
%90 = call i64 @__unlikely(i32 noundef %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %80
%93 = load ptr, ptr %4, align 8
store ptr %93, ptr %7, align 8
br label %94
94: ; preds = %92, %80
%95 = load ptr, ptr %4, align 8
%96 = load i8, ptr %95, align 1
%97 = icmp ne i8 %96, 0
%98 = xor i1 %97, true
%99 = zext i1 %98 to i32
%100 = call i64 @__unlikely(i32 noundef %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %94
%103 = load ptr, ptr %7, align 8
store ptr %103, ptr %3, align 8
br label %107
104: ; preds = %94
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 1
store ptr %106, ptr %4, align 8
br label %10
107: ; preds = %102, %78, %54, %30
%108 = load ptr, ptr %3, align 8
ret ptr %108
}
declare i64 @__unlikely(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/tmp8eci8unt.c'
source_filename = "/tmp/tmp8eci8unt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sntp_strerr() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
declare ptr @strerror(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/tmp8eci8unt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sntp_strerr() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
declare ptr @strerror(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/tmpunso5504.c'
source_filename = "/tmp/tmpunso5504.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
br label %6
6: ; preds = %13, %1
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i64 @isspace(i32 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %6
br label %6, !llvm.loop !6
14: ; preds = %6
%15 = load ptr, ptr %2, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 45
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 -1, i32 1
store i32 %20, ptr %5, align 4
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 43
br i1 %24, label %30, label %25
25: ; preds = %14
%26 = load ptr, ptr %2, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %30, label %33
30: ; preds = %25, %14
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %2, align 8
br label %33
33: ; preds = %30, %25
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %47, %33
%35 = load ptr, ptr %2, align 8
%36 = load i8, ptr %35, align 1
%37 = call i64 @isdigit(i8 noundef signext %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %50
39: ; preds = %34
%40 = load i32, ptr %4, align 4
%41 = mul nsw i32 10, %40
%42 = load ptr, ptr %2, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = sub nsw i32 %44, 48
%46 = add nsw i32 %41, %45
store i32 %46, ptr %4, align 4
br label %47
47: ; preds = %39
%48 = load ptr, ptr %2, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %2, align 8
br label %34, !llvm.loop !8
50: ; preds = %34
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = mul nsw i32 %51, %52
ret i32 %53
}
declare i64 @isspace(i32 noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpunso5504.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atoi(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
br label %6
6: ; preds = %6, %1
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i64 @isspace(i32 noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %6, label %13, !llvm.loop !6
13: ; preds = %6
%14 = load ptr, ptr %2, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 45
%18 = zext i1 %17 to i64
%19 = select i1 %17, i32 -1, i32 1
store i32 %19, ptr %5, align 4
%20 = load ptr, ptr %2, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 43
br i1 %23, label %29, label %24
24: ; preds = %13
%25 = load ptr, ptr %2, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 45
br i1 %28, label %29, label %32
29: ; preds = %24, %13
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %2, align 8
br label %32
32: ; preds = %29, %24
store i32 0, ptr %4, align 4
%33 = load ptr, ptr %2, align 8
%34 = load i8, ptr %33, align 1
%35 = call i64 @isdigit(i8 noundef signext %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %.lr.ph, label %52
.lr.ph: ; preds = %32
br label %37
37: ; preds = %.lr.ph, %45
%38 = load i32, ptr %4, align 4
%39 = mul nsw i32 10, %38
%40 = load ptr, ptr %2, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = sub nsw i32 %42, 48
%44 = add nsw i32 %39, %43
store i32 %44, ptr %4, align 4
br label %45
45: ; preds = %37
%46 = load ptr, ptr %2, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %2, align 8
%48 = load ptr, ptr %2, align 8
%49 = load i8, ptr %48, align 1
%50 = call i64 @isdigit(i8 noundef signext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %37, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %32
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %4, align 4
%55 = mul nsw i32 %53, %54
ret i32 %55
}
declare i64 @isspace(i32 noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe4s6vmyv.c'
source_filename = "/tmp/tmpe4s6vmyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @sum(ptr noundef @.str, i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @print_int(i32 noundef %3)
%5 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @sum(ptr noundef, i32 noundef) #1
declare i32 @print_int(i32 noundef) #1
declare i32 @print_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4s6vmyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"hello world\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @sum(ptr noundef @.str, i32 noundef 0)
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @print_int(i32 noundef %3)
%5 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @sum(ptr noundef, i32 noundef) #1
declare i32 @print_int(i32 noundef) #1
declare i32 @print_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp80_d6s9o.c'
source_filename = "/tmp/tmp80_d6s9o.c"
target datalayout = "e-m:e-p270: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/tmp80_d6s9o.c"
target datalayout = "e-m:e-p270: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/tmpplqarae2.c'
source_filename = "/tmp/tmpplqarae2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qadd_table(i32 noundef 1)
%3 = call i32 @qadd_table(i32 noundef 0)
ret i32 0
}
declare i32 @qadd_table(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/tmpplqarae2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qadd_table(i32 noundef 1)
%3 = call i32 @qadd_table(i32 noundef 0)
ret i32 0
}
declare i32 @qadd_table(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/tmpw17t6h2f.c'
source_filename = "/tmp/tmpw17t6h2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d : I \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @box_muller() #0 {
%1 = alloca [100 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 100
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %11
store i32 0, ptr %12, align 4
br label %13
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %34, %16
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %18, 1000
br i1 %19, label %20, label %37
20: ; preds = %17
%21 = call i32 @brnd(double noundef 2.500000e+00, double noundef 1.000000e+01, ptr noundef %4, ptr noundef %5)
%22 = load double, ptr %4, align 8
%23 = fptosi double %22 to i32
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %25, align 4
%28 = load double, ptr %5, align 8
%29 = fptosi double %28 to i32
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %31, align 4
br label %34
34: ; preds = %20
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
br label %17, !llvm.loop !8
37: ; preds = %17
store i32 0, ptr %2, align 4
br label %38
38: ; preds = %59, %37
%39 = load i32, ptr %2, align 4
%40 = icmp sle i32 %39, 20
br i1 %40, label %41, label %62
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %42)
store i32 1, ptr %3, align 4
br label %44
44: ; preds = %54, %41
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sdiv i32 %49, 10
%51 = icmp sle i32 %45, %50
br i1 %51, label %52, label %57
52: ; preds = %44
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %54
54: ; preds = %52
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
br label %44, !llvm.loop !9
57: ; preds = %44
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %59
59: ; preds = %57
%60 = load i32, ptr %2, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %2, align 4
br label %38, !llvm.loop !10
62: ; preds = %38
ret void
}
declare i32 @brnd(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw17t6h2f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d : I \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @box_muller() #0 {
%1 = alloca [100 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 100
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %10
store i32 0, ptr %11, align 4
br label %12
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %15, 100
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
store i32 0, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %18, 1000
br i1 %19, label %.lr.ph2, label %39
.lr.ph2: ; preds = %17
br label %20
20: ; preds = %.lr.ph2, %34
%21 = call i32 @brnd(double noundef 2.500000e+00, double noundef 1.000000e+01, ptr noundef %4, ptr noundef %5)
%22 = load double, ptr %4, align 8
%23 = fptosi double %22 to i32
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %25, align 4
%28 = load double, ptr %5, align 8
%29 = fptosi double %28 to i32
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %31, align 4
br label %34
34: ; preds = %20
%35 = load i32, ptr %2, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %37, 1000
br i1 %38, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %39
39: ; preds = %._crit_edge3, %17
store i32 0, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp sle i32 %40, 20
br i1 %41, label %.lr.ph8, label %71
.lr.ph8: ; preds = %39
br label %42
42: ; preds = %.lr.ph8, %66
%43 = load i32, ptr %2, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %43)
store i32 1, ptr %3, align 4
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %2, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sdiv i32 %49, 10
%51 = icmp sle i32 %45, %50
br i1 %51, label %.lr.ph5, label %64
.lr.ph5: ; preds = %42
br label %52
52: ; preds = %.lr.ph5, %54
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %54
54: ; preds = %52
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
%57 = load i32, ptr %3, align 4
%58 = load i32, ptr %2, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = sdiv i32 %61, 10
%63 = icmp sle i32 %57, %62
br i1 %63, label %52, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %54
br label %64
64: ; preds = %._crit_edge6, %42
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %66
66: ; preds = %64
%67 = load i32, ptr %2, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %2, align 4
%69 = load i32, ptr %2, align 4
%70 = icmp sle i32 %69, 20
br i1 %70, label %42, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %66
br label %71
71: ; preds = %._crit_edge9, %39
ret void
}
declare i32 @brnd(double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.